2013-06-27 21:02:46 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2013 The Android Open Source Project
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
|
|
|
|
# Provides a functioning ART environment without Android frameworks
|
|
|
|
|
2017-06-15 18:46:58 +02:00
|
|
|
ifeq ($(TARGET_CORE_JARS),)
|
|
|
|
$(error TARGET_CORE_JARS is empty; cannot update PRODUCT_PACKAGES variable)
|
|
|
|
endif
|
|
|
|
|
2016-11-17 22:54:49 +01:00
|
|
|
# Additional mixins to the boot classpath.
|
|
|
|
PRODUCT_PACKAGES += \
|
2017-11-30 18:13:36 +01:00
|
|
|
android.test.base \
|
2016-11-17 22:54:49 +01:00
|
|
|
|
|
|
|
# Why are we pulling in ext, which is frameworks/base, depending on tagsoup and nist-sip?
|
|
|
|
PRODUCT_PACKAGES += \
|
2014-12-08 23:46:29 +01:00
|
|
|
ext \
|
2016-11-17 22:54:49 +01:00
|
|
|
|
2019-07-05 23:39:19 +02:00
|
|
|
# Runtime (Bionic) APEX module.
|
2019-01-14 16:23:48 +01:00
|
|
|
PRODUCT_PACKAGES += com.android.runtime
|
2019-07-05 23:39:19 +02:00
|
|
|
|
|
|
|
# ART APEX module.
|
2019-10-28 21:07:57 +01:00
|
|
|
# Note that this package includes the minimal boot classpath JARs (listed in
|
|
|
|
# TARGET_CORE_JARS), which should no longer be added directly to
|
|
|
|
# PRODUCT_PACKAGES.
|
2019-07-05 23:39:19 +02:00
|
|
|
PRODUCT_PACKAGES += com.android.art
|
|
|
|
PRODUCT_HOST_PACKAGES += com.android.art
|
2016-11-17 22:54:49 +01:00
|
|
|
|
|
|
|
# Certificates.
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
cacerts \
|
|
|
|
|
2018-02-20 11:56:48 +01:00
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
hiddenapi-package-whitelist.xml \
|
|
|
|
|
2017-11-03 07:33:10 +01:00
|
|
|
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
|
2014-07-08 19:35:29 +02:00
|
|
|
dalvik.vm.image-dex2oat-Xms=64m \
|
|
|
|
dalvik.vm.image-dex2oat-Xmx=64m \
|
|
|
|
dalvik.vm.dex2oat-Xms=64m \
|
|
|
|
dalvik.vm.dex2oat-Xmx=512m \
|
2015-11-05 17:49:49 +01:00
|
|
|
dalvik.vm.usejit=true \
|
2016-01-29 00:58:02 +01:00
|
|
|
dalvik.vm.usejitprofiles=true \
|
2017-02-07 04:03:05 +01:00
|
|
|
dalvik.vm.dexopt.secondary=true \
|
2016-01-29 00:58:02 +01:00
|
|
|
dalvik.vm.appimageformat=lz4
|
2017-04-25 13:25:33 +02:00
|
|
|
|
2019-04-21 07:54:05 +02:00
|
|
|
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
|
2017-08-09 19:57:33 +02:00
|
|
|
ro.dalvik.vm.native.bridge=0
|
|
|
|
|
2017-04-25 13:25:33 +02:00
|
|
|
# Different dexopt types for different package update/install times.
|
|
|
|
# On eng builds, make "boot" reasons only extract for faster turnaround.
|
|
|
|
ifeq (eng,$(TARGET_BUILD_VARIANT))
|
2017-11-03 07:33:10 +01:00
|
|
|
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
|
2017-04-25 13:25:33 +02:00
|
|
|
pm.dexopt.first-boot=extract \
|
|
|
|
pm.dexopt.boot=extract
|
|
|
|
else
|
2017-11-03 07:33:10 +01:00
|
|
|
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
|
2017-04-25 13:25:33 +02:00
|
|
|
pm.dexopt.first-boot=quicken \
|
|
|
|
pm.dexopt.boot=verify
|
|
|
|
endif
|
|
|
|
|
2018-03-29 03:31:51 +02:00
|
|
|
# The install filter is speed-profile in order to enable the use of
|
|
|
|
# profiles from the dex metadata files. Note that if a profile is not provided
|
|
|
|
# or if it is empty speed-profile is equivalent to (quicken + empty app image).
|
2017-11-03 07:33:10 +01:00
|
|
|
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
|
2018-03-29 03:31:51 +02:00
|
|
|
pm.dexopt.install=speed-profile \
|
2017-04-25 13:25:33 +02:00
|
|
|
pm.dexopt.bg-dexopt=speed-profile \
|
2017-06-15 22:49:10 +02:00
|
|
|
pm.dexopt.ab-ota=speed-profile \
|
2017-09-18 22:05:24 +02:00
|
|
|
pm.dexopt.inactive=verify \
|
|
|
|
pm.dexopt.shared=speed
|
2017-11-03 22:37:32 +01:00
|
|
|
|
2019-01-25 18:16:28 +01:00
|
|
|
# Enable resolution of startup const strings.
|
|
|
|
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
|
|
|
|
dalvik.vm.dex2oat-resolve-startup-strings=true
|
|
|
|
|
2019-04-08 22:32:06 +02:00
|
|
|
# Specify default block size of 512K to enable parallel image decompression.
|
|
|
|
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
|
|
|
|
dalvik.vm.dex2oat-max-image-block-size=524288
|
|
|
|
|
2017-11-03 22:37:32 +01:00
|
|
|
# Enable minidebuginfo generation unless overridden.
|
2017-11-13 04:08:40 +01:00
|
|
|
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
|
2019-01-08 18:02:14 +01:00
|
|
|
dalvik.vm.minidebuginfo=true \
|
2017-11-03 22:37:32 +01:00
|
|
|
dalvik.vm.dex2oat-minidebuginfo=true
|
2019-01-29 23:58:28 +01:00
|
|
|
|
|
|
|
# Disable iorapd by default
|
|
|
|
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
|
|
|
|
ro.iorapd.enable=false
|
2019-04-16 22:05:42 +02:00
|
|
|
|
2019-05-02 00:34:47 +02:00
|
|
|
PRODUCT_USES_DEFAULT_ART_CONFIG := true
|