From 851afbcc3313463c72dd494cba7b0221bab80fd1 Mon Sep 17 00:00:00 2001 From: joelh Date: Sat, 1 Dec 2018 13:00:35 -0500 Subject: [PATCH] universal7580: Build health HIDL Change-Id: I4374622cac1c5350ed2a1973978f3e2b97232a7f --- device-common.mk | 5 +++++ sepolicy/hal_health_default.te | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 sepolicy/hal_health_default.te diff --git a/device-common.mk b/device-common.mk index 2bfbae4..6c7754d 100644 --- a/device-common.mk +++ b/device-common.mk @@ -70,6 +70,11 @@ PRODUCT_PACKAGES += \ android.hardware.graphics.mapper@2.0-impl \ libhwc2on1adapter +# Health +PRODUCT_PACKAGES += \ + android.hardware.health@2.0-impl \ + android.hardware.health@2.0-service + # Keymaster PRODUCT_PACKAGES += \ keystore.exynos5 \ diff --git a/sepolicy/hal_health_default.te b/sepolicy/hal_health_default.te new file mode 100644 index 0000000..04894e5 --- /dev/null +++ b/sepolicy/hal_health_default.te @@ -0,0 +1,3 @@ +# hal_health_default +r_dir_file(hal_health_default, sysfs_usb_supply) +allow hal_health_default sysfs_usb_supply:file rw_file_perms; -- 2.20.1