merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2021 The LineageOS Project |
| 3 | # |
| 4 | # SPDX-License-Identifier: Apache-2.0 |
| 5 | # |
| 6 | |
| 7 | PRODUCT_USE_DYNAMIC_PARTITIONS := true |
Roger Liao | 67b33f6 | 2020-04-06 23:38:49 +0800 | [diff] [blame] | 8 | PRODUCT_SHIPPING_API_LEVEL := 30 |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 9 | |
| 10 | # Enable virtual A/B OTA |
| 11 | $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk) |
| 12 | |
| 13 | # Include GSI keys |
| 14 | $(call inherit-product, build/make/target/product/gsi_keys.mk) |
| 15 | |
Luca Stefani | 82ac435 | 2019-09-12 23:47:56 +0200 | [diff] [blame] | 16 | # Enable updating of APEXes |
| 17 | $(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk) |
| 18 | |
Lokesh Gidra | 9fe4b8c | 2019-12-06 13:19:19 -0800 | [diff] [blame] | 19 | # Setup dalvik vm configs |
| 20 | $(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk) |
| 21 | |
merothh | acf1dfa | 2022-01-02 18:21:21 +0530 | [diff] [blame] | 22 | # Get non-open-source specific aspects |
| 23 | $(call inherit-product, vendor/fairphone/FP4/FP4-vendor.mk) |
| 24 | |
merothh | 750fa00 | 2022-01-02 19:42:51 +0530 | [diff] [blame] | 25 | # Overlays |
| 26 | DEVICE_PACKAGE_OVERLAYS += \ |
| 27 | $(LOCAL_PATH)/overlay |
| 28 | |
| 29 | PRODUCT_ENFORCE_RRO_TARGETS := * |
| 30 | |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 31 | # A/B |
| 32 | PRODUCT_PACKAGES += \ |
| 33 | android.hardware.boot@1.1-impl-qti \ |
| 34 | android.hardware.boot@1.1-impl-qti.recovery \ |
| 35 | android.hardware.boot@1.1-service |
| 36 | |
| 37 | AB_OTA_POSTINSTALL_CONFIG += \ |
| 38 | RUN_POSTINSTALL_system=true \ |
| 39 | POSTINSTALL_PATH_system=system/bin/otapreopt_script \ |
| 40 | FILESYSTEM_TYPE_system=ext4 \ |
| 41 | POSTINSTALL_OPTIONAL_system=true |
| 42 | |
| 43 | AB_OTA_POSTINSTALL_CONFIG += \ |
| 44 | RUN_POSTINSTALL_vendor=true \ |
| 45 | POSTINSTALL_PATH_vendor=bin/checkpoint_gc \ |
| 46 | FILESYSTEM_TYPE_vendor=ext4 \ |
| 47 | POSTINSTALL_OPTIONAL_vendor=true |
| 48 | |
| 49 | PRODUCT_PACKAGES += \ |
| 50 | checkpoint_gc \ |
| 51 | otapreopt_script |
| 52 | |
| 53 | PRODUCT_PACKAGES += \ |
| 54 | update_engine \ |
| 55 | update_engine_client \ |
| 56 | update_verifier \ |
| 57 | update_engine_sideload |
| 58 | |
Sebastiano Barezzi | f8bb2bd | 2021-02-10 21:58:07 +0100 | [diff] [blame] | 59 | # Atrace |
| 60 | PRODUCT_PACKAGES += \ |
| 61 | android.hardware.atrace@1.0-service |
| 62 | |
merothh | 750fa00 | 2022-01-02 19:42:51 +0530 | [diff] [blame] | 63 | # Audio (HIDL) |
| 64 | PRODUCT_PACKAGES += \ |
| 65 | android.hardware.audio@6.0-impl \ |
| 66 | android.hardware.audio.effect@6.0-impl \ |
| 67 | android.hardware.audio.service \ |
| 68 | android.hardware.soundtrigger@2.3-impl |
| 69 | |
| 70 | # Audio (Hardware) |
| 71 | PRODUCT_PACKAGES += \ |
| 72 | audio.a2dp.default \ |
| 73 | audio.primary.lito \ |
| 74 | audio.r_submix.default \ |
| 75 | audio.usb.default |
| 76 | |
| 77 | # Audio (Extensions) |
| 78 | PRODUCT_PACKAGES += \ |
| 79 | liba2dpoffload \ |
| 80 | libbatterylistener \ |
| 81 | libcomprcapture \ |
| 82 | libexthwplugin \ |
| 83 | libhdmiedid \ |
| 84 | libhfp \ |
| 85 | libsndmonitor \ |
| 86 | libspkrprot |
| 87 | |
| 88 | # Audio (SoundFX) |
| 89 | PRODUCT_PACKAGES += \ |
| 90 | libaudiopreprocessing \ |
| 91 | libbundlewrapper \ |
| 92 | libdownmix \ |
| 93 | libdynproc \ |
| 94 | libeffectproxy \ |
| 95 | libldnhncr \ |
| 96 | libqcompostprocbundle \ |
| 97 | libqcomvisualizer \ |
| 98 | libqcomvoiceprocessing \ |
| 99 | libreverbwrapper \ |
| 100 | libvisualizer \ |
| 101 | libvolumelistener |
| 102 | |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 103 | PRODUCT_COPY_FILES += \ |
| 104 | $(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ |
| 105 | $(LOCAL_PATH)/audio/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \ |
| 106 | $(LOCAL_PATH)/audio/audio_platform_info_lagoon_fp4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_lagoon_fp4.xml \ |
| 107 | $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ |
| 108 | $(LOCAL_PATH)/audio/bluetooth_qti_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_qti_audio_policy_configuration.xml \ |
| 109 | $(LOCAL_PATH)/audio/bluetooth_qti_hearing_aid_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_qti_hearing_aid_audio_policy_configuration.xml \ |
| 110 | $(LOCAL_PATH)/audio/mixer_paths_lagoon_fp4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_lagoon_fp4.xml \ |
| 111 | $(LOCAL_PATH)/audio/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \ |
| 112 | $(LOCAL_PATH)/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml |
| 113 | |
| 114 | PRODUCT_COPY_FILES += \ |
| 115 | frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \ |
| 116 | frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ |
| 117 | frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \ |
| 118 | frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ |
| 119 | frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ |
| 120 | frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml |
| 121 | |
merothh | 2e0e568 | 2022-01-02 20:25:57 +0530 | [diff] [blame] | 122 | # Biometrics |
| 123 | PRODUCT_PACKAGES += \ |
| 124 | android.hardware.biometrics.fingerprint@2.1-service |
| 125 | |
merothh | 750fa00 | 2022-01-02 19:42:51 +0530 | [diff] [blame] | 126 | # Bluetooth |
| 127 | PRODUCT_PACKAGES += \ |
| 128 | audio.bluetooth.default \ |
| 129 | com.dsi.ant@1.0.vendor \ |
| 130 | vendor.qti.hardware.bluetooth_audio@2.1.vendor \ |
| 131 | vendor.qti.hardware.btconfigstore@1.0.vendor \ |
| 132 | vendor.qti.hardware.btconfigstore@2.0.vendor |
| 133 | |
merothh | a507a0f | 2022-01-02 20:11:36 +0530 | [diff] [blame] | 134 | # Camera |
| 135 | PRODUCT_PACKAGES += \ |
| 136 | android.hardware.camera.provider@2.4-impl \ |
| 137 | android.hardware.camera.provider@2.4-service_64 \ |
| 138 | vendor.qti.hardware.camera.device@1.0.vendor \ |
| 139 | vendor.qti.hardware.camera.postproc@1.0.vendor |
| 140 | |
| 141 | PRODUCT_PACKAGES += \ |
| 142 | Snap |
| 143 | |
PIPIPIG233666 | 8bc6eb1 | 2022-01-02 20:07:31 +0530 | [diff] [blame] | 144 | # Component overrides |
| 145 | PRODUCT_COPY_FILES += \ |
| 146 | $(LOCAL_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml \ |
| 147 | $(LOCAL_PATH)/configs/component-overrides_qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/component-overrides.xml |
| 148 | |
merothh | 7af51cb | 2022-01-02 20:14:21 +0530 | [diff] [blame] | 149 | # Display |
| 150 | PRODUCT_PACKAGES += \ |
| 151 | android.hardware.graphics.mapper@3.0-impl-qti-display \ |
| 152 | android.hardware.graphics.mapper@4.0-impl-qti-display \ |
| 153 | android.hardware.memtrack@1.0-impl \ |
| 154 | android.hardware.memtrack@1.0-service \ |
| 155 | android.hardware.renderscript@1.0-impl \ |
| 156 | gralloc.lito \ |
| 157 | memtrack.lito \ |
| 158 | libdisplayconfig.qti \ |
| 159 | libdisplayconfig.qti.vendor \ |
| 160 | libqdMetaData \ |
| 161 | libsdmcore \ |
| 162 | libsdmutils \ |
| 163 | libtinyxml \ |
| 164 | libvulkan \ |
| 165 | vendor.display.config@1.5 \ |
| 166 | vendor.display.config@1.11.vendor \ |
| 167 | vendor.display.config@2.0 \ |
| 168 | vendor.display.config@2.0.vendor \ |
| 169 | vendor.qti.hardware.display.allocator-service \ |
| 170 | vendor.qti.hardware.display.composer-service \ |
| 171 | vendor.qti.hardware.display.mapper@1.1.vendor \ |
| 172 | vendor.qti.hardware.display.mapper@2.0.vendor \ |
| 173 | vendor.qti.hardware.display.mapper@3.0.vendor \ |
| 174 | vendor.qti.hardware.display.mapper@4.0.vendor |
| 175 | |
Sebastiano Barezzi | 2789dea | 2021-02-10 22:01:11 +0100 | [diff] [blame] | 176 | # DRM |
| 177 | PRODUCT_PACKAGES += \ |
| 178 | android.hardware.drm@1.3-service.clearkey |
| 179 | |
merothh | 2b9692d | 2022-01-14 00:55:59 +0530 | [diff] [blame] | 180 | # Euicc |
| 181 | PRODUCT_COPY_FILES += \ |
| 182 | $(LOCAL_PATH)/configs/privapp-permissions-euicc.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-euicc.xml |
| 183 | |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 184 | # fastbootd |
| 185 | PRODUCT_PACKAGES += \ |
| 186 | fastbootd |
| 187 | |
Sebastiano Barezzi | f97d62a | 2021-02-10 22:01:44 +0100 | [diff] [blame] | 188 | # Health |
| 189 | PRODUCT_PACKAGES += \ |
| 190 | android.hardware.health@2.1-impl \ |
| 191 | android.hardware.health@2.1-service |
| 192 | |
Sebastiano Barezzi | 63afb8d | 2021-02-10 22:02:15 +0100 | [diff] [blame] | 193 | # HIDL |
| 194 | PRODUCT_PACKAGES += \ |
| 195 | libhwbinder.vendor |
| 196 | |
Sebastiano Barezzi | 7e8029e | 2021-02-10 22:02:37 +0100 | [diff] [blame^] | 197 | # IPACM |
| 198 | PRODUCT_PACKAGES += \ |
| 199 | ipacm \ |
| 200 | IPACM_cfg.xml \ |
| 201 | libipanat \ |
| 202 | liboffloadhal |
| 203 | |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 204 | # Soong Namespaces |
| 205 | PRODUCT_SOONG_NAMESPACES += \ |
| 206 | $(LOCAL_PATH) |
| 207 | |
| 208 | # Ramdisk |
| 209 | PRODUCT_COPY_FILES += \ |
| 210 | $(LOCAL_PATH)/rootdir/etc/fstab.default:$(TARGET_COPY_OUT_RAMDISK)/fstab.default |