百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

ApkDiffPatch

> 编程语言
开源

一个 C++ 库和命令行工具,用于比较 Zip(Jar,Apk) 文件,创建最小的差值;支持 Jar 签名(apk v1 签名)和 apk v2、v3、v4 签名。

364 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一个 C++ 库和命令行工具,用于比较 Zip(Jar,Apk) 文件,创建最小的差值;支持 Jar 签名(apk v1 签名)和 apk v2、v3、v4 签名。

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++androidapkarchivediff

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

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