IIRC, the hardware abstraction library will try to load a library named /system/lib/hw/libgps.<hardware>.so first before any system wide libgps.so Where <hardware> corresponds to the hardware name, and is "goldfish" when running under emulation.
See development/tools/emulator/system/gps/Android.mk for the details on how to force your module to go to /system/lib/hw/, instead of the default /system/lib. You probably want to replace the emulator version with your own sources during testing. On Mon, May 9, 2011 at 10:07 AM, Itai <steiner.i...@gmail.com> wrote: > Hello, > > 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? > > -- > unsubscribe: android-porting+unsubscr...@googlegroups.com > website: http://groups.google.com/group/android-porting > -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting