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
This commit is contained in:
Peter Kalauskas
2022-11-03 13:22:06 -07:00
parent b754daeace
commit b3cedbba88

View File

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