sdm660-common: sepolicy: Grant power hal permission for dt2w

This commit is contained in:
Max Weffers 2019-08-13 19:41:30 +02:00
parent e75675e4c2
commit 5bf9fe7f2c
No known key found for this signature in database
GPG key ID: 795F73D22FB93FAE
2 changed files with 6 additions and 0 deletions

View file

@ -44,6 +44,11 @@
# Shell Script
/(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
/data/vendor/thermal(/.*)? u:object_r:thermal_data_file:s0

View file

@ -1,2 +1,3 @@
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)