[android-porting] Re: What is the purpose of /system/lib/hw/sensors.default.so ?

2009-02-13 Thread Penguin of Death
I'm running into a similar issue trying to get sensors to work on a htc_dream build (the Dev phone, "trout") of a recently updated Android distribution... It looks like the error is being generated by a path built in 'mydroid/ hardware/libhardware/hardware.c', right here: mydroid/hardware/libh

[android-porting] Re: What is the purpose of /system/lib/hw/sensors.default.so ?

2009-02-13 Thread Sean McNeil
I've found that if your code is written in C++ - like the overlay example - you need to add 'extern "C"' to the beginning of the const definition of the module header. Otherwise the compiler/binutils will end up stripping the symbols. Try using -objdump -T on the .so to make sure you have the