2022-04-04 17:56:53 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2020 The LineageOS Project
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
# Inherit from those products. Most specific first.
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
|
|
|
|
|
|
|
|
# Enable project quotas and casefolding for emulated storage without sdcardfs
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
|
|
|
|
|
|
|
|
# Enforce generic ramdisk allow list
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_ramdisk.mk)
|
|
|
|
|
|
|
|
# Enable updating of APEXes
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
|
|
|
|
|
|
|
|
# Enable virtual AB with vendor ramdisk
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk)
|
|
|
|
|
|
|
|
# Setup dalvik vm configs
|
|
|
|
$(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
|
|
|
|
|
|
|
|
# Inherit from the proprietary version
|
|
|
|
$(call inherit-product, vendor/xiaomi/sm8450-common/sm8450-common-vendor.mk)
|
|
|
|
|
2024-01-20 10:41:01 +01:00
|
|
|
# A/B
|
|
|
|
AB_OTA_POSTINSTALL_CONFIG += \
|
|
|
|
RUN_POSTINSTALL_system=true \
|
|
|
|
POSTINSTALL_PATH_system=system/bin/otapreopt_script \
|
|
|
|
FILESYSTEM_TYPE_system=ext4 \
|
|
|
|
POSTINSTALL_OPTIONAL_system=true
|
|
|
|
|
|
|
|
AB_OTA_POSTINSTALL_CONFIG += \
|
|
|
|
RUN_POSTINSTALL_vendor=true \
|
|
|
|
POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
|
|
|
|
FILESYSTEM_TYPE_vendor=ext4 \
|
|
|
|
POSTINSTALL_OPTIONAL_vendor=true
|
|
|
|
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
checkpoint_gc \
|
|
|
|
otapreopt_script
|
|
|
|
|
2022-04-04 17:56:53 +02:00
|
|
|
# API
|
|
|
|
PRODUCT_SHIPPING_API_LEVEL := 31
|
|
|
|
BOARD_SHIPPING_API_LEVEL := 31
|
2022-04-23 18:04:44 +02:00
|
|
|
|
2024-01-20 10:40:44 +01:00
|
|
|
# Boot control
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.boot@1.2-impl-qti \
|
|
|
|
android.hardware.boot@1.2-impl-qti.recovery \
|
|
|
|
android.hardware.boot@1.2-service
|
|
|
|
|
|
|
|
PRODUCT_PACKAGES_DEBUG += \
|
|
|
|
bootctl
|
|
|
|
|
2024-01-20 11:56:20 +01:00
|
|
|
# Fstab
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/rootdir/etc/charger_fw_fstab.qti:$(TARGET_COPY_OUT_VENDOR)/etc/charger_fw_fstab.qti
|
|
|
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.qcom \
|
|
|
|
$(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_RECOVERY)/root/first_stage_ramdisk/fstab.qcom \
|
|
|
|
$(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.qcom
|
|
|
|
|
2022-06-17 17:24:26 +02:00
|
|
|
# Overlays
|
|
|
|
PRODUCT_PACKAGES += \
|
2022-06-17 17:46:57 +02:00
|
|
|
CarrierConfigResCommon_Sys \
|
|
|
|
FrameworksResCommon_Sys \
|
|
|
|
SettingsResCommon_Sys \
|
|
|
|
SystemUIResCommon_Sys \
|
|
|
|
TelecommResCommon_Sys \
|
|
|
|
TelephonyResCommon_Sys \
|
|
|
|
WifiResCommon_Sys
|
2022-06-17 17:24:26 +02:00
|
|
|
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
FrameworksResTarget_Vendor \
|
2022-06-18 13:47:01 +02:00
|
|
|
FrameworksResXiaomi \
|
2022-06-17 18:00:13 +02:00
|
|
|
WifiResTarget \
|
|
|
|
WifiResTarget_spf
|
2022-06-17 17:24:26 +02:00
|
|
|
|
2022-04-23 18:04:44 +02:00
|
|
|
# Partitions
|
|
|
|
PRODUCT_USE_DYNAMIC_PARTITIONS := true
|
2024-01-20 11:56:07 +01:00
|
|
|
|
|
|
|
# Recovery
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/rootdir/etc/init.recovery.qcom.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.qcom.rc
|
|
|
|
|
2019-09-05 13:17:15 +02:00
|
|
|
# Soong namespaces
|
|
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
|
|
$(LOCAL_PATH)
|
|
|
|
|
2024-01-20 11:56:07 +01:00
|
|
|
# Ueventd
|
|
|
|
PRODUCT_COPY_FILES += \
|
2024-01-20 11:56:20 +01:00
|
|
|
$(LOCAL_PATH)/rootdir/etc/ueventd.qcom.rc:$(TARGET_COPY_OUT_VENDOR)/etc/ueventd.rc \
|
|
|
|
$(LOCAL_PATH)/rootdir/etc/ueventd-odm.rc:$(TARGET_COPY_OUT_ODM)/etc/ueventd.rc
|
2024-01-20 11:56:07 +01:00
|
|
|
|
2024-01-20 10:41:01 +01:00
|
|
|
# Update engine
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
update_engine \
|
|
|
|
update_engine_sideload \
|
|
|
|
update_verifier
|
|
|
|
|
|
|
|
PRODUCT_PACKAGES_DEBUG += \
|
|
|
|
update_engine_client
|
|
|
|
|
2024-01-20 11:56:07 +01:00
|
|
|
# Vendor init
|
|
|
|
PRODUCT_COPY_FILES += \
|
2024-01-20 11:56:20 +01:00
|
|
|
$(LOCAL_PATH)/rootdir/etc/init.qcom.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.qcom.rc \
|
|
|
|
$(LOCAL_PATH)/rootdir/etc/init.target.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.target.rc
|
2024-01-20 11:56:07 +01:00
|
|
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/rootdir/bin/init.class_main.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.class_main.sh \
|
|
|
|
$(LOCAL_PATH)/rootdir/bin/init.qcom.class_core.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.class_core.sh \
|
|
|
|
$(LOCAL_PATH)/rootdir/bin/init.qcom.early_boot.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.early_boot.sh \
|
|
|
|
$(LOCAL_PATH)/rootdir/bin/init.qcom.post_boot.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.post_boot.sh \
|
|
|
|
$(LOCAL_PATH)/rootdir/bin/init.qcom.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.sh
|