Unable to load .so library files when making a system application

孤街醉人 提交于 2019-12-06 03:09:11

问题


I have created an application which will be a System Application. When I install the application normally(not as system application) ".so" files are getting loaded. But when I'm making it a system application by putting the apk into /system/app/ , I'm getting the following error

01-09 00:20:26.889: E/AndroidRuntime(2101): java.lang.UnsatisfiedLinkError: Couldn't load iconv from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/system/app/My.apk"],nativeLibraryDirectories= [/vendor/lib, /system/lib]]]: findLibrary returned null

Research that I have done on this -

It seems that ".o" and ".so" files are located in /system/lib/ and /vendor/lib/ .

Even after adding the files to the respective directories, still failing to load the libraries.

Any Help would be appreciated.


回答1:


In my case the issue was related to permissions. After putting the ".SO" files into respective directories, I modified the default allocated permissions 600 to 755. It worked well.



来源:https://stackoverflow.com/questions/20906445/unable-to-load-so-library-files-when-making-a-system-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!