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

Commit 51e51feb authored by Dmitri Plotnikov's avatar Dmitri Plotnikov
Browse files

Log outgoing blocking binder calls in system server as WTF

Test: boot the system, see log entries like this:
4030 E Binder  : Outgoing transactions from this process must be FLAG_ONEWAY

Change-Id: Ie1b3c76ec08aecc706a5edc5a6d2b4b946895ed9
parent ec10f333
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -479,9 +479,15 @@ public final class BinderProxy implements IBinder {
            // For now, avoid spamming the log by disabling after we've logged
            // about this interface at least once
            mWarnOnBlocking = false;
            if (Build.IS_USERDEBUG) {
                // Log this as a WTF on userdebug builds.
                Log.wtf(Binder.TAG, "Outgoing transactions from this process must be FLAG_ONEWAY",
                        new Throwable());
            } else {
                Log.w(Binder.TAG, "Outgoing transactions from this process must be FLAG_ONEWAY",
                        new Throwable());
            }
        }

        final boolean tracingEnabled = Binder.isTracingEnabled();
        if (tracingEnabled) {