| # |
| # Copyright (C) 2025 The LineageOS Project |
| # |
| # SPDX-License-Identifier: Apache-2.0 |
| # |
| |
| # Enable project quotas and casefolding for emulated storage without sdcardfs |
| $(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk) |
| |
| # Installs gsi keys into ramdisk, to boot a GSI with verified boot. |
| $(call inherit-product, $(SRC_TARGET_DIR)/product/developer_gsi_keys.mk) |
| |
| # Enforce generic ramdisk allow list |
| $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_ramdisk.mk) |
| |
| # Setup dalvik vm configs |
| $(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk) |
| |
| # A/B |
| $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk) |
| |
| 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 |
| |
| # Audio |
| PRODUCT_PACKAGES += \ |
| android.hardware.audio@7.0-impl \ |
| android.hardware.audio.effect@7.0-impl \ |
| android.hardware.audio.service \ |
| android.hardware.bluetooth.audio-impl \ |
| android.hardware.soundtrigger@2.3-impl \ |
| audioadsprpcd \ |
| audio.bluetooth.default \ |
| audio.r_submix.default \ |
| audio.primary.bengal \ |
| audio.usb.default \ |
| lib_bt_aptx \ |
| lib_bt_ble \ |
| lib_bt_bundle \ |
| libagmmixer \ |
| libagmclient \ |
| libagm_compress_plugin \ |
| libagm_mixer_plugin \ |
| libagm_pcm_plugin \ |
| libfmpal \ |
| libpalclient \ |
| libqcompostprocbundle \ |
| libqcomvisualizer \ |
| libqcomvoiceprocessing \ |
| sound_trigger.primary.bengal |
| |
| 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/a2dp_in_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration_7_0.xml \ |
| frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration_7_0.xml \ |
| 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 |
| |
| PRODUCT_COPY_FILES += \ |
| 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 |
| |
| AUDIO_HAL_DIR := hardware/qcom-caf/sm6225/audio/primary-hal |
| |
| PRODUCT_COPY_FILES += \ |
| $(AUDIO_HAL_DIR)/configs/common/codec2/media_codecs_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_c2_audio.xml \ |
| $(AUDIO_HAL_DIR)/configs/common/codec2/service/1.0/c2audio.vendor.base-arm64.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/c2audio.vendor.base-arm64.policy \ |
| $(AUDIO_HAL_DIR)/configs/common/codec2/service/1.0/c2audio.vendor.ext-arm64.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/c2audio.vendor.ext-arm64.policy \ |
| $(AUDIO_HAL_DIR)/configs/bengal/card-defs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/card-defs.xml \ |
| $(AUDIO_HAL_DIR)/configs/bengal/microphone_characteristics.xml:$(TARGET_COPY_OUT_VENDOR)/etc/microphone_characteristics.xml |
| |
| PRODUCT_COPY_FILES += \ |
| $(AUDIO_HAL_DIR)/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ |
| $(COMMON_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ |
| $(COMMON_PATH)/configs/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml |
| |
| $(call soong_config_set,android_hardware_audio,run_64bit,true) |
| |
| # Bluetooth |
| PRODUCT_PACKAGES += \ |
| android.hardware.bluetooth.audio-impl |
| |
| PRODUCT_COPY_FILES += \ |
| frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \ |
| frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml |
| |
| # Boot control |
| PRODUCT_PACKAGES += \ |
| android.hardware.boot-service.qti \ |
| android.hardware.boot-service.qti.recovery |
| |
| $(call soong_config_set, ufsbsg, ufsframework, bsg) |
| |
| # Camera |
| PRODUCT_COPY_FILES += \ |
| frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \ |
| frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \ |
| frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \ |
| frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml |
| |
| # Display |
| PRODUCT_PACKAGES += \ |
| android.hardware.graphics.mapper@4.0-impl-qti-display \ |
| vendor.qti.hardware.display.allocator-service \ |
| vendor.qti.hardware.display.composer-service |
| |
| PRODUCT_PACKAGES += \ |
| init.qti.display_boot.rc \ |
| init.qti.display_boot.sh |
| |
| # Shipping API Level |
| BOARD_SHIPPING_API_LEVEL := 33 |
| |
| # DRM |
| PRODUCT_PACKAGES += \ |
| android.hardware.drm-service.clearkey |
| |
| # Fastboot |
| PRODUCT_PACKAGES += \ |
| fastbootd |
| |
| # 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.software.opengles.deqp.level-2021-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.opengles.deqp.level.xml \ |
| frameworks/native/data/etc/android.software.vulkan.deqp.level-2021-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml |
| |
| # Health |
| PRODUCT_PACKAGES += \ |
| android.hardware.health-service.qti \ |
| android.hardware.health-service.qti_recovery |
| |
| # IPACM |
| PRODUCT_PACKAGES += \ |
| ipacm \ |
| IPACM_cfg.xml \ |
| IPACM_Filter_cfg.xml |
| |
| # 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 |
| |
| # Overlay |
| PRODUCT_ENFORCE_RRO_TARGETS := * |
| |
| DEVICE_PACKAGE_OVERLAYS += \ |
| $(LOCAL_PATH)/overlay-lineage |
| |
| PRODUCT_PACKAGES += \ |
| FrameworksResCommon \ |
| SettingsCommon \ |
| SystemUIResCommon \ |
| TelephonyResCommon \ |
| WifiResCommon \ |
| FrameworksResTarget \ |
| WifiResTarget |
| |
| # Mountpoints |
| PRODUCT_PACKAGES += \ |
| vendor_bt_firmware_mountpoint \ |
| vendor_dsp_mountpoint \ |
| vendor_firmware_mnt_mountpoint |
| |
| # Power |
| PRODUCT_PACKAGES += \ |
| android.hardware.power-service-qti |
| |
| # Soong namespaces |
| PRODUCT_SOONG_NAMESPACES += \ |
| $(LOCAL_PATH) \ |
| hardware/xiaomi |
| |
| # 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.xml \ |
| qti-telephony-hidl-wrapper-prd \ |
| qti_telephony_hidl_wrapper_prd.xml \ |
| qti-telephony-utils \ |
| qti_telephony_utils.xml \ |
| qti-telephony-utils-prd \ |
| qti_telephony_utils_prd.xml \ |
| telephony-ext \ |
| xiaomi-telephony-stub |
| |
| PRODUCT_PACKAGES += \ |
| qcrilNrDb_vendor |
| |
| PRODUCT_BOOT_JARS += \ |
| telephony-ext \ |
| xiaomi-telephony-stub |
| |
| PRODUCT_COPY_FILES += \ |
| $(LOCAL_PATH)/configs/permissions/telephony_system-ext_privapp-permissions-qti.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/telephony_system-ext_privapp-permissions-qti.xml |
| |
| PRODUCT_COPY_FILES += \ |
| frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \ |
| frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \ |
| frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \ |
| frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml |
| |
| # Thermal |
| PRODUCT_PACKAGES += \ |
| android.hardware.thermal-service.qti |
| |
| # Update engine |
| PRODUCT_PACKAGES += \ |
| update_engine \ |
| update_engine_sideload \ |
| update_verifier |
| |
| # USB |
| PRODUCT_PACKAGES += \ |
| android.hardware.usb-service.qti \ |
| android.hardware.usb.gadget-service.qti \ |
| init.qcom.usb.rc \ |
| init.qcom.usb.sh \ |
| usb_compositions.conf |
| |
| |
| 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 |
| |
| # 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 |
| |
| # Vibrator |
| PRODUCT_PACKAGES += \ |
| vendor.qti.hardware.vibrator.service |
| |
| PRODUCT_COPY_FILES += \ |
| vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml |
| |
| # WiFi |
| PRODUCT_PACKAGES += \ |
| android.hardware.wifi-service \ |
| hostapd \ |
| libwifi-hal-qcom \ |
| wpa_supplicant \ |
| wpa_supplicant.conf |
| |
| # WiFi firmware symlinks |
| PRODUCT_PACKAGES += \ |
| firmware_qca_cld_wlan_mac.bin_symlink |
| firmware_qca_cld_WCNSS_qcom_cfg.ini_symlink |
| |
| # WiFi config files |
| PRODUCT_COPY_FILES += \ |
| $(LOCAL_PATH)/configs/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \ |
| $(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \ |
| $(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf |
| |
| PRODUCT_COPY_FILES += \ |
| frameworks/native/data/etc/android.hardware.wifi.aware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.aware.xml \ |
| frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \ |
| frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml \ |
| frameworks/native/data/etc/android.hardware.wifi.rtt.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.rtt.xml \ |
| frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml |
| |
| PRODUCT_VENDOR_MOVE_ENABLED := true |
| |
| # Inherit from vendor blobs |
| $(call inherit-product, vendor/xiaomi/sm6225-common/sm6225-common-vendor.mk) |