ARSCLib icon indicating copy to clipboard operation
ARSCLib copied to clipboard

Allow specifying deflate compression level

Open LeadRDRK opened this issue 1 year ago • 3 comments

Can we get an option to set the deflate compression level? The code seems to be hardcoded to use the default compression level.

LeadRDRK avatar Jul 27 '24 03:07 LeadRDRK

All apk packers uses DEFAULT_COMPRESSION, making any different can flag the apk.

REAndroid avatar Jul 27 '24 23:07 REAndroid

I see. I'm requesting this feature because repacking an APK file (that I got directly from Google Play) results in a bigger size despite using the same store/deflate compression method for the individual files; the files that were deflated had a bigger compressed size than their original counterpart. Wouldn't that mean the original's compression level is higher? Is it just a particular problem with this implementation?

LeadRDRK avatar Jul 28 '24 03:07 LeadRDRK

Never seen compressed size variations unless files are modified. This should be investigated , can you share your original and modified apks ?

REAndroid avatar Jul 28 '24 14:07 REAndroid