Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Automatically set android:extractNativeLibs to true to improve success rate of rebuilds #62

Open
threethan opened this issue Nov 20, 2023 · 1 comment

Comments

@threethan
Copy link
Contributor

Many applications won't install after being rebuilt with AEE. I tried installing one such apk over adb, and received the following error:
[INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2]

This is resolved by setting android:extractNativeLibs to true in the application tag of AndroidManifest.xml.

Doing so may slightly increase the size of an app once installed, but has no other downsides.

One example of this, which I used to test, is Discord. Fails to install with no changes, but just this change fixes that.

@threethan
Copy link
Contributor Author

threethan commented Nov 20, 2023

See this issue on ApkTool for more: iBotPeaches/Apktool#1626

They fixed it by simply removing the value. I believe the default for this setting is true, so removing the value would have the same effect as changing it to true. Either would work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant