android_device_tecno_LG8n/sepolicy/vendor/hal_power_default.te
Shirayuki39 2d965b6d0a LG8n: sepolicy: Fix dt2w nodes
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-13 14:07:26 +08:00

32 lines
1.2 KiB
Plaintext

# Allow libperfmgr to access Transsion DT2W Nodes
allow hal_power_default proc_gesture_function:file rw_file_perms;
allow hal_power_default proc_gesture_state: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;