summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: eac7714)
raw | patch | inline | side by side (parent: eac7714)
author | Yifan Hong <elsk@google.com> | |
Tue, 3 Apr 2018 20:25:42 +0000 (13:25 -0700) | ||
committer | Yifan Hong <elsk@google.com> | |
Wed, 4 Apr 2018 21:25:00 +0000 (14:25 -0700) |
health/2.0/README | patch | blob | history |
diff --git a/health/2.0/README b/health/2.0/README
index 49b2b1ebc6dd2304b48228e671809942479ccd05..2281f989699e2ed0225ab2ca1bc4c27c91d4c541 100644 (file)
--- a/health/2.0/README
+++ b/health/2.0/README
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/<manufacturer>/<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
],
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/<manufacturer>/<device>/health/android.hardware.health@2.0-service.<device>.rc
service vendor.health-hal-2-0 /vendor/bin/hw/android.hardware.health@2.0-service.<device>