开发者

Android app crashes since shared library cannot fit in /system

I have a shared library that I build with the Android NDK, which ends up being 80MB (yes, huge!). I absolutely cannot shrink it down in size. The problem is, when the Android application is being installed the shared library cann开发者_开发知识库ot fit in /system on my phone because only 300K is free. So when the application tries to run, it crashes with a SIGBUS error since not all of the library is there. Freeing any more space in /system would be near impossible without possibly breaking a lot of things.

So, I was wondering if there is another way to link to this library by putting it on another partition like /data which has 150MB free. Does anyone have any ideas on this?


You can install .so files also to /data/data/YOURPACKAGE/lib/

You'll have to research how to do it, though, since I don't have experience on it.

Edit: take a look at this post: http://www.aton.com/android-native-libraries-for-java-applications/


So, I was wondering if there is another way to link to this library by putting it on another partition like /data which has 150MB free.

You are welcome to write your own firmware.

Otherwise, you cannot change what happens with this sort of thing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜