| 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 | |
| Bruno Martins | c005e02 | 2023-11-13 13:48:00 +0000 | [diff] [blame] | 118 | # Health |
| 119 | PRODUCT_PACKAGES += \ |
| 120 | android.hardware.health-service.qti \ |
| 121 | android.hardware.health-service.qti_recovery |
| 122 | |
| Nikita Savchenko | 2e08083 | 2025-06-30 08:53:06 +0000 | [diff] [blame] | 123 | # IPACM |
| 124 | PRODUCT_PACKAGES += \ |
| 125 | ipacm \ |
| 126 | IPACM_cfg.xml \ |
| 127 | IPACM_Filter_cfg.xml |
| 128 | |
| Yumi Yukimura | 89304f0 | 2025-02-13 14:48:54 +0800 | [diff] [blame] | 129 | # Thermal |
| 130 | PRODUCT_PACKAGES += \ |
| 131 | android.hardware.thermal-service.qti |
| 132 | |
| Nikita Savchenko | 8dbe186 | 2025-06-30 08:59:40 +0000 | [diff] [blame] | 133 | # Update engine |
| 134 | PRODUCT_PACKAGES += \ |
| 135 | update_engine \ |
| 136 | update_engine_sideload \ |
| 137 | update_verifier |
| 138 | |
| Nikita Savchenko | fbb9236 | 2025-06-30 09:07:29 +0000 | [diff] [blame] | 139 | # USB |
| 140 | PRODUCT_PACKAGES += \ |
| 141 | android.hardware.usb-service.qti \ |
| Yumi Yukimura | 9995615 | 2024-06-25 00:19:16 +0800 | [diff] [blame] | 142 | android.hardware.usb.gadget-service.qti \ |
| Nikita Savchenko | fbb9236 | 2025-06-30 09:07:29 +0000 | [diff] [blame] | 143 | init.qcom.usb.rc \ |
| Yumi Yukimura | 9995615 | 2024-06-25 00:19:16 +0800 | [diff] [blame] | 144 | init.qcom.usb.sh \ |
| 145 | usb_compositions.conf |
| 146 | |
| Nikita Savchenko | fbb9236 | 2025-06-30 09:07:29 +0000 | [diff] [blame] | 147 | |
| 148 | PRODUCT_SOONG_NAMESPACES += \ |
| 149 | vendor/qcom/opensource/usb/etc |
| 150 | |
| 151 | PRODUCT_COPY_FILES += \ |
| 152 | frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \ |
| 153 | frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml |
| 154 | |
| Nikita Savchenko | c211b41 | 2025-06-30 09:02:27 +0000 | [diff] [blame] | 155 | # Vendor service manager |
| 156 | PRODUCT_PACKAGES += \ |
| 157 | vndservicemanager |
| 158 | |
| LuK1337 | bb2b424 | 2025-01-17 10:28:23 +0100 | [diff] [blame] | 159 | # Vibrator |
| 160 | PRODUCT_PACKAGES += \ |
| 161 | vendor.qti.hardware.vibrator.service |
| 162 | |
| 163 | PRODUCT_COPY_FILES += \ |
| 164 | vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml |
| 165 | |
| Nikita Savchenko | 573492a | 2025-06-30 10:16:51 +0000 | [diff] [blame^] | 166 | # WiFi |
| 167 | PRODUCT_PACKAGES += \ |
| 168 | android.hardware.wifi-service \ |
| 169 | hostapd \ |
| 170 | libwifi-hal-qcom \ |
| 171 | wpa_supplicant \ |
| 172 | wpa_supplicant.conf |
| 173 | |
| 174 | # WiFi firmware symlinks |
| 175 | PRODUCT_PACKAGES += \ |
| 176 | firmware_qca_cld_wlan_mac.bin_symlink |
| 177 | firmware_qca_cld_WCNSS_qcom_cfg.ini_symlink |
| 178 | |
| 179 | # WiFi config files |
| 180 | PRODUCT_COPY_FILES += \ |
| 181 | $(LOCAL_PATH)/configs/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \ |
| 182 | $(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \ |
| 183 | $(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf |
| 184 | |
| 185 | PRODUCT_VENDOR_MOVE_ENABLED := true |
| 186 | |
| Nahhk | 7117b47 | 2025-03-19 06:23:56 -0500 | [diff] [blame] | 187 | # Inherit from vendor blobs |
| 188 | $(call inherit-product, vendor/xiaomi/sm6225-common/sm6225-common-vendor.mk) |