blob: 9db386de80c705385d071770c24fa25716c0580e [file] [log] [blame]
merothh54856102021-11-04 12:07:41 +05301#
2# Copyright (C) 2021 The LineageOS Project
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6
7PRODUCT_USE_DYNAMIC_PARTITIONS := true
Roger Liao67b33f62020-04-06 23:38:49 +08008PRODUCT_SHIPPING_API_LEVEL := 30
merothh54856102021-11-04 12:07:41 +05309
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 Stefani82ac4352019-09-12 23:47:56 +020016# Enable updating of APEXes
17$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
18
Lokesh Gidra9fe4b8c2019-12-06 13:19:19 -080019# Setup dalvik vm configs
20$(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
21
merothhacf1dfa2022-01-02 18:21:21 +053022# Get non-open-source specific aspects
23$(call inherit-product, vendor/fairphone/FP4/FP4-vendor.mk)
24
merothh750fa002022-01-02 19:42:51 +053025# Overlays
26DEVICE_PACKAGE_OVERLAYS += \
27 $(LOCAL_PATH)/overlay
28
29PRODUCT_ENFORCE_RRO_TARGETS := *
30
merothh54856102021-11-04 12:07:41 +053031# A/B
32PRODUCT_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
37AB_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
43AB_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
49PRODUCT_PACKAGES += \
50 checkpoint_gc \
51 otapreopt_script
52
53PRODUCT_PACKAGES += \
54 update_engine \
55 update_engine_client \
56 update_verifier \
57 update_engine_sideload
58
Sebastiano Barezzif8bb2bd2021-02-10 21:58:07 +010059# Atrace
60PRODUCT_PACKAGES += \
61 android.hardware.atrace@1.0-service
62
merothh750fa002022-01-02 19:42:51 +053063# Audio (HIDL)
64PRODUCT_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)
71PRODUCT_PACKAGES += \
72 audio.a2dp.default \
73 audio.primary.lito \
74 audio.r_submix.default \
75 audio.usb.default
76
77# Audio (Extensions)
78PRODUCT_PACKAGES += \
79 liba2dpoffload \
80 libbatterylistener \
81 libcomprcapture \
82 libexthwplugin \
83 libhdmiedid \
84 libhfp \
85 libsndmonitor \
86 libspkrprot
87
88# Audio (SoundFX)
89PRODUCT_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
merothhd7649fd2022-01-02 20:05:19 +0530103PRODUCT_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
114PRODUCT_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
merothh2e0e5682022-01-02 20:25:57 +0530122# Biometrics
123PRODUCT_PACKAGES += \
124 android.hardware.biometrics.fingerprint@2.1-service
125
merothh750fa002022-01-02 19:42:51 +0530126# Bluetooth
127PRODUCT_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
merothha507a0f2022-01-02 20:11:36 +0530134# Camera
135PRODUCT_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
141PRODUCT_PACKAGES += \
142 Snap
143
PIPIPIG2336668bc6eb12022-01-02 20:07:31 +0530144# Component overrides
145PRODUCT_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
merothh7af51cb2022-01-02 20:14:21 +0530149# Display
150PRODUCT_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 Barezzi2789dea2021-02-10 22:01:11 +0100176# DRM
177PRODUCT_PACKAGES += \
178 android.hardware.drm@1.3-service.clearkey
179
merothh2b9692d2022-01-14 00:55:59 +0530180# Euicc
181PRODUCT_COPY_FILES += \
182 $(LOCAL_PATH)/configs/privapp-permissions-euicc.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-euicc.xml
183
merothh54856102021-11-04 12:07:41 +0530184# fastbootd
185PRODUCT_PACKAGES += \
186 fastbootd
187
Sebastiano Barezzif97d62a2021-02-10 22:01:44 +0100188# Health
189PRODUCT_PACKAGES += \
190 android.hardware.health@2.1-impl \
191 android.hardware.health@2.1-service
192
Sebastiano Barezzi63afb8d2021-02-10 22:02:15 +0100193# HIDL
194PRODUCT_PACKAGES += \
195 libhwbinder.vendor
196
Sebastiano Barezzi7e8029e2021-02-10 22:02:37 +0100197# IPACM
198PRODUCT_PACKAGES += \
199 ipacm \
200 IPACM_cfg.xml \
201 libipanat \
202 liboffloadhal
203
merothh431b69d2022-01-03 01:32:52 +0530204# Media
205PRODUCT_PACKAGES += \
206 libavservices_minijail \
207 libavservices_minijail.vendor
208
merothhf25a4a72022-01-02 21:45:42 +0530209PRODUCT_COPY_FILES += \
210 $(LOCAL_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
211 $(LOCAL_PATH)/media/media_codecs_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_c2.xml \
212 $(LOCAL_PATH)/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
213 $(LOCAL_PATH)/media/media_codecs_performance_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v1.xml \
214 $(LOCAL_PATH)/media/media_codecs_performance_v2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v2.xml \
215 $(LOCAL_PATH)/media/media_codecs_performance_v3.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v2.xml \
216 $(LOCAL_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
217 $(LOCAL_PATH)/media/media_codecs_vendor_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v1.xml \
218 $(LOCAL_PATH)/media/media_codecs_vendor_v2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v2.xml \
219 $(LOCAL_PATH)/media/media_codecs_vendor_v3.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v3.xml \
220 $(LOCAL_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
221 $(LOCAL_PATH)/media/media_profiles_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml
222
merothh694b09a2022-01-02 22:58:24 +0530223# Media (Codec2)
224PRODUCT_PACKAGES += \
225 libcodec2_hidl@1.0.vendor \
226 libcodec2_vndk.vendor \
227
Subash Abhinov Kasiviswanathan3f16b3b2022-01-02 22:22:14 +0530228# Net
229PRODUCT_PACKAGES += \
230 netutils-wrapper-1.0
231
Andrew Hexena9aed252020-09-26 11:51:58 -0700232# NFC
233PRODUCT_PACKAGES += \
234 android.hardware.nfc@1.2-service.st \
235 com.android.nfc_extras \
236 NfcNci \
237 SecureElement \
238 Tag
239
Sebastiano Barezzied138322021-02-10 22:04:15 +0100240# OMX
241PRODUCT_PACKAGES += \
242 libmm-omxcore \
243 libOmxAacEnc \
244 libOmxAmrEnc \
245 libOmxCore \
246 libOmxEvrcEnc \
247 libOmxG711Enc \
248 libOmxQcelp13Enc \
249 libOmxVdec \
250 libOmxVenc \
251 libstagefrighthw
252
Sebastiano Barezziff0754a2021-02-10 22:05:37 +0100253# Power
254PRODUCT_PACKAGES += \
255 android.hardware.power-service-qti \
256 vendor.qti.hardware.perf@2.2.vendor
257
merothh00be0602022-01-02 23:00:09 +0530258# Public libraries
259PRODUCT_COPY_FILES += \
260 $(LOCAL_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
261
Sebastiano Barezzi17434b22021-02-10 22:06:22 +0100262# QTI fwk-detect
263PRODUCT_PACKAGES += \
264 libqti_vndfwk_detect \
265 libqti_vndfwk_detect.vendor \
266 libvndfwk_detect_jni.qti \
267 libvndfwk_detect_jni.qti.vendor
268
Sebastiano Barezzi0441dfa2021-02-10 22:06:43 +0100269# RIL
270PRODUCT_PACKAGES += \
271 libjson \
272 libprotobuf-cpp-full \
273 librmnetctl \
274 libxml2
275
Andrew Hexen3929a452021-02-15 06:33:18 -0800276# Sensors
277PRODUCT_PACKAGES += \
278 android.hardware.sensors@2.0-service.multihal
279
merothh54856102021-11-04 12:07:41 +0530280# Soong Namespaces
281PRODUCT_SOONG_NAMESPACES += \
282 $(LOCAL_PATH)
283
Sebastiano Barezzid70ce292021-02-10 22:08:35 +0100284# Telephony
285PRODUCT_PACKAGES += \
286 ims-ext-common \
287 ims_ext_common.xml \
288 qti-telephony-hidl-wrapper \
289 qti_telephony_hidl_wrapper.xml \
290 qti-telephony-utils \
291 qti_telephony_utils.xml \
292 telephony-ext
293
294PRODUCT_BOOT_JARS += \
295 telephony-ext
296
merothh54856102021-11-04 12:07:41 +0530297# Ramdisk
298PRODUCT_COPY_FILES += \
299 $(LOCAL_PATH)/rootdir/etc/fstab.default:$(TARGET_COPY_OUT_RAMDISK)/fstab.default