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 abx \ 20 adbd_system_api \ 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 appops \ 33 app_process \ 34 appwidget \ 35 atrace \ 36 audioserver \ 37 BackupRestoreConfirmation \ 38 bcc \ 39 blank_screen \ 40 blkid \ 41 bmgr \ 42 bootanimation \ 43 bootstat \ 44 boringssl_self_test \ 45 bpfloader \ 46 bu \ 47 bugreport \ 48 bugreportz \ 49 cgroups.json \ 50 charger \ 51 cmd \ 52 com.android.adbd \ 53 com.android.adservices \ 54 com.android.appsearch \ 55 com.android.btservices \ 56 com.android.conscrypt \ 57 com.android.extservices \ 58 com.android.i18n \ 59 com.android.ipsec \ 60 com.android.location.provider \ 61 com.android.media \ 62 com.android.media.swcodec \ 63 com.android.mediaprovider \ 64 com.android.ondevicepersonalization \ 65 com.android.os.statsd \ 66 com.android.permission \ 67 com.android.resolv \ 68 com.android.neuralnetworks \ 69 com.android.scheduling \ 70 com.android.sdkext \ 71 com.android.tethering \ 72 com.android.tzdata \ 73 com.android.uwb \ 74 com.android.wifi \ 75 ContactsProvider \ 76 content \ 77 CtsShimPrebuilt \ 78 CtsShimPrivPrebuilt \ 79 debuggerd\ 80 device_config \ 81 dmctl \ 82 dnsmasq \ 83 dmesgd \ 84 DownloadProvider \ 85 dpm \ 86 dump.erofs \ 87 dumpstate \ 88 dumpsys \ 89 DynamicSystemInstallationService \ 90 e2fsck \ 91 ExtShared \ 92 flags_health_check \ 93 framework-graphics \ 94 framework-minus-apex \ 95 framework-res \ 96 framework-sysconfig.xml \ 97 fsck.erofs \ 98 fsck_msdos \ 99 fsverity-release-cert-der \ 100 fs_config_files_system \ 101 fs_config_dirs_system \ 102 group_system \ 103 gsid \ 104 gsi_tool \ 105 heapprofd \ 106 heapprofd_client \ 107 gatekeeperd \ 108 gpuservice \ 109 hid \ 110 hwservicemanager \ 111 idmap2 \ 112 idmap2d \ 113 ime \ 114 ims-common \ 115 incident \ 116 incidentd \ 117 incident_helper \ 118 incident-helper-cmd \ 119 init.environ.rc \ 120 init_system \ 121 input \ 122 installd \ 123 IntentResolver \ 124 ip \ 125 iptables \ 126 ip-up-vpn \ 127 javax.obex \ 128 keystore2 \ 129 credstore \ 130 ld.mc \ 131 libaaudio \ 132 libalarm_jni \ 133 libamidi \ 134 libandroid \ 135 libandroidfw \ 136 libandroid_runtime \ 137 libandroid_servers \ 138 libartpalette-system \ 139 libaudioeffect_jni \ 140 libbinder \ 141 libbinder_ndk \ 142 libbinder_rpc_unstable \ 143 libc.bootstrap \ 144 libcamera2ndk \ 145 libcutils \ 146 libdl.bootstrap \ 147 libdl_android.bootstrap \ 148 libdrmframework \ 149 libdrmframework_jni \ 150 libEGL \ 151 libETC1 \ 152 libfdtrack \ 153 libFFTEm \ 154 libfilterfw \ 155 libgatekeeper \ 156 libGLESv1_CM \ 157 libGLESv2 \ 158 libGLESv3 \ 159 libgui \ 160 libhardware \ 161 libhardware_legacy \ 162 libincident \ 163 libinput \ 164 libinputflinger \ 165 libiprouteutil \ 166 libjnigraphics \ 167 libjpeg \ 168 liblog \ 169 libm.bootstrap \ 170 libmdnssd \ 171 libmedia \ 172 libmedia_jni \ 173 libmediandk \ 174 libmtp \ 175 libnetd_client \ 176 libnetlink \ 177 libnetutils \ 178 libneuralnetworks_packageinfo \ 179 libOpenMAXAL \ 180 libOpenSLES \ 181 libpdfium \ 182 libpower \ 183 libpowermanager \ 184 libradio_metadata \ 185 librtp_jni \ 186 libsensorservice \ 187 libsfplugin_ccodec \ 188 libskia \ 189 libsonic \ 190 libsonivox \ 191 libsoundpool \ 192 libspeexresampler \ 193 libsqlite \ 194 libstagefright \ 195 libstagefright_foundation \ 196 libstagefright_omx \ 197 libstdc++ \ 198 libsysutils \ 199 libui \ 200 libusbhost \ 201 libutils \ 202 libvulkan \ 203 libwilhelm \ 204 linker \ 205 linkerconfig \ 206 llkd \ 207 lmkd \ 208 LocalTransport \ 209 locksettings \ 210 logcat \ 211 logd \ 212 lpdump \ 213 lshal \ 214 mdnsd \ 215 mediacodec.policy \ 216 mediaextractor \ 217 mediametrics \ 218 media_profiles_V1_0.dtd \ 219 MediaProviderLegacy \ 220 mediaserver \ 221 mke2fs \ 222 mkfs.erofs \ 223 monkey \ 224 mtpd \ 225 ndc \ 226 netd \ 227 NetworkStack \ 228 odsign \ 229 org.apache.http.legacy \ 230 otacerts \ 231 PackageInstaller \ 232 passwd_system \ 233 perfetto \ 234 ping \ 235 ping6 \ 236 platform.xml \ 237 pm \ 238 pppd \ 239 preinstalled-packages-platform.xml \ 240 privapp-permissions-platform.xml \ 241 prng_seeder \ 242 racoon \ 243 recovery-persist \ 244 resize2fs \ 245 rss_hwm_reset \ 246 run-as \ 247 sanitizer.libraries.txt \ 248 schedtest \ 249 screencap \ 250 sdcard \ 251 secdiscard \ 252 SecureElement \ 253 selinux_policy_system \ 254 sensorservice \ 255 service \ 256 servicemanager \ 257 services \ 258 settings \ 259 SettingsProvider \ 260 sgdisk \ 261 Shell \ 262 shell_and_utilities_system \ 263 sm \ 264 snapshotctl \ 265 snapuserd \ 266 SoundPicker \ 267 storaged \ 268 surfaceflinger \ 269 svc \ 270 task_profiles.json \ 271 tc \ 272 telecom \ 273 telephony-common \ 274 tombstoned \ 275 traced \ 276 traced_probes \ 277 tune2fs \ 278 tzdatacheck \ 279 uiautomator \ 280 uinput \ 281 uncrypt \ 282 usbd \ 283 vdc \ 284 viewcompiler \ 285 voip-common \ 286 vold \ 287 WallpaperBackup \ 288 watchdogd \ 289 wificond \ 290 wifi.rc \ 291 wm \ 292 293# VINTF data for system image 294PRODUCT_PACKAGES += \ 295 system_manifest.xml \ 296 system_compatibility_matrix.xml \ 297 298# HWASAN runtime for SANITIZE_TARGET=hwaddress builds 299ifneq (,$(filter hwaddress,$(SANITIZE_TARGET))) 300 PRODUCT_PACKAGES += \ 301 libclang_rt.hwasan.bootstrap 302endif 303 304# Jacoco agent JARS to be built and installed, if any. 305ifeq ($(EMMA_INSTRUMENT),true) 306 ifneq ($(EMMA_INSTRUMENT_STATIC),true) 307 # For instrumented build, if Jacoco is not being included statically 308 # in instrumented packages then include Jacoco classes in the product 309 # packages. 310 PRODUCT_PACKAGES += jacocoagent 311 ifneq ($(EMMA_INSTRUMENT_FRAMEWORK),true) 312 # For instrumented build, if Jacoco is not being included statically 313 # in instrumented packages and has not already been included in the 314 # bootclasspath via ART_APEX_JARS then include Jacoco classes into the 315 # bootclasspath. 316 PRODUCT_BOOT_JARS += jacocoagent 317 endif # EMMA_INSTRUMENT_FRAMEWORK 318 endif # EMMA_INSTRUMENT_STATIC 319endif # EMMA_INSTRUMENT 320 321# Host tools to install 322PRODUCT_HOST_PACKAGES += \ 323 BugReport \ 324 adb \ 325 art-tools \ 326 atest \ 327 bcc \ 328 bit \ 329 dump.erofs \ 330 e2fsck \ 331 fastboot \ 332 flags_health_check \ 333 fsck.erofs \ 334 icu-data_host_i18n_apex \ 335 icu_tzdata.dat_host_tzdata_apex \ 336 idmap2 \ 337 incident_report \ 338 ld.mc \ 339 lpdump \ 340 minigzip \ 341 mke2fs \ 342 mkfs.erofs \ 343 resize2fs \ 344 sgdisk \ 345 sqlite3 \ 346 tinyplay \ 347 tune2fs \ 348 tzdatacheck \ 349 unwind_info \ 350 unwind_reg_info \ 351 unwind_symbols \ 352 viewcompiler \ 353 tzdata_host \ 354 tzdata_host_tzdata_apex \ 355 tzlookup.xml_host_tzdata_apex \ 356 tz_version_host \ 357 tz_version_host_tzdata_apex \ 358 359 360PRODUCT_COPY_FILES += \ 361 system/core/rootdir/init.usb.rc:system/etc/init/hw/init.usb.rc \ 362 system/core/rootdir/init.usb.configfs.rc:system/etc/init/hw/init.usb.configfs.rc \ 363 system/core/rootdir/etc/hosts:system/etc/hosts 364 365PRODUCT_COPY_FILES += system/core/rootdir/init.zygote32.rc:system/etc/init/hw/init.zygote32.rc 366PRODUCT_VENDOR_PROPERTIES += ro.zygote?=zygote32 367 368PRODUCT_SYSTEM_PROPERTIES += debug.atrace.tags.enableflags=0 369PRODUCT_SYSTEM_PROPERTIES += persist.traced.enable=1 370 371# Packages included only for eng or userdebug builds, previously debug tagged 372PRODUCT_PACKAGES_DEBUG := \ 373 adb_keys \ 374 arping \ 375 dmuserd \ 376 idlcli \ 377 init-debug.rc \ 378 iotop \ 379 iperf3 \ 380 iw \ 381 logpersist.start \ 382 logtagd.rc \ 383 procrank \ 384 profcollectd \ 385 profcollectctl \ 386 remount \ 387 servicedispatcher \ 388 showmap \ 389 sqlite3 \ 390 ss \ 391 start_with_lockagent \ 392 strace \ 393 su \ 394 sanitizer-status \ 395 tracepath \ 396 tracepath6 \ 397 traceroute6 \ 398 unwind_info \ 399 unwind_reg_info \ 400 unwind_symbols \ 401 402# The set of packages whose code can be loaded by the system server. 403PRODUCT_SYSTEM_SERVER_APPS += \ 404 SettingsProvider \ 405 WallpaperBackup 406 407PRODUCT_PACKAGES_DEBUG_JAVA_COVERAGE := \ 408 libdumpcoverage 409 410PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ 411 frameworks/base/config/preloaded-classes:system/etc/preloaded-classes) 412 413# Note: it is acceptable to not have a dirty-image-objects file. In that case, the special bin 414# for known dirty objects in the image will be empty. 415PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ 416 frameworks/base/config/dirty-image-objects:system/etc/dirty-image-objects) 417 418$(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk) 419