summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Lalit Maganti <lalitm@google.com> 2024-04-15 11:16:31 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-04-15 11:16:31 +0000
commit0affadc4ca82a569a91c686b1ad38ea8c24a0e5c (patch)
tree1e6e6daba0a95a60e746fba356958e598cf808d3
parent52bd4f135acdb36fbc7f3a4402bb29416e3ba06c (diff)
parentdc44cbbb42583b67b876e6edd3f1231eba92ab5b (diff)
Merge "fw: delay TracingServiceProxy until PHASE_THIRD_PARTY_APPS_CAN_START" into main
-rw-r--r--services/core/java/com/android/server/tracing/TracingServiceProxy.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/tracing/TracingServiceProxy.java b/services/core/java/com/android/server/tracing/TracingServiceProxy.java
index 10e868d06766..c1d92cffe1a7 100644
--- a/services/core/java/com/android/server/tracing/TracingServiceProxy.java
+++ b/services/core/java/com/android/server/tracing/TracingServiceProxy.java
@@ -119,8 +119,13 @@ public class TracingServiceProxy extends SystemService {
}
@Override
- public void onStart() {
- publishBinderService(TRACING_SERVICE_PROXY_BINDER_NAME, mTracingServiceProxy);
+ public void onStart() {}
+
+ @Override
+ public void onBootPhase(int phase) {
+ if (phase == SystemService.PHASE_THIRD_PARTY_APPS_CAN_START) {
+ publishBinderService(TRACING_SERVICE_PROXY_BINDER_NAME, mTracingServiceProxy);
+ }
}
private void notifyTraceur(boolean sessionStolen) {