mirror of
https://github.com/Anything-at-25-00/android_device_tecno_LG8n.git
synced 2024-11-26 07:26:26 -08:00
LG8n: sepolicy: Address libperfmgr power HAL denials
Change-Id: Ia642e53930b77b79f157e27c135c13b4e2131cff Signed-off-by: Woomymy <woomy@woomy.be> Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
This commit is contained in:
parent
d3486f89d0
commit
1ed39b01a9
25
sepolicy/vendor/hal_power_default.te
vendored
25
sepolicy/vendor/hal_power_default.te
vendored
|
@ -3,3 +3,28 @@ allow hal_power_default proc_main_gesture_function:file rw_file_perms;
|
|||
|
||||
# Allow libperfmgr to control cgroups
|
||||
allow hal_power_default cgroup:file rw_file_perms;
|
||||
|
||||
# Allow libperfmgr to write GPU nodes
|
||||
allow hal_power_default sysfs_gpu:dir r_dir_perms;
|
||||
allow hal_power_default sysfs_gpu:file rw_file_perms;
|
||||
|
||||
# Allow libperfmgr to control cpu frequencies
|
||||
allow hal_power_default sysfs_devices_system_cpu:file rw_file_perms;
|
||||
|
||||
# Allow libperfmgr to control FPSGO boost
|
||||
r_dir_file(hal_power_default, sysfs_fpsgo)
|
||||
allow hal_power_default sysfs_fpsgo:file w_file_perms;
|
||||
|
||||
r_dir_file(hal_power_default, sysfs_mtk_fpsgo)
|
||||
allow hal_power_default sysfs_mtk_fpsgo:file w_file_perms;
|
||||
|
||||
# Allow libperfmgr to control GPU boost
|
||||
r_dir_file(hal_power_default, sysfs_ged)
|
||||
allow hal_power_default sysfs_ged:file w_file_perms;
|
||||
|
||||
# Allow libperfmgr to control task turbo
|
||||
r_dir_file(hal_power_default, sysfs_task_turbo)
|
||||
allow hal_power_default sysfs_task_turbo:file w_file_perms;
|
||||
|
||||
# Allow libperfmgr to control CPU DMA Latency
|
||||
allow hal_power_default cpu_dma_latency_device:chr_file w_file_perms;
|
||||
|
|
Loading…
Reference in a new issue