mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_sm6150-common
synced 2026-01-27 16:26:02 +00:00
sm6150-common: sepolicy: Label double_tap sysfs node
Change-Id: Idcff758444a5c89ba20f2ae804a407ee78c445cb
This commit is contained in:
committed by
basamaryan
parent
f36cf7a8a9
commit
176839842d
3
sepolicy/vendor/file.te
vendored
3
sepolicy/vendor/file.te
vendored
@@ -1,2 +1,5 @@
|
||||
# Data files
|
||||
type per_boot_file, file_type, data_file_type, core_data_file_type;
|
||||
|
||||
# Touchpanel
|
||||
type sysfs_touchpanel, fs_type, sysfs_type;
|
||||
|
||||
3
sepolicy/vendor/genfs_contexts
vendored
3
sepolicy/vendor/genfs_contexts
vendored
@@ -54,3 +54,6 @@ genfscon sysfs /devices/platform/soc/a8c000.i2c/i2c-2/2-0066/wakeup
|
||||
genfscon sysfs /devices/platform/soc/a8c000.i2c/i2c-2/2-0066/power_supply/bq2597x-standalone/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/soc:maxim_ds28e16/power_supply/batt_verify/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/soc:fingerprint_fpc/wakeup u:object_r:sysfs_wakeup:s0
|
||||
|
||||
# Touchpanel
|
||||
genfscon sysfs /devices/virtual/touch/touch_dev/ u:object_r:sysfs_touchpanel:s0
|
||||
|
||||
3
sepolicy/vendor/hal_power_default.te
vendored
3
sepolicy/vendor/hal_power_default.te
vendored
@@ -2,3 +2,6 @@ allow hal_power_default touchfeature_device:chr_file rw_file_perms;
|
||||
|
||||
# To do powerhint on nodes defined in powerhint.json
|
||||
allow hal_power_default vendor_latency_device:chr_file rw_file_perms;
|
||||
|
||||
allow hal_power_default sysfs_touchpanel:dir search;
|
||||
allow hal_power_default sysfs_touchpanel:{ file lnk_file } rw_file_perms;
|
||||
|
||||
Reference in New Issue
Block a user