ace9bd248d
It's no longer required to install the compliance GSI public keys into the ramdisk. Those public keys just need to be included in the VTS test suite for GSI verification. Bug: 176869478 Test: TreeHugger Change-Id: I26c4a1c7dba28a3c8cf88af64d8539fdc23a4f28
123 lines
4.5 KiB
Makefile
123 lines
4.5 KiB
Makefile
#
|
|
# Copyright (C) 2021 The LineageOS Project
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
# Enable updating of APEXes
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
|
|
|
|
# Inherit from sm6150-common
|
|
$(call inherit-product, device/xiaomi/sm6150-common/sm6150.mk)
|
|
|
|
# API level, the device has been commercially launched on
|
|
PRODUCT_SHIPPING_API_LEVEL := 30
|
|
|
|
# Audio
|
|
PRODUCT_PACKAGES += \
|
|
libtinycompress
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/audio/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
|
|
$(LOCAL_PATH)/configs/audio/mixer_paths_idp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_idp.xml \
|
|
$(LOCAL_PATH)/configs/audio/mixer_paths_overlay_dynamic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_overlay_dynamic.xml \
|
|
$(LOCAL_PATH)/configs/audio/mixer_paths_overlay_static.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_overlay_static.xml \
|
|
$(LOCAL_PATH)/configs/audio/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml
|
|
|
|
# Display
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/display/qdcm_calib_data_xiaomi_k6_38_0c_0a_fhd_dsc_video_dsi_panel.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_xiaomi_k6_38_0c_0a_fhd_dsc_video_dsi_panel.xml \
|
|
$(LOCAL_PATH)/configs/display/qdcm_calib_data_xiaomi_k6_38_0e_0b_fhd_dsc_video_dsi_panel.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_xiaomi_k6_38_0e_0b_fhd_dsc_video_dsi_panel.xml
|
|
|
|
PRODUCT_PACKAGES += \
|
|
libsdmcore-shim
|
|
|
|
# Fstab
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_RAMDISK)/fstab.qcom \
|
|
$(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.qcom
|
|
|
|
# Init scripts
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/rootdir/etc/init.sweet.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.sweet.rc
|
|
|
|
# Keylayout
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/keylayout/gpio-keys.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/gpio-keys.kl \
|
|
$(LOCAL_PATH)/configs/keylayout/sm6150-idp-snd-card_Button_Jack.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/sm6150-idp-snd-card_Button_Jack.kl
|
|
|
|
# NFC
|
|
PRODUCT_PACKAGES += \
|
|
com.android.nfc_extras \
|
|
NfcNci \
|
|
SecureElement \
|
|
Tag
|
|
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.nfc@1.2-service
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf \
|
|
$(LOCAL_PATH)/configs/nfc/libnfc-nxp.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nxp.conf
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_sweet/android.hardware.nfc.ese.xml \
|
|
frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_sweet/android.hardware.nfc.hcef.xml \
|
|
frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_sweet/android.hardware.nfc.hce.xml \
|
|
frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_sweet/android.hardware.nfc.uicc.xml \
|
|
frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_sweet/android.hardware.nfc.xml \
|
|
frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_sweet/com.android.nfc_extras.xml \
|
|
frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_sweet/com.nxp.mifare.xml
|
|
|
|
# IR
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.ir@1.0-impl \
|
|
android.hardware.ir@1.0-service
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml
|
|
|
|
# Overlay
|
|
DEVICE_PACKAGE_OVERLAYS += \
|
|
$(LOCAL_PATH)/overlay \
|
|
$(LOCAL_PATH)/overlay-lineage
|
|
|
|
# Overlay-RRO
|
|
PRODUCT_PACKAGES += \
|
|
SettingsOverlayRR \
|
|
SweetinproSettingsProvider \
|
|
SweetinproWifiOverlay \
|
|
SweetWifiOverlay
|
|
|
|
# Partitions
|
|
PRODUCT_BUILD_SUPER_PARTITION := false
|
|
PRODUCT_USE_DYNAMIC_PARTITIONS := true
|
|
|
|
# Perf
|
|
PRODUCT_PACKAGES += \
|
|
libqti-perfd-client
|
|
|
|
# Power
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/power/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
|
|
|
|
# Recovery
|
|
PRODUCT_PACKAGES += \
|
|
fastbootd
|
|
|
|
# Sensors
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.sensors@1.0-impl \
|
|
android.hardware.sensors@1.0-service
|
|
|
|
# Soong namespaces
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
$(LOCAL_PATH)
|
|
|
|
# Vendor service manager
|
|
PRODUCT_PACKAGES += \
|
|
vndservicemanager
|
|
|
|
# Call the proprietary setup
|
|
$(call inherit-product, vendor/xiaomi/sweet/sweet-vendor.mk)
|