universal7580: switch to using new HIDL power HAL
authorDanny Wood <danwood76@gmail.com>
Sun, 16 Feb 2020 09:35:25 +0000 (09:35 +0000)
committerDanny Wood <danwood76@gmail.com>
Tue, 10 Mar 2020 15:25:59 +0000 (15:25 +0000)
Change-Id: Ia70f5f4eb8d44e87b78adb538f06642d548c8bf4

device-common.mk
sepolicy/file_contexts
sepolicy/hal_power_default.te

index 2bdedf8ddb0f858dfba35b127463910592b6068f..f5d8d6651543d1ab1176d2dae21c074ddae11464 100644 (file)
@@ -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 += \
index 90673b77f91c4256710a069313e9e24a24e7fe16..7ceb0ea6e5c3d5ac1f90412ffa3fe2d60a250729 100644 (file)
 
 /(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
index 1770e3b2ad9474fe6cdf429c57102a24452d421c..bbc53b1790ee6df1a56e53ddb56bfa2fb20570b0 100644 (file)
@@ -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;