sdm660-common: sepolicy: Grant power hal permission for dt2w
This commit is contained in:
parent
e75675e4c2
commit
5bf9fe7f2c
2 changed files with 6 additions and 0 deletions
5
sepolicy/vendor/file_contexts
vendored
5
sepolicy/vendor/file_contexts
vendored
|
@ -44,6 +44,11 @@
|
||||||
# Shell Script
|
# Shell Script
|
||||||
/(vendor|system/vendor)/bin/init\.goodix\.sh u:object_r:init_fingerprint_exec:s0
|
/(vendor|system/vendor)/bin/init\.goodix\.sh u:object_r:init_fingerprint_exec:s0
|
||||||
|
|
||||||
|
# Tap to Wake
|
||||||
|
/sys/devices/soc/c177000.i2c/i2c-3/3-005d/enable_dt2w u:object_r:sysfs_tap_to_wake:s0
|
||||||
|
/sys/devices/soc/c177000.i2c/i2c-3/3-0038/enable_dt2w u:object_r:sysfs_tap_to_wake:s0
|
||||||
|
/proc/touchscreen/enable_dt2w u:object_r:sysfs_tap_to_wake:s0
|
||||||
|
|
||||||
# Thermal
|
# Thermal
|
||||||
/data/vendor/thermal(/.*)? u:object_r:thermal_data_file:s0
|
/data/vendor/thermal(/.*)? u:object_r:thermal_data_file:s0
|
||||||
|
|
||||||
|
|
1
sepolicy/vendor/hal_power_default.te
vendored
1
sepolicy/vendor/hal_power_default.te
vendored
|
@ -1,2 +1,3 @@
|
||||||
allow hal_power_default proc_dt2w:file rw_file_perms;
|
allow hal_power_default proc_dt2w:file rw_file_perms;
|
||||||
|
allow hal_power_default sysfs_tap_to_wake:file rw_file_perms;
|
||||||
r_dir_file(hal_power_default, debugfs_wlan)
|
r_dir_file(hal_power_default, debugfs_wlan)
|
||||||
|
|
Loading…
Reference in a new issue