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;
|
mWarnOnBlocking = false;
|
||||||
warnOnBlocking = false;
|
warnOnBlocking = false;
|
||||||
|
|
||||||
if (Build.IS_USERDEBUG) {
|
if (Build.IS_USERDEBUG || Build.IS_ENG) {
|
||||||
// Log this as a WTF on userdebug builds.
|
// Log this as a WTF on userdebug and eng builds.
|
||||||
Log.wtf(Binder.TAG,
|
Log.wtf(Binder.TAG,
|
||||||
"Outgoing transactions from this process must be FLAG_ONEWAY",
|
"Outgoing transactions from this process must be FLAG_ONEWAY",
|
||||||
new Throwable());
|
new Throwable());
|
||||||
|
|||||||
Reference in New Issue
Block a user