summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Peter Kalauskas <peskal@google.com> 2022-11-03 13:22:06 -0700
committer Peter Kalauskas <peskal@google.com> 2022-11-03 14:00:25 -0700
commitb3cedbba88e77656485e2d315e5c03138b78b11d (patch)
tree2daedb9e3e3b4d57076da5038223e8f68178cff4
parentb754daeace5b786e05e4de56fbc090d88a228ecd (diff)
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
-rw-r--r--core/java/android/os/BinderProxy.java4
1 files 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());