Hi all. I am digging into the structure of sensor, especially compass sensor. when I was following the flow from compass.java to kernel driver of compass, I was stuck at the communication between sensors HAL and akmd. Following is the flow of compass sensor from application. onSensorChanged Listener in compass.java -> thread sensors_data_poll run in SensorManager.java -> sensors_data_poll() in android_hardware_SensorManager.cpp JNI -> sensors_data_poll() in sensors_ak8973.c Then I was stuck at the loop of sensors_data_poll(). It seems that the socket is the key to communicate between the poll loop and the akmd2 daemon. but I can't find the code how to make the socket, open, write( from the akmd2 daemon to the sensors_data_poll()), read. any helps would be appreciated. thanks in advance.
-- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
