summaryrefslogtreecommitdiff
path: root/connectivity_thermal_power_manager/connectivity_thermal_power_manager.te
blob: 54b2e8c956e9f9b70b369bf2b3fef745fba591ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# platform_apps cannot access PowerHAL, so we need to define our own domain.
# Since we're defining and moving CTPM to its own domain, we need to assign
# all of the previous permissions that we had as a platform_app

type connectivity_thermal_power_manager, domain, coredomain, system_suspend_internal_server;

app_domain(connectivity_thermal_power_manager)

# register previous permissions we had as a platform_app
allow connectivity_thermal_power_manager radio_service:service_manager find;
allow connectivity_thermal_power_manager app_api_service:service_manager find;
allow connectivity_thermal_power_manager system_api_service:service_manager find;

# access power stats
hal_client_domain(connectivity_thermal_power_manager, hal_power_stats);