diff options
author | Amit Pundir <amit.pundir@linaro.org> | 2019-10-08 17:38:17 +0530 |
---|---|---|
committer | Amit Pundir <amit.pundir@linaro.org> | 2019-10-09 18:22:17 +0530 |
commit | 1d095265cbba16a083a3cf7ac3ad1756fc6ccfd2 (patch) | |
tree | 6cfbeea4ca0eaf42aa04f60eba777535746a1471 | |
parent | c50f1c1fa2f86fe8981ea283807303c994e91ff4 (diff) | |
download | hikey-1d095265cbba16a083a3cf7ac3ad1756fc6ccfd2.tar.gz |
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>
-rw-r--r-- | device-common.mk | 5 | ||||
-rw-r--r-- | manifest.xml | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/device-common.mk b/device-common.mk index 3bd59122..77430e15 100644 --- a/device-common.mk +++ b/device-common.mk @@ -278,3 +278,8 @@ PRODUCT_PACKAGES += \ libunwindstack.vndk-sp\ liblzma.vndk-sp\ libion.vndk-sp\ + +# Health +PRODUCT_PACKAGES += \ + android.hardware.health@2.0-service \ + android.hardware.health@2.0-impl diff --git a/manifest.xml b/manifest.xml index 12d345a8..3d859684 100644 --- a/manifest.xml +++ b/manifest.xml @@ -174,4 +174,13 @@ <instance>default</instance> </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> </manifest> |