Adds the health HAL
Taken from device/google/gce_x86 (Change-Id: I19316605e88f4d853d86dc6fd56b0981b4af3e9e)
Bug: 72502904
Test: local
Change-Id: I8f772534f3eef0121b01f814956495a9c0ae9371
diff --git a/shared/device.mk b/shared/device.mk
index c88cf6a..115cd2b 100644
--- a/shared/device.mk
+++ b/shared/device.mk
@@ -218,11 +218,9 @@
android.hardware.gnss@1.0-impl \
android.hardware.gnss@1.0-service
-#
# Health
-#
PRODUCT_PACKAGES += \
- android.hardware.health@2.0-service
+ android.hardware.health@2.0-service.cuttlefish
#
# Sensors
diff --git a/shared/sepolicy/file_contexts b/shared/sepolicy/file_contexts
index ecc4072..06ca2b8 100644
--- a/shared/sepolicy/file_contexts
+++ b/shared/sepolicy/file_contexts
@@ -35,3 +35,4 @@
/vendor/bin/wifirouter u:object_r:wifirouter_exec:s0
/vendor/bin/hw/android\.hardware\.bluetooth@1\.0-service\.sim u:object_r:hal_bluetooth_sim_exec:s0
/vendor/bin/hw/android\.hardware\.dumpstate@1\.0-service\.cuttlefish u:object_r:hal_dumpstate_impl_exec:s0
+/vendor/bin/hw/android\.hardware\.health@2\.0-service.cuttlefish u:object_r:hal_health_default_exec:s0