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# This makefile is the basis of a generic system image for a handheld device. 18$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system.mk) 19$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system.mk) 20$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_default.mk) 21# Add adb keys to debuggable AOSP builds (if they exist) 22$(call inherit-product-if-exists, vendor/google/security/adb/vendor_key.mk) 23 24# Enable updating of APEXes 25$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk) 26 27# Shared java libs 28PRODUCT_PACKAGES += \ 29 com.android.nfc_extras \ 30 31# Applications 32PRODUCT_PACKAGES += \ 33 LiveWallpapersPicker \ 34 PartnerBookmarksProvider \ 35 PresencePolling \ 36 RcsService \ 37 SafetyRegulatoryInfo \ 38 Stk \ 39 Tag \ 40 TimeZoneUpdater \ 41 42# Binaries 43PRODUCT_PACKAGES += llkd 44 45# OTA support 46PRODUCT_PACKAGES += \ 47 recovery-refresh \ 48 update_engine \ 49 update_verifier \ 50 51# Wrapped net utils for /vendor access. 52PRODUCT_PACKAGES += netutils-wrapper-1.0 53 54# Charger images 55PRODUCT_PACKAGES += charger_res_images 56 57# system_other support 58PRODUCT_PACKAGES += \ 59 cppreopts.sh \ 60 otapreopt_script \ 61 62# Bluetooth libraries 63PRODUCT_PACKAGES += \ 64 audio.a2dp.default \ 65 audio.hearing_aid.default \ 66 67# For ringtones that rely on forward lock encryption 68PRODUCT_PACKAGES += libfwdlockengine 69 70# System libraries commonly depended on by things on the system_ext or product partitions. 71# These lists will be pruned periodically. 72PRODUCT_PACKAGES += \ 73 android.hardware.biometrics.fingerprint@2.1 \ 74 android.hardware.radio@1.0 \ 75 android.hardware.radio@1.1 \ 76 android.hardware.radio@1.2 \ 77 android.hardware.radio@1.3 \ 78 android.hardware.radio@1.4 \ 79 android.hardware.radio.config@1.0 \ 80 android.hardware.radio.deprecated@1.0 \ 81 android.hardware.secure_element@1.0 \ 82 android.hardware.wifi@1.0 \ 83 libaudio-resampler \ 84 libaudiohal \ 85 libdrm \ 86 liblogwrap \ 87 liblz4 \ 88 libminui \ 89 libnl \ 90 libprotobuf-cpp-full \ 91 92# These libraries are empty and have been combined into libhidlbase, but are still depended 93# on by things off /system. 94# TODO(b/135686713): remove these 95PRODUCT_PACKAGES += \ 96 libhidltransport \ 97 libhwbinder \ 98 99PRODUCT_PACKAGES_DEBUG += \ 100 avbctl \ 101 bootctl \ 102 tinyplay \ 103 tinycap \ 104 tinymix \ 105 tinypcminfo \ 106 update_engine_client \ 107 108PRODUCT_HOST_PACKAGES += \ 109 tinyplay 110 111# Include all zygote init scripts. "ro.zygote" will select one of them. 112PRODUCT_COPY_FILES += \ 113 system/core/rootdir/init.zygote32.rc:system/etc/init/hw/init.zygote32.rc \ 114 system/core/rootdir/init.zygote64.rc:system/etc/init/hw/init.zygote64.rc \ 115 system/core/rootdir/init.zygote32_64.rc:system/etc/init/hw/init.zygote32_64.rc \ 116 system/core/rootdir/init.zygote64_32.rc:system/etc/init/hw/init.zygote64_32.rc \ 117 118# Enable dynamic partition size 119PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true 120 121PRODUCT_ENFORCE_RRO_TARGETS := * 122 123PRODUCT_NAME := mainline_system 124PRODUCT_BRAND := generic 125 126# Define /system partition-specific product properties to identify that /system 127# partition is mainline_system. 128PRODUCT_SYSTEM_NAME := mainline 129PRODUCT_SYSTEM_BRAND := Android 130PRODUCT_SYSTEM_MANUFACTURER := Android 131PRODUCT_SYSTEM_MODEL := mainline 132PRODUCT_SYSTEM_DEVICE := generic 133 134_base_mk_allowed_list := 135 136_my_allowed_list := $(_base_mk_allowed_list) 137 138# For mainline, system.img should be mounted at /, so we include ROOT here. 139_my_paths := \ 140 $(TARGET_COPY_OUT_ROOT)/ \ 141 $(TARGET_COPY_OUT_SYSTEM)/ \ 142 143$(call require-artifacts-in-path, $(_my_paths), $(_my_allowed_list)) 144