Hi guys,
I've compiled the android sdk from AOSP and now I'm trying to modify the source code to add a function to SensorManager class to call a custom function implemented on SensorHAL.
I've added simply my function on framework/base/core/java/android/hardware/SensorManager.java file and now it come out on the sdk output built.
To understand how the binding from SensorManager.java -> SensorService -> SensorManager.cpp -> SensorHAL is done I'm studing an already implemented function as registerListener that should call a lower layer function called "activate" declarated on libhardware/include/hardware/sensors.h interface file.
Can anyone help me to understand the binding mechanism or send to me a link or resources where I can study this?
Thanks,
Denis
I've compiled the android sdk from AOSP and now I'm trying to modify the source code to add a function to SensorManager class to call a custom function implemented on SensorHAL.
I've added simply my function on framework/base/core/java/android/hardware/SensorManager.java file and now it come out on the sdk output built.
To understand how the binding from SensorManager.java -> SensorService -> SensorManager.cpp -> SensorHAL is done I'm studing an already implemented function as registerListener that should call a lower layer function called "activate" declarated on libhardware/include/hardware/sensors.h interface file.
Can anyone help me to understand the binding mechanism or send to me a link or resources where I can study this?
Thanks,
Denis