Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[Q] SensorManager -> SensorHAL stacks

$
0
0
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

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>