2013-06-27 19:02:46 +00: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 16:46:58 +00:00
|
|
|
ifeq ($(TARGET_CORE_JARS),)
|
|
|
|
$(error TARGET_CORE_JARS is empty; cannot update PRODUCT_PACKAGES variable)
|
|
|
|
endif
|
|
|
|
|
2016-11-17 21:54:49 +00:00
|
|
|
# Minimal boot classpath. This should be a subset of PRODUCT_BOOT_JARS, and equivalent to
|
|
|
|
# TARGET_CORE_JARS.
|
2013-06-27 19:02:46 +00:00
|
|
|
PRODUCT_PACKAGES += \
|
2017-06-15 16:46:58 +00:00
|
|
|
$(TARGET_CORE_JARS)
|
2016-11-17 21:54:49 +00:00
|
|
|
|
|
|
|
# Additional mixins to the boot classpath.
|
|
|
|
PRODUCT_PACKAGES += \
|
2016-11-29 12:15:13 +00:00
|
|
|
legacy-test \
|
2016-11-17 21:54:49 +00:00
|
|
|
|
|
|
|
# Why are we pulling in ext, which is frameworks/base, depending on tagsoup and nist-sip?
|
|
|
|
PRODUCT_PACKAGES += \
|
2014-12-08 22:46:29 +00:00
|
|
|
ext \
|
2016-11-17 21:54:49 +00:00
|
|
|
|
|
|
|
# Why are we pulling in expat, which is used in frameworks, only, it seem?
|
|
|
|
PRODUCT_PACKAGES += \
|
2014-12-08 22:46:29 +00:00
|
|
|
libexpat \
|
2016-11-17 21:54:49 +00:00
|
|
|
|
|
|
|
# Libcore.
|
|
|
|
PRODUCT_PACKAGES += \
|
2014-12-08 22:46:29 +00:00
|
|
|
libjavacore \
|
2015-02-17 16:55:52 +00:00
|
|
|
libopenjdk \
|
2016-11-17 21:54:49 +00:00
|
|
|
|
|
|
|
# Libcore ICU. TODO: Try to figure out if/why we need them explicitly.
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
libicui18n \
|
|
|
|
libicuuc \
|
|
|
|
|
|
|
|
# ART.
|
2017-06-22 22:35:14 +00:00
|
|
|
PRODUCT_PACKAGES += art-runtime
|
2016-11-17 21:54:49 +00:00
|
|
|
# ART/dex helpers.
|
2017-06-22 22:35:14 +00:00
|
|
|
PRODUCT_PACKAGES += art-tools
|
2016-11-17 21:54:49 +00:00
|
|
|
|
|
|
|
# Certificates.
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
cacerts \
|
|
|
|
|
2014-07-08 17:35:29 +00:00
|
|
|
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
|
|
|
|
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 16:49:49 +00:00
|
|
|
dalvik.vm.usejit=true \
|
2016-01-28 23:58:02 +00:00
|
|
|
dalvik.vm.usejitprofiles=true \
|
2017-02-07 03:03:05 +00:00
|
|
|
dalvik.vm.dexopt.secondary=true \
|
2016-01-28 23:58:02 +00:00
|
|
|
dalvik.vm.appimageformat=lz4
|
2017-04-25 11:25:33 +00:00
|
|
|
|
2017-08-09 17:57:33 +00:00
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
ro.dalvik.vm.native.bridge=0
|
|
|
|
|
2017-04-25 11:25:33 +00: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))
|
|
|
|
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
|
|
|
|
pm.dexopt.first-boot=extract \
|
|
|
|
pm.dexopt.boot=extract
|
|
|
|
else
|
|
|
|
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
|
|
|
|
pm.dexopt.first-boot=quicken \
|
|
|
|
pm.dexopt.boot=verify
|
|
|
|
endif
|
|
|
|
|
|
|
|
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
|
|
|
|
pm.dexopt.install=quicken \
|
|
|
|
pm.dexopt.bg-dexopt=speed-profile \
|
2017-06-15 20:49:10 +00:00
|
|
|
pm.dexopt.ab-ota=speed-profile \
|
|
|
|
pm.dexopt.inactive=verify
|