Android 增量更新

Android 增量更新

首先通过bsdiff 生成patch包

命令:bsdiff oldfile newfile patchfile
例如: bsdiff xx_v1.0.apk xx_v2.0.apk xx.patch

bspatch生成新的APK:

命令: bspatch oldfile newfile patchfile
例如: bsdiff xx_v1.0.apk xx_v2.0.apk xx.patch

无论是windows端还是Linux端都是执行的这两个命令

Diffuse is a tool for diffing APKs, AABs, AARs, and JARs in a way that aims to provide both a high-level view of what changes along with important detailed output.

https://github.com/JakeWharton/diffuse

你可能感兴趣的:(Android 增量更新)