android_device_tecno_LG8n/sepolicy/vendor/hal_power_default.te

32 lines
1.2 KiB
Plaintext
Raw Normal View History

# Allow libperfmgr to access Transsion DT2W Nodes
allow hal_power_default proc_gesture_function:dir r_file_perms;
allow hal_power_default proc_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;