• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Normal platform_apps cannot access PowerHAL, so we need to define our own domain. Unfortunately
2# this means that TurboAdapter doesn't get the platform_app permissions any more, so we need to
3# list everything that it needs here.
4
5typeattribute turbo_adapter coredomain, system_suspend_internal_server;
6
7app_domain(turbo_adapter)
8
9# To use ServiceManager
10allow turbo_adapter app_api_service:service_manager find;
11
12# To find and call hal_power_default so turbo can obtain the service extension (IPowerExt)
13hal_client_domain(turbo_adapter, hal_power)
14
15# PAS: for PowerStatsHalDataProvider
16hal_client_domain(turbo_adapter, hal_power_stats)
17
18# PAS: for GoogleCpuTimeProvider
19r_dir_file(turbo_adapter, proc_uid_cputime_showstat);
20
21# PAS: for SuspendControlServiceDataProvider
22binder_call(turbo_adapter, system_suspend_internal_server)
23get_prop(turbo_adapter, suspend_prop)
24
25# Allow setting `debug.` properties to propagate experimental feature configuration.
26# TODO(b/209406271): Before launching to public, migrate to a more reliable configuration.
27set_prop(turbo_adapter, debug_prop)
28