Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

ApkDiffPatch

> 编程语言
Open source

a C++ library and command-line tools for Zip(Jar,Apk) file Diff & Patch; create minimal delta/differential; support Jar sign(apk v1 sign) & apk v2,v3,v4 sign .

364 stars0 likes1 views
WebsiteGitHub

About

a C++ library and command-line tools for Zip(Jar,Apk) file Diff & Patch; create minimal delta/differential; support Jar sign(apk v1 sign) & apk v2,v3,v4 sign .

ApkDiffPatch

a C++ library and command-line tools for Zip(Jar,Apk) file Diff & Patch; create minimal delta/differential; support Jar sign(Apk v1 sign) & Apk v2 sign & [Apk v3 sign] .
You can use this library (and Android NDK) to delta update your Apk.
( not support zip64, and only support decode Deflated code; dependent libraries HDiffPatch, zlib, lzma. )
[中文说明]


Releases/Binaries

Download from last release : Command line app for Windows , Linux , MacOS; and .so .java for Android.

usage:

  • ZipDiff(oldZip,newZip,out diffData)
    release the diffData for update oldZip;

  • ZipPatch(oldZip,diffData,out newZip)
    ok , got the newZip;
    ZipPatch() requires 4*(decompress stream memory) + ref old decompress memory + O(1), also ref old decompress can use temp disk file without memory;
    ZipPatch() support multi-thread parallel compress mode when writing zip file, which requires more and more memory! (NOTE: patch by multi-thread need ApkNormalized zip files)

  • NOTE:
    if your need newZip(patch result) file byte by byte equal, Released newZip := ApkNormalized(newZip) before run ZipDiff, AND You should not modify the zlib version (unless it is certified compatible);
    if your apk(or jar) file used Jar sign(Apk v1 sign), is same as zip file;
    if your apk used Apk v2 sign(or later), Released newApk := AndroidSDK#apksigner(ApkNormalized(newApk)) before ZipDiff;

  • NOTE:
    ApkDiffPath can't be used by Android app store, because it requires re-signing apks before diff.
    sfpatcher not require re-signing apks (like archive-patcher), is designed for Android app store, patch speed up by a factor of xx than archive-patcher & run with O(1) memory.


Why ApkDiffPatch

Why need ApkDiffPatch or Google Play's archive-patcher after having BsDiff or HDiffPatch?

…

Contact

[email protected]

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C++androidapkarchivediff

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言