blob: 87076a94bfbdde73e2f8bf94ef7f59d6aaf37303 [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 += \
Alex Buynytskyy8a96a652018-12-14 14:20:51 -080019 abb \
Anton Hansson3a49ed82018-06-26 11:20:34 +010020 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 \
Tri Vo7a7e4412018-08-29 20:35:11 -070027 android.system.suspend@1.0-service \
Anton Hansson3a49ed82018-06-26 11:20:34 +010028 android.test.base \
29 android.test.mock \
30 android.test.runner \
Martijn Coenen520b3f92018-08-17 13:46:58 +020031 apexd \
Anton Hansson3a49ed82018-06-26 11:20:34 +010032 applypatch \
33 appops \
34 app_process \
35 appwidget \
Tri Vo8c52dff2019-01-27 19:08:01 -080036 ashmemd \
Anton Hansson3a49ed82018-06-26 11:20:34 +010037 atrace \
38 audioserver \
39 BackupRestoreConfirmation \
40 bcc \
Anton Hansson3a49ed82018-06-26 11:20:34 +010041 blank_screen \
42 blkid \
43 bmgr \
44 bootanimation \
45 bootstat \
46 bpfloader \
47 bu \
48 bugreport \
49 bugreportz \
Suren Baghdasaryan35fc3282018-12-14 09:31:52 -080050 cgroups.json \
Anton Hansson3a49ed82018-06-26 11:20:34 +010051 charger \
52 cmd \
Adam Vartaniancee5d1d2018-12-11 13:27:01 +000053 com.android.conscrypt \
Anton Hansson3a49ed82018-06-26 11:20:34 +010054 com.android.location.provider \
chenbruce27bfb632018-11-27 11:23:27 +080055 com.android.resolv \
Neil Fuller97d2d0c2018-11-07 18:54:26 +000056 com.android.tzdata \
Anton Hansson3a49ed82018-06-26 11:20:34 +010057 ContactsProvider \
58 content \
59 crash_dump \
60 CtsShimPrebuilt \
61 CtsShimPrivPrebuilt \
62 debuggerd\
63 DefaultContainerService \
Sandeep Patil35972d12018-12-18 09:47:27 -080064 dmctl \
Anton Hansson3a49ed82018-06-26 11:20:34 +010065 dnsmasq \
66 DownloadProvider \
67 dpm \
68 dumpstate \
69 dumpsys \
70 e2fsck \
71 ExtServices \
72 ExtShared \
Hongyi Zhangeaa08d42018-10-26 19:20:46 -070073 flags_health_check \
Anton Hansson3a49ed82018-06-26 11:20:34 +010074 framework \
75 framework-res \
76 framework-sysconfig.xml \
77 fsck_msdos \
Anton Hanssone85ec842018-06-26 14:03:38 +010078 fs_config_files_system \
79 fs_config_dirs_system \
Howard Chen6e7500b2019-01-15 15:54:48 +080080 gsid \
Florian Mayera910ba42018-10-15 14:09:08 +010081 heapprofd \
82 heapprofd_client \
Anton Hansson3a49ed82018-06-26 11:20:34 +010083 gatekeeperd \
Peiyong Lin318dde32018-11-01 13:38:25 -070084 gpuservice \
Anton Hansson3a49ed82018-06-26 11:20:34 +010085 hid \
86 hwservicemanager \
87 idmap \
88 ime \
89 ims-common \
90 incident \
91 incidentd \
92 incident_helper \
Anton Hansson3a49ed82018-06-26 11:20:34 +010093 init.environ.rc \
94 init.rc \
Tom Cherry6195b352018-10-15 17:48:42 -070095 init_system \
Anton Hansson3a49ed82018-06-26 11:20:34 +010096 input \
97 installd \
Igor Murashkin962e2dd2018-10-05 16:28:12 -070098 iorapd \
Anton Hansson3a49ed82018-06-26 11:20:34 +010099 ip \
100 ip6tables \
101 iptables \
102 ip-up-vpn \
103 javax.obex \
104 keystore \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100105 ld.config.txt \
106 ld.mc \
107 libaaudio \
108 libandroid \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100109 libandroidfw \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100110 libandroid_runtime \
111 libandroid_servers \
Orion Hodson13ef2eb2019-02-20 13:35:31 +0000112 libartpalette-system \
Tri Vo8c52dff2019-01-27 19:08:01 -0800113 libashmemd_client \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100114 libaudioeffect_jni \
115 libaudioflinger \
116 libaudiopolicymanager \
117 libaudiopolicyservice \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100118 libaudioutils \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100119 libbinder \
Steven Moreland9d554962018-08-29 20:52:48 -0700120 libbinder_ndk \
Jiyong Park2a0ed362018-12-26 17:32:56 +0900121 libc.bootstrap \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100122 libcamera2ndk \
123 libcamera_client \
124 libcameraservice \
125 libc_malloc_debug \
126 libc_malloc_hooks \
127 libcutils \
Jiyong Park2a0ed362018-12-26 17:32:56 +0900128 libdl.bootstrap \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100129 libdrmframework \
130 libdrmframework_jni \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100131 libEGL \
132 libETC1 \
133 libFFTEm \
134 libfilterfw \
135 libgatekeeper \
136 libGLESv1_CM \
137 libGLESv2 \
138 libGLESv3 \
139 libgui \
140 libhardware \
141 libhardware_legacy \
142 libinput \
143 libinputflinger \
144 libiprouteutil \
145 libjnigraphics \
146 libjpeg \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100147 liblog \
Jiyong Park2a0ed362018-12-26 17:32:56 +0900148 libm.bootstrap \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100149 libmdnssd \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100150 libmedia \
151 libmedia_jni \
152 libmediandk \
153 libmediaplayerservice \
154 libmtp \
155 libnetd_client \
156 libnetlink \
157 libnetutils \
158 libneuralnetworks \
159 libOpenMAXAL \
160 libOpenSLES \
161 libpdfium \
162 libpixelflinger \
163 libpower \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100164 libpowermanager \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100165 libradio_metadata \
166 librtp_jni \
167 libsensorservice \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100168 libskia \
169 libsonic \
170 libsonivox \
171 libsoundpool \
172 libsoundtrigger \
173 libsoundtriggerservice \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100174 libspeexresampler \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100175 libsqlite \
176 libstagefright \
177 libstagefright_amrnb_common \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100178 libstagefright_enc_common \
179 libstagefright_foundation \
180 libstagefright_omx \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100181 libstdc++ \
182 libsurfaceflinger \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100183 libsysutils \
184 libui \
185 libusbhost \
186 libutils \
187 libvorbisidec \
188 libvulkan \
189 libwifi-service \
190 libwilhelm \
191 linker \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100192 lmkd \
193 locksettings \
194 logcat \
195 logd \
Yifan Hong4663e322018-12-19 11:30:10 -0800196 lpdump \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100197 lshal \
198 mdnsd \
199 media \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100200 mediadrmserver \
201 mediaextractor \
202 mediametrics \
203 media_profiles_V1_0.dtd \
204 MediaProvider \
205 mediaserver \
206 mke2fs \
207 monkey \
208 mtpd \
209 ndc \
210 netd \
Remi NGUYEN VANa3298102018-11-22 18:13:20 +0900211 NetworkStack \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100212 org.apache.http.legacy \
213 perfetto \
214 ping \
215 ping6 \
216 platform.xml \
217 pm \
218 pppd \
219 privapp-permissions-platform.xml \
220 racoon \
Tianjie Xu0f68c132018-09-20 12:31:33 -0700221 recovery-persist \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100222 resize2fs \
Rafal Slawikf0ca96b2018-11-15 12:58:37 +0000223 rss_hwm_reset \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100224 run-as \
225 schedtest \
226 screencap \
227 sdcard \
228 secdiscard \
229 SecureElement \
Anton Hansson56ce36f2018-07-02 14:36:28 +0100230 selinux_policy_system \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100231 sensorservice \
232 service \
233 servicemanager \
234 services \
235 settings \
236 SettingsProvider \
237 sgdisk \
238 Shell \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100239 shell_and_utilities_system \
240 sm \
241 statsd \
242 storaged \
243 surfaceflinger \
244 svc \
Suren Baghdasaryan35fc3282018-12-14 09:31:52 -0800245 task_profiles.json \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100246 tc \
247 telecom \
248 telephony-common \
249 thermalserviced \
250 tombstoned \
251 traced \
252 traced_probes \
253 tune2fs \
254 tzdatacheck \
255 uiautomator \
256 uncrypt \
257 usbd \
258 vdc \
Eric Holkbc263b22019-01-11 14:14:11 -0800259 viewcompiler \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100260 voip-common \
261 vold \
262 WallpaperBackup \
Tom Cherry3bb4cd62018-08-01 13:45:12 -0700263 watchdogd \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100264 wificond \
265 wifi-service \
266 wm \
267
Yifan Hong17d4bcb2018-07-10 16:43:19 -0700268# VINTF data for system image
Anton Hansson3a49ed82018-06-26 11:20:34 +0100269PRODUCT_PACKAGES += \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100270 framework_manifest.xml \
Yifan Hong28ee89d2019-01-22 15:49:53 -0800271 system_compatibility_matrix.xml \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100272
Dan Willemsen3d05a082019-02-22 23:06:03 +0000273# Host tools to install
274PRODUCT_HOST_PACKAGES += \
275 BugReport \
276 adb \
Orion Hodsonb099a102019-03-25 13:36:59 +0000277 art-tools \
Dan Willemsen3d05a082019-02-22 23:06:03 +0000278 atest \
279 bcc \
280 bit \
281 e2fsck \
282 fastboot \
283 flags_health_check \
284 icu-data_host_runtime_apex \
285 incident_report \
286 ld.mc \
287 lpdump \
288 mdnsd \
289 minigzip \
290 mke2fs \
291 resize2fs \
Dan Willemsen3d05a082019-02-22 23:06:03 +0000292 sgdisk \
Dan Willemsen3d05a082019-02-22 23:06:03 +0000293 sqlite3 \
294 tinyplay \
295 tune2fs \
296 tzdatacheck \
297 unwind_info \
298 unwind_reg_info \
299 unwind_symbols \
300 viewcompiler \
301 tzdata_host \
302 tzdata_host_runtime_apex \
303 tzlookup.xml_host_runtime_apex \
304 tz_version_host \
305 tz_version_host_runtime_apex \
306
Anton Hansson3a49ed82018-06-26 11:20:34 +0100307ifeq ($(TARGET_CORE_JARS),)
308$(error TARGET_CORE_JARS is empty; cannot initialize PRODUCT_BOOT_JARS variable)
309endif
310
Nicolas Geoffraybfe65c62019-04-02 12:54:09 +0100311# The order matters for runtime class lookup performance.
Anton Hansson3a49ed82018-06-26 11:20:34 +0100312PRODUCT_BOOT_JARS := \
313 $(TARGET_CORE_JARS) \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100314 framework \
Nicolas Geoffraybfe65c62019-04-02 12:54:09 +0100315 ext \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100316 telephony-common \
317 voip-common \
Steven Morelandccc7ce12018-08-16 11:11:25 -0700318 ims-common
Dongwon Kang167758a2019-01-18 08:26:30 -0800319PRODUCT_UPDATABLE_BOOT_MODULES := conscrypt
320PRODUCT_UPDATABLE_BOOT_LOCATIONS := \
321 /apex/com.android.conscrypt/javalib/conscrypt.jar
322
Anton Hansson3a49ed82018-06-26 11:20:34 +0100323
Anton Hansson3a49ed82018-06-26 11:20:34 +0100324PRODUCT_COPY_FILES += \
325 system/core/rootdir/init.usb.rc:root/init.usb.rc \
326 system/core/rootdir/init.usb.configfs.rc:root/init.usb.configfs.rc \
327 system/core/rootdir/ueventd.rc:root/ueventd.rc \
328 system/core/rootdir/etc/hosts:system/etc/hosts
329
330# Add the compatibility library that is needed when android.test.base
331# is removed from the bootclasspath.
Paul Duffinfad04b72019-02-15 12:09:54 +0000332# Default to excluding android.test.base from the bootclasspath.
333ifneq ($(REMOVE_ATB_FROM_BCP),false)
Anton Hansson3a49ed82018-06-26 11:20:34 +0100334PRODUCT_PACKAGES += framework-atb-backward-compatibility
335PRODUCT_BOOT_JARS += framework-atb-backward-compatibility
336else
Sundong Ahna9f2ef52018-11-08 18:52:38 +0900337PRODUCT_BOOT_JARS += android.test.base
Anton Hansson3a49ed82018-06-26 11:20:34 +0100338endif
339
340PRODUCT_COPY_FILES += system/core/rootdir/init.zygote32.rc:root/init.zygote32.rc
341PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.zygote=zygote32
342
343PRODUCT_SYSTEM_DEFAULT_PROPERTIES += debug.atrace.tags.enableflags=0
344
345# Packages included only for eng or userdebug builds, previously debug tagged
346PRODUCT_PACKAGES_DEBUG := \
347 adb_keys \
Dan Willemsen0d78e192018-11-16 13:02:32 -0800348 arping \
Dan Willemsenec6cc852019-01-18 14:47:41 -0800349 gdbserver \
350 init-debug.rc \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100351 iotop \
Dan Willemsencf0a2162018-11-16 13:14:42 -0800352 iw \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100353 logpersist.start \
Dan Willemsenec6cc852019-01-18 14:47:41 -0800354 logtagd.rc \
Mathieu Chartier1a4037e2018-06-27 14:14:06 -0700355 procrank \
356 showmap \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100357 sqlite3 \
Dan Willemsen66a468a2018-11-16 13:35:51 -0800358 ss \
Christopher Ferris8421f6f2018-07-20 11:22:03 -0700359 strace \
Dan Willemsenec6cc852019-01-18 14:47:41 -0800360 su \
Zach Riggle06659272018-04-03 15:19:44 -0500361 sanitizer-status \
Dan Willemsen0d78e192018-11-16 13:02:32 -0800362 tracepath \
363 tracepath6 \
364 traceroute6 \
Christopher Ferris8421f6f2018-07-20 11:22:03 -0700365 unwind_info \
366 unwind_reg_info \
367 unwind_symbols \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100368
369# The set of packages whose code can be loaded by the system server.
370PRODUCT_SYSTEM_SERVER_APPS += \
371 SettingsProvider \
372 WallpaperBackup
373
374# Packages included only for eng/userdebug builds, when building with SANITIZE_TARGET=address
375PRODUCT_PACKAGES_DEBUG_ASAN :=
376
377PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
378 frameworks/base/config/preloaded-classes:system/etc/preloaded-classes)
379
380# Note: it is acceptable to not have a dirty-image-objects file. In that case, the special bin
381# for known dirty objects in the image will be empty.
382PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
383 frameworks/base/config/dirty-image-objects:system/etc/dirty-image-objects)
384
385$(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk)