blob: c0c0ef62ac2e66dc476ee319286e356d817ee0ab [file] [log] [blame]
Mathieu Chartier732a4cc2018-06-25 18:12:32 -07001#
2# Copyright (C) 2017 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# Sets Android Go recommended default values for propreties.
18
19# Set lowram options
20ro.config.low_ram=true
21ro.lmk.critical_upgrade=true
22ro.lmk.upgrade_pressure=40
23ro.lmk.downgrade_pressure=60
24ro.lmk.kill_heaviest_task=false
25ro.statsd.enable=false
26
27# set threshold to filter unused apps
28pm.dexopt.downgrade_after_inactive_days=10
29
30# set the compiler filter for shared apks to quicken.
31# Rationale: speed has a lot of dex code expansion, it uses more ram and space
32# compared to quicken. Using quicken for shared APKs on Go devices may save RAM.
33# Note that this is a trade-off: here we trade clean pages for dirty pages,
34# extra cpu and battery. That's because the quicken files will be jit-ed in all
35# the processes that load of shared apk and the code cache is not shared.
36# Some notable apps that will be affected by this are gms and chrome.
37# b/65591595.
38pm.dexopt.shared=quicken
39
40# Default heap sizes. Allow up to 256m for large heaps to make sure a single app
41# doesn't take all of the RAM.
42dalvik.vm.heapgrowthlimit=128m
43dalvik.vm.heapsize=256m