2021-07-09 13:34:30 -04:00
|
|
|
#
|
|
|
|
# Copyright (C) 2021 The LineageOS Project
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
2018-10-02 07:51:03 -04:00
|
|
|
|
2019-04-08 06:28:48 -04:00
|
|
|
# Installs gsi keys into ramdisk, to boot a GSI with verified boot.
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_keys.mk)
|
|
|
|
|
2019-05-18 08:37:03 -04:00
|
|
|
# Enable updating of APEXes
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
|
|
|
|
|
2021-07-10 07:17:56 -04:00
|
|
|
# Inherit from sm6150-common
|
|
|
|
$(call inherit-product, device/xiaomi/sm6150-common/sm6150.mk)
|
|
|
|
|
2021-07-10 07:14:38 -04:00
|
|
|
# API level, the device has been commercially launched on
|
|
|
|
PRODUCT_SHIPPING_API_LEVEL := 30
|
|
|
|
|
2021-07-10 06:26:35 -04:00
|
|
|
# Audio
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
libtinycompress
|
|
|
|
|
2021-07-10 07:48:07 -04:00
|
|
|
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
|
|
|
|
|
2021-04-15 05:52:52 -04:00
|
|
|
# Display
|
|
|
|
PRODUCT_COPY_FILES += \
|
2022-07-14 13:41:54 -04:00
|
|
|
$(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
|
2021-04-15 05:52:52 -04:00
|
|
|
|
2021-08-22 10:34:00 -04:00
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
libsdmcore-shim
|
|
|
|
|
2021-07-10 03:00:09 -04:00
|
|
|
# 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
|
|
|
|
|
2020-07-25 07:45:59 -04:00
|
|
|
# Init scripts
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/rootdir/etc/init.sweet.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.sweet.rc
|
|
|
|
|
2021-04-14 09:44:57 -04:00
|
|
|
# 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
|
|
|
|
|
2021-09-18 01:41:53 -04:00
|
|
|
# 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 += \
|
2020-06-27 13:37:34 -04:00
|
|
|
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
|
2021-09-18 01:41:53 -04:00
|
|
|
|
2021-03-27 06:46:57 -04:00
|
|
|
# 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
|
|
|
|
|
2021-07-10 02:34:25 -04:00
|
|
|
# Overlay
|
|
|
|
DEVICE_PACKAGE_OVERLAYS += \
|
2018-07-15 14:16:49 -04:00
|
|
|
$(LOCAL_PATH)/overlay \
|
|
|
|
$(LOCAL_PATH)/overlay-lineage
|
2021-07-10 02:34:25 -04:00
|
|
|
|
2020-04-24 17:33:28 -04:00
|
|
|
# Overlay-RRO
|
|
|
|
PRODUCT_PACKAGES += \
|
2021-08-09 10:36:34 -04:00
|
|
|
SettingsOverlayRR \
|
2021-06-09 04:39:31 -04:00
|
|
|
SweetinproSettingsProvider \
|
|
|
|
SweetinproWifiOverlay \
|
2020-04-24 17:33:28 -04:00
|
|
|
SweetWifiOverlay
|
|
|
|
|
2021-03-14 13:21:54 -04:00
|
|
|
# Partitions
|
|
|
|
PRODUCT_BUILD_SUPER_PARTITION := false
|
|
|
|
PRODUCT_USE_DYNAMIC_PARTITIONS := true
|
|
|
|
|
2020-08-12 08:14:36 -04:00
|
|
|
# Perf
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
libqti-perfd-client
|
|
|
|
|
2021-06-18 12:41:53 -04:00
|
|
|
# Power
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/configs/power/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
|
|
|
|
|
2020-02-26 09:09:19 -05:00
|
|
|
# Recovery
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
fastbootd
|
|
|
|
|
2021-07-12 07:01:17 -04:00
|
|
|
# Sensors
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.sensors@1.0-impl \
|
|
|
|
android.hardware.sensors@1.0-service
|
|
|
|
|
2018-10-02 07:51:03 -04:00
|
|
|
# Soong namespaces
|
|
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
|
|
$(LOCAL_PATH)
|
2021-07-10 07:14:10 -04:00
|
|
|
|
2021-07-12 07:05:43 -04:00
|
|
|
# Vendor service manager
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
vndservicemanager
|
|
|
|
|
2021-07-10 07:14:10 -04:00
|
|
|
# Call the proprietary setup
|
|
|
|
$(call inherit-product, vendor/xiaomi/sweet/sweet-vendor.mk)
|