sanders: Convert lights HAL to native binderized HAL
[Adapted from libra for griffin] Signed-off-by: Erfan Abdi <erfangplus@gmail.com> Signed-off-by: therootlord <igor_cestari@hotmail.com>
This commit is contained in:
4
sepolicy/vendor/file_contexts
vendored
4
sepolicy/vendor/file_contexts
vendored
@@ -128,3 +128,7 @@
|
||||
# Fingerprint custom hal
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.fingerprint@2\.1-service_32 u:object_r:hal_fingerprint_default_exec:s0
|
||||
|
||||
# Light HAL
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.light@2\.0-service.sanders u:object_r:hal_light_default_exec:s0
|
||||
/sys/devices/soc/1a00000.qcom,mdss_mdp/1a00000.qcom,mdss_mdp:qcom,mdss_fb_primary/leds/lcd-backlight/brightness u:object_r:sysfs_leds:s0
|
||||
/sys/devices/soc/leds-atc-20/leds/charging/brightness u:object_r:sysfs_leds:s0
|
||||
|
||||
2
sepolicy/vendor/hal_light_default.te
vendored
2
sepolicy/vendor/hal_light_default.te
vendored
@@ -1 +1 @@
|
||||
allow hal_light_default sysfs:file { open read write };
|
||||
allow hal_light_default sysfs_leds:file rw_file_perms;
|
||||
|
||||
Reference in New Issue
Block a user