| Nahhk | 0b0b2e9 | 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 | # Inherit from those products. Most specific first. |
| 8 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) |
| 9 | $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) |
| 10 | |
| Bruno Martins | f28d22d | 2024-06-23 12:29:15 +0100 | [diff] [blame] | 11 | # Add common definitions for Qualcomm |
| 12 | $(call inherit-product, hardware/qcom-caf/common/common.mk) |
| 13 | |
| Nahhk | 0b0b2e9 | 2025-03-19 06:23:56 -0500 | [diff] [blame] | 14 | # Enable project quotas and casefolding for emulated storage without sdcardfs |
| 15 | $(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk) |
| 16 | |
| 17 | # Setup dalvik vm configs |
| 18 | $(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk) |
| 19 | |
| 20 | # Inherit the proprietary files |
| 21 | $(call inherit-product, vendor/xiaomi/sm6225-common/sm6225-common-vendor.mk) |
| Nahhk | f6a7fea | 2025-01-20 12:23:44 -0500 | [diff] [blame] | 22 | |
| Nahhk | bdc8b12 | 2024-12-19 15:20:28 -0500 | [diff] [blame] | 23 | # A/B |
| 24 | $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_ramdisk.mk) |
| 25 | $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/vabc_features.mk) |
| 26 | |
| 27 | PRODUCT_VIRTUAL_AB_COMPRESSION_METHOD := lz4 |
| 28 | |
| 29 | AB_OTA_POSTINSTALL_CONFIG += \ |
| 30 | RUN_POSTINSTALL_system=true \ |
| 31 | POSTINSTALL_PATH_system=system/bin/otapreopt_script \ |
| 32 | FILESYSTEM_TYPE_system=ext4 \ |
| 33 | POSTINSTALL_OPTIONAL_system=true |
| 34 | |
| 35 | AB_OTA_POSTINSTALL_CONFIG += \ |
| 36 | RUN_POSTINSTALL_vendor=true \ |
| 37 | POSTINSTALL_PATH_vendor=bin/checkpoint_gc \ |
| 38 | FILESYSTEM_TYPE_vendor=ext4 \ |
| 39 | POSTINSTALL_OPTIONAL_vendor=true |
| 40 | |
| 41 | PRODUCT_PACKAGES += \ |
| 42 | checkpoint_gc \ |
| 43 | otapreopt_script |
| 44 | |
| Cosmin Tanislav | 1a76291 | 2025-02-19 02:44:05 +0200 | [diff] [blame] | 45 | # Boot control |
| 46 | PRODUCT_PACKAGES += \ |
| 47 | android.hardware.boot-service.qti \ |
| 48 | android.hardware.boot-service.qti.recovery |
| 49 | |
| Nahhk | c20cc06 | 2025-03-19 08:42:03 -0500 | [diff] [blame] | 50 | # Fastbootd |
| 51 | PRODUCT_PACKAGES += \ |
| 52 | fastbootd |
| 53 | |
| Nahhk | e28898b | 2025-03-26 17:41:25 -0500 | [diff] [blame] | 54 | # Overlays |
| 55 | PRODUCT_PACKAGES += \ |
| 56 | CarrierConfigResCommon \ |
| Danny Baumann | 2681bab | 2018-07-18 17:25:32 +0200 | [diff] [blame] | 57 | DialerResCommon \ |
| Nahhk | e28898b | 2025-03-26 17:41:25 -0500 | [diff] [blame] | 58 | FrameworksResCommon \ |
| 59 | FrameworksResTarget \ |
| 60 | SettingsResCommon \ |
| 61 | SystemUIResCommon \ |
| 62 | TelephonyResCommon \ |
| 63 | WifiResCommon \ |
| 64 | WifiResTarget |
| 65 | |
| Michael Bestas | d0a68f8 | 2025-01-13 11:03:38 +0200 | [diff] [blame] | 66 | # Partitions |
| 67 | PRODUCT_PACKAGES += \ |
| 68 | vendor_bt_firmware_mountpoint \ |
| 69 | vendor_dsp_mountpoint \ |
| 70 | vendor_firmware_mnt_mountpoint |
| 71 | |
| Nahhk | 74c5149 | 2024-12-19 15:08:45 -0500 | [diff] [blame] | 72 | PRODUCT_USE_DYNAMIC_PARTITIONS := true |
| 73 | |
| Nahhk | c20cc06 | 2025-03-19 08:42:03 -0500 | [diff] [blame] | 74 | # Rootdir |
| 75 | PRODUCT_PACKAGES += \ |
| 76 | fstab.qcom \ |
| 77 | fstab.qcom.vendor_ramdisk \ |
| 78 | init.recovery.qcom.rc |
| 79 | |
| Nahhk | f6a7fea | 2025-01-20 12:23:44 -0500 | [diff] [blame] | 80 | # Shipping API Level |
| 81 | PRODUCT_SHIPPING_API_LEVEL := 33 |
| Alessandro Astone | 7042dfb | 2020-10-29 08:40:54 +0100 | [diff] [blame] | 82 | |
| 83 | # Soong namespaces |
| 84 | PRODUCT_SOONG_NAMESPACES += \ |
| Nahhk | f667664 | 2024-08-25 21:45:04 -0500 | [diff] [blame] | 85 | $(LOCAL_PATH) \ |
| 86 | hardware/xiaomi |
| Nahhk | bdc8b12 | 2024-12-19 15:20:28 -0500 | [diff] [blame] | 87 | |
| danielml | b10593d | 2024-06-16 10:30:40 +0200 | [diff] [blame^] | 88 | # Telephony |
| 89 | PRODUCT_PACKAGES += \ |
| 90 | xiaomi-telephony-stub |
| 91 | |
| 92 | PRODUCT_BOOT_JARS += \ |
| 93 | xiaomi-telephony-stub |
| 94 | |
| Nahhk | bdc8b12 | 2024-12-19 15:20:28 -0500 | [diff] [blame] | 95 | # Update engine |
| 96 | PRODUCT_PACKAGES += \ |
| 97 | update_engine \ |
| 98 | update_engine_sideload \ |
| 99 | update_verifier |
| 100 | |
| 101 | PRODUCT_PACKAGES_DEBUG += \ |
| 102 | update_engine_client |
| AdarshGrewal | 2aec982 | 2024-09-26 01:07:00 +0530 | [diff] [blame] | 103 | |
| 104 | # Vendor service manager |
| 105 | PRODUCT_PACKAGES += \ |
| 106 | vndservice \ |
| 107 | vndservicemanager |