blob: e9e8b497edfdf942bafdd5670f33b23ac37e95bf [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 \
Tao Bao6f340132019-04-18 18:37:32 -0700213 otacerts \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100214 perfetto \
215 ping \
216 ping6 \
217 platform.xml \
218 pm \
219 pppd \
220 privapp-permissions-platform.xml \
221 racoon \
Tianjie Xu0f68c132018-09-20 12:31:33 -0700222 recovery-persist \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100223 resize2fs \
Rafal Slawikf0ca96b2018-11-15 12:58:37 +0000224 rss_hwm_reset \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100225 run-as \
226 schedtest \
227 screencap \
228 sdcard \
229 secdiscard \
230 SecureElement \
Anton Hansson56ce36f2018-07-02 14:36:28 +0100231 selinux_policy_system \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100232 sensorservice \
233 service \
234 servicemanager \
235 services \
236 settings \
237 SettingsProvider \
238 sgdisk \
239 Shell \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100240 shell_and_utilities_system \
241 sm \
242 statsd \
243 storaged \
244 surfaceflinger \
245 svc \
Suren Baghdasaryan35fc3282018-12-14 09:31:52 -0800246 task_profiles.json \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100247 tc \
248 telecom \
249 telephony-common \
250 thermalserviced \
251 tombstoned \
252 traced \
253 traced_probes \
254 tune2fs \
255 tzdatacheck \
256 uiautomator \
257 uncrypt \
258 usbd \
259 vdc \
Eric Holkbc263b22019-01-11 14:14:11 -0800260 viewcompiler \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100261 voip-common \
262 vold \
263 WallpaperBackup \
Tom Cherry3bb4cd62018-08-01 13:45:12 -0700264 watchdogd \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100265 wificond \
266 wifi-service \
267 wm \
268
Yifan Hong17d4bcb2018-07-10 16:43:19 -0700269# VINTF data for system image
Anton Hansson3a49ed82018-06-26 11:20:34 +0100270PRODUCT_PACKAGES += \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100271 framework_manifest.xml \
Yifan Hong28ee89d2019-01-22 15:49:53 -0800272 system_compatibility_matrix.xml \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100273
Dan Willemsen3d05a082019-02-22 23:06:03 +0000274# Host tools to install
275PRODUCT_HOST_PACKAGES += \
276 BugReport \
277 adb \
Orion Hodsonb099a102019-03-25 13:36:59 +0000278 art-tools \
Dan Willemsen3d05a082019-02-22 23:06:03 +0000279 atest \
280 bcc \
281 bit \
282 e2fsck \
283 fastboot \
284 flags_health_check \
285 icu-data_host_runtime_apex \
286 incident_report \
287 ld.mc \
288 lpdump \
289 mdnsd \
290 minigzip \
291 mke2fs \
292 resize2fs \
Dan Willemsen3d05a082019-02-22 23:06:03 +0000293 sgdisk \
Dan Willemsen3d05a082019-02-22 23:06:03 +0000294 sqlite3 \
295 tinyplay \
296 tune2fs \
297 tzdatacheck \
298 unwind_info \
299 unwind_reg_info \
300 unwind_symbols \
301 viewcompiler \
302 tzdata_host \
303 tzdata_host_runtime_apex \
304 tzlookup.xml_host_runtime_apex \
305 tz_version_host \
306 tz_version_host_runtime_apex \
307
Anton Hansson3a49ed82018-06-26 11:20:34 +0100308ifeq ($(TARGET_CORE_JARS),)
309$(error TARGET_CORE_JARS is empty; cannot initialize PRODUCT_BOOT_JARS variable)
310endif
311
Nicolas Geoffraybfe65c62019-04-02 12:54:09 +0100312# The order matters for runtime class lookup performance.
Anton Hansson3a49ed82018-06-26 11:20:34 +0100313PRODUCT_BOOT_JARS := \
314 $(TARGET_CORE_JARS) \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100315 framework \
Nicolas Geoffraybfe65c62019-04-02 12:54:09 +0100316 ext \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100317 telephony-common \
318 voip-common \
Steven Morelandccc7ce12018-08-16 11:11:25 -0700319 ims-common
Dongwon Kang167758a2019-01-18 08:26:30 -0800320PRODUCT_UPDATABLE_BOOT_MODULES := conscrypt
321PRODUCT_UPDATABLE_BOOT_LOCATIONS := \
322 /apex/com.android.conscrypt/javalib/conscrypt.jar
323
Anton Hansson3a49ed82018-06-26 11:20:34 +0100324
Anton Hansson3a49ed82018-06-26 11:20:34 +0100325PRODUCT_COPY_FILES += \
326 system/core/rootdir/init.usb.rc:root/init.usb.rc \
327 system/core/rootdir/init.usb.configfs.rc:root/init.usb.configfs.rc \
328 system/core/rootdir/ueventd.rc:root/ueventd.rc \
329 system/core/rootdir/etc/hosts:system/etc/hosts
330
331# Add the compatibility library that is needed when android.test.base
332# is removed from the bootclasspath.
Paul Duffinfad04b72019-02-15 12:09:54 +0000333# Default to excluding android.test.base from the bootclasspath.
334ifneq ($(REMOVE_ATB_FROM_BCP),false)
Anton Hansson3a49ed82018-06-26 11:20:34 +0100335PRODUCT_PACKAGES += framework-atb-backward-compatibility
336PRODUCT_BOOT_JARS += framework-atb-backward-compatibility
337else
Sundong Ahna9f2ef52018-11-08 18:52:38 +0900338PRODUCT_BOOT_JARS += android.test.base
Anton Hansson3a49ed82018-06-26 11:20:34 +0100339endif
340
341PRODUCT_COPY_FILES += system/core/rootdir/init.zygote32.rc:root/init.zygote32.rc
342PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.zygote=zygote32
343
344PRODUCT_SYSTEM_DEFAULT_PROPERTIES += debug.atrace.tags.enableflags=0
345
346# Packages included only for eng or userdebug builds, previously debug tagged
347PRODUCT_PACKAGES_DEBUG := \
348 adb_keys \
Dan Willemsen0d78e192018-11-16 13:02:32 -0800349 arping \
Dan Willemsenec6cc852019-01-18 14:47:41 -0800350 gdbserver \
351 init-debug.rc \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100352 iotop \
Dan Willemsencf0a2162018-11-16 13:14:42 -0800353 iw \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100354 logpersist.start \
Dan Willemsenec6cc852019-01-18 14:47:41 -0800355 logtagd.rc \
Mathieu Chartier1a4037e2018-06-27 14:14:06 -0700356 procrank \
357 showmap \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100358 sqlite3 \
Dan Willemsen66a468a2018-11-16 13:35:51 -0800359 ss \
Andreas Gampe306dbcc2019-03-04 16:34:56 -0800360 start_with_lockagent \
Christopher Ferris8421f6f2018-07-20 11:22:03 -0700361 strace \
Dan Willemsenec6cc852019-01-18 14:47:41 -0800362 su \
Zach Riggle06659272018-04-03 15:19:44 -0500363 sanitizer-status \
Dan Willemsen0d78e192018-11-16 13:02:32 -0800364 tracepath \
365 tracepath6 \
366 traceroute6 \
Christopher Ferris8421f6f2018-07-20 11:22:03 -0700367 unwind_info \
368 unwind_reg_info \
369 unwind_symbols \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100370
371# The set of packages whose code can be loaded by the system server.
372PRODUCT_SYSTEM_SERVER_APPS += \
373 SettingsProvider \
374 WallpaperBackup
375
376# Packages included only for eng/userdebug builds, when building with SANITIZE_TARGET=address
377PRODUCT_PACKAGES_DEBUG_ASAN :=
378
379PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
380 frameworks/base/config/preloaded-classes:system/etc/preloaded-classes)
381
382# Note: it is acceptable to not have a dirty-image-objects file. In that case, the special bin
383# for known dirty objects in the image will be empty.
384PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
385 frameworks/base/config/dirty-image-objects:system/etc/dirty-image-objects)
386
387$(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk)