| Nahhk | 7117b47 | 2025-03-19 06:23:56 -0500 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2025 The LineageOS Project |
| 3 | # |
| 4 | # SPDX-License-Identifier: Apache-2.0 |
| 5 | # |
| 6 | |
| 7 | # Enable project quotas and casefolding for emulated storage without sdcardfs |
| 8 | $(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk) |
| 9 | |
| 10 | # Installs gsi keys into ramdisk, to boot a GSI with verified boot. |
| 11 | $(call inherit-product, $(SRC_TARGET_DIR)/product/developer_gsi_keys.mk) |
| 12 | |
| 13 | # Enforce generic ramdisk allow list |
| 14 | $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_ramdisk.mk) |
| 15 | |
| 16 | # Setup dalvik vm configs |
| 17 | $(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk) |
| 18 | |
| 19 | # A/B |
| 20 | $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk) |
| 21 | |
| Nikita Savchenko | 1d9c817 | 2025-08-26 22:03:31 +0000 | [diff] [blame] | 22 | AB_OTA_POSTINSTALL_CONFIG += \ |
| 23 | RUN_POSTINSTALL_system=true \ |
| 24 | POSTINSTALL_PATH_system=system/bin/otapreopt_script \ |
| 25 | FILESYSTEM_TYPE_system=ext4 \ |
| 26 | POSTINSTALL_OPTIONAL_system=true |
| 27 | |
| 28 | AB_OTA_POSTINSTALL_CONFIG += \ |
| 29 | RUN_POSTINSTALL_vendor=true \ |
| 30 | POSTINSTALL_PATH_vendor=bin/checkpoint_gc \ |
| 31 | FILESYSTEM_TYPE_vendor=ext4 \ |
| 32 | POSTINSTALL_OPTIONAL_vendor=true |
| 33 | |
| 34 | PRODUCT_PACKAGES += \ |
| 35 | checkpoint_gc \ |
| 36 | otapreopt_script |
| 37 | |
| Nikita Savchenko | d4df4e5 | 2025-06-29 22:28:29 +0000 | [diff] [blame] | 38 | # Audio |
| 39 | PRODUCT_PACKAGES += \ |
| 40 | android.hardware.audio@7.0-impl \ |
| 41 | android.hardware.audio.effect@7.0-impl \ |
| 42 | android.hardware.audio.service \ |
| 43 | android.hardware.bluetooth.audio-impl \ |
| 44 | android.hardware.soundtrigger@2.3-impl \ |
| 45 | audioadsprpcd \ |
| 46 | audio.bluetooth.default \ |
| 47 | audio.r_submix.default \ |
| 48 | audio.primary.bengal \ |
| 49 | audio.usb.default \ |
| 50 | lib_bt_aptx \ |
| 51 | lib_bt_ble \ |
| 52 | lib_bt_bundle \ |
| 53 | libagmmixer \ |
| 54 | libagmclient \ |
| 55 | libagm_compress_plugin \ |
| 56 | libagm_mixer_plugin \ |
| 57 | libagm_pcm_plugin \ |
| 58 | libfmpal \ |
| 59 | libpalclient \ |
| 60 | libqcompostprocbundle \ |
| 61 | libqcomvisualizer \ |
| 62 | libqcomvoiceprocessing \ |
| 63 | sound_trigger.primary.bengal |
| 64 | |
| 65 | PRODUCT_COPY_FILES += \ |
| 66 | frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ |
| 67 | frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ |
| 68 | 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 \ |
| 69 | frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration_7_0.xml \ |
| 70 | frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ |
| 71 | frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml |
| 72 | |
| 73 | PRODUCT_COPY_FILES += \ |
| 74 | frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \ |
| 75 | frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \ |
| 76 | frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml |
| 77 | |
| 78 | AUDIO_HAL_DIR := hardware/qcom-caf/sm6225/audio/primary-hal |
| 79 | |
| 80 | PRODUCT_COPY_FILES += \ |
| 81 | $(AUDIO_HAL_DIR)/configs/common/codec2/media_codecs_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_c2_audio.xml \ |
| 82 | $(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 \ |
| 83 | $(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 \ |
| 84 | $(AUDIO_HAL_DIR)/configs/bengal/card-defs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/card-defs.xml \ |
| 85 | $(AUDIO_HAL_DIR)/configs/bengal/microphone_characteristics.xml:$(TARGET_COPY_OUT_VENDOR)/etc/microphone_characteristics.xml |
| 86 | |
| 87 | PRODUCT_COPY_FILES += \ |
| 88 | $(AUDIO_HAL_DIR)/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ |
| 89 | $(COMMON_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ |
| 90 | $(COMMON_PATH)/configs/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml |
| 91 | |
| 92 | $(call soong_config_set,android_hardware_audio,run_64bit,true) |
| 93 | |
| Cosmin Tanislav | 46b640f | 2025-02-19 02:44:05 +0200 | [diff] [blame] | 94 | # Boot control |
| 95 | PRODUCT_PACKAGES += \ |
| 96 | android.hardware.boot-service.qti \ |
| 97 | android.hardware.boot-service.qti.recovery |
| 98 | |
| 99 | $(call soong_config_set, ufsbsg, ufsframework, bsg) |
| 100 | |
| Arian | 596224a | 2024-01-08 21:21:04 +0100 | [diff] [blame] | 101 | # Display |
| 102 | PRODUCT_PACKAGES += \ |
| 103 | android.hardware.graphics.mapper@4.0-impl-qti-display \ |
| 104 | vendor.qti.hardware.display.allocator-service \ |
| 105 | vendor.qti.hardware.display.composer-service |
| 106 | |
| 107 | PRODUCT_PACKAGES += \ |
| 108 | init.qti.display_boot.rc \ |
| 109 | init.qti.display_boot.sh |
| 110 | |
| Nahhk | 0a5c32c | 2025-01-20 12:23:44 -0500 | [diff] [blame] | 111 | # Shipping API Level |
| 112 | BOARD_SHIPPING_API_LEVEL := 33 |
| 113 | |
| Nikita Savchenko | eaf4d07 | 2025-06-30 08:48:15 +0000 | [diff] [blame^] | 114 | # Fastboot |
| 115 | PRODUCT_PACKAGES += \ |
| 116 | fastbootd |
| 117 | |
| Nahhk | 7117b47 | 2025-03-19 06:23:56 -0500 | [diff] [blame] | 118 | # Inherit from vendor blobs |
| 119 | $(call inherit-product, vendor/xiaomi/sm6225-common/sm6225-common-vendor.mk) |