1# 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 += \ 19 abb \ 20 adbd \ 21 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 \ 27 android.system.suspend@1.0-service \ 28 android.test.base \ 29 android.test.mock \ 30 android.test.runner \ 31 apexd \ 32 applypatch \ 33 appops \ 34 app_process \ 35 appwidget \ 36 ashmemd \ 37 atrace \ 38 audioserver \ 39 BackupRestoreConfirmation \ 40 bcc \ 41 blank_screen \ 42 blkid \ 43 bmgr \ 44 bootanimation \ 45 bootstat \ 46 bpfloader \ 47 bu \ 48 bugreport \ 49 bugreportz \ 50 cgroups.json \ 51 charger \ 52 cmd \ 53 com.android.conscrypt \ 54 com.android.location.provider \ 55 com.android.media \ 56 com.android.media.swcodec \ 57 com.android.resolv \ 58 com.android.tzdata \ 59 ContactsProvider \ 60 content \ 61 crash_dump \ 62 CtsShimPrebuilt \ 63 CtsShimPrivPrebuilt \ 64 debuggerd\ 65 device_config \ 66 dmctl \ 67 dnsmasq \ 68 DownloadProvider \ 69 dpm \ 70 dumpstate \ 71 dumpsys \ 72 DynamicSystemInstallationService \ 73 e2fsck \ 74 ExtServices \ 75 ExtShared \ 76 flags_health_check \ 77 framework \ 78 framework-res \ 79 framework-sysconfig.xml \ 80 fsck_msdos \ 81 fs_config_files_system \ 82 fs_config_dirs_system \ 83 gsid \ 84 gsi_tool \ 85 heapprofd \ 86 heapprofd_client \ 87 gatekeeperd \ 88 gpuservice \ 89 hid \ 90 hwservicemanager \ 91 idmap \ 92 idmap2 \ 93 idmap2d \ 94 ime \ 95 ims-common \ 96 incident \ 97 incidentd \ 98 incident_helper \ 99 init.environ.rc \ 100 init.rc \ 101 init_system \ 102 input \ 103 installd \ 104 iorapd \ 105 ip \ 106 ip6tables \ 107 iptables \ 108 ip-up-vpn \ 109 javax.obex \ 110 keystore \ 111 ld.config.txt \ 112 ld.mc \ 113 libaaudio \ 114 libamidi \ 115 libandroid \ 116 libandroidfw \ 117 libandroid_runtime \ 118 libandroid_servers \ 119 libartpalette-system \ 120 libashmemd_client \ 121 libaudioeffect_jni \ 122 libbinder \ 123 libbinder_ndk \ 124 libc.bootstrap \ 125 libcamera2ndk \ 126 libcamera_client \ 127 libcameraservice \ 128 libc_malloc_debug \ 129 libc_malloc_hooks \ 130 libcutils \ 131 libdl.bootstrap \ 132 libdrmframework \ 133 libdrmframework_jni \ 134 libEGL \ 135 libETC1 \ 136 libFFTEm \ 137 libfilterfw \ 138 libgatekeeper \ 139 libGLESv1_CM \ 140 libGLESv2 \ 141 libGLESv3 \ 142 libgui \ 143 libhardware \ 144 libhardware_legacy \ 145 libinput \ 146 libinputflinger \ 147 libiprouteutil \ 148 libjnigraphics \ 149 libjpeg \ 150 liblog \ 151 libm.bootstrap \ 152 libmdnssd \ 153 libmedia \ 154 libmedia_jni \ 155 libmediandk \ 156 libmtp \ 157 libnetd_client \ 158 libnetlink \ 159 libnetutils \ 160 libneuralnetworks \ 161 libOpenMAXAL \ 162 libOpenSLES \ 163 libpdfium \ 164 libpixelflinger \ 165 libpower \ 166 libpowermanager \ 167 libradio_metadata \ 168 librtp_jni \ 169 libsensorservice \ 170 libsfplugin_ccodec \ 171 libskia \ 172 libsonic \ 173 libsonivox \ 174 libsoundpool \ 175 libspeexresampler \ 176 libsqlite \ 177 libstagefright \ 178 libstagefright_amrnb_common \ 179 libstagefright_enc_common \ 180 libstagefright_foundation \ 181 libstagefright_omx \ 182 libstdc++ \ 183 libsurfaceflinger \ 184 libsysutils \ 185 libui \ 186 libusbhost \ 187 libutils \ 188 libvorbisidec \ 189 libvulkan \ 190 libwifi-service \ 191 libwilhelm \ 192 linker \ 193 lmkd \ 194 LocalTransport \ 195 locksettings \ 196 logcat \ 197 logd \ 198 lpdump \ 199 lshal \ 200 mdnsd \ 201 media \ 202 mediacodec.policy \ 203 mediadrmserver \ 204 mediaextractor \ 205 mediametrics \ 206 media_profiles_V1_0.dtd \ 207 MediaProvider \ 208 mediaserver \ 209 mke2fs \ 210 monkey \ 211 mtpd \ 212 ndc \ 213 netd \ 214 NetworkStack \ 215 org.apache.http.legacy \ 216 PackageInstaller \ 217 perfetto \ 218 PermissionController \ 219 ping \ 220 ping6 \ 221 platform.xml \ 222 pm \ 223 pppd \ 224 privapp-permissions-platform.xml \ 225 racoon \ 226 recovery-persist \ 227 resize2fs \ 228 rss_hwm_reset \ 229 run-as \ 230 schedtest \ 231 screencap \ 232 sdcard \ 233 secdiscard \ 234 SecureElement \ 235 selinux_policy_system \ 236 sensorservice \ 237 service \ 238 servicemanager \ 239 services \ 240 settings \ 241 SettingsProvider \ 242 sgdisk \ 243 Shell \ 244 shell_and_utilities_system \ 245 sm \ 246 statsd \ 247 storaged \ 248 surfaceflinger \ 249 svc \ 250 task_profiles.json \ 251 tc \ 252 telecom \ 253 telephony-common \ 254 tombstoned \ 255 traced \ 256 traced_probes \ 257 tune2fs \ 258 tzdatacheck \ 259 uiautomator \ 260 uncrypt \ 261 usbd \ 262 vdc \ 263 viewcompiler \ 264 voip-common \ 265 vold \ 266 WallpaperBackup \ 267 watchdogd \ 268 wificond \ 269 wifi-service \ 270 wm \ 271 272# VINTF data for system image 273PRODUCT_PACKAGES += \ 274 system_manifest.xml \ 275 system_compatibility_matrix.xml \ 276 277# Host tools to install 278PRODUCT_HOST_PACKAGES += \ 279 BugReport \ 280 adb \ 281 art-tools \ 282 atest \ 283 bcc \ 284 bit \ 285 e2fsck \ 286 fastboot \ 287 flags_health_check \ 288 icu-data_host_runtime_apex \ 289 idmap2 \ 290 incident_report \ 291 ld.mc \ 292 lpdump \ 293 mdnsd \ 294 minigzip \ 295 mke2fs \ 296 resize2fs \ 297 sgdisk \ 298 sqlite3 \ 299 tinyplay \ 300 tune2fs \ 301 tzdatacheck \ 302 unwind_info \ 303 unwind_reg_info \ 304 unwind_symbols \ 305 viewcompiler \ 306 tzdata_host \ 307 tzdata_host_runtime_apex \ 308 tzlookup.xml_host_runtime_apex \ 309 tz_version_host \ 310 tz_version_host_runtime_apex \ 311 312ifeq ($(TARGET_CORE_JARS),) 313$(error TARGET_CORE_JARS is empty; cannot initialize PRODUCT_BOOT_JARS variable) 314endif 315 316# The order matters for runtime class lookup performance. 317PRODUCT_BOOT_JARS := \ 318 $(TARGET_CORE_JARS) \ 319 framework \ 320 ext \ 321 telephony-common \ 322 voip-common \ 323 ims-common \ 324 updatable-media 325PRODUCT_UPDATABLE_BOOT_MODULES := conscrypt updatable-media 326PRODUCT_UPDATABLE_BOOT_LOCATIONS := \ 327 /apex/com.android.conscrypt/javalib/conscrypt.jar \ 328 /apex/com.android.media/javalib/updatable-media.jar 329 330 331PRODUCT_COPY_FILES += \ 332 system/core/rootdir/init.usb.rc:root/init.usb.rc \ 333 system/core/rootdir/init.usb.configfs.rc:root/init.usb.configfs.rc \ 334 system/core/rootdir/ueventd.rc:root/ueventd.rc \ 335 system/core/rootdir/etc/hosts:system/etc/hosts 336 337# Add the compatibility library that is needed when android.test.base 338# is removed from the bootclasspath. 339ifeq ($(REMOVE_ATB_FROM_BCP),true) 340PRODUCT_PACKAGES += framework-atb-backward-compatibility 341PRODUCT_BOOT_JARS += framework-atb-backward-compatibility 342else 343PRODUCT_BOOT_JARS += android.test.base 344endif 345 346PRODUCT_COPY_FILES += system/core/rootdir/init.zygote32.rc:root/init.zygote32.rc 347PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.zygote=zygote32 348 349PRODUCT_SYSTEM_DEFAULT_PROPERTIES += debug.atrace.tags.enableflags=0 350 351# Packages included only for eng or userdebug builds, previously debug tagged 352PRODUCT_PACKAGES_DEBUG := \ 353 adb_keys \ 354 arping \ 355 gdbserver \ 356 init-debug.rc \ 357 iotop \ 358 iw \ 359 logpersist.start \ 360 logtagd.rc \ 361 procrank \ 362 showmap \ 363 sqlite3 \ 364 ss \ 365 strace \ 366 su \ 367 sanitizer-status \ 368 tracepath \ 369 tracepath6 \ 370 traceroute6 \ 371 unwind_info \ 372 unwind_reg_info \ 373 unwind_symbols \ 374 375# The set of packages whose code can be loaded by the system server. 376PRODUCT_SYSTEM_SERVER_APPS += \ 377 SettingsProvider \ 378 WallpaperBackup 379 380# Packages included only for eng/userdebug builds, when building with SANITIZE_TARGET=address 381PRODUCT_PACKAGES_DEBUG_ASAN := \ 382 fuzz \ 383 honggfuzz 384 385PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ 386 frameworks/base/config/preloaded-classes:system/etc/preloaded-classes) 387 388# Note: it is acceptable to not have a dirty-image-objects file. In that case, the special bin 389# for known dirty objects in the image will be empty. 390PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ 391 frameworks/base/config/dirty-image-objects:system/etc/dirty-image-objects) 392 393$(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk) 394