obfusk / apksigcopier

apksigcopier - copy/extract/patch android apk signatures & compare apks
GNU General Public License v3.0
167 stars 24 forks source link

support zip64? #59

Open obfusk opened 1 year ago

obfusk commented 1 year ago

https://en.wikipedia.org/wiki/ZIP_(file_format)#ZIP64

IlluminatiWave commented 6 months ago

I doubt it's possible, since android uses "zip32" and deflate/store for apk reading (at the time I wanted to do something with 7z apk or different algorithms like brotli).

The same goes for obb and split apk.

As far as I knew, they used to be handled by a max app size of 4gb (spread over multiple split apks). but the maximum an apk can tolerate is 2gb.

Also take into account that you can make use of obb, which is also limited to 2gb (I tried to make a 4gb obb and the test app/game didn't support it even on arm 64 system).

so the maximum size (not counting user data) of an app is

8 gb (maybe, although I have my doubts if the obb adds or shares total space, if it shares the size is reduced to the 4gb)

apk = 2gb base + 2gb split (the sum of apk + splits should not exceed 4gb) obb = 2gb main + 2gb patch

Source: https://developer.android.com/google/play/expansion-files