mirror of
https://github.com/Anything-at-25-00/android_device_tecno_LG8n.git
synced 2024-10-06 19:56:26 -07:00
820687dc8a
Refs: https://github.com/nashc-dev/android_device_realme_nashc/tree/lineage-20 Co-authored-by: bengris32 <bengris32@protonmail.ch> Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
138 lines
3.6 KiB
Makefile
138 lines
3.6 KiB
Makefile
#
|
|
# Copyright (C) 2023 The LineageOS Project
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
# A/B
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk)
|
|
|
|
AB_OTA_UPDATER := true
|
|
AB_OTA_PARTITIONS := \
|
|
boot \
|
|
odm_dlkm \
|
|
product \
|
|
system \
|
|
system_ext \
|
|
vbmeta \
|
|
vbmeta_system \
|
|
vbmeta_vendor \
|
|
vendor \
|
|
vendor_boot \
|
|
vendor_dlkm
|
|
|
|
AB_OTA_POSTINSTALL_CONFIG += \
|
|
RUN_POSTINSTALL_system=true \
|
|
POSTINSTALL_PATH_system=system/bin/otapreopt_script \
|
|
FILESYSTEM_TYPE_system=erofs \
|
|
POSTINSTALL_OPTIONAL_system=true
|
|
|
|
AB_OTA_POSTINSTALL_CONFIG += \
|
|
RUN_POSTINSTALL_vendor=true \
|
|
POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
|
|
FILESYSTEM_TYPE_vendor=erofs \
|
|
POSTINSTALL_OPTIONAL_vendor=true
|
|
|
|
PRODUCT_PACKAGES += \
|
|
update_engine \
|
|
update_engine_sideload \
|
|
update_verifier \
|
|
otapreopt_script \
|
|
checkpoint_gc
|
|
|
|
# Allow userspace reboots
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/userspace_reboot.mk)
|
|
|
|
# Boot control HAL
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.boot@1.2-service \
|
|
android.hardware.boot@1.2-impl:64 \
|
|
android.hardware.boot@1.2-impl.recovery
|
|
|
|
# Dalvik configs
|
|
$(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
|
|
|
|
# Display
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.graphics.composer@2.3-service \
|
|
android.hardware.memtrack-service.mediatek-mali
|
|
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.graphics.allocator@4.0.vendor \
|
|
libdrm.vendor \
|
|
libutils-v32
|
|
|
|
# Dynamic partitions
|
|
PRODUCT_USE_DYNAMIC_PARTITIONS := true
|
|
|
|
# Enforce generic ramdisk allow list
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_ramdisk.mk)
|
|
|
|
# FastbootD
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.fastboot@1.1-impl-mock \
|
|
fastbootd
|
|
|
|
# Health
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.health@2.1-service \
|
|
android.hardware.health@2.1-impl \
|
|
android.hardware.health@2.1-impl.recovery
|
|
|
|
# Init files
|
|
PRODUCT_PACKAGES += \
|
|
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
|
|
|
|
# Include GSI keys
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/developer_gsi_keys.mk)
|
|
|
|
# Power
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.power-service-mediatek \
|
|
android.hardware.power-V2-ndk_platform.vendor \
|
|
android.hardware.power@1.0.vendor \
|
|
android.hardware.power@1.1.vendor \
|
|
android.hardware.power@1.2.vendor \
|
|
libmtkperf_client_vendor \
|
|
vendor.mediatek.hardware.mtkpower@1.0.vendor \
|
|
vendor.mediatek.hardware.mtkpower@1.1.vendor \
|
|
vendor.mediatek.hardware.mtkpower@1.2.vendor
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/perf/power_app_cfg.xml:$(TARGET_COPY_OUT_VENDOR)/etc/power_app_cfg.xml \
|
|
$(LOCAL_PATH)/configs/perf/powercontable.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powercontable.xml \
|
|
$(LOCAL_PATH)/configs/perf/powerscntbl.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerscntbl.xml
|
|
|
|
# Project ID Quota
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
|
|
|
|
# Shipping API level
|
|
PRODUCT_SHIPPING_API_LEVEL := 31
|
|
|
|
# Soong namespaces
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
$(LOCAL_PATH) \
|
|
hardware/mediatek
|
|
|
|
# Updatable APEXes
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
|
|
|
|
# Inherit the proprietary files
|
|
$(call inherit-product, vendor/infinix/X6833B/X6833B-vendor.mk)
|