pushing .so files to system lib (read only filesystem) VirtualBox/Eclipse/adb

798 views
Skip to first unread message

Gal

unread,
Nov 26, 2011, 6:02:42 PM11/26/11
to Android-x86
wehn I was using the regular sdk emulator I placed the .so (libraries)
needed in the Libs folder inside the eclipse project and it worked
fine,
now, since I use the x86 eeepc iso, the app cannot find the libraries.
I tried the following things:
1) when installing the system I asked NOT (selected 'No') when the
wizard asked me if to
set the system folder as read-only, but it ignored my request and
still made the whole sda1 read-only.
2) tried pushing the .so files to /system/lib but got a 'read-only
file system' response, of course.
3) tried running:
adb shell
once in shell:
mount -o remount,rw /dev/sda1 /
exit
then push again with the same results.

so, my questions are:
1) is there a different way to place the 3rd party libraries in the
project tree so that the java code will see them?
2) something to do in eclipse to make it work?
3) is there a way to make use the installer and force it to make the /
system folder read-write?

BTW: the image I'm using is android-x86-3.2-RC2-eeepc.iso... managed
to get the internet/network working so adb and adt plugin work ok.

Thanks

Gal

unread,
Nov 26, 2011, 6:45:42 PM11/26/11
to Android-x86
also tried putting the native libraries in the libs/aremabi folder and
they appear in the pak file under lib folder + in the manifest file.

still doesn't work.

ShadowEO

unread,
Nov 26, 2011, 9:31:52 PM11/26/11
to Android-x86
Reinstall it but format the partition Ext2, you'll get an option to
mount /system read-write. Although my curiosity dictates that I must
ask what do you hope to accomplish? Android-86 doesn't have ARM to x86
Binary Translation nor any compatibility with ARM native code. You'd
have to use the x86 NDK that's available on the website (At least
until 4.0 is released I guess since it's supposed to support x86 as a
target.. If your looking to debug native ARM code in a VM, go with the
Android SDK, it uses QEmu from what I've gathered.

Gal

unread,
Nov 27, 2011, 4:28:44 AM11/27/11
to Android-x86
yes, I go this point after I closed the computer, and most likely
there is no 3rd party translator, right?
I don't have the code for these libraries, just the compiled libraries
and the jar withe the JNI wrappers.
so I guess I'll have to do with the SDK's emulator.

thanks for the help

Reply all
Reply to author
Forward
0 new messages