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