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
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user