Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android applicatin can't find jni library when installed as system application

recently I meet such problem, when I use jni with android application , when the apk is built , the test.so is put in lib/armeabi/ in the apk package , when I install this apk as user application , it can run and find the library when use System.LoadLibrary() to find it . while when I install it in system/app , it can't find the library . anyone meet such kind of problem before and could you tell me how to solve this , thanks very much for any suggestions .

like image 481
Bruce Wuu Avatar asked Feb 23 '12 04:02

Bruce Wuu


1 Answers

This answer on the Android NDK group seems to have your answer:

http://groups.google.com/group/android-ndk/browse_thread/thread/bfceac612dceae8c/7f2b8b48a87c2a52?show_docid=7f2b8b48a87c2a52

In a nutshell it looks like you cannot do it because /system is mounted read-only which means that you the APK+library are installed in the factory.

like image 69
Cody Caughlan Avatar answered Sep 17 '22 04:09

Cody Caughlan