2021-04-19 18:23:51 -04:00
|
|
|
type proc_sched_energy_aware, proc_type, fs_type;
|
|
|
|
type vendor_power_prop, property_type;
|
|
|
|
|
2020-04-22 10:00:48 -04:00
|
|
|
allow hal_power_default input_device:dir r_dir_perms;
|
|
|
|
allow hal_power_default input_device:chr_file rw_file_perms;
|
2021-04-19 18:23:51 -04:00
|
|
|
|
|
|
|
# To do powerhint on nodes defined in powerhint.json
|
|
|
|
allow hal_power_default cgroup:dir search;
|
|
|
|
allow hal_power_default cgroup:file rw_file_perms;
|
|
|
|
allow hal_power_default proc_sched_energy_aware:file rw_file_perms;
|
|
|
|
allow hal_power_default sysfs_devices_system_cpu:file rw_file_perms;
|
|
|
|
allow hal_power_default vendor_latency_device:chr_file rw_file_perms;
|
|
|
|
allow hal_power_default vendor_sysfs_devfreq:dir search;
|
|
|
|
allow hal_power_default vendor_sysfs_devfreq:file rw_file_perms;
|
|
|
|
allow hal_power_default vendor_sysfs_kgsl:file rw_file_perms;
|
|
|
|
|
|
|
|
# To get/set powerhal state property
|
|
|
|
set_prop(hal_power_default, vendor_power_prop)
|