1# Adjustments to the out-of-memory killer, for devices that are 2# tight on memory. These should not be used if not needed, as they 3# can result in more paging. 4 5on early-boot 6 7 setprop ro.FOREGROUND_APP_MEM 1536 8 setprop ro.VISIBLE_APP_MEM 2048 9 setprop ro.PERCEPTIBLE_APP_MEM 2048 10 setprop ro.HEAVY_WEIGHT_APP_MEM 2048 11 setprop ro.SECONDARY_SERVER_MEM 4096 12 setprop ro.BACKUP_APP_MEM 4096 13 setprop ro.HOME_APP_MEM 4096 14 setprop ro.HIDDEN_APP_MEM 5120 15 setprop ro.EMPTY_APP_MEM 6144 16 17on boot 18 19 write /sys/module/lowmemorykiller/parameters/minfree 1536,2048,3072,4096,5120,6144 20