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