blob: 26c3ef23ac11aeb8c440abd7b3fb104d063f7b51 [file] [log] [blame]
Anton Hansson3a49ed82018-06-26 11:20:34 +01001#
2# Copyright (C) 2018 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 modules and settings for the system partition.
18PRODUCT_PACKAGES += \
Anton Hansson3a49ed82018-06-26 11:20:34 +010019 adb \
20 adbd \
Anton Hansson3a49ed82018-06-26 11:20:34 +010021 am \
22 android.hidl.allocator@1.0-service \
23 android.hidl.base-V1.0-java \
24 android.hidl.manager-V1.0-java \
25 android.hidl.memory@1.0-impl \
26 android.hidl.memory@1.0-impl.vendor \
Anton Hansson3a49ed82018-06-26 11:20:34 +010027 android.test.base \
28 android.test.mock \
29 android.test.runner \
Martijn Coenen520b3f92018-08-17 13:46:58 +020030 apexd \
Anton Hansson3a49ed82018-06-26 11:20:34 +010031 applypatch \
32 appops \
33 app_process \
34 appwidget \
35 atest \
36 atrace \
37 audioserver \
38 BackupRestoreConfirmation \
39 bcc \
40 bit \
41 blank_screen \
42 blkid \
43 bmgr \
44 bootanimation \
45 bootstat \
46 bpfloader \
47 bu \
48 bugreport \
49 bugreportz \
50 cameraserver \
51 charger \
52 cmd \
53 com.android.location.provider \
54 ContactsProvider \
55 content \
56 crash_dump \
57 CtsShimPrebuilt \
58 CtsShimPrivPrebuilt \
59 debuggerd\
60 DefaultContainerService \
61 dnsmasq \
62 DownloadProvider \
63 dpm \
64 dumpstate \
65 dumpsys \
66 e2fsck \
67 ExtServices \
68 ExtShared \
69 fastboot \
70 framework \
71 framework-res \
72 framework-sysconfig.xml \
73 fsck_msdos \
Anton Hanssone85ec842018-06-26 14:03:38 +010074 fs_config_files_system \
75 fs_config_dirs_system \
Anton Hansson3a49ed82018-06-26 11:20:34 +010076 gatekeeperd \
77 healthd \
78 hid \
79 hwservicemanager \
80 idmap \
81 ime \
82 ims-common \
83 incident \
84 incidentd \
85 incident_helper \
86 incident_report \
87 init \
88 init.environ.rc \
89 init.rc \
90 input \
91 installd \
92 ip \
93 ip6tables \
94 iptables \
95 ip-up-vpn \
96 javax.obex \
97 keystore \
Anton Hansson3a49ed82018-06-26 11:20:34 +010098 ld.config.txt \
99 ld.mc \
100 libaaudio \
101 libandroid \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100102 libandroidfw \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100103 libandroid_runtime \
104 libandroid_servers \
105 libaudioeffect_jni \
106 libaudioflinger \
107 libaudiopolicymanager \
108 libaudiopolicyservice \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100109 libaudioutils \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100110 libbinder \
111 libc \
112 libcamera2ndk \
113 libcamera_client \
114 libcameraservice \
115 libc_malloc_debug \
116 libc_malloc_hooks \
117 libcutils \
118 libdl \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100119 libdrmframework \
120 libdrmframework_jni \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100121 libEGL \
122 libETC1 \
123 libFFTEm \
124 libfilterfw \
125 libgatekeeper \
126 libGLESv1_CM \
127 libGLESv2 \
128 libGLESv3 \
129 libgui \
130 libhardware \
131 libhardware_legacy \
132 libinput \
133 libinputflinger \
134 libiprouteutil \
135 libjnigraphics \
136 libjpeg \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100137 liblog \
138 libm \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100139 libmdnssd \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100140 libmedia \
141 libmedia_jni \
142 libmediandk \
143 libmediaplayerservice \
144 libmtp \
145 libnetd_client \
146 libnetlink \
147 libnetutils \
148 libneuralnetworks \
149 libOpenMAXAL \
150 libOpenSLES \
151 libpdfium \
152 libpixelflinger \
153 libpower \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100154 libpowermanager \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100155 libradio_metadata \
156 librtp_jni \
157 libsensorservice \
158 libsigchain \
159 libskia \
160 libsonic \
161 libsonivox \
162 libsoundpool \
163 libsoundtrigger \
164 libsoundtriggerservice \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100165 libspeexresampler \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100166 libsqlite \
167 libstagefright \
168 libstagefright_amrnb_common \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100169 libstagefright_enc_common \
170 libstagefright_foundation \
171 libstagefright_omx \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100172 libstdc++ \
173 libsurfaceflinger \
174 libsurfaceflinger_ddmconnection \
175 libsysutils \
176 libui \
177 libusbhost \
178 libutils \
179 libvorbisidec \
180 libvulkan \
181 libwifi-service \
182 libwilhelm \
183 linker \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100184 lmkd \
185 locksettings \
186 logcat \
187 logd \
188 lshal \
189 mdnsd \
190 media \
191 media_cmd \
192 mediadrmserver \
193 mediaextractor \
194 mediametrics \
195 media_profiles_V1_0.dtd \
196 MediaProvider \
197 mediaserver \
198 mke2fs \
199 monkey \
200 mtpd \
201 ndc \
202 netd \
203 org.apache.http.legacy \
204 perfetto \
205 ping \
206 ping6 \
207 platform.xml \
208 pm \
209 pppd \
210 privapp-permissions-platform.xml \
211 racoon \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100212 resize2fs \
213 run-as \
214 schedtest \
215 screencap \
216 sdcard \
217 secdiscard \
218 SecureElement \
Anton Hansson56ce36f2018-07-02 14:36:28 +0100219 selinux_policy_system \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100220 sensorservice \
221 service \
222 servicemanager \
223 services \
224 settings \
225 SettingsProvider \
226 sgdisk \
227 Shell \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100228 shell_and_utilities_system \
229 sm \
230 statsd \
231 storaged \
232 surfaceflinger \
233 svc \
234 tc \
235 telecom \
236 telephony-common \
237 thermalserviced \
238 tombstoned \
239 traced \
240 traced_probes \
241 tune2fs \
242 tzdatacheck \
243 uiautomator \
244 uncrypt \
245 usbd \
246 vdc \
247 voip-common \
248 vold \
249 WallpaperBackup \
Tom Cherry3bb4cd62018-08-01 13:45:12 -0700250 watchdogd \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100251 wificond \
252 wifi-service \
253 wm \
254
Yifan Hong17d4bcb2018-07-10 16:43:19 -0700255# VINTF data for system image
Anton Hansson3a49ed82018-06-26 11:20:34 +0100256PRODUCT_PACKAGES += \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100257 framework_manifest.xml \
258 framework_compatibility_matrix.xml \
259
Hridya Valsaraju91a7e312018-08-09 11:10:05 -0700260ifeq ($(PRODUCT_USE_FASTBOOTD), true)
261PRODUCT_PACKAGES += \
262 fastbootd
263endif
264
Anton Hansson3a49ed82018-06-26 11:20:34 +0100265ifeq ($(TARGET_CORE_JARS),)
266$(error TARGET_CORE_JARS is empty; cannot initialize PRODUCT_BOOT_JARS variable)
267endif
268
269# The order matters
270PRODUCT_BOOT_JARS := \
271 $(TARGET_CORE_JARS) \
272 ext \
273 framework \
274 telephony-common \
275 voip-common \
276 ims-common \
277 android.hidl.base-V1.0-java \
278 android.hidl.manager-V1.0-java
279
280# Add the compatibility library that is needed when org.apache.http.legacy
281# is removed from the bootclasspath.
282ifeq ($(REMOVE_OAHL_FROM_BCP),true)
283PRODUCT_PACKAGES += framework-oahl-backward-compatibility
284PRODUCT_BOOT_JARS += framework-oahl-backward-compatibility
285else
286PRODUCT_BOOT_JARS += org.apache.http.legacy.impl
287endif
288
289PRODUCT_COPY_FILES += \
290 system/core/rootdir/init.usb.rc:root/init.usb.rc \
291 system/core/rootdir/init.usb.configfs.rc:root/init.usb.configfs.rc \
292 system/core/rootdir/ueventd.rc:root/ueventd.rc \
293 system/core/rootdir/etc/hosts:system/etc/hosts
294
295# Add the compatibility library that is needed when android.test.base
296# is removed from the bootclasspath.
297ifeq ($(REMOVE_ATB_FROM_BCP),true)
298PRODUCT_PACKAGES += framework-atb-backward-compatibility
299PRODUCT_BOOT_JARS += framework-atb-backward-compatibility
300else
301PRODUCT_BOOT_JARS += android.test.base
302endif
303
304PRODUCT_COPY_FILES += system/core/rootdir/init.zygote32.rc:root/init.zygote32.rc
305PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.zygote=zygote32
306
307PRODUCT_SYSTEM_DEFAULT_PROPERTIES += debug.atrace.tags.enableflags=0
308
309# Packages included only for eng or userdebug builds, previously debug tagged
310PRODUCT_PACKAGES_DEBUG := \
311 adb_keys \
312 iotop \
313 logpersist.start \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100314 perfprofd \
Mathieu Chartier1a4037e2018-06-27 14:14:06 -0700315 procrank \
316 showmap \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100317 sqlite3 \
Christopher Ferris8421f6f2018-07-20 11:22:03 -0700318 strace \
319 unwind_info \
320 unwind_reg_info \
321 unwind_symbols \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100322
323# The set of packages whose code can be loaded by the system server.
324PRODUCT_SYSTEM_SERVER_APPS += \
325 SettingsProvider \
326 WallpaperBackup
327
328# Packages included only for eng/userdebug builds, when building with SANITIZE_TARGET=address
329PRODUCT_PACKAGES_DEBUG_ASAN :=
330
331PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
332 frameworks/base/config/preloaded-classes:system/etc/preloaded-classes)
333
334# Note: it is acceptable to not have a dirty-image-objects file. In that case, the special bin
335# for known dirty objects in the image will be empty.
336PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
337 frameworks/base/config/dirty-image-objects:system/etc/dirty-image-objects)
338
339$(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk)