mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-22 20:15:32 -04:00
universal7885: add Samsungparts
* It is based on XiaomiParts usually found on Xiaomi device trees Change-Id: If34ba79bba05ede0ce98bbedf14a1c318bee8fc4 Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
parent
71ff7a7017
commit
651386dfff
75 changed files with 3094 additions and 723 deletions
|
|
@ -0,0 +1,4 @@
|
|||
genfscon sysfs /devices/platform/11500000.mali/tmu u:object_r:sysfs_gpu_tmu:s0
|
||||
genfscon sysfs /devices/virtual/camera/flash/torch_brightness_lvl u:object_r:sysfs_flashlight:s0
|
||||
genfscon sysfs /devices/virtual/camera/flash/torch_brightness_lvl_enable u:object_r:sysfs_flashlight:s0
|
||||
|
||||
4
universal7885-common/sepolicy/samsungparts/init.te
Normal file
4
universal7885-common/sepolicy/samsungparts/init.te
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
allow init sysfs_gpu_tmu:file { setattr };
|
||||
allow init sysfs_flashlight:file { setattr };
|
||||
allow init sysfs_sec_switch_writable { setattr };
|
||||
allow init sysfs_battery_writeable { setattr };
|
||||
6
universal7885-common/sepolicy/samsungparts/system_app.te
Normal file
6
universal7885-common/sepolicy/samsungparts/system_app.te
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
allow system_app sysfs_gpu_tmu:file { read open write getattr };
|
||||
allow system_app sysfs_flashlight:file { read open write getattr };
|
||||
allow system_app selinuxfs:file rw_file_perms;
|
||||
allow system_app sysfs_sec_switch:dir { search };
|
||||
allow system_app sysfs_sec_switch_writable rw_file_perms;
|
||||
allow system_app sysfs_battery_writeable rw_file_perms;
|
||||
Loading…
Reference in a new issue