blob: 184981837428b9321f5bacce3ffeccad96da1dad [file] [log] [blame]
Doug Zongker3f964942013-02-15 14:01:03 -08001#
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
Mukesh Agrawal6fb9e802018-01-10 22:42:16 +000021PRODUCT_BRAND := generic
22PRODUCT_DEVICE := generic
23PRODUCT_NAME := core
24
25PRODUCT_PACKAGES += \
26 BackupRestoreConfirmation \
27 CompanionDeviceManager \
28 CtsShimPrebuilt \
29 CtsShimPrivPrebuilt \
30 DownloadProvider \
31 ExtShared \
32 ExtServices \
33 HTMLViewer \
34 MediaProvider \
35 PackageInstaller \
36 SettingsProvider \
37 Shell \
38 StatementService \
39 WallpaperBackup \
40 android.hidl.base-V1.0-java \
41 android.hidl.manager-V1.0-java \
42 bcc \
43 bu \
44 com.android.future.usb.accessory \
45 com.android.location.provider \
46 com.android.location.provider.xml \
47 com.android.media.remotedisplay \
48 com.android.media.remotedisplay.xml \
49 com.android.mediadrm.signer \
50 com.android.mediadrm.signer.xml \
51 drmserver \
52 ethernet-service \
53 framework-res \
54 idmap \
55 installd \
56 ims-common \
57 ip \
58 ip-up-vpn \
59 ip6tables \
60 iptables \
61 gatekeeperd \
62 keystore \
63 ld.config.txt \
64 ld.mc \
65 libaaudio \
66 libOpenMAXAL \
67 libOpenSLES \
68 libdownmix \
69 libdrmframework \
70 libdrmframework_jni \
71 libfilterfw \
72 libkeystore \
73 libgatekeeper \
74 libneuralnetworks \
75 libwebviewchromium_loader \
76 libwebviewchromium_plat_support \
77 libwilhelm \
78 logd \
79 mke2fs \
80 e2fsck \
81 resize2fs \
82 tune2fs \
83 screencap \
84 sensorservice \
85 telephony-common \
86 uiautomator \
87 uncrypt \
Justin Yun992ef6c2018-01-05 18:35:06 +090088 vndk_snapshot_package \
Mukesh Agrawal6fb9e802018-01-10 22:42:16 +000089 voip-common \
90 webview \
91 webview_zygote \
92
SzuWei Linaf505d52017-06-19 15:20:10 +080093# Wifi modules
Mukesh Agrawal6fb9e802018-01-10 22:42:16 +000094PRODUCT_PACKAGES += \
SzuWei Linaf505d52017-06-19 15:20:10 +080095 wifi-service \
96 wificond \
Doug Zongker3f964942013-02-15 14:01:03 -080097
Mukesh Agrawal6fb9e802018-01-10 22:42:16 +000098PRODUCT_COPY_FILES += \
99 frameworks/native/data/etc/android.software.webview.xml:system/etc/permissions/android.software.webview.xml
100
101ifneq (REL,$(PLATFORM_VERSION_CODENAME))
102PRODUCT_COPY_FILES += \
103 frameworks/native/data/etc/android.software.preview_sdk.xml:system/etc/permissions/android.software.preview_sdk.xml
104endif
105
106ifeq ($(TARGET_CORE_JARS),)
107$(error TARGET_CORE_JARS is empty; cannot initialize PRODUCT_BOOT_JARS variable)
108endif
109
110# The order of PRODUCT_BOOT_JARS matters.
111PRODUCT_BOOT_JARS := \
112 $(TARGET_CORE_JARS) \
Mukesh Agrawal6fb9e802018-01-10 22:42:16 +0000113 ext \
114 framework \
115 telephony-common \
116 voip-common \
117 ims-common \
Mukesh Agrawal6fb9e802018-01-10 22:42:16 +0000118 android.hidl.base-V1.0-java \
119 android.hidl.manager-V1.0-java
Narayan Kamath89ec4962014-08-05 14:51:08 +0100120
Paul Duffin3a4f2ed2017-07-14 15:31:04 +0100121ifeq ($(REMOVE_OAHL_FROM_BCP),true)
122PRODUCT_BOOT_JARS += framework-oahl-backward-compatibility
123else
124PRODUCT_BOOT_JARS += org.apache.http.legacy.boot
125endif
126
Paul Duffine2819d82018-01-24 16:41:33 +0000127ifeq ($(REMOVE_ATB_FROM_BCP),true)
128PRODUCT_BOOT_JARS += framework-atb-backward-compatibility
129else
130PRODUCT_BOOT_JARS += android.test.base
131endif
132
Narayan Kamath89ec4962014-08-05 14:51:08 +0100133# The order of PRODUCT_SYSTEM_SERVER_JARS matters.
Mukesh Agrawal6fb9e802018-01-10 22:42:16 +0000134PRODUCT_SYSTEM_SERVER_JARS := \
135 services \
136 ethernet-service \
137 wifi-service \
138 com.android.location.provider \
Ying Wang0650d152013-07-23 17:57:38 -0700139
Mukesh Agrawal6fb9e802018-01-10 22:42:16 +0000140# The set of packages whose code can be loaded by the system server.
141PRODUCT_SYSTEM_SERVER_APPS += \
142 SettingsProvider \
143 WallpaperBackup
144
145# Adoptable external storage supports both ext4 and f2fs
146PRODUCT_PACKAGES += \
147 e2fsck \
148 mke2fs \
149 fsck.f2fs \
150 make_f2fs \
151
152PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
153 ro.zygote=zygote32
154PRODUCT_COPY_FILES += \
155 system/core/rootdir/init.zygote32.rc:root/init.zygote32.rc
156
157PRODUCT_COPY_FILES += \
158 system/core/rootdir/etc/public.libraries.android.txt:system/etc/public.libraries.txt
159
160# Enable boot.oat filtering of compiled classes to reduce boot.oat size. b/28026683
161PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
162 frameworks/base/config/compiled-classes-phone:system/etc/compiled-classes)
163
164# Enable dirty image object binning to reduce dirty pages in the image.
165PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
166 frameworks/base/dirty-image-objects-phone:system/etc/dirty-image-objects)
167
168# On userdebug builds, collect more tombstones by default.
169ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
170PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
171 tombstoned.max_tombstone_count=50
172endif
173
174PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
175 ro.logd.size.stats=64K \
176 log.tag.stats_log=I
177
178$(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk)
179$(call inherit-product, $(SRC_TARGET_DIR)/product/base.mk)