Open basilgello opened 8 months ago
Sorry not convinced the purpose of keeping extractNativeLibs
. AFIK extractNativeLibs is for when the library is archived in compressed format and needs to tell lib loader to extract first before loading.
During merging all native libs kept uncompressed.
I appreciate if you drop here sample apk that proves your point.
Thank you
Introduce the CLI option to preserve android:extractNativeLibraries to allow re-packing apps that initially ship with this setting (and some code relies on it!)
To repack such an application with apktool successfully, one needs to:
put shared library extension (so) to
doNotCompress
section ofapktool.yml
in the decompiled app directory:build APK back using
apktool b
zipalign using the
zipalign
tool from latest Android SDK:sign APK by apksigner or uber-apk-signer skipping its own zipalign step: