2024-10-19 16:55:36 +09:00
|
|
|
#
|
|
|
|
# Copyright (C) 2024 The LineageOS Project
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
2024-10-28 01:49:23 +09:00
|
|
|
# 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)
|
|
|
|
|
|
|
|
# Dalvik
|
|
|
|
$(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
|
|
|
|
|
2024-10-19 16:55:36 +09:00
|
|
|
# Enable updating of APEXes
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
|
|
|
|
|
2024-10-28 01:49:23 +09:00
|
|
|
# Add common definitions for Qualcomm
|
|
|
|
$(call inherit-product, hardware/qcom-caf/common/common.mk)
|
|
|
|
|
2024-11-03 19:03:05 +09:00
|
|
|
# AAPT
|
|
|
|
PRODUCT_AAPT_CONFIG := normal
|
|
|
|
PRODUCT_AAPT_PREF_CONFIG := xxxhdpi
|
|
|
|
|
2024-10-19 16:55:36 +09:00
|
|
|
# API levels
|
2024-11-03 05:01:48 +09:00
|
|
|
BOARD_SHIPPING_API_LEVEL := 34
|
|
|
|
PRODUCT_SHIPPING_API_LEVEL := $(BOARD_SHIPPING_API_LEVEL)
|
|
|
|
|
2024-11-11 02:31:39 +09:00
|
|
|
# Audio
|
|
|
|
PRODUCT_PACKAGES += \
|
2024-12-02 06:23:36 +09:00
|
|
|
android.hardware.audio@7.1-impl \
|
|
|
|
android.hardware.audio.effect@7.0-impl \
|
|
|
|
android.hardware.audio.service \
|
|
|
|
android.hardware.bluetooth.audio-impl \
|
|
|
|
android.hardware.soundtrigger@2.3-impl \
|
2024-12-12 05:48:34 +09:00
|
|
|
audioadsprpcd \
|
2024-12-02 06:23:36 +09:00
|
|
|
audio.bluetooth.default \
|
|
|
|
audio.r_submix.default \
|
|
|
|
audio.usb.default \
|
|
|
|
libagm_compress_plugin \
|
|
|
|
libagm_mixer_plugin \
|
|
|
|
libagm_pcm_plugin \
|
|
|
|
libbatterylistener \
|
2024-12-12 05:48:34 +09:00
|
|
|
libfmpal \
|
|
|
|
libhfp_pal \
|
2024-12-02 06:23:36 +09:00
|
|
|
libqcompostprocbundle \
|
|
|
|
libqcomvisualizer \
|
|
|
|
libqcomvoiceprocessing \
|
|
|
|
libsndcardparser \
|
|
|
|
libtinycompress \
|
2024-12-12 05:48:34 +09:00
|
|
|
libvolumelistener \
|
|
|
|
sound_trigger.primary.pineapple \
|
|
|
|
vendor.qti.hardware.pal@1.0.vendor
|
2024-12-02 06:23:36 +09:00
|
|
|
|
|
|
|
AUDIO_HAL_DIR := hardware/qcom-caf/sm8650/audio/primary-hal
|
2024-12-03 06:11:55 +09:00
|
|
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(AUDIO_HAL_DIR)/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
|
|
|
|
$(AUDIO_HAL_DIR)/configs/pineapple/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_pineapple/audio_effects.conf \
|
|
|
|
$(AUDIO_HAL_DIR)/configs/pineapple/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_pineapple/audio_effects.xml \
|
|
|
|
$(AUDIO_HAL_DIR)/configs/pineapple/microphone_characteristics.xml:$(TARGET_COPY_OUT_VENDOR)/etc/microphone_characteristics.xml \
|
2024-11-11 02:31:39 +09:00
|
|
|
|
2024-12-03 06:11:55 +09:00
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
|
|
|
|
frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_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
|
2024-11-11 02:31:39 +09:00
|
|
|
|
2024-11-03 05:01:48 +09:00
|
|
|
# Boot animation
|
|
|
|
TARGET_SCREEN_HEIGHT := 3120
|
|
|
|
TARGET_SCREEN_WIDTH := 1440
|
2024-10-19 16:55:36 +09:00
|
|
|
|
2024-10-28 01:49:23 +09:00
|
|
|
# DebugFS
|
|
|
|
PRODUCT_SET_DEBUGFS_RESTRICTIONS := true
|
|
|
|
|
2024-11-18 00:56:29 +09:00
|
|
|
# Display
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.graphics.mapper@4.0-impl-qti-display \
|
|
|
|
init.qti.display_boot.rc \
|
|
|
|
init.qti.display_boot.sh \
|
|
|
|
vendor.qti.hardware.display.allocator-service \
|
|
|
|
vendor.qti.hardware.display.composer-service \
|
|
|
|
vendor.qti.hardware.display.composer-service.rc \
|
|
|
|
vendor.qti.hardware.display.composer-service.xml \
|
|
|
|
vendor.qti.hardware.display.demura-service
|
|
|
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml
|
|
|
|
|
2024-10-19 16:55:36 +09:00
|
|
|
# fastbootd
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.fastboot@1.1-impl-mock \
|
|
|
|
fastbootd
|
|
|
|
|
2024-11-03 19:03:05 +09:00
|
|
|
# Gatekeeper
|
|
|
|
PRODUCT_PACKAGES += \
|
2024-11-18 00:56:29 +09:00
|
|
|
android.hardware.gatekeeper@1.0.vendor \
|
2024-11-03 19:03:05 +09:00
|
|
|
android.hardware.gatekeeper-V1-ndk.vendor \
|
|
|
|
libgatekeeper.vendor
|
|
|
|
|
2024-12-01 01:08:16 +09:00
|
|
|
# Graphics
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level-1.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version-1_1.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.vulkan.version-1_3.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version-1_3.xml \
|
|
|
|
frameworks/native/data/etc/android.software.opengles.deqp.level-2022-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.opengles.deqp.level.xml \
|
|
|
|
frameworks/native/data/etc/android.software.vulkan.deqp.level-2022-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml
|
|
|
|
|
2024-11-03 19:03:05 +09:00
|
|
|
# HIDL
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
libhidltransport.vendor \
|
|
|
|
libhwbinder.vendor
|
|
|
|
|
|
|
|
# Media
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
libavservices_minijail.vendor
|
|
|
|
|
2024-10-19 16:55:36 +09:00
|
|
|
# Overlays
|
|
|
|
PRODUCT_ENFORCE_RRO_TARGETS := *
|
|
|
|
|
2024-12-03 06:11:55 +09:00
|
|
|
# Power
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.power-service-qti
|
|
|
|
|
2024-10-19 16:55:36 +09:00
|
|
|
# Partitions
|
|
|
|
PRODUCT_USE_DYNAMIC_PARTITIONS := true
|
|
|
|
|
|
|
|
# Product characteristics
|
|
|
|
PRODUCT_CHARACTERISTICS := phone
|
|
|
|
|
2024-11-03 05:01:48 +09:00
|
|
|
# Protobuf
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
libprotobuf-cpp-full-3.9.1-vendorcompat
|
|
|
|
|
|
|
|
# QMI
|
|
|
|
PRODUCT_PACKAGES += \
|
2024-11-03 19:03:05 +09:00
|
|
|
libcurl.vendor \
|
|
|
|
libjsoncpp.vendor \
|
2024-12-12 05:48:34 +09:00
|
|
|
libqti_vndfwk_detect_vendor \
|
2024-11-03 19:03:05 +09:00
|
|
|
libsqlite.vendor
|
|
|
|
|
|
|
|
# RIL
|
|
|
|
PRODUCT_PACKAGES += \
|
2024-11-11 02:31:39 +09:00
|
|
|
libnetutils.vendor \
|
|
|
|
libsecril-client
|
2024-11-03 05:01:48 +09:00
|
|
|
|
2024-10-19 16:55:36 +09:00
|
|
|
# Rootdir
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
dcc_extension.sh \
|
|
|
|
hdm_status.sh \
|
|
|
|
init.class_main.sh \
|
|
|
|
init.crda.sh \
|
|
|
|
init.kernel.post_boot-cliffs.sh \
|
|
|
|
init.kernel.post_boot-pineapple.sh \
|
|
|
|
init.kernel.post_boot.sh \
|
|
|
|
init.mdm.sh \
|
|
|
|
init.qcom.class_core.sh \
|
|
|
|
init.qcom.coex.sh \
|
|
|
|
init.qcom.early_boot.sh \
|
|
|
|
init.qcom.efs.sync.sh \
|
|
|
|
init.qcom.post_boot.sh \
|
|
|
|
init.qcom.sdio.sh \
|
|
|
|
init.qcom.sensors.sh \
|
|
|
|
init.qcom.sh \
|
2024-12-02 05:22:22 +09:00
|
|
|
init.qti.qcv.rc \
|
|
|
|
init.qti.qcv.sh \
|
2024-10-19 16:55:36 +09:00
|
|
|
init.qti.kernel.debug-cliffs.sh \
|
|
|
|
init.qti.kernel.debug-pineapple.sh \
|
|
|
|
init.qti.kernel.debug.sh \
|
|
|
|
init.qti.kernel.early_debug-pineapple.sh \
|
|
|
|
init.qti.kernel.early_debug.sh \
|
|
|
|
init.qti.kernel.sh \
|
|
|
|
init.qti.media.sh \
|
|
|
|
init.qti.time.daemon.sh \
|
|
|
|
init.qti.write.sh \
|
|
|
|
init.vendor.sensordebug.sh \
|
|
|
|
init.vendor.sensordebug.ssr_dump.sh \
|
|
|
|
install-recovery.sh \
|
|
|
|
qca6234-service.sh \
|
|
|
|
system_dlkm_modprobe.sh \
|
2024-12-01 01:08:16 +09:00
|
|
|
ueventd.qcom.rc \
|
2024-10-19 16:55:36 +09:00
|
|
|
vendor_modprobe.sh \
|
|
|
|
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
fstab.qcom \
|
|
|
|
init.e3q.rc \
|
|
|
|
init.qcom.factory.rc \
|
|
|
|
init.qcom.rc \
|
|
|
|
init.qti.kernel.rc \
|
|
|
|
init.qti.ss-ramdump.sh \
|
|
|
|
init.qti.ufs.rc \
|
|
|
|
init.samsung.bsp.rc \
|
|
|
|
init.samsung.display.rc \
|
|
|
|
init.samsung.dp.rc \
|
|
|
|
init.samsung.factory.rc \
|
|
|
|
init.samsung.power.rc \
|
|
|
|
init.samsung.rc \
|
|
|
|
init.samsung.user.rc \
|
|
|
|
init.target.rc \
|
|
|
|
init.recovery.qcom.rc \
|
|
|
|
init.recovery.samsung.rc \
|
|
|
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
2024-10-28 01:49:23 +09:00
|
|
|
$(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/fstab.qcom
|
2024-10-19 16:55:36 +09:00
|
|
|
|
|
|
|
# Soong namespaces
|
|
|
|
PRODUCT_SOONG_NAMESPACES += \
|
2024-10-28 01:49:23 +09:00
|
|
|
$(LOCAL_PATH) \
|
|
|
|
hardware/samsung \
|
|
|
|
kernel/samsung/sm8650 \
|
|
|
|
kernel/samsung/sm8650-modules
|
2024-10-19 16:55:36 +09:00
|
|
|
|
2024-11-03 19:03:05 +09:00
|
|
|
# Thermal
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.thermal@1.0.vendor
|
|
|
|
|
|
|
|
# Trusted UI
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hidl.memory.block@1.0.vendor \
|
|
|
|
vendor.qti.hardware.systemhelper@1.0.vendor
|
|
|
|
|
2024-11-18 00:56:29 +09:00
|
|
|
# USB
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.usb-service.qti \
|
|
|
|
android.hardware.usb.gadget-service.qti \
|
|
|
|
init.qcom.usb.rc \
|
|
|
|
init.qcom.usb.sh
|
|
|
|
|
|
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
|
|
vendor/qcom/opensource/usb/etc
|
|
|
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml
|
|
|
|
|
2024-11-03 05:01:48 +09:00
|
|
|
# Vendor service manager
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
vndservicemanager
|
|
|
|
|
|
|
|
# Verified Boot
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.verified_boot.xml
|
|
|
|
|
|
|
|
# VNDK
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
libcrypto-v33
|
|
|
|
|
2024-11-11 02:31:39 +09:00
|
|
|
# Wi-Fi
|
2024-11-03 19:03:05 +09:00
|
|
|
PRODUCT_PACKAGES += \
|
2024-12-02 06:23:36 +09:00
|
|
|
android.hardware.wifi-service \
|
|
|
|
hostapd \
|
|
|
|
libwpa_client \
|
|
|
|
libwifi-hal-ctrl \
|
|
|
|
libwifi-hal-qcom \
|
|
|
|
wpa_supplicant \
|
|
|
|
wpa_supplicant.conf \
|
2024-11-03 19:03:05 +09:00
|
|
|
firmware_wlanmdsp.otaupdate_symlink \
|
|
|
|
firmware_wlan_mac.bin_symlink \
|
|
|
|
firmware_WCNSS_qcom_cfg.ini_symlink
|
|
|
|
|
2024-10-19 16:55:36 +09:00
|
|
|
# Inherit the proprietary files
|
|
|
|
$(call inherit-product, vendor/samsung/e3q/e3q-vendor.mk)
|