From 8ef2335fe0efb85484442b91efbb4b3a2a739c06 Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Tue, 3 Apr 2018 13:25:42 -0700 Subject: [PATCH] health 2.0: update readme to uninstall healthd Test: none Bug: 77541952 Change-Id: I44191f2d9f4a6d328c0ec96212c2add3b02874ca --- health/2.0/README | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/health/2.0/README b/health/2.0/README index 49b2b1ebc6..2281f98969 100644 --- a/health/2.0/README +++ b/health/2.0/README @@ -1,11 +1,18 @@ Upgrading from health@1.0 HAL -0. Remove android.hardware.health@1.0* from PRDOUCT_PACKAGES +0. Remove android.hardware.health@1.0* from PRODUCT_PACKAGES in device///device.mk 1. If the device does not have a vendor-specific libhealthd AND does not - implement storage-related APIs, just add the following to PRODUCT_PACKAGES: - android.hardware.health@2.0-service + implement storage-related APIs, just do the following: + + 1.1 (recommended) To remove healthd from the build, + PRODUCT_PACKAGES += android.hardware.health@2.0-service.override + DEVICE_FRAMEWORK_MANIFEST_FILE += \ + system/libhidl/vintfdata/manifest_healthd_exclude.xml + 1.2 To keep healthd in the build, + PRODUCT_PACKAGES += android.hardware.health@2.0-service + Otherwise, continue to Step 2. 2. Create directory @@ -45,8 +52,19 @@ cc_binary { ], header_libs: ["libhealthd_headers"], + + // Uncomment the following to remove healthd from the build. + // overrides: [ + // "healthd", + // ], } + 3.1 (recommended) To remove healthd from the build, keep "overrides" + section, and include the following in device.mk: + DEVICE_FRAMEWORK_MANIFEST_FILE += \ + system/libhidl/vintfdata/manifest_healthd_exclude.xml + 3.2 To keep healthd in the build, remove "overrides" section. + 4. Create device///health/android.hardware.health@2.0-service..rc service vendor.health-hal-2-0 /vendor/bin/hw/android.hardware.health@2.0-service.