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

Limit jniLibs to only armeabi-v7a #85

Closed
juan9506 opened this issue Nov 14, 2018 · 3 comments
Closed

Limit jniLibs to only armeabi-v7a #85

juan9506 opened this issue Nov 14, 2018 · 3 comments

Comments

@juan9506
Copy link

Hi, I have one app that have compatibility with all devices, but only when there's no native libraries but armeabi-v7a, after adding iroot plugin (that is a wrapper of this one), it creates several other architectures libtool-checker.so files (mips, mips64, x86_64 ...) and this is making my app crash.
Do you know how to limit the plugin so the only generated native library is for armeabi-v7a?
I've been looking through all the code and didn't found where it defines these architectures.
I have already ask the same question here: WuglyakBolgoink/cordova-plugin-iroot#13 (comment)
Thanks.

@ligi
Copy link

ligi commented Nov 17, 2018

maybe you want to use the workaround I use here:

https://github.com/walleth/walleth/blob/47b76953527975e140f6dfc6ae49f4977dfeabf0/app/build.gradle#L200

this removes all native checks - context #80

@juan9506
Copy link
Author

juan9506 commented Nov 22, 2018

I solved this by using the following plugin: https://github.com/Jween/android-soexcluder
what it does is removing and including only the desired .so files, so in my case, I only included the armeabi-v7a .so file and removed all the others.

@jhscheer
Copy link

There's an abiFilter in rootbeerlib/src/main/jni/Application.mk
to tell Gradle to only build outputs for the desired ABIs.
So next time just drop the ABIs you don't need, e.g.:
APP_ABI := armeabi-v7a arm64-v8a x86 x86_64
APP_ABI := armeabi-v7a

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

3 participants