Is it possible to unpack an application and re-pack it with changes and make it work on Android 11?
I unpacked and recompiled an app without making any changes. I later signed it following this guide, but when i try to install it with adb, I obtain this error:
Failure [INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2 –
I read that on Android 11 you have to sign the apk with schema v2. I did it but the app gives me an error when I try to install it.
zipalign
on the APK before signing.INSTALL_FAILED_INVALID_APK Failed to extract native libraries,
has nothing to do with APK signature v2. Please concentrate on one question. At the moment your question seems to be more like "how to repack an APK correctly". If you really want to ask that please edit your question and write it that way.