diff options
author | Amit Pundir <amit.pundir@linaro.org> | 2021-03-10 17:53:38 +0530 |
---|---|---|
committer | Amit Pundir <amit.pundir@linaro.org> | 2021-03-17 09:22:16 +0000 |
commit | 4bcec51c1b30cebfc413001d6252ba353309a182 (patch) | |
tree | e0d2c01d9aba2e8c9ba07d3f791b54f3d5f1191c | |
parent | e1344339e3f1f0714a55fd2a66367eda16b9ebc9 (diff) | |
download | dragonboard-4bcec51c1b30cebfc413001d6252ba353309a182.tar.gz |
health: Switch to Cuttlefish' healthd HAL impl
Mostly for the fake battery stats to keep the Android
Runtime happy.
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: Ie08ffb2f22413532f6cc2eec71e02141aed17212
-rw-r--r-- | device-common.mk | 4 | ||||
-rw-r--r-- | manifest.xml | 9 | ||||
-rw-r--r-- | sepolicy/file_contexts | 1 |
3 files changed, 3 insertions, 11 deletions
diff --git a/device-common.mk b/device-common.mk index 918bed0..58353b8 100644 --- a/device-common.mk +++ b/device-common.mk @@ -163,8 +163,8 @@ PRODUCT_PACKAGES += \ # Health PRODUCT_PACKAGES += \ - android.hardware.health@2.0-service \ - android.hardware.health@2.0-impl + android.hardware.health@2.1-impl-cuttlefish \ + android.hardware.health@2.1-service # mkbootimg host tool to build boot.img separately PRODUCT_HOST_PACKAGES := \ diff --git a/manifest.xml b/manifest.xml index 0c7ae03..2034741 100644 --- a/manifest.xml +++ b/manifest.xml @@ -94,15 +94,6 @@ </interface> </hal> <hal format="hidl"> - <name>android.hardware.health</name> - <transport>hwbinder</transport> - <version>2.0</version> - <interface> - <name>IHealth</name> - <instance>default</instance> - </interface> - </hal> - <hal format="hidl"> <name>android.hardware.keymaster</name> <transport>hwbinder</transport> <version>3.0</version> diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index 70ab83c..e36d1b2 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -39,6 +39,7 @@ /vendor/lib(64)?/dri/.* u:object_r:same_process_hal_file:s0 /vendor/lib(64)?/hw/gralloc\.gbm\.so u:object_r:same_process_hal_file:s0 +/vendor/lib(64)?/hw/android\.hardware\.health@2\.0-impl-2\.1-cuttlefish\.so u:object_r:same_process_hal_file:s0 /vendor/lib(64)?/libdrm\.so u:object_r:same_process_hal_file:s0 /vendor/lib(64)?/libdrm_freedreno\.so u:object_r:same_process_hal_file:s0 /vendor/lib(64)?/libgbm_mesa\.so u:object_r:same_process_hal_file:s0 |