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# Enable updating of APEXes 22$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk) 23# Add adb keys to debuggable AOSP builds (if they exist) 24$(call inherit-product-if-exists, vendor/google/security/adb/vendor_key.mk) 25 26# Shared java libs 27PRODUCT_PACKAGES += \ 28 com.android.nfc_extras \ 29 30# Applications 31PRODUCT_PACKAGES += \ 32 LiveWallpapersPicker \ 33 PartnerBookmarksProvider \ 34 PresencePolling \ 35 RcsService \ 36 SafetyRegulatoryInfo \ 37 Stk \ 38 Tag \ 39 TimeZoneUpdater \ 40 41# Binaries 42PRODUCT_PACKAGES += llkd 43 44# OTA support 45PRODUCT_PACKAGES += \ 46 recovery-refresh \ 47 update_engine \ 48 update_verifier \ 49 50# Wrapped net utils for /vendor access. 51PRODUCT_PACKAGES += netutils-wrapper-1.0 52 53# Charger images 54PRODUCT_PACKAGES += charger_res_images 55 56# system_other support 57PRODUCT_PACKAGES += \ 58 cppreopts.sh \ 59 otapreopt_script \ 60 61# Bluetooth libraries 62PRODUCT_PACKAGES += \ 63 audio.a2dp.default \ 64 audio.hearing_aid.default \ 65 66# For ringtones that rely on forward lock encryption 67PRODUCT_PACKAGES += libfwdlockengine 68 69# System libraries commonly depended on by things on the product partition. 70# This list will be pruned periodically. 71PRODUCT_PACKAGES += \ 72 android.hardware.biometrics.fingerprint@2.1 \ 73 android.hardware.radio@1.0 \ 74 android.hardware.radio@1.1 \ 75 android.hardware.radio@1.2 \ 76 android.hardware.radio.config@1.0 \ 77 android.hardware.radio.deprecated@1.0 \ 78 android.hardware.secure_element@1.0 \ 79 android.hardware.wifi@1.0 \ 80 libaudio-resampler \ 81 libdrm \ 82 liblogwrap \ 83 liblz4 \ 84 libminui \ 85 libnl \ 86 libprotobuf-cpp-full \ 87 88# Camera service uses 'libdepthphoto' for adding dynamic depth 89# metadata inside depth jpegs. 90PRODUCT_PACKAGES += \ 91 libdepthphoto \ 92 93PRODUCT_PACKAGES_DEBUG += \ 94 avbctl \ 95 bootctl \ 96 tinyplay \ 97 tinycap \ 98 tinymix \ 99 tinypcminfo \ 100 update_engine_client \ 101 102PRODUCT_HOST_PACKAGES += \ 103 tinyplay 104 105# Enable stats logging in LMKD 106TARGET_LMKD_STATS_LOG := true 107 108# Enable dynamic partition size 109PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true 110 111PRODUCT_NAME := mainline_system 112PRODUCT_BRAND := generic 113 114_base_mk_whitelist := 115 116_my_whitelist := $(_base_mk_whitelist) 117 118# For mainline, system.img should be mounted at /, so we include ROOT here. 119_my_paths := \ 120 $(TARGET_COPY_OUT_ROOT)/ \ 121 $(TARGET_COPY_OUT_SYSTEM)/ \ 122 123$(call require-artifacts-in-path, $(_my_paths), $(_my_whitelist)) 124