summaryrefslogtreecommitdiff
path: root/device-common.mk
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2019-10-08 17:38:17 +0530
committerAmit Pundir <amit.pundir@linaro.org>2019-10-08 19:27:12 +0530
commit6e0d4a3109f5482677e22de51a52dcd0d2597f3b (patch)
tree089ac7c20759301f788feed49116f578c2f5d24e /device-common.mk
parent579f6099b1c4a8966115a364b745bb75f86ded79 (diff)
Add default health service
Start default Health service to keep BatteryService happy, otherwise AOSP runs into bootloop with following exceptions: --------------------------------------------------- E BatteryService: health: cannot register callback. (no supported health HAL service) --<snip>-- E System : ************ Failure starting system services E System : java.lang.RuntimeException: Failed to start service com.android.server.BatteryService: onStart threw an exception --<snip>-- E Zygote : System zygote died with exception E Zygote : java.lang.RuntimeException: Failed to start service com.android.server.BatteryService: onStart threw an exception --<snip>-- E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main E AndroidRuntime: java.lang.RuntimeException: Failed to start service com.android.server.BatteryService: onStart threw an exception --<snip>-- I Zygote : Process 1660 exited due to signal 9 (Killed) E Zygote : Exit zygote because system server (pid 1660) has terminated --------------------------------------------------- Change-Id: I653dd3c177e6f9cc57fe6d69faae776680fd3423 Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Diffstat (limited to 'device-common.mk')
-rw-r--r--device-common.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/device-common.mk b/device-common.mk
index ca32194..de30076 100644
--- a/device-common.mk
+++ b/device-common.mk
@@ -156,6 +156,11 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
android.hardware.gatekeeper@1.0-service.software
+# Health
+PRODUCT_PACKAGES += \
+ android.hardware.health@2.0-service \
+ android.hardware.health@2.0-impl
+
# mkbootimg host tool to build boot.img separately
PRODUCT_HOST_PACKAGES := \
mkbootimg