Add background app limit tunable.
Set MAX_CACHED_APPS based on a system property "ro.sys.fw.bg_apps_limit"
so that number of background apps can be tuned accordingly.
Conflicts:
services/core/java/com/android/server/am/ProcessList.java
Change-Id: Ie21b0961dad10e1cd6da3cfe2a45eff45dc8756d
diff --git a/services/core/java/com/android/server/am/ProcessList.java b/services/core/java/com/android/server/am/ProcessList.java
index 5b22255..7ce6072 100644
--- a/services/core/java/com/android/server/am/ProcessList.java
+++ b/services/core/java/com/android/server/am/ProcessList.java
@@ -128,7 +128,7 @@
// we have no limit on the number of service, visible, foreground, or other such
// processes and the number of those processes does not count against the cached
// process limit.
- static final int MAX_CACHED_APPS = 32;
+ static final int MAX_CACHED_APPS = SystemProperties.getInt("ro.sys.fw.bg_apps_limit",32);
// We allow empty processes to stick around for at most 30 minutes.
static final long MAX_EMPTY_TIME = 30*60*1000;