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

Commit 4d9e6d2b authored by Brad Fitzpatrick's avatar Brad Fitzpatrick
Browse files

Disable CloseGuard early. (it defaults to spammy otherwise)

We already selectively enable it later when desired.

Change-Id: Ic428f13a57a2b4340ce343e73c32413b64fcd1af
parent 7c2ae657
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -95,6 +95,7 @@ import java.util.Map;
import java.util.TimeZone;
import java.util.regex.Pattern;

import dalvik.system.CloseGuard;
import dalvik.system.SamplingProfiler;

final class SuperNotCalledException extends AndroidRuntimeException {
@@ -3726,6 +3727,11 @@ public final class ActivityThread {
    public static final void main(String[] args) {
        SamplingProfilerIntegration.start();

        // CloseGuard defaults to true and can be quite spammy.  We
        // disable it here, but selectively enable it later (via
        // StrictMode) on debug builds, but using DropBox, not logs.
        CloseGuard.setEnabled(false);

        Process.setArgV0("<pre-initialized>");

        Looper.prepareMainLooper();