typeattribute hal_power_default mlstrustedsubject; allow hal_power_default sysfs_devices_system_cpu:file rw_file_perms; allow hal_power_default latency_device:chr_file rw_file_perms; allow hal_power_default cgroup:file r_file_perms; # To get/set powerhal state property set_prop(hal_power_default, vendor_power_prop) # Rule for hal_power_default to access graphics composer process unix_socket_connect(hal_power_default, pps, hal_graphics_composer_default); # Set scheduling info for apps (for adpf) allow hal_power_default appdomain:process { getsched setsched }; allow hal_power_default self:capability sys_nice; # Set scheduling info for system_server (for adpf) allow hal_power_default system_server:process setsched;