blob: 16599cb95ff59e5c9af6c1b75d2eccd3d92ac225 [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
21PRODUCT_BRAND := generic
22PRODUCT_DEVICE := generic
23PRODUCT_NAME := core
24
25PRODUCT_PACKAGES += \
Doug Zongker3f964942013-02-15 14:01:03 -080026 BackupRestoreConfirmation \
Eugene Susla2e837632017-02-01 15:48:28 -080027 CompanionDeviceManager \
Amith Yamasani6f7873c2016-05-13 11:25:07 -070028 CtsShimPrebuilt \
Todd Kennedy98ffa932016-05-03 16:11:38 +000029 CtsShimPrivPrebuilt \
30 DownloadProvider \
Svetoslav Ganov8ead3712016-04-07 15:29:55 -070031 ExtShared \
32 ExtServices \
Doug Zongker3f964942013-02-15 14:01:03 -080033 HTMLViewer \
34 MediaProvider \
35 PackageInstaller \
36 SettingsProvider \
37 Shell \
Joseph Wen3a260d62015-02-25 14:04:57 -050038 StatementService \
Todd Kennedy98ffa932016-05-03 16:11:38 +000039 WallpaperBackup \
Jiyong Park279e3c22017-04-15 14:39:04 +090040 android.hidl.base-V1.0-java \
41 android.hidl.manager-V1.0-java \
leozwang38bbc702014-07-12 22:03:52 -070042 bcc \
Doug Zongker3f964942013-02-15 14:01:03 -080043 bu \
Mike Lockwoodb0a62782014-09-08 10:34:18 -070044 com.android.future.usb.accessory \
Doug Zongker3f964942013-02-15 14:01:03 -080045 com.android.location.provider \
46 com.android.location.provider.xml \
Jeff Brown2cbae102013-11-05 22:17:57 -080047 com.android.media.remotedisplay \
48 com.android.media.remotedisplay.xml \
Jeff Tinker86d238b2014-08-13 11:27:59 -070049 com.android.mediadrm.signer \
50 com.android.mediadrm.signer.xml \
Doug Zongker3f964942013-02-15 14:01:03 -080051 drmserver \
Lorenzo Colittif1669dd2014-05-20 19:59:10 -070052 ethernet-service \
Doug Zongker3f964942013-02-15 14:01:03 -080053 framework-res \
MÃ¥rten Kongstad2e1ade92014-01-31 14:43:49 +010054 idmap \
Doug Zongker3f964942013-02-15 14:01:03 -080055 installd \
Wink Saville273c22c2014-06-11 15:10:51 -070056 ims-common \
Doug Zongker3f964942013-02-15 14:01:03 -080057 ip \
58 ip-up-vpn \
59 ip6tables \
60 iptables \
Andres Moralesd2c9d452015-04-06 17:09:24 -070061 gatekeeperd \
Doug Zongker3f964942013-02-15 14:01:03 -080062 keystore \
Jiyong Park93cae682017-04-13 11:29:24 +090063 ld.config.txt \
Stephen Hines23066352015-01-14 16:11:12 -080064 ld.mc \
Phil Burk85417bc2017-02-09 16:26:45 -080065 libaaudio \
Doug Zongker3f964942013-02-15 14:01:03 -080066 libOpenMAXAL \
67 libOpenSLES \
Doug Zongker3f964942013-02-15 14:01:03 -080068 libdownmix \
Doug Zongker3f964942013-02-15 14:01:03 -080069 libdrmframework \
70 libdrmframework_jni \
Doug Zongker3f964942013-02-15 14:01:03 -080071 libfilterfw \
Kenny Rootabe42662014-05-14 11:48:08 -070072 libkeystore \
Andres Moralesf886fee2015-03-31 16:31:13 -070073 libgatekeeper \
Jean-Luc Brouillet4f612c62017-07-21 20:11:18 -070074 libneuralnetworks \
Nikola Veljkovic8f1ac7c2016-04-08 16:55:20 +020075 libwebviewchromium_loader \
76 libwebviewchromium_plat_support \
Doug Zongker3f964942013-02-15 14:01:03 -080077 libwilhelm \
Nick Kralevich690b10e2012-01-17 13:48:32 -080078 logd \
Jin Qian95b2b692017-11-02 16:27:41 -070079 mke2fs \
Daniel Rosenberg0df5e722014-06-17 16:29:15 -070080 e2fsck \
81 resize2fs \
liminghaoa4b899d2016-07-22 14:23:35 +080082 tune2fs \
Doug Zongker3f964942013-02-15 14:01:03 -080083 screencap \
84 sensorservice \
Adam Hampsonba14d0e2014-05-15 16:28:39 -070085 telephony-common \
Doug Zongker00aba872014-01-16 12:43:19 -080086 uiautomator \
Colin Crosscf1f9d22014-03-21 17:41:26 -070087 uncrypt \
Justin Yun992ef6c2018-01-05 18:35:06 +090088 vndk_snapshot_package \
Adam Hampsonba14d0e2014-05-15 16:28:39 -070089 voip-common \
Tim Kilbourn42885492014-03-24 23:45:23 -070090 webview \
Robert Sesekdcb603f2016-11-11 12:38:13 -050091 webview_zygote \
SzuWei Linaf505d52017-06-19 15:20:10 +080092
93# Wifi modules
94PRODUCT_PACKAGES += \
95 wifi-service \
96 wificond \
Doug Zongker3f964942013-02-15 14:01:03 -080097
Ben Murdoch675919d2014-04-04 21:20:55 +010098PRODUCT_COPY_FILES += \
99 frameworks/native/data/etc/android.software.webview.xml:system/etc/permissions/android.software.webview.xml
100
Justin Klaassen2bfe0942017-04-13 13:45:08 -0700101ifneq (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
Igor Murashkincda3d102017-06-15 09:46:58 -0700106ifeq ($(TARGET_CORE_JARS),)
107$(error TARGET_CORE_JARS is empty; cannot initialize PRODUCT_BOOT_JARS variable)
108endif
109
Ying Wangad6674c2014-01-07 14:31:49 -0800110# The order of PRODUCT_BOOT_JARS matters.
111PRODUCT_BOOT_JARS := \
Igor Murashkincda3d102017-06-15 09:46:58 -0700112 $(TARGET_CORE_JARS) \
Paul Duffin6470f4f2016-11-29 12:15:13 +0000113 legacy-test \
Ying Wangad6674c2014-01-07 14:31:49 -0800114 ext \
115 framework \
Adam Hampsonba14d0e2014-05-15 16:28:39 -0700116 telephony-common \
117 voip-common \
Wink Saville273c22c2014-06-11 15:10:51 -0700118 ims-common \
Steven Morelanddfabcc52017-04-09 14:09:52 -0700119 org.apache.http.legacy.boot \
120 android.hidl.base-V1.0-java \
121 android.hidl.manager-V1.0-java
Narayan Kamath89ec4962014-08-05 14:51:08 +0100122
123# The order of PRODUCT_SYSTEM_SERVER_JARS matters.
124PRODUCT_SYSTEM_SERVER_JARS := \
125 services \
Lorenzo Colittif1669dd2014-05-20 19:59:10 -0700126 ethernet-service \
Nicolas Geoffrayec5e0402017-08-10 20:30:48 +0100127 wifi-service \
128 com.android.location.provider \
Ying Wang0650d152013-07-23 17:57:38 -0700129
Nicolas Geoffray7d32b8b2017-03-22 12:36:05 +0000130# The set of packages whose code can be loaded by the system server.
131PRODUCT_SYSTEM_SERVER_APPS += \
132 SettingsProvider \
133 WallpaperBackup
134
Jeff Sharkeye8193982015-05-21 21:00:26 -0700135# Adoptable external storage supports both ext4 and f2fs
136PRODUCT_PACKAGES += \
137 e2fsck \
Jin Qian95b2b692017-11-02 16:27:41 -0700138 mke2fs \
Jeff Sharkeye8193982015-05-21 21:00:26 -0700139 fsck.f2fs \
140 make_f2fs \
141
Narayan Kamath39fd21a2014-03-28 11:34:50 +0000142PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
143 ro.zygote=zygote32
144PRODUCT_COPY_FILES += \
145 system/core/rootdir/init.zygote32.rc:root/init.zygote32.rc
146
Dimitry Ivanov795132d2016-03-16 15:06:06 -0700147PRODUCT_COPY_FILES += \
148 system/core/rootdir/etc/public.libraries.android.txt:system/etc/public.libraries.txt
149
Andreas Gampe695b28f2016-05-18 20:10:43 -0700150# Enable boot.oat filtering of compiled classes to reduce boot.oat size. b/28026683
Andreas Gampebbb0b312016-05-20 11:05:38 -0700151PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
Mathieu Chartierd83a7f12017-08-11 14:43:53 -0700152 frameworks/base/config/compiled-classes-phone:system/etc/compiled-classes)
Andreas Gampe695b28f2016-05-18 20:10:43 -0700153
Jeff Haob454ee12017-08-02 16:45:49 -0700154# Enable dirty image object binning to reduce dirty pages in the image.
155PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
156 frameworks/base/dirty-image-objects-phone:system/etc/dirty-image-objects)
157
Andreas Gampe47e137f2017-07-06 21:20:54 -0700158# On userdebug builds, collect more tombstones by default.
159ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
Jaekyun Seok4022ec92017-11-13 12:08:40 +0900160PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
Andreas Gampe47e137f2017-07-06 21:20:54 -0700161 tombstoned.max_tombstone_count=50
162endif
163
Yao Chen8ce8dc22017-11-13 20:58:28 -0800164PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
165 ro.logd.size.stats=64K \
166 log.tag.stats_log=I
167
Ying Wangd54520a2014-12-08 14:46:29 -0800168$(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk)
Doug Zongker3f964942013-02-15 14:01:03 -0800169$(call inherit-product, $(SRC_TARGET_DIR)/product/base.mk)