Home | History | Annotate | Download | only in product
      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 ifeq ($(TARGET_CORE_JARS),)
     20 $(error TARGET_CORE_JARS is empty; cannot update PRODUCT_PACKAGES variable)
     21 endif
     22 
     23 # Minimal boot classpath. This should be a subset of PRODUCT_BOOT_JARS, and equivalent to
     24 # TARGET_CORE_JARS.
     25 PRODUCT_PACKAGES += \
     26     $(TARGET_CORE_JARS)
     27 
     28 # Additional mixins to the boot classpath.
     29 PRODUCT_PACKAGES += \
     30     android.test.base \
     31 
     32 # Why are we pulling in ext, which is frameworks/base, depending on tagsoup and nist-sip?
     33 PRODUCT_PACKAGES += \
     34     ext \
     35 
     36 # Android Runtime APEX module.
     37 PRODUCT_PACKAGES += com.android.runtime
     38 PRODUCT_HOST_PACKAGES += com.android.runtime
     39 
     40 # Certificates.
     41 PRODUCT_PACKAGES += \
     42     cacerts \
     43 
     44 PRODUCT_PACKAGES += \
     45     hiddenapi-package-whitelist.xml \
     46 
     47 PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
     48     dalvik.vm.image-dex2oat-Xms=64m \
     49     dalvik.vm.image-dex2oat-Xmx=64m \
     50     dalvik.vm.dex2oat-Xms=64m \
     51     dalvik.vm.dex2oat-Xmx=512m \
     52     dalvik.vm.usejit=true \
     53     dalvik.vm.usejitprofiles=true \
     54     dalvik.vm.dexopt.secondary=true \
     55     dalvik.vm.appimageformat=lz4
     56 
     57 PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
     58     ro.dalvik.vm.native.bridge=0
     59 
     60 # Different dexopt types for different package update/install times.
     61 # On eng builds, make "boot" reasons only extract for faster turnaround.
     62 ifeq (eng,$(TARGET_BUILD_VARIANT))
     63     PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
     64         pm.dexopt.first-boot=extract \
     65         pm.dexopt.boot=extract
     66 else
     67     PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
     68         pm.dexopt.first-boot=quicken \
     69         pm.dexopt.boot=verify
     70 endif
     71 
     72 # The install filter is speed-profile in order to enable the use of
     73 # profiles from the dex metadata files. Note that if a profile is not provided
     74 # or if it is empty speed-profile is equivalent to (quicken + empty app image).
     75 PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
     76     pm.dexopt.install=speed-profile \
     77     pm.dexopt.bg-dexopt=speed-profile \
     78     pm.dexopt.ab-ota=speed-profile \
     79     pm.dexopt.inactive=verify \
     80     pm.dexopt.shared=speed
     81 
     82 # Enable resolution of startup const strings.
     83 PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
     84     dalvik.vm.dex2oat-resolve-startup-strings=true
     85 
     86 # Specify default block size of 512K to enable parallel image decompression.
     87 PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
     88     dalvik.vm.dex2oat-max-image-block-size=524288
     89 
     90 # Enable minidebuginfo generation unless overridden.
     91 PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
     92     dalvik.vm.minidebuginfo=true \
     93     dalvik.vm.dex2oat-minidebuginfo=true
     94 
     95 # Disable iorapd by default
     96 PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
     97     ro.iorapd.enable=false
     98 
     99 PRODUCT_USES_ART := true
    100