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

Commit 8aec607e authored by dianlujitao's avatar dianlujitao Committed by Bruno Martins
Browse files

Enable Binder Proxy Tracking by Uid only on eng builds

 * App would be killed once limit reached, this is really bad for users.

Change-Id: I226a7a34031c9e9d8bf6843c22d79e72203bf867
parent 48d2258f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -73,7 +73,7 @@ public class SystemUIService extends Service {
            throw new RuntimeException();
            throw new RuntimeException();
        }
        }


        if (Build.IS_DEBUGGABLE) {
        if (Build.IS_ENG) {
            // b/71353150 - looking for leaked binder proxies
            // b/71353150 - looking for leaked binder proxies
            BinderInternal.nSetBinderProxyCountEnabled(true);
            BinderInternal.nSetBinderProxyCountEnabled(true);
            BinderInternal.nSetBinderProxyCountWatermarks(1000,900);
            BinderInternal.nSetBinderProxyCountWatermarks(1000,900);