On a Android device with 64bit ARM, would have two variants of many libraries, 32bit and 64 bit, and their performance could be different. I want to know if there is a way to force the application to use either 32bit or 64bit libraries.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
https://source.android.com/source/64-bit-builds.html
Try this in you
Android.mk
If your apk is written in pure java (without jni), on 64-bit-primiary/32-bit-secondary Android OS, your app will always run in 64 bit mode by default, but if you want your app to run in 32 bit mode, you can create a dummy
*.so
file and put it under<your apk name>/libs/armeabi/
to force AndroidRuntime to create a 32 bit VM for your appIf some function of your apk is written in jni (there's any
*.so
file in<your apk name>/libs/
folder), you can use following command to make it run in 64 or 32 bit VM:adb shell install --abi armeabi-v7a <path to your apk>
adb shell install --abi arm64-v8a <path to your apk>
ABI can be specified when the apk is installed.
adb install --abi <path to apk>
In case ARM device,
To run in 32 bit mode install using,
adb install --abi armeabi-v7a <path to apk>
To run in 64 bit mode install using,
adb install --abi arm64-v8a <path to apk>