The logs with log-tags "SensorTestOutput" show that the sensor-HAL does NOT report any sensors to be implemented.
Looking at the contents of the /system/lib/hw directory, we can see multiple copies of sensor-HAL sensors.goldfish.so sensors.omap4.so sensors.omap4430.so sensors.pandaboard.so The sensors.goldfish.so is for the emulator. Similarly, other the .so files are for different builds. The android-runtime will always link to *sensors.<TARGET_BOARD_PLATFORM>.so* The file that gets built can be changed by modifying the Android.mk in libsensors as follows: LOCAL_MODULE := sensors.$(*TARGET_BOARD_PLATFORM*) Also check that the following line is present in Android.mk LOCAL_CFLAGS := -DLOG_TAG=\"Sensors\" (Helpful for debugging as we can then filter logcat output based on log-tag=SENSORS) This should generate the proper .so file (sensor-HAL). Also, before copying the newly build .so file onto the target, clean the directory as follows rm -rf system/lib/hw/sensors.* (This will remove the unrelated/unnecessary .so files) Finally during boot-up check for the logs from the very start of the device (not just test-application). During early-bootup, a couple logs with log-tag "SENSORS" will be emitted. These will contain the name of .so file being loaded. Check for the log to make sure that the proper .so file is loaded. GoodLUCK! - CVS -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
