sisong / 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,v3 sign .
MIT License
307 stars 49 forks source link

support Android sdk build-tools apksigner v35 #96

Open sisong opened 2 months ago

sisong commented 2 months ago

apksigner v34 compatible ok, but v35 patcher failed.

sisong commented 2 months ago

now, apksigner v35 will automatically realigned apk's uncompressed files ):
and the alignment is different from zipalign!
for all uncompressed files, apksigner v35 will adding align tag+ align bytes+align multiple (It can also be handled compatible), for all uncompressed .so files, apksigner v35 will adding align tag datas twice (no pattern of location, and it can't be compatible):

Image_1722907408498.png

Image_1722907411571.png