forked from shugaoye/device_generic_common
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathinit.low_performance.rc
30 lines (24 loc) · 1.16 KB
/
init.low_performance.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
on init
setprop ro.config.low_ram true
setprop ro.hw_timeout_multiplier 50
# Set lowram options
setprop ro.lmk.critical_upgrade true
setprop ro.lmk.upgrade_pressure 40
setprop ro.lmk.downgrade_pressure 60
setprop ro.lmk.kill_heaviest_task false
# set threshold to filter unused apps
setprop pm.dexopt.downgrade_after_inactive_days 10
# set the compiler filter for shared apks to quicken.
# Rationale: speed has a lot of dex code expansion, it uses more ram and space
# compared to quicken. Using quicken for shared APKs on Go devices may save RAM.
# Note that this is a trade-off: here we trade clean pages for dirty pages,
# extra cpu and battery. That's because the quicken files will be jit-ed in all
# the processes that load of shared apk and the code cache is not shared.
# Some notable apps that will be affected by this are gms and chrome.
# b/65591595.
setprop pm.dexopt.shared quicken
# From build/make/target/board/go_defaults_512.prop
# lmkd can kill more now.
setprop ro.lmk.medium 700
# madvise random in ART to reduce page cache thrashing.
setprop dalvik.vm.madvise-random true