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:
roynatech2544 2021-10-21 23:59:46 +09:00
commit 651386dfff
No known key found for this signature in database
GPG key ID: 9675C32163D88D30
75 changed files with 3094 additions and 723 deletions

View file

@ -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

View 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 };

View 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;