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

Commit 9f617a00 authored by Steve Kondik's avatar Steve Kondik
Browse files

Revert "am: Allow more hidden apps on devices with lots of RAM"

 * This isn't actually needed on 4.2+

This reverts commit 03a42019.

Change-Id: I1c4ef3c9c00882bf2c36ad042c368bacc0f9220f
parent 7bc5b5f6
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@ import com.android.internal.util.MemInfoReader;
import com.android.server.wm.WindowManagerService;

import android.graphics.Point;
import android.os.SystemProperties;
import android.util.Slog;
import android.view.Display;

@@ -102,15 +101,7 @@ class ProcessList {
    // The maximum number of hidden processes we will keep around before
    // killing them; this is just a control to not let us go too crazy with
    // keeping around processes on devices with large amounts of RAM.
    static final int MAX_HIDDEN_APPS;

    static {
        // Allow more hidden apps on huge memory devices (1.5GB or higher)
        // or fetch from the system property
        MemInfoReader mi = new MemInfoReader();
        MAX_HIDDEN_APPS = SystemProperties.getInt("sys.mem.max_hidden_apps",
                mi.getTotalSize() > 1572864 ? 40 : 24);
    }
    static final int MAX_HIDDEN_APPS = 24;

    // We allow empty processes to stick around for at most 30 minutes.
    static final long MAX_EMPTY_TIME = 30*60*1000;