I looked in the system/lib of the emulator (using adb shell) and my libgps.so was not there. However, in the out/target/product/generic/system/lib of my android folder, it does exist.
I thought that by using the -sysdir flag, the emulator will use this directory. How can I direct it/the avd to use it? i also tried to push it manually and receive an "out of memory" error message ( abd push android/out/target/product/generic/libgps.so system/lib ) On May 9, 5:08 pm, Chris Stratton <[email protected]> wrote: > On Monday, May 9, 2011 4:07:16 AM UTC-4, Itai wrote: > > I wrote and built my own libgps.so in my directory on hardware/ > > <vendor>/gps > > Afterwards, I re-built the entire android project. The make completed > > successfully and libgps was placed in system/lib > > > However, when I load the emulator, with : > > > out/host/linux-x86/bin/emulator -sysdir out/target/product/generic/ - > > kernel prebuilt/android-arm/kernel/kernel-qemu -avd And2.2 > > > and run my test application (via Eclipse), I see that it still uses > > the emulated library and not mine. > > > How can I direct the emulator to use my implementation? > > Use the adb shell or file explorer and see if your modified library is > present in the running emulator. Probably it isn't, in which case you need > to recreate or modify the avd to point to your newly generated system image, > or manually install your library in the existing system image (for temporary > purposes, adb stop, adb remount, adb push the library, and adb start). > > Or maybe your library is on the emulated device in addition to the original > one rather than replacing it. It may be harder to get yours to be used in > that case as libgps.so seems to be one of the libraries pre-loaded by zygote > and so inherited by all android apps. -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
