diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java index f5b1690cbeb51..c548d63c35edf 100644 --- a/core/java/android/app/ActivityThread.java +++ b/core/java/android/app/ActivityThread.java @@ -6423,7 +6423,7 @@ public final class ActivityThread extends ClientTransactionHandler { // Allow binder tracing, and application-generated systrace messages if we're profileable. boolean isAppProfileable = data.appInfo.isProfileableByShell(); Trace.setAppTracingAllowed(isAppProfileable); - if (isAppProfileable && data.enableBinderTracking) { + if ((isAppProfileable || Build.IS_DEBUGGABLE) && data.enableBinderTracking) { Binder.enableTracing(); }