From a0630b1abff59da4bcd1091f3f3aa67b54cdeeb1 Mon Sep 17 00:00:00 2001 From: ripee Date: Fri, 6 Mar 2020 21:18:54 +0100 Subject: [PATCH] msm8976-common: Convert lights HAL into a binderized HAL --- msm8976.mk | 4 +--- sepolicy/file_contexts | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/msm8976.mk b/msm8976.mk index 41bcb42..15dde3b 100644 --- a/msm8976.mk +++ b/msm8976.mk @@ -197,9 +197,7 @@ PRODUCT_PACKAGES += \ # Lights PRODUCT_PACKAGES += \ - android.hardware.light@2.0-impl \ - android.hardware.light@2.0-service \ - lights.MSM8952 + android.hardware.light@2.0-service.samsung # LiveDisplay PRODUCT_PACKAGES += \ diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index 2ee9241..fb7f907 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -25,6 +25,7 @@ # Lights /sys/devices/virtual/sec/sec_touchkey/brightness u:object_r:sysfs_leds:s0 +/(vendor|system/vendor)/bin/hw/android\.hardware\.light@2\.0-service\.samsung u:object_r:hal_light_default_exec:s0 # LiveDisplay /(vendor|system/vendor)/bin/hw/vendor\.lineage\.livedisplay@2\.0-service\.samsung-qcom u:object_r:hal_lineage_livedisplay_sysfs_exec:s0