blob: 6d7ac4a92942aee4509cd45b4a703c1443de729e [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
36# Why are we pulling in expat, which is used in frameworks, only, it seem?
37PRODUCT_PACKAGES += \
Ying Wangd54520a2014-12-08 14:46:29 -080038 libexpat \
Andreas Gampe9a3e5ac2016-11-17 13:54:49 -080039
40# Libcore.
41PRODUCT_PACKAGES += \
Ying Wangd54520a2014-12-08 14:46:29 -080042 libjavacore \
Piotr Jastrzebski89b94c82015-02-17 16:55:52 +000043 libopenjdk \
Andreas Gampe9a3e5ac2016-11-17 13:54:49 -080044
45# Libcore ICU. TODO: Try to figure out if/why we need them explicitly.
46PRODUCT_PACKAGES += \
47 libicui18n \
48 libicuuc \
49
50# ART.
Andreas Gampeae4916b2017-06-22 15:35:14 -070051PRODUCT_PACKAGES += art-runtime
Andreas Gampe9a3e5ac2016-11-17 13:54:49 -080052# ART/dex helpers.
Andreas Gampeae4916b2017-06-22 15:35:14 -070053PRODUCT_PACKAGES += art-tools
Andreas Gampe9a3e5ac2016-11-17 13:54:49 -080054
55# Certificates.
56PRODUCT_PACKAGES += \
57 cacerts \
58
Mathew Inwooda2a7baa2018-02-20 10:56:48 +000059PRODUCT_PACKAGES += \
60 hiddenapi-package-whitelist.xml \
61
Jaekyun Seok5fb6a3e2017-11-03 15:33:10 +090062PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
Brian Carlstromcffe2892014-07-08 10:35:29 -070063 dalvik.vm.image-dex2oat-Xms=64m \
64 dalvik.vm.image-dex2oat-Xmx=64m \
65 dalvik.vm.dex2oat-Xms=64m \
66 dalvik.vm.dex2oat-Xmx=512m \
Nicolas Geoffray56a84e12015-11-05 16:49:49 +000067 dalvik.vm.usejit=true \
Mathieu Chartierb7a044e2016-01-28 15:58:02 -080068 dalvik.vm.usejitprofiles=true \
Calin Juravledc308c12017-02-06 19:03:05 -080069 dalvik.vm.dexopt.secondary=true \
Mathieu Chartierb7a044e2016-01-28 15:58:02 -080070 dalvik.vm.appimageformat=lz4
Nicolas Geoffray10030bc2017-04-25 12:25:33 +010071
Lev Rumyantsevbe80acf2017-08-09 10:57:33 -070072PRODUCT_PROPERTY_OVERRIDES += \
73 ro.dalvik.vm.native.bridge=0
74
Nicolas Geoffray10030bc2017-04-25 12:25:33 +010075# Different dexopt types for different package update/install times.
76# On eng builds, make "boot" reasons only extract for faster turnaround.
77ifeq (eng,$(TARGET_BUILD_VARIANT))
Jaekyun Seok5fb6a3e2017-11-03 15:33:10 +090078 PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
Nicolas Geoffray10030bc2017-04-25 12:25:33 +010079 pm.dexopt.first-boot=extract \
80 pm.dexopt.boot=extract
81else
Jaekyun Seok5fb6a3e2017-11-03 15:33:10 +090082 PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
Nicolas Geoffray10030bc2017-04-25 12:25:33 +010083 pm.dexopt.first-boot=quicken \
84 pm.dexopt.boot=verify
85endif
86
Jaekyun Seok5fb6a3e2017-11-03 15:33:10 +090087PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
Nicolas Geoffray10030bc2017-04-25 12:25:33 +010088 pm.dexopt.install=quicken \
89 pm.dexopt.bg-dexopt=speed-profile \
Shubham Ajmerac5966a32017-06-15 13:49:10 -070090 pm.dexopt.ab-ota=speed-profile \
Calin Juravle89836f12017-09-18 13:05:24 -070091 pm.dexopt.inactive=verify \
92 pm.dexopt.shared=speed
Andreas Gampe0f3e16a2017-11-03 14:37:32 -070093
94# Enable minidebuginfo generation unless overridden.
Jaekyun Seok4022ec92017-11-13 12:08:40 +090095PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
Andreas Gampe0f3e16a2017-11-03 14:37:32 -070096 dalvik.vm.dex2oat-minidebuginfo=true