blob: 91071fde693290777547327031a0b1440a0da678 [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 \
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 \
36 atest \
37 atrace \
38 audioserver \
39 BackupRestoreConfirmation \
40 bcc \
41 bit \
42 blank_screen \
43 blkid \
44 bmgr \
45 bootanimation \
46 bootstat \
47 bpfloader \
48 bu \
49 bugreport \
50 bugreportz \
51 cameraserver \
52 charger \
53 cmd \
54 com.android.location.provider \
55 ContactsProvider \
56 content \
57 crash_dump \
58 CtsShimPrebuilt \
59 CtsShimPrivPrebuilt \
60 debuggerd\
61 DefaultContainerService \
62 dnsmasq \
63 DownloadProvider \
64 dpm \
65 dumpstate \
66 dumpsys \
67 e2fsck \
68 ExtServices \
69 ExtShared \
70 fastboot \
Hongyi Zhangeaa08d42018-10-26 19:20:46 -070071 flags_health_check \
Anton Hansson3a49ed82018-06-26 11:20:34 +010072 framework \
73 framework-res \
74 framework-sysconfig.xml \
75 fsck_msdos \
Anton Hanssone85ec842018-06-26 14:03:38 +010076 fs_config_files_system \
77 fs_config_dirs_system \
Florian Mayera910ba42018-10-15 14:09:08 +010078 heapprofd \
79 heapprofd_client \
Anton Hansson3a49ed82018-06-26 11:20:34 +010080 gatekeeperd \
81 healthd \
82 hid \
83 hwservicemanager \
84 idmap \
85 ime \
86 ims-common \
87 incident \
88 incidentd \
89 incident_helper \
90 incident_report \
Anton Hansson3a49ed82018-06-26 11:20:34 +010091 init.environ.rc \
92 init.rc \
Tom Cherry6195b352018-10-15 17:48:42 -070093 init_system \
Anton Hansson3a49ed82018-06-26 11:20:34 +010094 input \
95 installd \
Igor Murashkin962e2dd2018-10-05 16:28:12 -070096 iorapd \
Anton Hansson3a49ed82018-06-26 11:20:34 +010097 ip \
98 ip6tables \
99 iptables \
100 ip-up-vpn \
101 javax.obex \
102 keystore \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100103 ld.config.txt \
104 ld.mc \
105 libaaudio \
106 libandroid \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100107 libandroidfw \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100108 libandroid_runtime \
109 libandroid_servers \
110 libaudioeffect_jni \
111 libaudioflinger \
112 libaudiopolicymanager \
113 libaudiopolicyservice \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100114 libaudioutils \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100115 libbinder \
Steven Moreland9d554962018-08-29 20:52:48 -0700116 libbinder_ndk \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100117 libc \
118 libcamera2ndk \
119 libcamera_client \
120 libcameraservice \
121 libc_malloc_debug \
122 libc_malloc_hooks \
123 libcutils \
124 libdl \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100125 libdrmframework \
126 libdrmframework_jni \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100127 libEGL \
128 libETC1 \
129 libFFTEm \
130 libfilterfw \
131 libgatekeeper \
132 libGLESv1_CM \
133 libGLESv2 \
134 libGLESv3 \
135 libgui \
136 libhardware \
137 libhardware_legacy \
138 libinput \
139 libinputflinger \
140 libiprouteutil \
141 libjnigraphics \
142 libjpeg \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100143 liblog \
144 libm \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100145 libmdnssd \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100146 libmedia \
147 libmedia_jni \
148 libmediandk \
149 libmediaplayerservice \
150 libmtp \
151 libnetd_client \
152 libnetlink \
153 libnetutils \
154 libneuralnetworks \
155 libOpenMAXAL \
156 libOpenSLES \
157 libpdfium \
158 libpixelflinger \
159 libpower \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100160 libpowermanager \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100161 libradio_metadata \
162 librtp_jni \
163 libsensorservice \
164 libsigchain \
165 libskia \
166 libsonic \
167 libsonivox \
168 libsoundpool \
169 libsoundtrigger \
170 libsoundtriggerservice \
Anton Hanssonc0dd0462018-06-26 10:51:58 +0100171 libspeexresampler \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100172 libsqlite \
173 libstagefright \
174 libstagefright_amrnb_common \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100175 libstagefright_enc_common \
176 libstagefright_foundation \
177 libstagefright_omx \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100178 libstdc++ \
179 libsurfaceflinger \
180 libsurfaceflinger_ddmconnection \
181 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 \
194 lshal \
195 mdnsd \
196 media \
197 media_cmd \
198 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 \
209 org.apache.http.legacy \
210 perfetto \
211 ping \
212 ping6 \
213 platform.xml \
214 pm \
215 pppd \
216 privapp-permissions-platform.xml \
217 racoon \
Tianjie Xu0f68c132018-09-20 12:31:33 -0700218 recovery-persist \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100219 resize2fs \
220 run-as \
221 schedtest \
222 screencap \
223 sdcard \
224 secdiscard \
225 SecureElement \
Anton Hansson56ce36f2018-07-02 14:36:28 +0100226 selinux_policy_system \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100227 sensorservice \
228 service \
229 servicemanager \
230 services \
231 settings \
232 SettingsProvider \
233 sgdisk \
234 Shell \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100235 shell_and_utilities_system \
236 sm \
237 statsd \
238 storaged \
239 surfaceflinger \
240 svc \
241 tc \
242 telecom \
243 telephony-common \
244 thermalserviced \
245 tombstoned \
246 traced \
247 traced_probes \
248 tune2fs \
249 tzdatacheck \
250 uiautomator \
251 uncrypt \
252 usbd \
253 vdc \
254 voip-common \
255 vold \
256 WallpaperBackup \
Tom Cherry3bb4cd62018-08-01 13:45:12 -0700257 watchdogd \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100258 wificond \
259 wifi-service \
260 wm \
261
Yifan Hong17d4bcb2018-07-10 16:43:19 -0700262# VINTF data for system image
Anton Hansson3a49ed82018-06-26 11:20:34 +0100263PRODUCT_PACKAGES += \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100264 framework_manifest.xml \
265 framework_compatibility_matrix.xml \
266
267ifeq ($(TARGET_CORE_JARS),)
268$(error TARGET_CORE_JARS is empty; cannot initialize PRODUCT_BOOT_JARS variable)
269endif
270
271# The order matters
272PRODUCT_BOOT_JARS := \
273 $(TARGET_CORE_JARS) \
274 ext \
275 framework \
276 telephony-common \
277 voip-common \
Steven Morelandccc7ce12018-08-16 11:11:25 -0700278 ims-common
Anton Hansson3a49ed82018-06-26 11:20:34 +0100279
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
Sundong Ahn73e33ea2018-07-31 17:15:01 +0900301PRODUCT_BOOT_JARS += android.test.base.impl
Anton Hansson3a49ed82018-06-26 11:20:34 +0100302endif
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 \
Martijn Coenen3508ef62018-09-12 11:51:48 +0200312 apex_debug_key \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100313 iotop \
314 logpersist.start \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100315 perfprofd \
Mathieu Chartier1a4037e2018-06-27 14:14:06 -0700316 procrank \
317 showmap \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100318 sqlite3 \
Christopher Ferris8421f6f2018-07-20 11:22:03 -0700319 strace \
320 unwind_info \
321 unwind_reg_info \
322 unwind_symbols \
Anton Hansson3a49ed82018-06-26 11:20:34 +0100323
324# The set of packages whose code can be loaded by the system server.
325PRODUCT_SYSTEM_SERVER_APPS += \
326 SettingsProvider \
327 WallpaperBackup
328
329# Packages included only for eng/userdebug builds, when building with SANITIZE_TARGET=address
330PRODUCT_PACKAGES_DEBUG_ASAN :=
331
332PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
333 frameworks/base/config/preloaded-classes:system/etc/preloaded-classes)
334
335# Note: it is acceptable to not have a dirty-image-objects file. In that case, the special bin
336# for known dirty objects in the image will be empty.
337PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
338 frameworks/base/config/dirty-image-objects:system/etc/dirty-image-objects)
339
340$(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk)