summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2009-06-05 18:20:08 -0700
committerChristopher Tate <ctate@google.com>2009-06-05 18:20:08 -0700
commit17df71e0b277372de1d915c168c07c8877e82395 (patch)
tree447e781d8d2d50c8d48be200320a34600b97b556 /rootdir
parent876577823d7679fa18f175405ce77e5257161e3a (diff)
downloadcore-17df71e0b277372de1d915c168c07c8877e82395.tar.gz
core-17df71e0b277372de1d915c168c07c8877e82395.tar.bz2
core-17df71e0b277372de1d915c168c07c8877e82395.zip
Add an OOM adjustment category for apps undergoing backup
In this initial commit, apps undergoing backup are treated equivalently to apps hosting services: more important than anything other than the foreground app.
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc2
1 files changed, 2 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 9853cc654..e16a3f0fa 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -113,6 +113,7 @@ on boot
setprop ro.FOREGROUND_APP_ADJ 0
setprop ro.VISIBLE_APP_ADJ 1
setprop ro.SECONDARY_SERVER_ADJ 2
+ setprop ro.BACKUP_APP_ADJ 2
setprop ro.HOME_APP_ADJ 4
setprop ro.HIDDEN_APP_MIN_ADJ 7
setprop ro.CONTENT_PROVIDER_ADJ 14
@@ -123,6 +124,7 @@ on boot
setprop ro.FOREGROUND_APP_MEM 1536
setprop ro.VISIBLE_APP_MEM 2048
setprop ro.SECONDARY_SERVER_MEM 4096
+ setprop ro.BACKUP_APP_MEM 4096
setprop ro.HOME_APP_MEM 4096
setprop ro.HIDDEN_APP_MEM 5120
setprop ro.CONTENT_PROVIDER_MEM 5632