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

Reply via email to