1typeattribute hal_power_default mlstrustedsubject;
2
3allow hal_power_default sysfs_devices_system_cpu:file rw_file_perms;
4allow hal_power_default latency_device:chr_file rw_file_perms;
5allow hal_power_default cgroup:file r_file_perms;
6
7# To get/set powerhal state property
8set_prop(hal_power_default, vendor_power_prop)
9
10# Rule for hal_power_default to access graphics composer process
11unix_socket_connect(hal_power_default, pps, hal_graphics_composer_default);
12
13# Set scheduling info for apps (for adpf)
14allow hal_power_default appdomain:process { getsched setsched };
15allow hal_power_default self:capability sys_nice;
16
17# Set scheduling info for system_server (for adpf)
18allow hal_power_default system_server:process setsched;
19