common: Label /sys/devices/virtual/sec/switch/afc_disable
authorAndreas Schneider <asn@cryptomilk.org>
Thu, 21 Jan 2021 07:58:46 +0000 (08:58 +0100)
committerBruno Martins <bgcngm@gmail.com>
Fri, 22 Jan 2021 12:57:22 +0000 (13:57 +0100)
This is the fastcharge switch.

Change-Id: Icc8a9c1ce0154f316e35e20a18be6c5a468d942e

common/vendor/file.te
common/vendor/genfs_contexts

index 1dbf080b4115961cb7e08852437eb5d3f2f20584..8d54e0bb58627070e09db41fa5b392d08b53f2ad 100644 (file)
@@ -35,6 +35,7 @@ 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_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;
@@ -51,6 +52,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_touchscreen_writable, sysfs_type, rw_fs_type, fs_type;
 type sysfs_wifi_writable, sysfs_type, rw_fs_type, fs_type;
 
index 68f3cecd63b5f1572ec64bbd299c5f582e2f7136..1354dac3e1d6bfe2c7cedaa638089fbd889471a9 100644 (file)
@@ -40,6 +40,8 @@ genfscon sysfs /devices/virtual/sensors                                   u:obje
 genfscon sysfs /devices/virtual/sensors/hidden_hole/hh_check_coef         u:object_r:sysfs_sensors_writable:s0
 genfscon sysfs /devices/virtual/sensors/ssp_sensor/enable                 u:object_r:sysfs_sensors_writable:s0
 genfscon sysfs /devices/virtual/sensors/ssp_sensor/ssp_flush              u:object_r:sysfs_sensors_writable:s0
+genfscon sysfs /devices/virtual/sec/switch                                u:object_r:sysfs_sec_switch:s0
+genfscon sysfs /devices/virtual/sec/switch/afc_disable                    u:object_r:sysfs_sec_switch_writable:s0
 genfscon sysfs /devices/virtual/thermal                                   u:object_r:sysfs_thermal:s0
 genfscon sysfs /devices/virtual/timed_output/vibrator/cp_trigger_index    u:object_r:sysfs_vibrator:s0
 genfscon sysfs /devices/virtual/timed_output/vibrator/intensity           u:object_r:sysfs_vibrator:s0