Merge "fix app binder tracing on userdebug builds" into rvc-dev am: 52d70eaa12 am: bc6fda94b2 am: 648a549d0b am: 592de6e335 am: 27a1d00948

Change-Id: If0d3893b20461f86bcae883e823ef1793115df57
This commit is contained in:
Tim Murray
2020-05-11 21:30:06 +00:00
committed by Automerger Merge Worker

View File

@@ -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();
}