blob: f1f807d2b407b4c8ed350f5326cfcc7278d336d6 [file] [log] [blame]
Brian Carlstrom1aeee8b2013-06-27 12:02:46 -07001#
2# Copyright (C) 2013 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# Provides a functioning ART environment without Android frameworks
18
Igor Murashkincda3d102017-06-15 09:46:58 -070019ifeq ($(TARGET_CORE_JARS),)
20$(error TARGET_CORE_JARS is empty; cannot update PRODUCT_PACKAGES variable)
21endif
22
Andreas Gampe9a3e5ac2016-11-17 13:54:49 -080023# Minimal boot classpath. This should be a subset of PRODUCT_BOOT_JARS, and equivalent to
24# TARGET_CORE_JARS.
Brian Carlstrom1aeee8b2013-06-27 12:02:46 -070025PRODUCT_PACKAGES += \
Igor Murashkincda3d102017-06-15 09:46:58 -070026 $(TARGET_CORE_JARS)
Andreas Gampe9a3e5ac2016-11-17 13:54:49 -080027
28# Additional mixins to the boot classpath.
29PRODUCT_PACKAGES += \
Paul Duffina8407522017-11-30 17:13:36 +000030 android.test.base \
Andreas Gampe9a3e5ac2016-11-17 13:54:49 -080031
32# Why are we pulling in ext, which is frameworks/base, depending on tagsoup and nist-sip?
33PRODUCT_PACKAGES += \
Ying Wangd54520a2014-12-08 14:46:29 -080034 ext \
Andreas Gampe9a3e5ac2016-11-17 13:54:49 -080035
Andreas Gampe9a3e5ac2016-11-17 13:54:49 -080036# Libcore ICU. TODO: Try to figure out if/why we need them explicitly.
37PRODUCT_PACKAGES += \
38 libicui18n \
39 libicuuc \
40
Roland Levillain53ccc722018-11-12 18:33:39 +000041# Android Runtime APEX module.
Roland Levillainfbf4dbe2019-01-14 15:23:48 +000042PRODUCT_PACKAGES += com.android.runtime
Andreas Gampe9a3e5ac2016-11-17 13:54:49 -080043
44# Certificates.
45PRODUCT_PACKAGES += \
46 cacerts \
47
Mathew Inwooda2a7baa2018-02-20 10:56:48 +000048PRODUCT_PACKAGES += \
49 hiddenapi-package-whitelist.xml \
50
Jaekyun Seok5fb6a3e2017-11-03 15:33:10 +090051PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
Brian Carlstromcffe2892014-07-08 10:35:29 -070052 dalvik.vm.image-dex2oat-Xms=64m \
53 dalvik.vm.image-dex2oat-Xmx=64m \
54 dalvik.vm.dex2oat-Xms=64m \
55 dalvik.vm.dex2oat-Xmx=512m \
Nicolas Geoffray56a84e12015-11-05 16:49:49 +000056 dalvik.vm.usejit=true \
Mathieu Chartierb7a044e2016-01-28 15:58:02 -080057 dalvik.vm.usejitprofiles=true \
Calin Juravledc308c12017-02-06 19:03:05 -080058 dalvik.vm.dexopt.secondary=true \
Mathieu Chartierb7a044e2016-01-28 15:58:02 -080059 dalvik.vm.appimageformat=lz4
Nicolas Geoffray10030bc2017-04-25 12:25:33 +010060
Lev Rumyantsevbe80acf2017-08-09 10:57:33 -070061PRODUCT_PROPERTY_OVERRIDES += \
62 ro.dalvik.vm.native.bridge=0
63
Nicolas Geoffray10030bc2017-04-25 12:25:33 +010064# Different dexopt types for different package update/install times.
65# On eng builds, make "boot" reasons only extract for faster turnaround.
66ifeq (eng,$(TARGET_BUILD_VARIANT))
Jaekyun Seok5fb6a3e2017-11-03 15:33:10 +090067 PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
Nicolas Geoffray10030bc2017-04-25 12:25:33 +010068 pm.dexopt.first-boot=extract \
69 pm.dexopt.boot=extract
70else
Jaekyun Seok5fb6a3e2017-11-03 15:33:10 +090071 PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
Nicolas Geoffray10030bc2017-04-25 12:25:33 +010072 pm.dexopt.first-boot=quicken \
73 pm.dexopt.boot=verify
74endif
75
Calin Juravleb5dadc32018-03-28 18:31:51 -070076# The install filter is speed-profile in order to enable the use of
77# profiles from the dex metadata files. Note that if a profile is not provided
78# or if it is empty speed-profile is equivalent to (quicken + empty app image).
Jaekyun Seok5fb6a3e2017-11-03 15:33:10 +090079PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
Calin Juravleb5dadc32018-03-28 18:31:51 -070080 pm.dexopt.install=speed-profile \
Nicolas Geoffray10030bc2017-04-25 12:25:33 +010081 pm.dexopt.bg-dexopt=speed-profile \
Shubham Ajmerac5966a32017-06-15 13:49:10 -070082 pm.dexopt.ab-ota=speed-profile \
Calin Juravle89836f12017-09-18 13:05:24 -070083 pm.dexopt.inactive=verify \
84 pm.dexopt.shared=speed
Andreas Gampe0f3e16a2017-11-03 14:37:32 -070085
Mathieu Chartiercf5a8b12019-01-25 09:16:28 -080086# Enable resolution of startup const strings.
87PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
88 dalvik.vm.dex2oat-resolve-startup-strings=true
89
Andreas Gampe0f3e16a2017-11-03 14:37:32 -070090# Enable minidebuginfo generation unless overridden.
Jaekyun Seok4022ec92017-11-13 12:08:40 +090091PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
David Srbecky99ae76e2019-01-08 17:02:14 +000092 dalvik.vm.minidebuginfo=true \
Andreas Gampe0f3e16a2017-11-03 14:37:32 -070093 dalvik.vm.dex2oat-minidebuginfo=true