From: Danny Wood Date: Sun, 16 Feb 2020 09:35:25 +0000 (+0000) Subject: universal7580: switch to using new HIDL power HAL X-Git-Url: https://git.stricted.de/?p=GitHub%2FLineageOS%2Fandroid_device_samsung_universal7580-common.git;a=commitdiff_plain;h=6a2f233e3aa49f767d9b681ddf9c5f452e0481b9 universal7580: switch to using new HIDL power HAL Change-Id: Ia70f5f4eb8d44e87b78adb538f06642d548c8bf4 --- diff --git a/device-common.mk b/device-common.mk index 2bdedf8..f5d8d66 100644 --- a/device-common.mk +++ b/device-common.mk @@ -110,9 +110,7 @@ PRODUCT_PACKAGES += \ # Power PRODUCT_PACKAGES += \ - power.universal7580 \ - android.hardware.power@1.0-service \ - android.hardware.power@1.0-impl + android.hardware.power@1.0-service.exynos # Permissions PRODUCT_COPY_FILES += \ diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index 90673b7..7ceb0ea 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -167,3 +167,4 @@ /(vendor|system/vendor)/bin/hw/android\.hardware\.light@2\.0-service\.samsung u:object_r:hal_light_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.fingerprint@2\.1-service\.samsung u:object_r:hal_fingerprint_default_exec:s0 +/(vendor|system/vendor)/bin/hw/android\.hardware\.power@1\.0-service\.exynos u:object_r:hal_power_default_exec:s0 diff --git a/sepolicy/hal_power_default.te b/sepolicy/hal_power_default.te index 1770e3b..bbc53b1 100644 --- a/sepolicy/hal_power_default.te +++ b/sepolicy/hal_power_default.te @@ -1,3 +1,7 @@ +# Allow reading of sysfs nodes to find input devices +allow hal_power_default sysfs:dir r_dir_perms; +allow hal_power_default sysfs:file r_file_perms; + # Input devices allow hal_power_default sysfs_input:dir r_dir_perms; allow hal_power_default sysfs_input:file rw_file_perms;