Merge "fix app binder tracing on userdebug builds" into rvc-dev am: 52d70eaa12
Change-Id: Ib4f930c18eb434b698600dbdafc36daee79d98fc
This commit is contained in:
@@ -6420,7 +6420,7 @@ public final class ActivityThread extends ClientTransactionHandler {
|
|||||||
// Allow binder tracing, and application-generated systrace messages if we're profileable.
|
// Allow binder tracing, and application-generated systrace messages if we're profileable.
|
||||||
boolean isAppProfileable = data.appInfo.isProfileableByShell();
|
boolean isAppProfileable = data.appInfo.isProfileableByShell();
|
||||||
Trace.setAppTracingAllowed(isAppProfileable);
|
Trace.setAppTracingAllowed(isAppProfileable);
|
||||||
if (isAppProfileable && data.enableBinderTracking) {
|
if ((isAppProfileable || Build.IS_DEBUGGABLE) && data.enableBinderTracking) {
|
||||||
Binder.enableTracing();
|
Binder.enableTracing();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user