REAndroid / ARSCLib

Android binary resources read/write library
Apache License 2.0
218 stars 44 forks source link

Allow specifying deflate compression level #69

Open LeadRDRK opened 1 month ago

LeadRDRK commented 1 month ago

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

REAndroid commented 1 month ago

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

LeadRDRK commented 1 month ago

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?

REAndroid commented 1 month ago

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