123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- #
- # 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)
- # 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
- # API
- PRODUCT_SHIPPING_API_LEVEL := 31
- BOARD_SHIPPING_API_LEVEL := 31
- # Audio
- PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_taro/audio_effects.xml \
- $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_taro/audio_policy_configuration.xml \
- $(LOCAL_PATH)/audio/mixer_paths_overlay_dynamic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_taro/mixer_paths_overlay_dynamic.xml \
- $(LOCAL_PATH)/audio/mixer_paths_overlay_static.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_taro/mixer_paths_overlay_static.xml \
- $(LOCAL_PATH)/audio/mixer_paths_waipio_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_taro/mixer_paths_waipio_mtp.xml \
- $(LOCAL_PATH)/audio/resourcemanager_waipio_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_taro/resourcemanager_waipio_mtp.xml
- PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/audio/backend_conf.xml:$(TARGET_COPY_OUT_VENDOR)/etc/backend_conf.xml \
- $(LOCAL_PATH)/audio/bluetooth_qti_hearing_aid_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_qti_hearing_aid_audio_policy_configuration.xml \
- $(LOCAL_PATH)/audio/card-defs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/card-defs.xml \
- $(LOCAL_PATH)/audio/media_codecs_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_c2_audio.xml \
- $(LOCAL_PATH)/audio/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
- $(LOCAL_PATH)/audio/microphone_characteristics.xml:$(TARGET_COPY_OUT_VENDOR)/etc/microphone_characteristics.xml \
- $(LOCAL_PATH)/audio/usecaseKvManager.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usecaseKvManager.xml
- PRODUCT_COPY_FILES += \
- frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
- frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
- frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
- frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \
- frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
- frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml
- # Boot control
- PRODUCT_PACKAGES += \
- [email protected] \
- [email protected] \
- [email protected]
- PRODUCT_PACKAGES_DEBUG += \
- bootctl
- # 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
- # Media
- PRODUCT_PACKAGES += \
- init.qti.media.rc \
- init.qti.media.sh
- # Overlays
- PRODUCT_PACKAGES += \
- CarrierConfigResCommon_Sys \
- FrameworksResCommon_Sys \
- SettingsResCommon_Sys \
- SystemUIResCommon_Sys \
- TelecommResCommon_Sys \
- TelephonyResCommon_Sys \
- WifiResCommon_Sys
- PRODUCT_PACKAGES += \
- FrameworksResTarget_Vendor \
- FrameworksResXiaomi \
- SettingsProviderResXiaomi \
- WifiResTarget \
- WifiResTarget_spf
- # Partitions
- PRODUCT_USE_DYNAMIC_PARTITIONS := true
- # Power
- PRODUCT_PACKAGES += \
- android.hardware.power-service-qti
- PRODUCT_COPY_FILES += \
- vendor/qcom/opensource/power/config/taro/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
- # Recovery
- PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/rootdir/etc/init.recovery.qcom.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.qcom.rc
- # Sensors
- PRODUCT_PACKAGES += \
- [email protected]
- # Soong namespaces
- PRODUCT_SOONG_NAMESPACES += \
- $(LOCAL_PATH)
- # Telephony
- PRODUCT_PACKAGES += \
- extphonelib \
- extphonelib-product \
- extphonelib.xml \
- extphonelib_product.xml \
- ims-ext-common \
- ims_ext_common.xml \
- qti-telephony-hidl-wrapper \
- qti-telephony-hidl-wrapper-prd \
- qti_telephony_hidl_wrapper.xml \
- qti_telephony_hidl_wrapper_prd.xml \
- qti-telephony-utils \
- qti-telephony-utils-prd \
- qti_telephony_utils.xml \
- qti_telephony_utils_prd.xml \
- telephony-ext
- PRODUCT_BOOT_JARS += \
- telephony-ext
- # Ueventd
- PRODUCT_COPY_FILES += \
- $(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
- # Update engine
- PRODUCT_PACKAGES += \
- update_engine \
- update_engine_sideload \
- update_verifier
- PRODUCT_PACKAGES_DEBUG += \
- update_engine_client
- # Vendor init
- PRODUCT_COPY_FILES += \
- $(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 \
- $(LOCAL_PATH)/rootdir/etc/init.touch_report.rc:$(TARGET_COPY_OUT_RECOVERY)/root/vendor/etc/init/init.touch_report.rc \
- $(LOCAL_PATH)/rootdir/etc/init.touch_report.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.touch_report.rc \
- $(LOCAL_PATH)/rootdir/etc/init.xiaomi_sm8450.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.xiaomi_sm8450.rc \
- 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
|