Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
IHalProxyCallbackWrapper.h | D | 22-Nov-2023 | 3.7 KiB | 108 | 66 | |
README | D | 22-Nov-2023 | 1.1 KiB | 20 | 16 | |
Sensor.cpp | D | 22-Nov-2023 | 11.8 KiB | 345 | 280 | |
Sensor.h | D | 22-Nov-2023 | 3.9 KiB | 153 | 106 | |
SensorsSubHal.cpp | D | 22-Nov-2023 | 9.2 KiB | |||
SensorsSubHal.h | D | 22-Nov-2023 | 9.6 KiB | 267 | 178 |
README
1This directory contains a modified version of the default implementation 2provided for sensors HAL 2.0 to support multi-HAL 2.0. It should be used as a 3means to verify the multi-HAL 2.0 implementation can successfully load and 4interact with sub-HALs. 5 6This sub-HAL implementation has two macros that can be used to configure support 7for different sets of sensors. One "SUPPORT_CONTINUOUS_SENSORS", enables 8support for continuous sensors like accel, and gyro whereas the other 9"SUPPORT_ON_CHANGE_SENSORS" enables support for on change sensors like the 10light and proximity sensor. A build target is defined for each of these macros, 11but more targets could be added to support both in one sub-HAL or none at all, 12if necessary. 13 14When built, the library will be written to 15out/target/product/<device>/vendor/lib64/android.hardware.sensors@2.0-fakesubhal.so 16 17Take this .so and place it where the multi-HAL config will cause the HalProxy to 18look and then restart the system server with adb shell stop / adb shell start 19to cause the multi-HAL to restart and attempt to load in the sub-HAL. 20