summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2021-03-10 17:53:38 +0530
committerAmit Pundir <amit.pundir@linaro.org>2021-03-17 09:22:16 +0000
commit4bcec51c1b30cebfc413001d6252ba353309a182 (patch)
treee0d2c01d9aba2e8c9ba07d3f791b54f3d5f1191c
parente1344339e3f1f0714a55fd2a66367eda16b9ebc9 (diff)
downloaddragonboard-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.mk4
-rw-r--r--manifest.xml9
-rw-r--r--sepolicy/file_contexts1
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