blob: 7ad773de4ddc3dcb0c2c314d44f694d56f939d3e [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 adb \
21 adbd \
Anton Hansson3a49ed82018-06-26 11:20:34 +010022 am \
23 android.hidl.allocator@1.0-service \
24 android.hidl.base-V1.0-java \
25 android.hidl.manager-V1.0-java \
26 android.hidl.memory@1.0-impl \
27 android.hidl.memory@1.0-impl.vendor \
Tri Vo7a7e4412018-08-29 20:35:11 -070028 android.system.suspend@1.0-service \
Anton Hansson3a49ed82018-06-26 11:20:34 +010029 android.test.base \
30 android.test.mock \
31 android.test.runner \
Martijn Coenen520b3f92018-08-17 13:46:58 +020032 apexd \
Anton Hansson3a49ed82018-06-26 11:20:34 +010033 applypatch \
34 appops \
35 app_process \
36 appwidget \
37 atest \
38 atrace \
39 audioserver \
40 BackupRestoreConfirmation \
41 bcc \
42 bit \
43 blank_screen \
44 blkid \
45 bmgr \
46 bootanimation \
47 bootstat \
48 bpfloader \
49 bu \
50 bugreport \
51 bugreportz \
Suren Baghdasaryan35fc3282018-12-14 09:31:52 -080052 cgroups.json \
Anton Hansson3a49ed82018-06-26 11:20:34 +010053 charger \
54 cmd \
Adam Vartaniancee5d1d2018-12-11 13:27:01 +000055 com.android.conscrypt \
Anton Hansson3a49ed82018-06-26 11:20:34 +010056 com.android.location.provider \
chenbruce27bfb632018-11-27 11:23:27 +080057 com.android.resolv \
Neil Fuller97d2d0c2018-11-07 18:54:26 +000058 com.android.tzdata \
Anton Hansson3a49ed82018-06-26 11:20:34 +010059 ContactsProvider \
60 content \
61 crash_dump \
62 CtsShimPrebuilt \
63 CtsShimPrivPrebuilt \
64 debuggerd\
65 DefaultContainerService \
Sandeep Patil35972d12018-12-18 09:47:27 -080066 dmctl \
Anton Hansson3a49ed82018-06-26 11:20:34 +010067 dnsmasq \
68 DownloadProvider \
69 dpm \
70 dumpstate \
71 dumpsys \
72 e2fsck \
73 ExtServices \
74 ExtShared \
75 fastboot \
Hongyi Zhangeaa08d42018-10-26 19:20:46 -070076 flags_health_check \
Anton Hansson3a49ed82018-06-26 11:20:34 +010077 framework \
78 framework-res \
79 framework-sysconfig.xml \
80 fsck_msdos \
Anton Hanssone85ec842018-06-26 14:03:38 +010081 fs_config_files_system \
82 fs_config_dirs_system \
Howard Chen6e7500b2019-01-15 15:54:48 +080083 gsid \
Florian Mayera910ba42018-10-15 14:09:08 +010084 heapprofd \
85 heapprofd_client \
Anton Hansson3a49ed82018-06-26 11:20:34 +010086 gatekeeperd \
Peiyong Lin318dde32018-11-01 13:38:25 -070087 gpuservice \
Anton Hansson3a49ed82018-06-26 11:20:34 +010088 hid \
89 hwservicemanager \
90 idmap \
91 ime \
92 ims-common \
93 incident \
94 incidentd \
95 incident_helper \
96 incident_report \
Anton Hansson3a49ed82018-06-26 11:20:34 +010097 init.environ.rc \
98 init.rc \
Tom Cherry6195b352018-10-15 17:48:42 -070099 init_system \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100100 input \
101 installd \
Igor Murashkin962e2dd2018-10-05 16:28:12 -0700102 iorapd \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100103 ip \
104 ip6tables \
105 iptables \
106 ip-up-vpn \
107 javax.obex \
108 keystore \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100109 ld.config.txt \
110 ld.mc \
111 libaaudio \
112 libandroid \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100113 libandroidfw \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100114 libandroid_runtime \
115 libandroid_servers \
116 libaudioeffect_jni \
117 libaudioflinger \
118 libaudiopolicymanager \
119 libaudiopolicyservice \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100120 libaudioutils \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100121 libbinder \
Steven Moreland9d554962018-08-29 20:52:48 -0700122 libbinder_ndk \
Jiyong Park2a0ed362018-12-26 17:32:56 +0900123 libc.bootstrap \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100124 libcamera2ndk \
125 libcamera_client \
126 libcameraservice \
127 libc_malloc_debug \
128 libc_malloc_hooks \
129 libcutils \
Jiyong Park2a0ed362018-12-26 17:32:56 +0900130 libdl.bootstrap \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100131 libdrmframework \
132 libdrmframework_jni \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100133 libEGL \
134 libETC1 \
135 libFFTEm \
136 libfilterfw \
137 libgatekeeper \
138 libGLESv1_CM \
139 libGLESv2 \
140 libGLESv3 \
141 libgui \
142 libhardware \
143 libhardware_legacy \
144 libinput \
145 libinputflinger \
146 libiprouteutil \
147 libjnigraphics \
148 libjpeg \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100149 liblog \
Jiyong Park2a0ed362018-12-26 17:32:56 +0900150 libm.bootstrap \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100151 libmdnssd \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100152 libmedia \
153 libmedia_jni \
154 libmediandk \
155 libmediaplayerservice \
156 libmtp \
157 libnetd_client \
158 libnetlink \
159 libnetutils \
160 libneuralnetworks \
161 libOpenMAXAL \
162 libOpenSLES \
163 libpdfium \
164 libpixelflinger \
165 libpower \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100166 libpowermanager \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100167 libradio_metadata \
168 librtp_jni \
169 libsensorservice \
170 libsigchain \
171 libskia \
172 libsonic \
173 libsonivox \
174 libsoundpool \
175 libsoundtrigger \
176 libsoundtriggerservice \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100177 libspeexresampler \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100178 libsqlite \
179 libstagefright \
180 libstagefright_amrnb_common \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100181 libstagefright_enc_common \
182 libstagefright_foundation \
183 libstagefright_omx \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100184 libstdc++ \
185 libsurfaceflinger \
186 libsurfaceflinger_ddmconnection \
187 libsysutils \
188 libui \
189 libusbhost \
190 libutils \
191 libvorbisidec \
192 libvulkan \
193 libwifi-service \
194 libwilhelm \
195 linker \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100196 lmkd \
197 locksettings \
198 logcat \
199 logd \
Yifan Hong4663e322018-12-19 11:30:10 -0800200 lpdump \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100201 lshal \
202 mdnsd \
203 media \
204 media_cmd \
205 mediadrmserver \
206 mediaextractor \
207 mediametrics \
208 media_profiles_V1_0.dtd \
209 MediaProvider \
210 mediaserver \
211 mke2fs \
212 monkey \
213 mtpd \
214 ndc \
215 netd \
Remi NGUYEN VANa3298102018-11-22 18:13:20 +0900216 NetworkStack \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100217 org.apache.http.legacy \
218 perfetto \
219 ping \
220 ping6 \
221 platform.xml \
222 pm \
223 pppd \
224 privapp-permissions-platform.xml \
225 racoon \
Tianjie Xu0f68c132018-09-20 12:31:33 -0700226 recovery-persist \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100227 resize2fs \
Rafal Slawikf0ca96b2018-11-15 12:58:37 +0000228 rss_hwm_reset \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100229 run-as \
230 schedtest \
231 screencap \
232 sdcard \
233 secdiscard \
234 SecureElement \
Anton Hansson56ce36f2018-07-02 14:36:28 +0100235 selinux_policy_system \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100236 sensorservice \
237 service \
238 servicemanager \
239 services \
240 settings \
241 SettingsProvider \
242 sgdisk \
243 Shell \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100244 shell_and_utilities_system \
245 sm \
246 statsd \
247 storaged \
248 surfaceflinger \
249 svc \
Suren Baghdasaryan35fc3282018-12-14 09:31:52 -0800250 task_profiles.json \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100251 tc \
252 telecom \
253 telephony-common \
254 thermalserviced \
255 tombstoned \
256 traced \
257 traced_probes \
258 tune2fs \
259 tzdatacheck \
260 uiautomator \
261 uncrypt \
262 usbd \
263 vdc \
Eric Holkbc263b22019-01-11 14:14:11 -0800264 viewcompiler \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100265 voip-common \
266 vold \
267 WallpaperBackup \
Tom Cherry3bb4cd62018-08-01 13:45:12 -0700268 watchdogd \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100269 wificond \
270 wifi-service \
271 wm \
272
Yifan Hong17d4bcb2018-07-10 16:43:19 -0700273# VINTF data for system image
Anton Hansson3a49ed82018-06-26 11:20:34 +0100274PRODUCT_PACKAGES += \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100275 framework_manifest.xml \
Yifan Hong28ee89d2019-01-22 15:49:53 -0800276 system_compatibility_matrix.xml \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100277
278ifeq ($(TARGET_CORE_JARS),)
279$(error TARGET_CORE_JARS is empty; cannot initialize PRODUCT_BOOT_JARS variable)
280endif
281
282# The order matters
283PRODUCT_BOOT_JARS := \
284 $(TARGET_CORE_JARS) \
285 ext \
286 framework \
287 telephony-common \
288 voip-common \
Steven Morelandccc7ce12018-08-16 11:11:25 -0700289 ims-common
Dongwon Kang167758a2019-01-18 08:26:30 -0800290PRODUCT_UPDATABLE_BOOT_MODULES := conscrypt
291PRODUCT_UPDATABLE_BOOT_LOCATIONS := \
292 /apex/com.android.conscrypt/javalib/conscrypt.jar
293
Anton Hansson3a49ed82018-06-26 11:20:34 +0100294
Anton Hansson3a49ed82018-06-26 11:20:34 +0100295PRODUCT_COPY_FILES += \
296 system/core/rootdir/init.usb.rc:root/init.usb.rc \
297 system/core/rootdir/init.usb.configfs.rc:root/init.usb.configfs.rc \
298 system/core/rootdir/ueventd.rc:root/ueventd.rc \
299 system/core/rootdir/etc/hosts:system/etc/hosts
300
301# Add the compatibility library that is needed when android.test.base
302# is removed from the bootclasspath.
303ifeq ($(REMOVE_ATB_FROM_BCP),true)
304PRODUCT_PACKAGES += framework-atb-backward-compatibility
305PRODUCT_BOOT_JARS += framework-atb-backward-compatibility
306else
Sundong Ahna9f2ef52018-11-08 18:52:38 +0900307PRODUCT_BOOT_JARS += android.test.base
Anton Hansson3a49ed82018-06-26 11:20:34 +0100308endif
309
310PRODUCT_COPY_FILES += system/core/rootdir/init.zygote32.rc:root/init.zygote32.rc
311PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.zygote=zygote32
312
313PRODUCT_SYSTEM_DEFAULT_PROPERTIES += debug.atrace.tags.enableflags=0
314
315# Packages included only for eng or userdebug builds, previously debug tagged
316PRODUCT_PACKAGES_DEBUG := \
317 adb_keys \
Dan Willemsen0d78e192018-11-16 13:02:32 -0800318 arping \
Dan Willemsenec6cc852019-01-18 14:47:41 -0800319 gdbserver \
320 init-debug.rc \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100321 iotop \
Dan Willemsencf0a2162018-11-16 13:14:42 -0800322 iw \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100323 logpersist.start \
Dan Willemsenec6cc852019-01-18 14:47:41 -0800324 logtagd.rc \
Mathieu Chartier1a4037e2018-06-27 14:14:06 -0700325 procrank \
326 showmap \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100327 sqlite3 \
Dan Willemsen66a468a2018-11-16 13:35:51 -0800328 ss \
Christopher Ferris8421f6f2018-07-20 11:22:03 -0700329 strace \
Dan Willemsenec6cc852019-01-18 14:47:41 -0800330 su \
Zach Riggle06659272018-04-03 15:19:44 -0500331 sanitizer-status \
Dan Willemsen0d78e192018-11-16 13:02:32 -0800332 tracepath \
333 tracepath6 \
334 traceroute6 \
Christopher Ferris8421f6f2018-07-20 11:22:03 -0700335 unwind_info \
336 unwind_reg_info \
337 unwind_symbols \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100338
339# The set of packages whose code can be loaded by the system server.
340PRODUCT_SYSTEM_SERVER_APPS += \
341 SettingsProvider \
342 WallpaperBackup
343
344# Packages included only for eng/userdebug builds, when building with SANITIZE_TARGET=address
345PRODUCT_PACKAGES_DEBUG_ASAN :=
346
347PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
348 frameworks/base/config/preloaded-classes:system/etc/preloaded-classes)
349
350# Note: it is acceptable to not have a dirty-image-objects file. In that case, the special bin
351# for known dirty objects in the image will be empty.
352PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
353 frameworks/base/config/dirty-image-objects:system/etc/dirty-image-objects)
354
355$(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk)