{"id":15630106,"url":"https://github.com/yale8848/easyincrementalupdate","last_synced_at":"2026-03-07T08:01:22.733Z","repository":{"id":92882548,"uuid":"112895194","full_name":"yale8848/EasyIncrementalUpdate","owner":"yale8848","description":"Android差分补丁库，通过native层合并APK，实现增量更新升级，让你更新的APK更小。","archived":false,"fork":false,"pushed_at":"2018-09-06T01:17:22.000Z","size":393,"stargazers_count":237,"open_issues_count":1,"forks_count":27,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-20T20:51:36.063Z","etag":null,"topics":["android","apk","incremental","jni","native","update"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yale8848.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-03T02:54:54.000Z","updated_at":"2025-05-26T17:28:41.000Z","dependencies_parsed_at":"2023-03-28T20:06:24.067Z","dependency_job_id":null,"html_url":"https://github.com/yale8848/EasyIncrementalUpdate","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yale8848/EasyIncrementalUpdate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yale8848%2FEasyIncrementalUpdate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yale8848%2FEasyIncrementalUpdate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yale8848%2FEasyIncrementalUpdate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yale8848%2FEasyIncrementalUpdate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yale8848","download_url":"https://codeload.github.com/yale8848/EasyIncrementalUpdate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yale8848%2FEasyIncrementalUpdate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30209796,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","apk","incremental","jni","native","update"],"created_at":"2024-10-03T10:30:13.582Z","updated_at":"2026-03-07T08:01:22.651Z","avatar_url":"https://github.com/yale8848.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EasyIncrementalUpdate\n\n[![](https://img.shields.io/badge/jcenter-1.1.2-519dd9.svg)](https://bintray.com/yale8848/maven/easyincremetalupdate)\n\n[English](README_EN.md)\n\nAndroid差分补丁库，通过native层合并APK，实现增量更新升级，让你更新的APK更小。\n\n## 如何使用\n- 引入jcenter库\n```\nimplementation 'ren.yale.android:incremetalupdate:1.1.2'\n```\n- 代码\n\n```\nboolean ret = EasyIncrementalUpdate.patch(context,\"new apk path\",\"patch file\")\n```\n\n或者\n\n```\nString oldApk = EasyIncrementalUpdate.getApkSourceDir(context);\nboolean ret = EasyIncrementalUpdate.patch(oldApk,\"new apk path\",\"patch file\")\n```\n\n\u003e 可以根据ret的值判断是否成功，如果失败的话，可以全量更新，失败的原因可以看logcat TAG=EasyIncrementalUpdate的日志\n\n- ndk abi 选择\n\n在app/build.gradle中，请根据自己的需求选择\n\n```\n    defaultConfig {\n        ...\n        ndk {\n            abiFilters 'x86', 'x86_64', 'armeabi', 'armeabi-v7a', 'arm64-v8a','mips'\n        }\n    }\n\n```\n\n\n## 原理\n\n服务器端通过开源差分工具[bsdiff](http://www.daemonology.net/bsdiff/)实现差分生成patch文件,客户端下载patch文件,\n和本地原apk合并生产新的apk\n\n## 服务器端差分工具使用\n\n### windows\n- 下载server/windows/[bsdiff.exe](server/windows/bsdiff.exe),下载server/windows/[bspatch.exe](server/windows/bspatch.exe)\n\n差分命令\n```\nbsdiff.exe old.apk new.apk patch\n```\n合并命令(可以用来测试)\n```\nbspatch.exe old.apk new.apk patch\n```\n\n### linux_x86-64\n- 下载server/linux_x86-64/[bsdiff](server/linux_x86-64/bsdiff),下载server/linux_x86-64/[bspatch](server/linux_x86-64/bspatch)\n\n差分命令\n```\nbsdiff old.apk new.apk patch\n```\n合并命令(可以用来测试)\n```\nbspatch old.apk new.apk patch\n```\n\n## 提问\n\n可以在[这里](https://github.com/yale8848/EasyIncrementalUpdate/issues)提问\n\n## 贡献代码\n\n[如何贡献代码](CONTRIBUTING.md)\n\n## 开源协议\n\n```\nMIT License\n\nCopyright (c) 2017 Yale\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyale8848%2Feasyincrementalupdate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyale8848%2Feasyincrementalupdate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyale8848%2Feasyincrementalupdate/lists"}