From b3cedbba88e77656485e2d315e5c03138b78b11d Mon Sep 17 00:00:00 2001 From: Peter Kalauskas Date: Thu, 3 Nov 2022 13:22:06 -0700 Subject: Log wtf for warn-on-blocking on eng builds Log.wtf on eng builds when setWarnOnBlocking is enabled. Previously, setWarnOnBlocking would only log a WTF on userdebug builds. Bug: 32715088 Test: Manual Change-Id: Iab416c58827db558d21e518c09af1dac1569ebe8 --- core/java/android/os/BinderProxy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/android/os/BinderProxy.java b/core/java/android/os/BinderProxy.java index 63306612fdaf..1929a4d562d4 100644 --- a/core/java/android/os/BinderProxy.java +++ b/core/java/android/os/BinderProxy.java @@ -536,8 +536,8 @@ public final class BinderProxy implements IBinder { mWarnOnBlocking = false; warnOnBlocking = false; - if (Build.IS_USERDEBUG) { - // Log this as a WTF on userdebug builds. + if (Build.IS_USERDEBUG || Build.IS_ENG) { + // Log this as a WTF on userdebug and eng builds. Log.wtf(Binder.TAG, "Outgoing transactions from this process must be FLAG_ONEWAY", new Throwable()); -- cgit v1.2.3-59-g8ed1b