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

Commit 1a4e911f authored by Tim Murray's avatar Tim Murray
Browse files

ActivityManagerConstants: enable skipping MCP kills until BOOT_COMPLETE

Delaying MCP kills seems good overall, so enable it by default with a
ten minute timeout.

Test: TH
bug: 222365734
Change-Id: I0822b182e6a0e736b22ca944f9e4be8514fd8c7d
parent 9754f725
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -668,11 +668,11 @@ final class ActivityManagerConstants extends ContentObserver {
            "no_kill_cached_processes_post_boot_completed_duration_millis";

    /** @see #mNoKillCachedProcessesUntilBootCompleted */
    private static final boolean DEFAULT_NO_KILL_CACHED_PROCESSES_UNTIL_BOOT_COMPLETED = false;
    private static final boolean DEFAULT_NO_KILL_CACHED_PROCESSES_UNTIL_BOOT_COMPLETED = true;

    /** @see #mNoKillCachedProcessesPostBootCompletedDurationMillis */
    private static final long
            DEFAULT_NO_KILL_CACHED_PROCESSES_POST_BOOT_COMPLETED_DURATION_MILLIS = 0;
            DEFAULT_NO_KILL_CACHED_PROCESSES_POST_BOOT_COMPLETED_DURATION_MILLIS = 600_000;

    /**
     * If true, do not kill excessive cached processes proactively, until user-0 is unlocked.