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

Commit c81ec363 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Suppress StrictMode in handleBindApplication()."

parents 31db8b9f 7c501678
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -3986,6 +3986,12 @@ public final class ActivityThread {
            dalvik.system.VMRuntime.getRuntime().clearGrowthLimit();
        }

        // allow disk access during application and provider setup. this could
        // block processing ordered broadcasts, but later processing would
        // probably end up doing the same disk access. restore not guarded with
        // finally block, since exceptions here will take down the application.
        final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskWrites();

        // If the app is being launched for full backup or restore, bring it up in
        // a restricted environment with the base application class.
        Application app = data.info.makeApplication(data.restrictedBackupMode, null);
@@ -4012,6 +4018,8 @@ public final class ActivityThread {
                    + ": " + e.toString(), e);
            }
        }

        StrictMode.setThreadPolicy(savedPolicy);
    }

    /*package*/ final void finishInstrumentation(int resultCode, Bundle results) {