mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-22 04:05:31 -04:00
universal7885: sepolicy: Support for A20's poll_delay file
This commit is contained in:
parent
93778fc639
commit
7d795b7fe3
4 changed files with 7 additions and 14 deletions
|
|
@ -6,7 +6,3 @@ type zram_data_file, file_type, data_file_type, core_data_file_type;
|
|||
## SYSFS
|
||||
type sysfs_gpu_tmu, sysfs_type, rw_fs_type, fs_type;
|
||||
type sysfs_flashlight, sysfs_type, rw_fs_type, fs_type;
|
||||
type sysfs_sec_switch, sysfs_type, r_fs_type, fs_type;
|
||||
type sysfs_battery, sysfs_type, r_fs_type, fs_type;
|
||||
type sysfs_battery_writable, sysfs_type, rw_fs_type, fs_type;
|
||||
type sysfs_sec_switch_writable, sysfs_type, rw_fs_type, fs_type;
|
||||
|
|
|
|||
10
universal7885-common/sepolicy/vendor/file.te
vendored
10
universal7885-common/sepolicy/vendor/file.te
vendored
|
|
@ -28,7 +28,7 @@ type epicd_socket, file_type, data_file_type;
|
|||
|
||||
### SYSFS
|
||||
type sysfs_argos, sysfs_type, r_fs_type, fs_type;
|
||||
#type sysfs_battery, sysfs_type, r_fs_type, fs_type;
|
||||
type sysfs_battery, sysfs_type, r_fs_type, fs_type;
|
||||
type sysfs_bbd, sysfs_type, r_fs_type, fs_type;
|
||||
type sysfs_fingerprint, sysfs_type, r_fs_type, fs_type;
|
||||
type sysfs_iio, sysfs_type, r_fs_type, fs_type;
|
||||
|
|
@ -36,14 +36,14 @@ type sysfs_input, sysfs_type, r_fs_type, fs_type;
|
|||
type sysfs_sec_gps, sysfs_type, r_fs_type, fs_type;
|
||||
type sysfs_sec_key, sysfs_type, r_fs_type, fs_type;
|
||||
type sysfs_sec_sensors, sysfs_type, r_fs_type, fs_type;
|
||||
#type sysfs_sec_switch, sysfs_type, r_fs_type, fs_type;
|
||||
type sysfs_sec_switch, sysfs_type, r_fs_type, fs_type;
|
||||
type sysfs_sec_touchscreen, sysfs_type, r_fs_type, fs_type;
|
||||
type sysfs_sim, sysfs_type, r_fs_type, fs_type;
|
||||
type sysfs_sensors, sysfs_type, r_fs_type, fs_type;
|
||||
type sysfs_wifi, sysfs_type, r_fs_type, fs_type;
|
||||
|
||||
type sysfs_backlight_writable, sysfs_type, rw_fs_type, fs_type;
|
||||
#type sysfs_battery_writable, sysfs_type, rw_fs_type, fs_type;
|
||||
type sysfs_battery_writable, sysfs_type, rw_fs_type, fs_type;
|
||||
type sysfs_bt_writable, sysfs_type, rw_fs_type, fs_type;
|
||||
type sysfs_gps_writable, sysfs_type, rw_fs_type, fs_type;
|
||||
type sysfs_lcd_writable, sysfs_type, rw_fs_type, fs_type;
|
||||
|
|
@ -53,7 +53,7 @@ type sysfs_sensorhub_writable, sysfs_type, rw_fs_type, fs_type;
|
|||
type sysfs_sensors_writable, sysfs_type, rw_fs_type, fs_type;
|
||||
type sysfs_sim_writable, sysfs_type, rw_fs_type, fs_type;
|
||||
type sysfs_spi_writeable, sysfs_type, rw_fs_type, fs_type;
|
||||
#type sysfs_sec_switch_writable, sysfs_type, rw_fs_type, fs_type;
|
||||
type sysfs_sec_switch_writable, sysfs_type, rw_fs_type, fs_type;
|
||||
type sysfs_touchscreen_writable, sysfs_type, rw_fs_type, fs_type;
|
||||
type sysfs_wifi_writable, sysfs_type, rw_fs_type, fs_type;
|
||||
|
||||
|
|
@ -120,4 +120,4 @@ type sysfs_mmc_host_writable, sysfs_type, rw_fs_type, fs_type;
|
|||
type sysfs_ss_writable, sysfs_type, rw_fs_type, fs_type;
|
||||
type sysfs_usb_writable, sysfs_type, rw_fs_type, fs_type;
|
||||
type sysfs_gpu_writable, sysfs_type, rw_fs_type, fs_type;
|
||||
type sysfs_info, sysfs_type, r_fs_type, fs_type;
|
||||
type sysfs_info, sysfs_type, r_fs_type, fs_type;
|
||||
|
|
|
|||
|
|
@ -102,7 +102,9 @@ genfscon sysfs /devices/virtual/input/input9/enable
|
|||
genfscon sysfs /devices/virtual/input/input10/enable u:object_r:sysfs_input_writable:s0
|
||||
genfscon sysfs /devices/virtual/input/input2/poll_delay u:object_r:sysfs_input_writable:s0
|
||||
genfscon sysfs /devices/virtual/input/input3/poll_delay u:object_r:sysfs_input_writable:s0
|
||||
genfscon sysfs /devices/virtual/input/input4/poll_delay u:object_r:sysfs_input_writable:s0
|
||||
genfscon sysfs /devices/virtual/input/input8/poll_delay u:object_r:sysfs_input_writable:s0
|
||||
genfscon sysfs /devices/virtual/input/input9/poll_delay u:object_r:sysfs_input_writable:s0
|
||||
genfscon sysfs /devices/platform/gpio_keys/input/input12 u:object_r:sysfs_input:s0
|
||||
genfscon sysfs /devices/platform/flip_cover/input/input13 u:object_r:sysfs_input:s0
|
||||
genfscon sysfs /devices/platform/10000.mif_pdata/sim/ds_detect u:object_r:sysfs_sim_writable:s0
|
||||
|
|
@ -141,10 +143,6 @@ genfscon sysfs /devices/platform/battery/power_supply/wireless/type
|
|||
genfscon sysfs /devices/platform/battery/power_supply/ps/type u:object_r:sysfs_battery_writable:s0
|
||||
genfscon sysfs /devices/platform/battery/power_supply/ps/status u:object_r:sysfs_battery_writable:s0
|
||||
|
||||
# S2MU005 CHARGER (A10)
|
||||
genfscon sysfs /devices/platform/13840000.i2c/i2c-9/9-003d/s2mu004-charger/power_supply/s2mu004-charger u:object_r:sysfs_charger:s0
|
||||
genfscon sysfs /devices/platform/13840000.i2c/i2c-9/9-003d/s2mu004-muic/power_supply/muic-manager u:object_r:sysfs_charger:s0
|
||||
|
||||
# S2MU106 CHARGER (A20e)
|
||||
genfscon sysfs /devices/platform/13840000.i2c/i2c-8/8-003d/s2mu106-powermeter/power_supply/s2mu106_pmeter u:object_r:sysfs_charger:s0
|
||||
genfscon sysfs /devices/platform/13840000.i2c/i2c-8/8-003d/s2mu106-muic/power_supply/muic-manager u:object_r:sysfs_charger:s0
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@ allow hal_sensors_default sysfs_lcd_writable:file r_file_perms;
|
|||
|
||||
# /sys/class/input
|
||||
allow hal_sensors_default sysfs_input:dir r_dir_perms;
|
||||
allow hal_sensors_default sysfs_input:file write;
|
||||
|
||||
# /sys/devices/virtual/input/input4
|
||||
# /sys/devices/virtual/input/input6
|
||||
|
|
|
|||
Loading…
Reference in a new issue