1 # 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 19 # Minimal boot classpath. This should be a subset of PRODUCT_BOOT_JARS, and equivalent to 20 # TARGET_CORE_JARS. 21 PRODUCT_PACKAGES += \ 22 apache-xml \ 23 bouncycastle \ 24 core-oj \ 25 core-libart \ 26 conscrypt \ 27 okhttp \ 28 29 # Additional mixins to the boot classpath. 30 PRODUCT_PACKAGES += \ 31 legacy-test \ 32 33 # Why are we pulling in ext, which is frameworks/base, depending on tagsoup and nist-sip? 34 PRODUCT_PACKAGES += \ 35 ext \ 36 37 # Why are we pulling in expat, which is used in frameworks, only, it seem? 38 PRODUCT_PACKAGES += \ 39 libexpat \ 40 41 # Libcore. 42 PRODUCT_PACKAGES += \ 43 libjavacore \ 44 libopenjdk \ 45 libopenjdkjvm \ 46 47 # Libcore ICU. TODO: Try to figure out if/why we need them explicitly. 48 PRODUCT_PACKAGES += \ 49 libicui18n \ 50 libicuuc \ 51 52 # ART. 53 PRODUCT_PACKAGES += \ 54 dalvikvm \ 55 dex2oat \ 56 dexoptanalyzer \ 57 libart \ 58 libart_fake \ 59 libopenjdkjvmti \ 60 patchoat \ 61 profman 62 63 # ART/dex helpers. 64 PRODUCT_PACKAGES += \ 65 ahat \ 66 dexdiag \ 67 dexdump \ 68 dexlist \ 69 hprof-conv \ 70 oatdump \ 71 72 # Certificates. 73 PRODUCT_PACKAGES += \ 74 cacerts \ 75 76 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ 77 dalvik.vm.image-dex2oat-Xms=64m \ 78 dalvik.vm.image-dex2oat-Xmx=64m \ 79 dalvik.vm.dex2oat-Xms=64m \ 80 dalvik.vm.dex2oat-Xmx=512m \ 81 ro.dalvik.vm.native.bridge=0 \ 82 dalvik.vm.usejit=true \ 83 dalvik.vm.usejitprofiles=true \ 84 dalvik.vm.dexopt.secondary=true \ 85 dalvik.vm.appimageformat=lz4 86 87 # Different dexopt types for different package update/install times. 88 # On eng builds, make "boot" reasons only extract for faster turnaround. 89 ifeq (eng,$(TARGET_BUILD_VARIANT)) 90 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ 91 pm.dexopt.first-boot=extract \ 92 pm.dexopt.boot=extract 93 else 94 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ 95 pm.dexopt.first-boot=quicken \ 96 pm.dexopt.boot=verify 97 endif 98 99 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ 100 pm.dexopt.install=quicken \ 101 pm.dexopt.bg-dexopt=speed-profile \ 102 pm.dexopt.ab-ota=speed-profile 103