casualsnek / waydroid_script

Python Script to add OpenGapps, Magisk, libhoudini translation library and libndk translation library to waydroid !
GNU General Public License v3.0
1.5k stars 144 forks source link

Force app to load as ARM? #114

Closed ckcr4lyf closed 11 months ago

ckcr4lyf commented 11 months ago

I am trying to load an app which has compiled C code (called via JNI), but only for ARM.

On startup I am guessing it detects x86 and the main app works, but there is no corresponding library for x86, so that part fails.

Is it possible to force the app to detect and launch in an ARM mode? I tried "just using" libndk / libhoudini, didn't seem to work (as in it still starts in x86 mode).

ayasa520 commented 11 months ago

pm install --abi %ARCH% %APK_PATH%

ckcr4lyf commented 11 months ago

Thanks a lot, it works perfectly!

For anyone else using this as a reference, run the command in the adb shell of the waydroid device:

pm install --abi arm64-v8a [APK_PATH]

I am using libhoudini and it seems to correctly work.