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-12-07 08:17:56 -08:00
|
|
|
# Audio
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.audio@7.0-impl \
|
|
|
|
android.hardware.audio.effect@7.0-impl \
|
|
|
|
android.hardware.audio.service
|
|
|
|
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
audio.bluetooth.default \
|
2023-09-05 04:32:13 -07:00
|
|
|
android.hardware.bluetooth.audio-impl
|
2023-12-07 08:17:56 -08:00
|
|
|
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
libaudiofoundation.vendor \
|
|
|
|
libbluetooth_audio_session \
|
|
|
|
libalsautils \
|
|
|
|
libnbaio_mono \
|
|
|
|
libtinycompress \
|
|
|
|
libdynproc \
|
|
|
|
libhapticgenerator
|
|
|
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/configs/audio/,$(TARGET_COPY_OUT_VENDOR)/etc)
|
|
|
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
|
|
|
|
frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
|
|
|
|
frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml
|
|
|
|
|
2023-12-09 02:01:31 -08:00
|
|
|
# Bluetooth
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.bluetooth@1.1.vendor
|
|
|
|
|
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-12-06 19:50:54 -08:00
|
|
|
# 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 \
|
2023-07-20 06:52:21 -07:00
|
|
|
libdrm.vendor \
|
|
|
|
libutils-v32
|
2023-12-06 19:50:54 -08:00
|
|
|
|
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-12-07 17:18:11 -08:00
|
|
|
# Gatekeeper
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.gatekeeper@1.0-impl \
|
|
|
|
android.hardware.gatekeeper@1.0-service
|
|
|
|
|
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-06-13 07:14:40 -07:00
|
|
|
# HIDL
|
|
|
|
PRODUCT_PACKAGES += \
|
2023-07-20 06:56:18 -07:00
|
|
|
android.hidl.allocator@1.0.vendor \
|
2023-06-13 07:14:40 -07:00
|
|
|
libhidltransport.vendor \
|
|
|
|
libhwbinder.vendor
|
|
|
|
|
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)
|
|
|
|
|
2023-12-08 10:05:51 -08:00
|
|
|
# Keymaster
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
frameworks/native/data/etc/android.hardware.keystore.app_attest_key.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.keystore.app_attest_key.xml
|
|
|
|
|
2023-12-08 17:31:13 -08:00
|
|
|
# Keymint
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.security.keymint-V1-ndk_platform.vendor \
|
|
|
|
android.hardware.security.secureclock-V1-ndk_platform.vendor \
|
|
|
|
android.hardware.security.sharedsecret-V1-ndk_platform.vendor \
|
|
|
|
libcppbor_external.vendor:64
|
|
|
|
|
2023-12-06 20:11:04 -08:00
|
|
|
# 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
|
|
|
|
|
2022-11-28 08:09:23 -08:00
|
|
|
# Project ID Quota
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
|
|
|
|
|
2023-12-09 01:54:57 -08:00
|
|
|
# Sensors
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
libsensorndkbridge \
|
|
|
|
android.hardware.sensors@1.0.vendor \
|
|
|
|
android.hardware.sensors@2.1.vendor \
|
|
|
|
android.frameworks.sensorservice@1.0.vendor \
|
|
|
|
android.hardware.sensors@2.1-service.multihal \
|
|
|
|
android.hardware.sensors@2.0-ScopedWakelock.vendor
|
|
|
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/configs/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
|
|
|
|
|
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-12-09 01:23:01 -08:00
|
|
|
# Wi-Fi
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
wpa_supplicant \
|
|
|
|
hostapd \
|
|
|
|
android.hardware.wifi@1.0-service-lazy
|
|
|
|
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.tetheroffload.config@1.0.vendor \
|
|
|
|
android.hardware.tetheroffload.control@1.0.vendor \
|
|
|
|
android.hardware.tetheroffload.control@1.1.vendor
|
|
|
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/configs/wifi/,$(TARGET_COPY_OUT_VENDOR)/etc/wifi)
|
|
|
|
|
2023-10-13 11:44:49 -07:00
|
|
|
# Inherit the proprietary files
|
|
|
|
$(call inherit-product, vendor/infinix/X6833B/X6833B-vendor.mk)
|