Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 596dad31 authored by Yifan Hong's avatar Yifan Hong Committed by android-build-merger
Browse files

Merge "health 2.0: update readme to uninstall healthd" into pi-dev am: cbe491e2

am: 960dda40

Change-Id: I4310c838fd7afdb509a6fc5381daf7f9b8378b9d
parents abe00b7c 960dda40
Loading
Loading
Loading
Loading
+21 −3
Original line number Diff line number Diff line
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
@@ -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/<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>