core_minimal.mk revision bbb0b31cf229170fa527d57a11a0d20c3dbf87a2
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# Base configuration for most consumer android devices.  Do not put
18# things that are specific to communication devices (phones, tables,
19# etc.) here -- for that, use core.mk.
20
21PRODUCT_BRAND := generic
22PRODUCT_DEVICE := generic
23PRODUCT_NAME := core
24
25PRODUCT_PACKAGES += \
26    BackupRestoreConfirmation \
27    CtsShimPrebuilt \
28    CtsShimPrivPrebuilt \
29    DownloadProvider \
30    ExtShared \
31    ExtServices \
32    HTMLViewer \
33    MediaProvider \
34    PackageInstaller \
35    SettingsProvider \
36    Shell \
37    StatementService \
38    WallpaperBackup \
39    bcc \
40    bu \
41    com.android.future.usb.accessory \
42    com.android.location.provider \
43    com.android.location.provider.xml \
44    com.android.media.remotedisplay \
45    com.android.media.remotedisplay.xml \
46    com.android.mediadrm.signer \
47    com.android.mediadrm.signer.xml \
48    drmserver \
49    ethernet-service \
50    framework-res \
51    idmap \
52    installd \
53    ims-common \
54    ip \
55    ip-up-vpn \
56    ip6tables \
57    iptables \
58    gatekeeperd \
59    keystore \
60    keystore.default \
61    ld.mc \
62    libbcc \
63    libOpenMAXAL \
64    libOpenSLES \
65    libdownmix \
66    libdrmframework \
67    libdrmframework_jni \
68    libfilterfw \
69    libkeystore \
70    libgatekeeper \
71    libwilhelm \
72    logd \
73    make_ext4fs \
74    e2fsck \
75    resize2fs \
76    screencap \
77    sensorservice \
78    telephony-common \
79    uiautomator \
80    uncrypt \
81    voip-common \
82    webview \
83    wifi-service
84
85PRODUCT_COPY_FILES += \
86    frameworks/native/data/etc/android.software.webview.xml:system/etc/permissions/android.software.webview.xml
87
88# The order of PRODUCT_BOOT_JARS matters.
89PRODUCT_BOOT_JARS := \
90    core-oj \
91    core-libart \
92    conscrypt \
93    okhttp \
94    core-junit \
95    bouncycastle \
96    ext \
97    framework \
98    telephony-common \
99    voip-common \
100    ims-common \
101    apache-xml \
102    org.apache.http.legacy.boot
103
104# The order of PRODUCT_SYSTEM_SERVER_JARS matters.
105PRODUCT_SYSTEM_SERVER_JARS := \
106    services \
107    ethernet-service \
108    wifi-service
109
110# Adoptable external storage supports both ext4 and f2fs
111PRODUCT_PACKAGES += \
112    e2fsck \
113    make_ext4fs \
114    fsck.f2fs \
115    make_f2fs \
116
117PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
118    ro.zygote=zygote32
119PRODUCT_COPY_FILES += \
120    system/core/rootdir/init.zygote32.rc:root/init.zygote32.rc
121
122PRODUCT_COPY_FILES += \
123    system/core/rootdir/etc/public.libraries.android.txt:system/etc/public.libraries.txt
124
125# Different dexopt types for different package update/install times.
126# On eng builds, make "boot" reasons do pure JIT for faster turnaround.
127ifeq (eng,$(TARGET_BUILD_VARIANT))
128    PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
129        pm.dexopt.first-boot=verify-at-runtime \
130        pm.dexopt.boot=verify-at-runtime
131else
132    PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
133        pm.dexopt.first-boot=interpret-only \
134        pm.dexopt.boot=verify-profile
135endif
136PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
137    pm.dexopt.install=interpret-only \
138    pm.dexopt.bg-dexopt=speed-profile \
139    pm.dexopt.ab-ota=speed-profile \
140    pm.dexopt.nsys-library=speed \
141    pm.dexopt.shared-apk=speed \
142    pm.dexopt.forced-dexopt=speed
143
144# Enable boot.oat filtering of compiled classes to reduce boot.oat size. b/28026683
145PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
146    frameworks/base/compiled-classes-phone:system/etc/compiled-classes)
147
148$(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk)
149$(call inherit-product, $(SRC_TARGET_DIR)/product/base.mk)
150