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