From ca44707aea99626476980529a18d7607c8aefddd Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Thu, 9 Jan 2020 13:22:07 -0800 Subject: [PATCH] Update health 2.1 readme for file_contexts -impl file needs to be marked as same_process_hal_file for charger to work. Test: none Change-Id: I998493949284362fbd1dcb8e2a1d48958feb1324 --- health/2.1/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/health/2.1/README.md b/health/2.1/README.md index 5a19d7b491..bfcf13bc95 100644 --- a/health/2.1/README.md +++ b/health/2.1/README.md @@ -99,6 +99,11 @@ and `update()`, with an additional `energyCounter()` function. For example (replace `` with the device name): ``` +# device///sepolicy/vendor/file_contexts +# Required for charger to open passthrough implementation. Replace with the proper device +# name. File name must be consistent with `stem` of the implementation module. +/vendor/lib(64)?/hw/android\.hardware\.health@2\.0-impl-2\.1-\.so u:object_r:same_process_hal_file:s0 + # device///sepolicy/vendor/hal_health_default.te # Add device specific permissions to hal_health_default domain, especially # if a device-specific libhealthd is used and/or device-specific storage related