Remove dependency on libandroid
The main purpose of this change is to avoid having to pull in libandroid for the sake of using the sensor manager from the audioserver process (native). The way this is achieved is by using lower-level APIs, namely those offered by libsensor. As a result, we were able to use sensor handles in SensorPoseProvider, rather than ASensor* objects, which is simpler and removes the need to enumerate all the sensor for the sake of finding the one with the correct handle. Test: Manually enable head tracking and observe the logs to verify that the expected pose updates are received. Bug: 198795859 Change-Id: Ic69c322d6ea9297309a4856b3047c841831e04d7
Loading
Please register or sign in to comment