Allow traced_probes to talk to suspend control service.
This lets it read details of kernel wakelocks.
Bug: 389077525
Test: Manually tested against WIP trace probe.
Change-Id: Ic3cc8b06a354d73622b0eac8ca702db2913a680a
diff --git a/private/system_suspend_internal_server.te b/private/system_suspend_internal_server.te
index 67bff77..8ff9da9 100644
--- a/private/system_suspend_internal_server.te
+++ b/private/system_suspend_internal_server.te
@@ -7,5 +7,6 @@
-dumpstate # bug reports
-system_suspend_internal_server # implements system_suspend_control_internal_service
-system_server # configures system_suspend via ISuspendControlServiceInternal
+ -traced_probes # tracing
-traceur_app # tracing
} system_suspend_control_internal_service:service_manager find;
diff --git a/private/traced_probes.te b/private/traced_probes.te
index 78dc7eb..6a42eb2 100644
--- a/private/traced_probes.te
+++ b/private/traced_probes.te
@@ -114,6 +114,10 @@
binder_call(traced_probes, statsd)
allow traced_probes stats_service:service_manager find;
+# Allow traced_probes to talk to suspend control service to read details of kernel wakelocks.
+allow traced_probes system_suspend_control_internal_service:service_manager find;
+allow traced_probes system_suspend:binder call;
+
# Allow reading the system property representing number of desktop windows to
# set the initial value for the counter in traces.
get_prop(traced_probes, debug_tracing_desktop_mode_visible_tasks_prop)