Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4de3ff5 authored by Peter Kalauskas's avatar Peter Kalauskas
Browse files

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
Bug: 241131634
Test: Confirm eng build boots, and that calling
      Binder.setWarnOnBlocking(true) does not crash sysui
Change-Id: Iab416c58827db558d21e518c09af1dac1569ebe8
Merged-In: Iab416c58827db558d21e518c09af1dac1569ebe8
parent dd4b1a0d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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());