blob: 7bec975018c10e431edeb2552916afac203bc30b [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 \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100125 libcutils \
Jiyong Park2a0ed362018-12-26 17:32:56 +0900126 libdl.bootstrap \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100127 libdrmframework \
128 libdrmframework_jni \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100129 libEGL \
130 libETC1 \
131 libFFTEm \
132 libfilterfw \
133 libgatekeeper \
134 libGLESv1_CM \
135 libGLESv2 \
136 libGLESv3 \
137 libgui \
138 libhardware \
139 libhardware_legacy \
140 libinput \
141 libinputflinger \
142 libiprouteutil \
143 libjnigraphics \
144 libjpeg \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100145 liblog \
Jiyong Park2a0ed362018-12-26 17:32:56 +0900146 libm.bootstrap \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100147 libmdnssd \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100148 libmedia \
149 libmedia_jni \
150 libmediandk \
151 libmediaplayerservice \
152 libmtp \
153 libnetd_client \
154 libnetlink \
155 libnetutils \
156 libneuralnetworks \
157 libOpenMAXAL \
158 libOpenSLES \
159 libpdfium \
160 libpixelflinger \
161 libpower \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100162 libpowermanager \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100163 libradio_metadata \
164 librtp_jni \
165 libsensorservice \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100166 libskia \
167 libsonic \
168 libsonivox \
169 libsoundpool \
170 libsoundtrigger \
171 libsoundtriggerservice \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100172 libspeexresampler \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100173 libsqlite \
174 libstagefright \
175 libstagefright_amrnb_common \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100176 libstagefright_enc_common \
177 libstagefright_foundation \
178 libstagefright_omx \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100179 libstdc++ \
180 libsurfaceflinger \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100181 libsysutils \
182 libui \
183 libusbhost \
184 libutils \
185 libvorbisidec \
186 libvulkan \
187 libwifi-service \
188 libwilhelm \
189 linker \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100190 lmkd \
191 locksettings \
192 logcat \
193 logd \
Yifan Hong4663e322018-12-19 11:30:10 -0800194 lpdump \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100195 lshal \
196 mdnsd \
197 media \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100198 mediadrmserver \
199 mediaextractor \
200 mediametrics \
201 media_profiles_V1_0.dtd \
202 MediaProvider \
203 mediaserver \
204 mke2fs \
205 monkey \
206 mtpd \
207 ndc \
208 netd \
Remi NGUYEN VANa3298102018-11-22 18:13:20 +0900209 NetworkStack \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100210 org.apache.http.legacy \
Tao Bao6f340132019-04-18 18:37:32 -0700211 otacerts \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100212 perfetto \
213 ping \
214 ping6 \
215 platform.xml \
216 pm \
217 pppd \
218 privapp-permissions-platform.xml \
219 racoon \
Tianjie Xu0f68c132018-09-20 12:31:33 -0700220 recovery-persist \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100221 resize2fs \
Rafal Slawikf0ca96b2018-11-15 12:58:37 +0000222 rss_hwm_reset \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100223 run-as \
224 schedtest \
225 screencap \
226 sdcard \
227 secdiscard \
228 SecureElement \
Anton Hansson56ce36f2018-07-02 14:36:28 +0100229 selinux_policy_system \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100230 sensorservice \
231 service \
232 servicemanager \
233 services \
234 settings \
235 SettingsProvider \
236 sgdisk \
237 Shell \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100238 shell_and_utilities_system \
239 sm \
240 statsd \
241 storaged \
242 surfaceflinger \
243 svc \
Suren Baghdasaryan35fc3282018-12-14 09:31:52 -0800244 task_profiles.json \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100245 tc \
246 telecom \
247 telephony-common \
248 thermalserviced \
249 tombstoned \
250 traced \
251 traced_probes \
252 tune2fs \
253 tzdatacheck \
254 uiautomator \
255 uncrypt \
256 usbd \
257 vdc \
Eric Holkbc263b22019-01-11 14:14:11 -0800258 viewcompiler \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100259 voip-common \
260 vold \
261 WallpaperBackup \
Tom Cherry3bb4cd62018-08-01 13:45:12 -0700262 watchdogd \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100263 wificond \
264 wifi-service \
265 wm \
266
Yifan Hong17d4bcb2018-07-10 16:43:19 -0700267# VINTF data for system image
Anton Hansson3a49ed82018-06-26 11:20:34 +0100268PRODUCT_PACKAGES += \
Yifan Hong51e87262019-04-23 17:09:07 -0700269 system_manifest.xml \
Yifan Hong28ee89d2019-01-22 15:49:53 -0800270 system_compatibility_matrix.xml \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100271
Dan Willemsen3d05a082019-02-22 23:06:03 +0000272# Host tools to install
273PRODUCT_HOST_PACKAGES += \
274 BugReport \
275 adb \
Orion Hodsonb099a102019-03-25 13:36:59 +0000276 art-tools \
Dan Willemsen3d05a082019-02-22 23:06:03 +0000277 atest \
278 bcc \
279 bit \
280 e2fsck \
281 fastboot \
282 flags_health_check \
283 icu-data_host_runtime_apex \
Neil Fuller66baeb52019-06-05 13:54:18 +0100284 icu_tzdata.dat_host_tzdata_apex \
Dan Willemsen3d05a082019-02-22 23:06:03 +0000285 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 \
Neil Fuller66baeb52019-06-05 13:54:18 +0100303 tzdata_host_tzdata_apex \
Dan Willemsen3d05a082019-02-22 23:06:03 +0000304 tzlookup.xml_host_runtime_apex \
Neil Fuller66baeb52019-06-05 13:54:18 +0100305 tzlookup.xml_host_tzdata_apex \
Dan Willemsen3d05a082019-02-22 23:06:03 +0000306 tz_version_host \
307 tz_version_host_runtime_apex \
Neil Fuller66baeb52019-06-05 13:54:18 +0100308 tz_version_host_tzdata_apex \
Dan Willemsen3d05a082019-02-22 23:06:03 +0000309
Anton Hansson3a49ed82018-06-26 11:20:34 +0100310ifeq ($(TARGET_CORE_JARS),)
311$(error TARGET_CORE_JARS is empty; cannot initialize PRODUCT_BOOT_JARS variable)
312endif
313
Nicolas Geoffraybfe65c62019-04-02 12:54:09 +0100314# The order matters for runtime class lookup performance.
Anton Hansson3a49ed82018-06-26 11:20:34 +0100315PRODUCT_BOOT_JARS := \
316 $(TARGET_CORE_JARS) \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100317 framework \
Nicolas Geoffraybfe65c62019-04-02 12:54:09 +0100318 ext \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100319 telephony-common \
320 voip-common \
Steven Morelandccc7ce12018-08-16 11:11:25 -0700321 ims-common
Dongwon Kang167758a2019-01-18 08:26:30 -0800322PRODUCT_UPDATABLE_BOOT_MODULES := conscrypt
323PRODUCT_UPDATABLE_BOOT_LOCATIONS := \
324 /apex/com.android.conscrypt/javalib/conscrypt.jar
325
Anton Hansson3a49ed82018-06-26 11:20:34 +0100326
Anton Hansson3a49ed82018-06-26 11:20:34 +0100327PRODUCT_COPY_FILES += \
328 system/core/rootdir/init.usb.rc:root/init.usb.rc \
329 system/core/rootdir/init.usb.configfs.rc:root/init.usb.configfs.rc \
330 system/core/rootdir/ueventd.rc:root/ueventd.rc \
331 system/core/rootdir/etc/hosts:system/etc/hosts
332
333# Add the compatibility library that is needed when android.test.base
334# is removed from the bootclasspath.
Paul Duffinfad04b72019-02-15 12:09:54 +0000335# Default to excluding android.test.base from the bootclasspath.
336ifneq ($(REMOVE_ATB_FROM_BCP),false)
Anton Hansson3a49ed82018-06-26 11:20:34 +0100337PRODUCT_PACKAGES += framework-atb-backward-compatibility
338PRODUCT_BOOT_JARS += framework-atb-backward-compatibility
339else
Sundong Ahna9f2ef52018-11-08 18:52:38 +0900340PRODUCT_BOOT_JARS += android.test.base
Anton Hansson3a49ed82018-06-26 11:20:34 +0100341endif
342
343PRODUCT_COPY_FILES += system/core/rootdir/init.zygote32.rc:root/init.zygote32.rc
344PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.zygote=zygote32
345
346PRODUCT_SYSTEM_DEFAULT_PROPERTIES += debug.atrace.tags.enableflags=0
347
348# Packages included only for eng or userdebug builds, previously debug tagged
349PRODUCT_PACKAGES_DEBUG := \
350 adb_keys \
Dan Willemsen0d78e192018-11-16 13:02:32 -0800351 arping \
Dan Willemsenec6cc852019-01-18 14:47:41 -0800352 gdbserver \
353 init-debug.rc \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100354 iotop \
Dan Willemsencf0a2162018-11-16 13:14:42 -0800355 iw \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100356 logpersist.start \
Dan Willemsenec6cc852019-01-18 14:47:41 -0800357 logtagd.rc \
Mathieu Chartier1a4037e2018-06-27 14:14:06 -0700358 procrank \
359 showmap \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100360 sqlite3 \
Dan Willemsen66a468a2018-11-16 13:35:51 -0800361 ss \
Andreas Gampe306dbcc2019-03-04 16:34:56 -0800362 start_with_lockagent \
Christopher Ferris8421f6f2018-07-20 11:22:03 -0700363 strace \
Dan Willemsenec6cc852019-01-18 14:47:41 -0800364 su \
Zach Riggle06659272018-04-03 15:19:44 -0500365 sanitizer-status \
Dan Willemsen0d78e192018-11-16 13:02:32 -0800366 tracepath \
367 tracepath6 \
368 traceroute6 \
Christopher Ferris8421f6f2018-07-20 11:22:03 -0700369 unwind_info \
370 unwind_reg_info \
371 unwind_symbols \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100372
373# The set of packages whose code can be loaded by the system server.
374PRODUCT_SYSTEM_SERVER_APPS += \
375 SettingsProvider \
376 WallpaperBackup
377
378# Packages included only for eng/userdebug builds, when building with SANITIZE_TARGET=address
379PRODUCT_PACKAGES_DEBUG_ASAN :=
380
381PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
382 frameworks/base/config/preloaded-classes:system/etc/preloaded-classes)
383
384# Note: it is acceptable to not have a dirty-image-objects file. In that case, the special bin
385# for known dirty objects in the image will be empty.
386PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
387 frameworks/base/config/dirty-image-objects:system/etc/dirty-image-objects)
388
389$(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk)