platform_build/target/product/mainline_system.mk

115 lines
3.4 KiB
Makefile

#
# Copyright (C) 2018 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This makefile is the basis of a generic system image for a handheld device.
$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system.mk)
# Shared java libs
PRODUCT_PACKAGES += \
com.android.nfc_extras \
# Applications
PRODUCT_PACKAGES += \
DMService \
LiveWallpapersPicker \
PartnerBookmarksProvider \
PresencePolling \
RcsService \
SafetyRegulatoryInfo \
Stk \
TimeZoneUpdater \
# Binaries
PRODUCT_PACKAGES += llkd
# OTA support
PRODUCT_PACKAGES += \
update_engine \
update_verifier \
# Wrapped net utils for /vendor access.
PRODUCT_PACKAGES += netutils-wrapper-1.0
# Charger images
PRODUCT_PACKAGES += charger_res_images
# system_other support
PRODUCT_PACKAGES += \
cppreopts.sh \
otapreopt_script \
# Bluetooth libraries
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio.hearing_aid.default \
# For ringtones that rely on forward lock encryption
PRODUCT_PACKAGES += libfwdlockengine
# System libraries commonly depended on by things on the product partition.
# This list will be pruned periodically.
PRODUCT_PACKAGES += \
android.hardware.biometrics.fingerprint@2.1 \
android.hardware.radio@1.0 \
android.hardware.radio@1.1 \
android.hardware.radio@1.2 \
android.hardware.radio.config@1.0 \
android.hardware.radio.deprecated@1.0 \
android.hardware.secure_element@1.0 \
android.hardware.tests.libhwbinder@1.0-impl \
android.hidl.base@1.0 \
libaudio-resampler \
liblogwrap \
liblz4 \
libminui \
libnl \
libprotobuf-cpp-full \
libprotobuf-cpp-full-rtti \
PRODUCT_PACKAGES_DEBUG += \
avbctl \
bootctl \
tinyplay \
tinycap \
tinymix \
tinypcminfo \
update_engine_client \
# Enable stats logging in LMKD
TARGET_LMKD_STATS_LOG := true
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.lmk.log_stats=true
# Enable dynamic partition size
PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true
PRODUCT_LOCALES := en_US af_ZA am_ET ar_EG as_IN az_AZ be_BY bg_BG bn_BD bs_BA ca_ES cs_CZ da_DK de_DE el_GR en_AU en_CA en_GB en_IN es_ES es_US et_EE eu_ES fa_IR fi_FI fr_CA fr_FR gl_ES gu_IN hi_IN hr_HR hu_HU hy_AM in_ID is_IS it_IT iw_IL ja_JP ka_GE kk_KZ km_KH ko_KR ky_KG lo_LA lt_LT lv_LV km_MH kn_IN mn_MN ml_IN mk_MK mr_IN ms_MY my_MM ne_NP nb_NO nl_NL or_IN pa_IN pl_PL pt_BR pt_PT ro_RO ru_RU si_LK sk_SK sl_SI sq_AL sr_Latn_RS sr_RS sv_SE sw_TZ ta_IN te_IN th_TH tl_PH tr_TR uk_UA ur_PK uz_UZ vi_VN zh_CN zh_HK zh_TW zu_ZA en_XA ar_XB
PRODUCT_NAME := mainline_system
PRODUCT_BRAND := generic
_base_mk_whitelist :=
_my_whitelist := $(_base_mk_whitelist)
# For mainline, system.img should be mounted at /, so we include ROOT here.
_my_paths := \
$(TARGET_COPY_OUT_ROOT)/ \
$(TARGET_COPY_OUT_SYSTEM)/ \
$(call require-artifacts-in-path, $(_my_paths), $(_my_whitelist))