2023-10-13 11:44:49 -07:00
|
|
|
#
|
|
|
|
# Copyright (C) 2023 The LineageOS Project
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
2023-02-27 06:33:13 -08:00
|
|
|
# A/B
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk)
|
|
|
|
|
2023-02-27 10:36:08 -08:00
|
|
|
AB_OTA_UPDATER := true
|
|
|
|
AB_OTA_PARTITIONS := \
|
|
|
|
boot \
|
2023-10-15 06:58:25 -07:00
|
|
|
odm_dlkm \
|
2023-02-27 10:36:08 -08:00
|
|
|
product \
|
|
|
|
system \
|
2023-04-01 02:27:43 -07:00
|
|
|
system_ext \
|
2023-02-27 10:36:08 -08:00
|
|
|
vbmeta \
|
|
|
|
vbmeta_system \
|
|
|
|
vbmeta_vendor \
|
|
|
|
vendor \
|
2023-03-18 08:09:51 -07:00
|
|
|
vendor_boot \
|
|
|
|
vendor_dlkm
|
2023-02-27 10:36:08 -08:00
|
|
|
|
|
|
|
AB_OTA_POSTINSTALL_CONFIG += \
|
|
|
|
RUN_POSTINSTALL_system=true \
|
|
|
|
POSTINSTALL_PATH_system=system/bin/otapreopt_script \
|
2023-03-02 11:52:41 -08:00
|
|
|
FILESYSTEM_TYPE_system=erofs \
|
2023-02-27 10:36:08 -08:00
|
|
|
POSTINSTALL_OPTIONAL_system=true
|
|
|
|
|
|
|
|
AB_OTA_POSTINSTALL_CONFIG += \
|
|
|
|
RUN_POSTINSTALL_vendor=true \
|
|
|
|
POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
|
2023-03-02 11:52:41 -08:00
|
|
|
FILESYSTEM_TYPE_vendor=erofs \
|
2023-02-27 10:36:08 -08:00
|
|
|
POSTINSTALL_OPTIONAL_vendor=true
|
|
|
|
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
update_engine \
|
2023-03-03 02:46:52 -08:00
|
|
|
update_engine_sideload \
|
2023-02-27 10:36:08 -08:00
|
|
|
update_verifier \
|
|
|
|
otapreopt_script \
|
|
|
|
checkpoint_gc
|
|
|
|
|
2023-03-31 09:52:07 -07:00
|
|
|
# Allow userspace reboots
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/userspace_reboot.mk)
|
|
|
|
|
2023-02-28 04:58:05 -08:00
|
|
|
# Boot control HAL
|
|
|
|
PRODUCT_PACKAGES += \
|
2023-03-02 11:57:04 -08:00
|
|
|
android.hardware.boot@1.2-service \
|
2023-07-22 01:15:05 -07:00
|
|
|
android.hardware.boot@1.2-impl:64 \
|
|
|
|
android.hardware.boot@1.2-impl.recovery
|
2023-02-28 04:58:05 -08:00
|
|
|
|
2023-03-08 06:18:05 -08:00
|
|
|
# Dalvik configs
|
|
|
|
$(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
|
|
|
|
|
2023-02-27 06:31:40 -08:00
|
|
|
# Dynamic partitions
|
|
|
|
PRODUCT_USE_DYNAMIC_PARTITIONS := true
|
|
|
|
|
2023-03-03 02:48:06 -08:00
|
|
|
# Enforce generic ramdisk allow list
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_ramdisk.mk)
|
|
|
|
|
2023-03-02 11:59:57 -08:00
|
|
|
# FastbootD
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.fastboot@1.1-impl-mock \
|
|
|
|
fastbootd
|
|
|
|
|
2023-03-02 12:01:14 -08:00
|
|
|
# Health
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.health@2.1-service \
|
|
|
|
android.hardware.health@2.1-impl \
|
|
|
|
android.hardware.health@2.1-impl.recovery
|
|
|
|
|
2023-02-27 10:47:19 -08:00
|
|
|
# Init files
|
|
|
|
PRODUCT_PACKAGES += \
|
2023-12-05 18:29:48 -08:00
|
|
|
fstab.mt6789 \
|
|
|
|
fstab.mt6789.vendor_ramdisk \
|
|
|
|
init_connectivity.rc \
|
|
|
|
init.aee.rc \
|
|
|
|
init.cgroup.rc \
|
|
|
|
init.connectivity.common.rc \
|
|
|
|
init.connectivity.rc \
|
|
|
|
init.insmod.sh \
|
|
|
|
init.insmod.mt6789.cfg \
|
|
|
|
init.modem.rc \
|
|
|
|
init.mt6789.rc \
|
|
|
|
init.mt6789.usb.rc \
|
|
|
|
init.mtkgki.rc \
|
|
|
|
init.project.rc \
|
|
|
|
init.recovery.usb.rc \
|
|
|
|
init.sensor_2_0.rc \
|
|
|
|
ueventd.mt6789.rc
|
2023-02-27 10:47:19 -08:00
|
|
|
|
2023-03-03 02:48:40 -08:00
|
|
|
# Include GSI keys
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/developer_gsi_keys.mk)
|
|
|
|
|
2022-11-28 08:09:23 -08:00
|
|
|
# Project ID Quota
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
|
|
|
|
|
2023-10-13 11:44:49 -07:00
|
|
|
# Shipping API level
|
|
|
|
PRODUCT_SHIPPING_API_LEVEL := 31
|
|
|
|
|
|
|
|
# Soong namespaces
|
|
|
|
PRODUCT_SOONG_NAMESPACES += \
|
2023-02-28 04:58:05 -08:00
|
|
|
$(LOCAL_PATH) \
|
|
|
|
hardware/mediatek
|
2023-10-13 11:44:49 -07:00
|
|
|
|
2022-09-12 11:04:17 -07:00
|
|
|
# Updatable APEXes
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
|
|
|
|
|
2023-10-13 11:44:49 -07:00
|
|
|
# Inherit the proprietary files
|
|
|
|
$(call inherit-product, vendor/infinix/X6833B/X6833B-vendor.mk)
|