diff options
author | Amit Pundir <amit.pundir@linaro.org> | 2019-10-08 17:38:17 +0530 |
---|---|---|
committer | Amit Pundir <amit.pundir@linaro.org> | 2020-04-02 16:09:01 +0530 |
commit | a8d55911c37f3eb79d4b196f9c41c13e6d91e60d (patch) | |
tree | f3177b488aabd21c88f6068e5c6b0a97433d51cc | |
parent | f2dfa25377f87e0a035859d9dff2512636d75519 (diff) | |
download | dragonboard410c-a8d55911c37f3eb79d4b196f9c41c13e6d91e60d.tar.gz |
Add default health service
Start default Health service to keep BatteryService happy,
otherwise AOSP runs into bootloop with following exceptions:
Change-Id: I9c5a2847358c5299a0b4d02d0aa743ee51ff1ecb
---------------------------------------------------
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 9d1c832..7f1563a 100644 --- a/device-common.mk +++ b/device-common.mk @@ -123,6 +123,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 + # Copy standard platform config files PRODUCT_COPY_FILES += \ device/linaro/hikey/etc/permissions/android.hardware.screen.xml:system/etc/permissions/android.hardware.screen.xml \ diff --git a/manifest.xml b/manifest.xml index 46506a1..485013c 100644 --- a/manifest.xml +++ b/manifest.xml @@ -143,4 +143,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> |