ApkDiffPatch icon indicating copy to clipboard operation
ApkDiffPatch copied to clipboard

support Android sdk build-tools apksigner v35

Open sisong opened this issue 1 year ago • 3 comments

apksigner v34 compatible ok, but v35 patcher failed.

sisong avatar Aug 03 '24 03:08 sisong

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

It can be noticed that 35 D9... appears twice in the picture for one .so file, and the second position is random. I did not find any pattern and therefore it is can't compatible it.

sisong avatar Aug 06 '24 01:08 sisong

apksigner v34 compatible ok, but v35 patcher failed.

If my APK is adapted to 16k page size, will apksigner v35 work ok?

jay-dh avatar Sep 23 '25 08:09 jay-dh

No; apksigner v35 will re-enforce 16k page size alignment regardless of whether 16k page size alignment has been adapted.

sisong avatar Sep 23 '25 12:09 sisong