1# platform_apps cannot access PowerHAL, so we need to define our own domain.
2# Since we're defining and moving CTPM to its own domain, we need to assign
3# all of the previous permissions that we had as a platform_app
4
5type connectivity_thermal_power_manager, domain, coredomain, system_suspend_internal_server;
6
7app_domain(connectivity_thermal_power_manager)
8
9# register previous permissions we had as a platform_app
10allow connectivity_thermal_power_manager radio_service:service_manager find;
11allow connectivity_thermal_power_manager app_api_service:service_manager find;
12allow connectivity_thermal_power_manager system_api_service:service_manager find;
13
14# access power stats
15hal_client_domain(connectivity_thermal_power_manager, hal_power_stats);
16