1# 2# Copyright (C) 2018-2019 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# This file contains the definitions needed for a _really_ minimal system 17# image to be run under emulation under upstream QEMU (www.qemu.org), once 18# it supports a few Android virtual devices. Note that this is _not_ the 19# same as running under the Android emulator. 20 21$(call inherit-product, $(SRC_TARGET_DIR)/product/default_art_config.mk) 22$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk) 23 24PRODUCT_SOONG_NAMESPACES += device/generic/goldfish 25 26PRODUCT_PACKAGES += \ 27 com.android.adbd \ 28 adbd_system_api \ 29 android.hardware.confirmationui@1.0-service.trusty \ 30 android.hidl.allocator@1.0-service \ 31 android.system.suspend-service \ 32 apexd \ 33 cgroups.json \ 34 com.android.art \ 35 com.android.i18n \ 36 com.android.runtime \ 37 dhcpclient \ 38 gatekeeperd \ 39 hwservicemanager \ 40 init_system \ 41 init_vendor \ 42 init.environ.rc \ 43 keymaster_soft_wrapped_attestation_keys.xml \ 44 keystore2 \ 45 libandroid_servers \ 46 libc.bootstrap \ 47 libdl.bootstrap \ 48 libdl_android.bootstrap \ 49 libm.bootstrap \ 50 linker \ 51 linker64 \ 52 logcat \ 53 logd \ 54 logwrapper \ 55 mediaserver \ 56 mdnsd \ 57 odsign \ 58 reboot \ 59 securedpud \ 60 servicemanager \ 61 sh \ 62 su \ 63 toolbox \ 64 toybox \ 65 vdc \ 66 vndservicemanager \ 67 vold \ 68 69# VINTF stuff for system and vendor (no product / odm / system_ext / etc.) 70PRODUCT_PACKAGES += \ 71 system_compatibility_matrix.xml \ 72 system_manifest.xml \ 73 vendor_compatibility_matrix.xml \ 74 vendor_manifest.xml \ 75 76# Devices that inherit from build/make/target/product/base.mk always have 77# /system/system_ext/etc/vintf/manifest.xml generated. And build-time VINTF 78# checks assume that. Since we don't inherit from base.mk, add the dependency 79# here manually. 80PRODUCT_PACKAGES += \ 81 system_ext_manifest.xml \ 82 83# Skip VINTF checks for kernel configs 84PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := false 85 86# Ensure boringssl NIAP check won't reboot us 87PRODUCT_PACKAGES += \ 88 com.android.conscrypt \ 89 boringssl_self_test \ 90 91# SELinux packages are added as dependencies of the selinux_policy 92# phony package. 93PRODUCT_PACKAGES += \ 94 selinux_policy \ 95 96PRODUCT_HOST_PACKAGES += \ 97 adb \ 98 e2fsdroid \ 99 make_f2fs \ 100 mke2fs \ 101 sload_f2fs \ 102 toybox \ 103 104PRODUCT_COPY_FILES += \ 105 system/core/rootdir/init.usb.rc:system/etc/init/hw/init.usb.rc \ 106 system/core/rootdir/init.usb.configfs.rc:system/etc/init/hw/init.usb.configfs.rc \ 107 system/core/rootdir/etc/hosts:system/etc/hosts \ 108 109PRODUCT_FULL_TREBLE_OVERRIDE := true 110 111PRODUCT_COPY_FILES += \ 112 device/generic/trusty/fstab.ranchu:root/fstab.qemu_trusty \ 113 device/generic/trusty/init.qemu_trusty.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.qemu_trusty.rc \ 114 device/generic/trusty/ueventd.qemu_trusty.rc:$(TARGET_COPY_OUT_VENDOR)/etc/ueventd.rc \ 115 system/core/libprocessgroup/profiles/task_profiles.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json \ 116 117PRODUCT_COPY_FILES += \ 118 device/generic/goldfish/data/etc/config.ini:config.ini \ 119 device/generic/trusty/advancedFeatures.ini:advancedFeatures.ini \ 120 121# for Trusty 122$(call inherit-product, system/core/trusty/trusty-base.mk) 123$(call inherit-product, system/core/trusty/trusty-storage.mk) 124$(call inherit-product, system/core/trusty/trusty-test.mk) 125 126# Test Utilities 127PRODUCT_PACKAGES += \ 128 binderRpcToTrustyTest \ 129 tipc-test \ 130 trusty-ut-ctrl \ 131 trusty_stats_test \ 132 VtsAidlKeyMintTargetTest \ 133 VtsHalConfirmationUIV1_0TargetTest \ 134 VtsHalGatekeeperV1_0TargetTest \ 135 VtsHalKeymasterV3_0TargetTest \ 136 VtsHalKeymasterV4_0TargetTest \ 137 VtsHalRemotelyProvisionedComponentTargetTest \ 138