blob: 752b66f3ebb339d5a6083d6c4e27278c1a4ce021 [file] [log] [blame]
Bharath756d7dd2021-08-07 23:53:55 +05301# Copyright 2021-2022 Fairphone B.V.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16FP_PATH := device/fairphone/FP3
17
lindaguo(103996)47226c12020-06-22 17:27:43 +080018# Disable data roaming by default
19PRODUCT_PROPERTY_OVERRIDES += \
20 ro.com.android.dataroaming=false
21
Bharath756d7dd2021-08-07 23:53:55 +053022# Call the vendor setup
23$(call inherit-product-if-exists, vendor/fairphone/fp3-common/device-vendor.mk)
24
25$(call inherit-product, build/make/target/product/product_launched_with_p.mk)
26
27$(call inherit-product, frameworks/native/build/phone-xhdpi-4096-dalvik-heap.mk)
28
Bharath12163282022-06-20 15:10:58 +053029# Inherit generic AOSP content for telephony based 64-bit devices
30$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
31$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk)
Bharath756d7dd2021-08-07 23:53:55 +053032
33PRODUCT_NAME := FP3
34PRODUCT_DEVICE := FP3
35PRODUCT_MODEL := FP3
36PRODUCT_MANUFACTURER := Fairphone
37PRODUCT_BRAND := Fairphone
38
39
40# Allow using custom and expressive names for our Android flavors while in fact
41# targeting the same model with all of them.
Bharath6a7439e2022-02-21 17:35:49 +053042PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_MODEL=FP3 PRODUCT_NAME=FP3 TARGET_PRODUCT=FP3
Bharath756d7dd2021-08-07 23:53:55 +053043
Bharath756d7dd2021-08-07 23:53:55 +053044
Bharathdccdc592022-03-31 12:10:41 +053045TARGET_SYSTEM_PROP := $(FP_PATH)/system.prop
Bharath756d7dd2021-08-07 23:53:55 +053046
Borjan Tchakaloff17a5b5f2018-05-11 11:35:06 +020047# Define the build number based on the product flavour and on the build manifest
48# revision
49ifneq (,$(strip $(PRODUCT_FLAVOR)))
50 _BUILD_MANIFEST_REV := $(shell (git -C $(TOPDIR).repo/manifests rev-parse --short=8 HEAD))
51 BUILD_NUMBER := $(PRODUCT_FLAVOR)-$(_BUILD_MANIFEST_REV)
52 HAS_BUILD_NUMBER := true
53else
54 $(error PRODUCT_FLAVOR must be defined)
55endif
Borjan Tchakaloff17a5b5f2018-05-11 11:35:06 +020056
Bharath756d7dd2021-08-07 23:53:55 +053057
Luca Weisse7ef1c82022-07-13 13:13:20 +020058# Define SPL for boot & vendor
59BOOT_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
60VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
61
62
Bharath756d7dd2021-08-07 23:53:55 +053063# We don't have the calibration data as this sort of
64# data can only be generated at the factory so don't generate persist.img
65FP3_SKIP_PERSIST_IMG := true
66
Bharath80ba1872021-08-21 11:53:57 +053067
68# Operator specific overlays
69DEVICE_PACKAGE_OVERLAYS += \
70 $(LOCAL_PATH)/overlay-operators
71
Bharath756d7dd2021-08-07 23:53:55 +053072# Overlays
73DEVICE_PACKAGE_OVERLAYS += \
74 $(LOCAL_PATH)/overlay
75
76
77# A/B related defines
78AB_OTA_UPDATER := true
Luca Weissd6c3ca12022-07-13 16:24:08 +020079AB_OTA_PARTITIONS := \
80 aboot \
81 cmnlib64 \
82 cmnlib \
83 devcfg \
84 dsp \
Bharath756d7dd2021-08-07 23:53:55 +053085 dtbo \
Luca Weissd6c3ca12022-07-13 16:24:08 +020086 keymaster \
87 lksecapp \
88 mdtp \
89 modem \
90 rpm \
91 sbl1 \
92 tz \
Bharath756d7dd2021-08-07 23:53:55 +053093 vbmeta \
Luca Weissd6c3ca12022-07-13 16:24:08 +020094 boot \
95 system \
Bharath756d7dd2021-08-07 23:53:55 +053096 vendor
97
98
Bharath756d7dd2021-08-07 23:53:55 +053099PRODUCT_PACKAGES += \
Bharath756d7dd2021-08-07 23:53:55 +0530100 update_engine_sideload
101
Bharath776a9712022-03-18 00:00:41 +0530102# Dynamic Partition
103# Enable retrofit dynamic partitions for FP3
104PRODUCT_USE_DYNAMIC_PARTITIONS := true
105PRODUCT_RETROFIT_DYNAMIC_PARTITIONS := true
106
107# Additional OTA partitions
108ifeq ($(PRODUCT_USE_DYNAMIC_PARTITIONS), true)
109AB_OTA_PARTITIONS += \
110 odm \
111 product \
112 system_ext
113
114# Check OTA update status
115PRODUCT_PACKAGES += check_dynamic_partitions
116
117# Ramdisk fstab file
118PRODUCT_PACKAGES += fstab_ramdisk.qcom
119
120AB_OTA_POSTINSTALL_CONFIG += \
121 RUN_POSTINSTALL_product=true \
122 POSTINSTALL_PATH_product=bin/check_dynamic_partitions \
123 FILESYSTEM_TYPE_product=ext4 \
124 POSTINSTALL_OPTIONAL_product=false
125
126endif
Bharath756d7dd2021-08-07 23:53:55 +0530127
Bharath2307d3b2022-01-06 22:23:25 +0530128# APN
129PRODUCT_COPY_FILES += \
130 $(LOCAL_PATH)/apns-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
131
132
Bharath756d7dd2021-08-07 23:53:55 +0530133# AVB
134BOARD_AVB_ENABLE := true
135
136
137# Additional native libraries
138PRODUCT_COPY_FILES += \
139 $(FP_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
140
141
Bharath12163282022-06-20 15:10:58 +0530142# OEM Unlock reporting
143PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
144 ro.oem_unlock_supported=1
145
146
Bharath756d7dd2021-08-07 23:53:55 +0530147# Atrace HAL
148PRODUCT_PACKAGES += \
149 android.hardware.atrace@1.0-service
150
151
152# Audio
Bharath756d7dd2021-08-07 23:53:55 +0530153PRODUCT_PACKAGES += \
154 android.hardware.audio@6.0 \
155 android.hardware.audio.common@6.0 \
156 android.hardware.audio.common@6.0-util \
Bharath70cf2ae2022-02-14 12:13:50 +0530157 android.hardware.audio@6.0-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530158 android.hardware.audio.effect@6.0 \
Bharath70cf2ae2022-02-14 12:13:50 +0530159 android.hardware.audio.effect@6.0-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530160 android.hardware.audio.service \
161 android.hardware.soundtrigger@2.1-impl \
162 audio.a2dp.default \
163 audio.primary.msm8953 \
164 audio.r_submix.default \
165 audio.usb.default \
166 libaacwrapper \
167 libaudio-resampler \
168 libautohal \
169 libqcompostprocbundle \
170 libqcomvisualizer \
171 libqcomvoiceprocessing \
172 libvolumelistener \
173 tinymix
174
175
176AUDIO_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal
177
178# Audio files
179PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530180 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
181 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
182 $(AUDIO_HAL_PATH)/configs/msm8953/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
183 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
184 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku3_tasha.xml \
185 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku4.xml \
186 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tasha.xml \
187 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tashalite.xml \
188 $(AUDIO_HAL_PATH)/configs/msm8953/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
189 $(AUDIO_HAL_PATH)/configs/msm8953/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
190 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
191 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
192 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku3_tasha.xml \
193 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku4.xml \
194 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
195 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \
196 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
197 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9306.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9306.xml \
198 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9330.xml \
199 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \
200 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
201
202
203# Audio config files
204PRODUCT_COPY_FILES += \
205 frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
206 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
207 frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
208 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
209 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
210 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
211
212# Custom config files
213PRODUCT_COPY_FILES += \
214 $(FP_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
215
216
217# Audio firmware files
218PRODUCT_COPY_FILES += \
219 $(FP_PATH)/aw/aw8898_cfg.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/aw8898_cfg.bin \
220 $(FP_PATH)/tas2557_fw/OBO_0617_music.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557_uCDSP.bin \
221 $(FP_PATH)/tas2557_fw/tas2557evm_OBO_0617.ftcfg:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557evm_aacspk_a.ftcfg
222
223
224# Audio Specific device overlays
225DEVICE_PACKAGE_OVERLAYS += $(AUDIO_HAL_PATH)/configs/common/overlay
226
227
228# Audio Specific properties
229# Properties
230-include $(LOCAL_PATH)/audio_properties.mk
231
232
233# Audio Kernel modules
234AUDIO_DLKM := audio_apr.ko
235AUDIO_DLKM += audio_q6_notifier.ko
236AUDIO_DLKM += audio_adsp_loader.ko
237AUDIO_DLKM += audio_q6.ko
238AUDIO_DLKM += audio_usf.ko
239AUDIO_DLKM += audio_pinctrl_wcd.ko
240AUDIO_DLKM += audio_swr.ko
241AUDIO_DLKM += audio_wcd_core.ko
242AUDIO_DLKM += audio_swr_ctrl.ko
243AUDIO_DLKM += audio_wsa881x.ko
244AUDIO_DLKM += audio_wsa881x_analog.ko
245AUDIO_DLKM += audio_platform.ko
246AUDIO_DLKM += audio_cpe_lsm.ko
247AUDIO_DLKM += audio_hdmi.ko
248AUDIO_DLKM += audio_stub.ko
249AUDIO_DLKM += audio_wcd9xxx.ko
250AUDIO_DLKM += audio_mbhc.ko
251AUDIO_DLKM += audio_wcd9335.ko
252AUDIO_DLKM += audio_wcd_cpe.ko
253AUDIO_DLKM += audio_digital_cdc.ko
254AUDIO_DLKM += audio_analog_cdc.ko
255AUDIO_DLKM += audio_native.ko
256AUDIO_DLKM += audio_machine_sdm450.ko
257AUDIO_DLKM += audio_machine_ext_sdm450.ko
258PRODUCT_PACKAGES += $(AUDIO_DLKM)
259
260
Bharath9cdcce22021-12-08 15:43:43 +0530261# Automation/ATS
262PRODUCT_PACKAGES += \
263 automation_setup \
264 automation_adb_setup
265
266
Bharathfe661fb2021-08-16 18:56:32 +0530267# ANT
268PRODUCT_PACKAGES += \
269 AntHalService \
270 antradio_app \
271 com.dsi.ant@1.0 \
Bharath70cf2ae2022-02-14 12:13:50 +0530272 com.dsi.ant@1.0.vendor \
Bharathfe661fb2021-08-16 18:56:32 +0530273 libantradio
274
Bharath756d7dd2021-08-07 23:53:55 +0530275# Bluetooth
Bharathfe661fb2021-08-16 18:56:32 +0530276PRODUCT_PACKAGES += \
Bharathfe661fb2021-08-16 18:56:32 +0530277 audio.bluetooth.default \
278 android.hardware.bluetooth.audio@2.0-impl \
279 android.hardware.bluetooth@1.0 \
280 vendor.qti.hardware.bluetooth_audio@2.0 \
281 vendor.qti.hardware.bluetooth_audio@2.1.vendor \
282 vendor.qti.hardware.btconfigstore@1.0.vendor
283
284# Bluetooth Permissions
285PRODUCT_COPY_FILES += \
286 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
287 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
Bharath756d7dd2021-08-07 23:53:55 +0530288
289
Bharath12163282022-06-20 15:10:58 +0530290# Board platforms lists to be used for
291# TARGET_BOARD_PLATFORM specific featurization
292QCOM_BOARD_PLATFORMS += msm8953
293
294
Bharath756d7dd2021-08-07 23:53:55 +0530295# Boot
296PRODUCT_PACKAGES += \
297 android.hardware.boot@1.0-impl \
298 android.hardware.boot@1.0-impl.recovery \
299 android.hardware.boot@1.0-service \
300 bootctrl.msm8953 \
Bharathe341d1d2022-04-06 09:49:27 +0530301 bootctrl.msm8953.recovery \
Bharath756d7dd2021-08-07 23:53:55 +0530302 update_engine \
303 update_engine_client \
304 update_engine_sideload \
305 update_verifier
306
Bharath12163282022-06-20 15:10:58 +0530307# MSM updater library
308PRODUCT_PACKAGES += librecovery_updater_msm
309
310
311# Skip boot jars check
312SKIP_BOOT_JARS_CHECK := true
313
Bharath756d7dd2021-08-07 23:53:55 +0530314
315# Boot animation
316TARGET_SCREEN_HEIGHT := 2160
317TARGET_SCREEN_WIDTH := 1080
318
319
320PRODUCT_COPY_FILES += \
321 vendor/fairphone/media/bootanimation/bootanimation.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip
322
323
324# Camera
Bharathcbfb0a92021-08-19 21:13:50 +0530325PRODUCT_PACKAGES += \
326 android.frameworks.displayservice@1.0.vendor \
327 android.hidl.base@1.0.vendor \
328 android.hardware.camera.device@3.5 \
329 android.hardware.camera.provider@2.4 \
330 android.hardware.camera.provider@2.4-external \
331 android.hardware.camera.provider@2.4-impl \
332 android.hardware.camera.provider@2.4-legacy \
333 android.hardware.camera.provider@2.4-service \
334 android.hardware.camera.provider@2.6 \
335 camera.device@1.0-impl \
336 camera.device@3.5-impl \
337 camera.device@3.6-external-impl \
338 camera.msm8953 \
339 cameraconfig.txt \
340 libcamera2ndk_vendor \
341 libhal_dbg \
342 libjni_burstpmk \
343 libjni_imageutil \
344 libjni_snapcammosaic \
345 libjni_snapcamtinyplanet \
346 libmm-qcamera \
347 libmmcamera_interface \
348 libmmjpeg_interface \
349 libmmlib2d_interface \
350 libqomx_core \
351 libxml2 \
352 mm-qcamera-app \
353 vendor.qti.hardware.camera.device@1.0 \
354 vendor.qti.hardware.camera.device@1.0.vendor
355
356# Fairphone Camera
357PRODUCT_PACKAGES += \
358 FairphoneCamera
359
360# Arcsoft camera libraries
361PRODUCT_PACKAGES += \
362 libarcimageprocess \
363 libarcsoft_aiscenedetection \
364 libarcsoft_hdr_detection \
365 libarcsoft_high_dynamic_range \
366 libarcsoft_low_light_hdr \
367 libarcsoft_low_light_shot \
368 libarcsoft_object_tracking \
369 libarcsoft_panorama_burstcapture \
370 libarcsoft_singlecam_bokeh \
371 libarcsoft_videoautozoom \
372 libarcsoft_videostabs \
373 libmpbase \
374 libmpbase.vendor
375
376# Feature flags for camera
377PRODUCT_COPY_FILES += \
378 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
379 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
380 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
381 frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml
Bharath756d7dd2021-08-07 23:53:55 +0530382
383
384# Component overrides
Bharathe025dac2022-08-02 15:02:41 +0530385PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530386 $(FP_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
387
388
Bharath12163282022-06-20 15:10:58 +0530389# Charger
390PRODUCT_PACKAGES += \
391 charger \
392 charger_res_images
393
394
395# Chromium
396PRODUCT_PACKAGES += \
397 libwebviewchromium_loader \
398 libwebviewchromium_plat_support
399
400
401# Curl
402PRODUCT_PACKAGES += \
403 curl \
404 libcurl
405
406
407# Data/rmnetctrl
408PRODUCT_PACKAGES += \
409 librmnetctl
410
leolee75d66582020-10-21 15:26:49 +0800411# IPV4
412PRODUCT_PROPERTY_OVERRIDES += \
413 persist.vendor.data.profile_update=true
414
Bharatha701c6b2022-07-25 17:26:28 +0530415PRODUCT_PROPERTY_OVERRIDES += ro.telephony.iwlan_operation_mode=legacy
416
Bharath12163282022-06-20 15:10:58 +0530417
Bharath756d7dd2021-08-07 23:53:55 +0530418# Display
419PRODUCT_PACKAGES += \
420 android.hardware.graphics.allocator@2.0-impl \
421 android.hardware.graphics.allocator@2.0-service \
422 android.hardware.graphics.composer@2.1-service \
423 android.hardware.graphics.mapper@2.0-impl-2.1 \
424 android.hardware.memtrack@1.0-impl \
425 android.hardware.memtrack@1.0-service \
426 gralloc.default \
427 gralloc.msm8953 \
428 hwcomposer.msm8953 \
Bharath12163282022-06-20 15:10:58 +0530429 libcomposerextn.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530430 libdisplayconfig \
Bharath12163282022-06-20 15:10:58 +0530431 libdisplayconfig.qti \
432 libdrm \
433 libgralloc.qti \
434 liblayerext.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530435 libqdMetaData \
Bharath12163282022-06-20 15:10:58 +0530436 libqdMetaData.system \
437 libqdutils \
438 libsmomo.qti \
439 libsmomoconfig.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530440 libvulkan \
Bharath12163282022-06-20 15:10:58 +0530441 memtrack.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530442 vendor.qti.hardware.display.composer@3.0
443
444
445# Vendor Display
446# Disable skip validate
447PRODUCT_PROPERTY_OVERRIDES += \
448 vendor.display.disable_skip_validate=1
449
Bharatha701c6b2022-07-25 17:26:28 +0530450PRODUCT_PROPERTY_OVERRIDES += ro.hardware.vulkan=adreno
451PRODUCT_PROPERTY_OVERRIDES += ro.hardware.egl=adreno
452
Bharath756d7dd2021-08-07 23:53:55 +0530453
454# Display Properties
455PRODUCT_AAPT_CONFIG := normal
456PRODUCT_AAPT_PREF_CONFIG := xxhdpi
457
458
459# DRM
460PRODUCT_PACKAGES += \
461 android.hardware.drm@1.3-service.clearkey
462
463
Pradeep Chenthatib4c3c102021-10-19 20:07:52 +0530464# Elabel
465PRODUCT_PACKAGES += \
466 eLabel.html.gz \
467 eLabel1.png \
468 eLabel2.png \
469 FAIRPHONE.html.gz \
470 FAIRPHONE.png
471
472
Bharath756d7dd2021-08-07 23:53:55 +0530473# Enable vndk-sp Libraries
474PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
475TARGET_USES_MKE2FS := true
476
477PRODUCT_PACKAGES += \
478 vndk_package
479
480
481# Encryption
482PRODUCT_PROPERTY_OVERRIDES += ro.crypto.allow_encrypt_override=true
483PRODUCT_PROPERTY_OVERRIDES += ro.crypto.volume.filenames_mode=aes-256-cts
484
485
Bharath12163282022-06-20 15:10:58 +0530486# E2fsck
487PRODUCT_PACKAGES += \
488 e2fsck
489
Bharath44ee36f2022-05-02 15:37:19 +0530490# ExFAT binaries
491PRODUCT_COPY_FILES += \
492 $(FP_PATH)/tuxera/exfatck:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatck \
493 $(FP_PATH)/tuxera/exfatdebug:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatdebug \
494 $(FP_PATH)/tuxera/exfatlabel:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatlabel \
495 $(FP_PATH)/tuxera/exfatvsn:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatvsn \
496 $(FP_PATH)/tuxera/mkexfat:$(TARGET_COPY_OUT_SYSTEM)/bin/mkexfat
497
498
Bharathe341d1d2022-04-06 09:49:27 +0530499# Fastbootd
500PRODUCT_PACKAGES += fastbootd
501
502
Bharath756d7dd2021-08-07 23:53:55 +0530503# FBE support
504PRODUCT_COPY_FILES += \
505 $(FP_PATH)/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh
506
507
Bharath1710e062021-08-20 11:30:47 +0530508# Feature flags and permissions
509PRODUCT_COPY_FILES += \
510 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
511 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
512 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
513 frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
514 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
515 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
516 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
517 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
518 frameworks/native/data/etc/android.hardware.vulkan.level-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level-0.xml \
Bharath0c86f4b2022-02-14 16:38:53 +0530519 frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version-1_1.xml \
Bharath1710e062021-08-20 11:30:47 +0530520 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
521 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
522 frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml \
Bharath1710e062021-08-20 11:30:47 +0530523 frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
524 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
525 frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
526 frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.software.verified_boot.xml \
Bharathdf89a7d2022-06-27 20:12:06 +0530527 frameworks/native/data/etc/android.software.vulkan.deqp.level-2019-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml \
Bharath1710e062021-08-20 11:30:47 +0530528 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
529
Bharath1dcb6512021-08-20 00:41:08 +0530530# Fingerprint
531PRODUCT_PACKAGES += \
532 android.hardware.biometrics.fingerprint@2.1 \
533 android.hardware.biometrics.fingerprint@2.1-service \
534 elan_device.rc \
535 fingerprint.default
536
537# Fingerprint files
538include $(FP_PATH)/elan_lib/fingerprint/elan_lib.mk
539
540# Fingerprint feature flag
541PRODUCT_COPY_FILES += \
542 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
543
544
Bharath756d7dd2021-08-07 23:53:55 +0530545# Framework Detect
546PRODUCT_PACKAGES += \
547 libqti_vndfwk_detect \
548 libqti_vndfwk_detect.vendor \
549 libvndfwk_detect_jni.qti \
550 libvndfwk_detect_jni.qti.vendor \
551 vndservicemanager
552
Bharath12163282022-06-20 15:10:58 +0530553# FRP
554PRODUCT_PROPERTY_OVERRIDES += ro.frp.pst=/dev/block/bootdevice/by-name/config
555
Bharath756d7dd2021-08-07 23:53:55 +0530556
557# HIDL
558PRODUCT_PACKAGES += \
559 android.hidl.base@1.0 \
560 libhidltransport \
561 libhidltransport.vendor \
562 libhwbinder \
563 libhwbinder.vendor
564
565
Bharath1710e062021-08-20 11:30:47 +0530566# GPS
567BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
Luca Weissa8a60262022-02-28 15:00:31 +0100568LOC_HIDL_VERSION := 4.0
Bharath1710e062021-08-20 11:30:47 +0530569
570PRODUCT_PACKAGES += \
Bharath70cf2ae2022-02-14 12:13:50 +0530571 android.hardware.gnss@2.1-impl-qti \
Bharath1710e062021-08-20 11:30:47 +0530572 android.hardware.gnss@2.1-service-qti \
573 libbatching \
574 libgeofencing \
575 libgnss \
576 libjson \
577 libwifi-hal-ctrl \
578 libgps.utils
579
580PRODUCT_PACKAGES += \
581 flp.conf \
582 gps.conf
583
584# gps/location secuity configuration file
585PRODUCT_COPY_FILES += \
586 $(FP_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
587
588# Permissions
589PRODUCT_COPY_FILES += \
590 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
591
Bharath12163282022-06-20 15:10:58 +0530592PRODUCT_PROPERTY_OVERRIDES += \
593 persist.backup.ntpServer=0.pool.ntp.org
594
Bharath1710e062021-08-20 11:30:47 +0530595
Bharath756d7dd2021-08-07 23:53:55 +0530596# Health
597PRODUCT_PACKAGES += \
598 android.hardware.health@2.1-impl \
599 android.hardware.health@2.1-impl.recovery \
600 android.hardware.health@2.1-service
601
602# IMS
603PRODUCT_PACKAGES += \
604 ims-ext-common \
605 ims_ext_common.xml \
606 ConfURIDialer
607
Bharath12163282022-06-20 15:10:58 +0530608
609# Init
610PRODUCT_PACKAGES += \
611 fstab.qcom \
612 init.class_main.sh \
613 init.crda.sh \
Karsten Tauschee270bad2022-08-22 15:41:19 +0200614 init.legacy_prop.rc \
Bharath12163282022-06-20 15:10:58 +0530615 init.mdm.sh \
616 init.qcom.class_core.sh \
617 init.qcom.coex.sh \
618 init.qcom.early_boot.sh \
619 init.qcom.efs.sync.sh \
620 init.qcom.factory.rc \
621 init.qcom.post_boot.sh \
622 init.qcom.rc \
623 init.qcom.sdio.sh \
624 init.qcom.sensors.sh \
625 init.qcom.sh \
626 init.qcom.usb.rc \
627 init.qcom.usb.sh \
628 init.recovery.qcom.rc \
629 init.target.rc \
630 init.veth_ipa_config.sh \
631 qca6234-service.sh \
632 ueventd.qcom.rc \
633 vold.fstab
634
635#intialise PRODUCT_PACKAGES_DEBUG list for debug modules
Luca Weiss2327bfb2022-07-13 09:47:07 +0200636PRODUCT_PACKAGES_DEBUG += init.qcom.testscripts.sh
Bharath12163282022-06-20 15:10:58 +0530637
638#Add init.qcom.test.rc to PRODUCT_PACKAGES_DEBUG list
639PRODUCT_PACKAGES_DEBUG += init.qcom.test.rc
640PRODUCT_PACKAGES_DEBUG += init.qcom.debug.sh
641
642ifneq ($(strip $(TARGET_BUILD_VARIANT)),user)
643PRODUCT_COPY_FILES += \
644 device/qcom/common/rootdir/etc/init.qcom.testscripts.sh:$(TARGET_COPY_OUT_PRODUCT)/etc/init.qcom.testscripts.sh
645endif
646
647PRODUCT_PACKAGES_DEBUG += \
648 init.qcom.debug.sh \
649 init.qcom.debug-sdm660.sh \
650 init.qcom.debug-sdm710.sh \
651 init.qti.debug-msmnile-apps.sh \
652 init.qti.debug-msmnile-modem.sh \
653 init.qti.debug-msmnile-slpi.sh \
654 init.qti.debug-talos.sh \
655 init.qti.debug-msmnile.sh \
656 init.qti.debug-kona.sh \
657 init.qti.debug-lito.sh \
658 init.qti.debug-trinket.sh \
659 init.qti.debug-atoll.sh \
660 init.qti.debug-lagoon.sh \
661 init.qti.debug-bengal.sh
662
663
664# IP and iptables
665PRODUCT_PACKAGES += \
666 ip \
667 libiprouteutil \
668 iptables \
669 ip-up-vpn \
670 libext
671
672
Bharath756d7dd2021-08-07 23:53:55 +0530673# IPACM
674PRODUCT_PACKAGES += \
675 ipacm \
676 IPACM_cfg.xml \
677 libipanat \
678 liboffloadhal \
679 libqsap_sdk
680
681# IRQ
682PRODUCT_COPY_FILES += \
683 $(FP_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
684 $(FP_PATH)/configs/msm_irqbalance_little_big.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance_little_big.conf
685
686
687# Kernel modules
688# Kernel modules install path
689KERNEL_MODULES_INSTALL := dlkm
690KERNEL_MODULES_OUT := out/target/product/$(PRODUCT_NAME)/$(KERNEL_MODULES_INSTALL)/lib/modules
Bharath12163282022-06-20 15:10:58 +0530691KERNEL_TO_BUILD_ROOT_OFFSET := ../../
692
693
694# Key layouts
695PRODUCT_PACKAGES += \
696 ft5x06_ts.kl \
697 gpio-keys.kl \
698 synaptics_dsx.kl \
699 synaptics_dsxv26.kl \
700 synaptics_rmi4_i2c.kl
Bharath756d7dd2021-08-07 23:53:55 +0530701
702
Bharatha701c6b2022-07-25 17:26:28 +0530703# Keystore
704PRODUCT_PROPERTY_OVERRIDES += ro.hardware.keystore_desede=true
705
706
Bharath756d7dd2021-08-07 23:53:55 +0530707# LED packages
708PRODUCT_PACKAGES += \
709 android.hardware.light@2.0-impl \
710 android.hardware.light@2.0-service \
711 lights.msm8953
712
713
714# Media / StagefrightCodec 2.0
715PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
716
Bharathe3615be2021-08-18 22:25:42 +0530717# Enable features in video HAL that can compile only on this platform
Bharath12163282022-06-20 15:10:58 +0530718MSM_VIDC_TARGET_LIST := msm8953
Bharathe3615be2021-08-18 22:25:42 +0530719TARGET_USES_MEDIA_EXTENSIONS := true
720
721
722# media_profiles and media_codecs xmls for msm8953
723PRODUCT_COPY_FILES += \
724 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles.xml \
725 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \
726 $(FP_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
727 $(FP_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
728 $(FP_PATH)/media/media_codecs_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_8953.xml \
729 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
730 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_8953.xml \
731 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles_8953_v1.xml \
732 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_8953_v1.xml \
733 $(FP_PATH)/media/media_codecs_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v1.xml \
734 $(FP_PATH)/media/media_codecs_performance_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v1.xml \
735 $(FP_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
Bharath12163282022-06-20 15:10:58 +0530736 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
737 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml
738
739PRODUCT_COPY_FILES += \
740 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
741 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
742 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
743 frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml \
744 frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \
745 frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
746 frameworks/av/media/libstagefright/data/media_codecs_google_c2_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_video.xml
Bharathe3615be2021-08-18 22:25:42 +0530747
Bharath756d7dd2021-08-07 23:53:55 +0530748
749# NFC
Bharath1710e062021-08-20 11:30:47 +0530750PRODUCT_PACKAGES += \
Bharathcaaa78e2022-09-06 10:18:06 +0530751 NQNfcNci \
Bharath1710e062021-08-20 11:30:47 +0530752 Tag \
753 com.android.nfc_extras \
754 com.nxp.nfc.nq \
755 com.nxp.nfc.nq.xml \
756 libnqnfc-nci \
757 libnqnfc_nci_jni \
758 nfc_nci.nqx.default.hw \
759 vendor.nxp.hardware.nfc@2.0-service
760
761# Permissions
762PRODUCT_COPY_FILES += \
763 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
764 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
765 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
766 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
767 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
768 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
769 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
770 vendor/nxp/opensource/halimpl/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
771 vendor/nxp/opensource/halimpl/SN100x/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci_SN100.conf
Bharath756d7dd2021-08-07 23:53:55 +0530772
773
774# OMX
775PRODUCT_PACKAGES += \
776 libavservices_minijail.vendor \
777 libc2dcolorconvert \
778 libOmxAacEnc \
779 libOmxAmrEnc \
780 libOmxCore \
781 libOmxEvrcEnc \
782 libOmxQcelp13Enc \
783 libOmxVdec \
784 libOmxVenc \
785 libqomx_core \
786 libaacwrapper \
787 libmm-omxcore \
788 libstagefrighthw \
789 libstagefright_softomx.vendor
790
791
792#
793# system prop for opengles version
794#
795# 196608 is decimal for 0x30000 to report major/minor versions as 3/0
796# 196609 is decimal for 0x30001 to report major/minor versions as 3/1
797# 196610 is decimal for 0x30002 to report major/minor versions as 3/2
798PRODUCT_PROPERTY_OVERRIDES += \
799 ro.opengles.version=196610
800
801
Bharath12163282022-06-20 15:10:58 +0530802# AOSP Packages
803PRODUCT_PACKAGES += \
804 DeskClock \
805 Calendar \
806 CalendarProvider \
807 Camera2 \
808 CertInstaller \
809 Gallery2 \
810 LatinIME \
811 Launcher3 \
812 LiveWallpapersPicker \
813 Music \
814 netutils-wrapper-1.0 \
815 Provision \
816 Protips \
817 QuickSearchBox \
818 Settings \
819 Stk \
820 SystemUI \
821
822
Bharath756d7dd2021-08-07 23:53:55 +0530823# Perf
824PRODUCT_COPY_FILES += \
825 $(FP_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
826
Bharath12163282022-06-20 15:10:58 +0530827PRODUCT_PROPERTY_OVERRIDES += \
828 persist.vendor.qcomsysd.enabled=1 \
829 ro.vendor.extension_library=libqti-perfd-client.so \
830 sys.vendor.shutdown.waittime=500
831
Bharath756d7dd2021-08-07 23:53:55 +0530832
833# Power
834PRODUCT_PACKAGES += \
835 android.hardware.power@1.0-impl \
836 android.hardware.power@1.0-service \
837 power.qcom
838
839
Bharath756d7dd2021-08-07 23:53:55 +0530840# privapp-permissions whitelisting
841PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
842
843
844# Protobuf
845PRODUCT_PACKAGES += \
846 libprotobuf-cpp-full \
847 libprotobuf-cpp-full-vendorcompat \
848 libprotobuf-cpp-lite-vendorcompat
849
850
Bharath12163282022-06-20 15:10:58 +0530851# include additional QCOM build utilities
852-include device/qcom/common/utils.mk
853
Bharath756d7dd2021-08-07 23:53:55 +0530854# RIL properties
855PRODUCT_PROPERTY_OVERRIDES += rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
856PRODUCT_PROPERTY_OVERRIDES += vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
857#vendor prop to disable advanced network scanning
858PRODUCT_PROPERTY_OVERRIDES += \
859 persist.vendor.radio.enableadvancedscan=false
860
Bharath12163282022-06-20 15:10:58 +0530861# Enable Dual SIM by default
862PRODUCT_PROPERTY_OVERRIDES += persist.radio.multisim.config=dsds
863
864PRODUCT_PROPERTY_OVERRIDES += \
865 persist.vendor.radio.apm_sim_not_pwdn=1 \
866 persist.vendor.radio.sib16_support=1 \
867 persist.vendor.radio.custom_ecc=1 \
868 persist.vendor.radio.rat_on=combine \
869 persist.vendor.radio.procedure_bytes=SKIP
870
Bharath756d7dd2021-08-07 23:53:55 +0530871
872# RenderScript
873PRODUCT_PACKAGES += \
874 android.hardware.renderscript@1.0-impl
875
876
877# SDCard
878# default is nosdcard, S/W button enabled in resource
879PRODUCT_CHARACTERISTICS := nosdcard
880
881
882# Seccomp
883PRODUCT_COPY_FILES += \
884 $(FP_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
885 $(FP_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
886
887
Bharath1710e062021-08-20 11:30:47 +0530888# Secure Element
889PRODUCT_PACKAGES += \
890 android.hardware.secure_element@1.2
891
892
Bharathca82a242022-08-18 19:48:51 +0530893# Sound Recorder
894PRODUCT_PACKAGES += \
895 QtiSoundRecorder
896
897
Bharath756d7dd2021-08-07 23:53:55 +0530898# System helper
899PRODUCT_PACKAGES += \
900 vendor.qti.hardware.systemhelper@1.0
901
902
903# Service tracker
904PRODUCT_PACKAGES += \
905 vendor.qti.hardware.servicetracker@1.2.vendor
906
907
Bharatha60665d2021-08-19 09:37:22 +0530908# Sensors
909PRODUCT_PACKAGES += \
910 sensors.FP3 \
911 android.hardware.sensors@1.0-impl \
912 android.hardware.sensors@1.0-service \
913 libsensorndkbridge
914
915# Sensor HAL conf file
916PRODUCT_COPY_FILES += \
917 $(FP_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
918
919# Feature definition files for msm8953
920PRODUCT_COPY_FILES += \
921 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
922 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
923 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
924 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
925 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
926 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
927 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
928
929
Bharath756d7dd2021-08-07 23:53:55 +0530930# Telephony Permissions
Bharath12163282022-06-20 15:10:58 +0530931# whitelisted app
932PRODUCT_COPY_FILES += \
933 device/qcom/common/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml
934
935PRODUCT_COPY_FILES += \
936 device/qcom/common/privapp-permissions-qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-qti.xml
937
938# Telephony wrappers
939PRODUCT_PACKAGES += \
940 qti-telephony-hidl-wrapper \
941 qti_telephony_hidl_wrapper.xml \
942 qti-telephony-utils \
943 qti_telephony_utils.xml
Bharath756d7dd2021-08-07 23:53:55 +0530944
945
946# Thermal
947PRODUCT_PACKAGES += \
948 android.hardware.thermal@1.0-impl \
949 android.hardware.thermal@1.0-service
950
951
952# Tinyxml
953PRODUCT_PACKAGES += \
954 libtinyxml
955
956# USB
957PRODUCT_PACKAGES += \
958 android.hardware.usb@1.0-service
959
960-include vendor/qcom/opensource/usb/vendor_product.mk
961
962
963# Vendor move
964PRODUCT_VENDOR_MOVE_ENABLED := true
965
966
967# Vibrator
968PRODUCT_PACKAGES += \
969 android.hardware.vibrator@1.0-impl \
Bharath12163282022-06-20 15:10:58 +0530970 android.hardware.vibrator@1.0-service \
971 vendor.qti.hardware.vibrator.service
972
973PRODUCT_COPY_FILES += \
974 vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml
Bharath756d7dd2021-08-07 23:53:55 +0530975
976
Bharathed255712021-08-14 20:37:05 +0530977# WiFi
978# WLAN drivers
979PRODUCT_COPY_FILES += \
980 $(FP_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
981 $(FP_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_wlan_dictionary.dat \
982 $(FP_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin # From Android 10
983
984# Flag to check if wcnss_service is built from source
985TARGET_USE_WCNSS_HAL := false
986
987# If building from source then drop proprietary dependency
988ifeq ($(TARGET_USE_WCNSS_HAL),true)
989TARGET_USES_QCOM_WCNSS_QMI := false
Bharath70cf2ae2022-02-14 12:13:50 +0530990
991PRODUCT_PACKAGES += \
992 libwcnss_qmi \
993 wcnss_service
Bharathed255712021-08-14 20:37:05 +0530994endif
995
996# WiFi HAL
997PRODUCT_PACKAGES += \
998 android.hardware.wifi@1.0-service
999
Bharath12163282022-06-20 15:10:58 +05301000# WLAN DLKM
1001PRODUCT_PACKAGES += \
1002 pronto_wlan.ko
1003
Bharathed255712021-08-14 20:37:05 +05301004# WiFi Components
1005PRODUCT_PACKAGES += \
1006 hostapd \
1007 hostapd.accept \
1008 hostapd.deny \
1009 hostapd_cli \
1010 hostapd_default.conf \
1011 libnl \
1012 libqsap_sdk \
Bharathed255712021-08-14 20:37:05 +05301013 libwifi-hal-qcom \
1014 libwpa_client \
1015 p2p_supplicant_overlay.conf \
1016 vendor.qti.hardware.wifi.supplicant@1.0.vendor \
Bharathed255712021-08-14 20:37:05 +05301017 wificond \
1018 wpa_cli \
1019 wpa_supplicant.conf \
1020 wpa_supplicant \
1021 wpa_supplicant_overlay.conf \
1022 WifiOverlay \
1023 TetheringConfigOverlay
1024
1025
Bharath12163282022-06-20 15:10:58 +05301026# Zlib
1027PRODUCT_HOST_PACKAGES += minigzip
1028
1029
1030#soong namespace for qssi vs vendor differentiation
1031SOONG_CONFIG_NAMESPACES += qssi_vs_vendor
1032SOONG_CONFIG_qssi_vs_vendor += qssi_or_vendor
1033SOONG_CONFIG_qssi_vs_vendor_qssi_or_vendor := vendor
1034
1035SOONG_CONFIG_NAMESPACES += aosp_vs_qva
1036SOONG_CONFIG_aosp_vs_qva += aosp_or_qva
1037ifeq ($(TARGET_FWK_SUPPORTS_FULL_VALUEADDS),true)
1038SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := qva
1039else
1040SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := aosp
1041endif
1042
1043SOONG_CONFIG_NAMESPACES += qtidisplaycommonsys
1044# Soong Keys
1045SOONG_CONFIG_qtidisplaycommonsys := displayconfig_enabled
1046# Soong Values
1047SOONG_CONFIG_qtidisplaycommonsys_displayconfig_enabled := true
1048
1049
Bharath756d7dd2021-08-07 23:53:55 +05301050# Call the proprietary setup
Bharatha3a85a72022-05-23 17:50:24 +05301051FP3_PROPRIETARY_PATH := device/fairphone/fp3-proprietary
Bharatha3a85a72022-05-23 17:50:24 +05301052
Karsten Tauscheff99b112022-09-19 12:04:31 +02001053DEVICE_BLOB_VERSION := 4.A.0017.2
Francesco Salvatore03117482019-02-28 16:39:11 +01001054
1055GET_BLOBS_CMD = vendor/fairphone/tools/bin/get_blobs.py --device FP3 --build-id $(DEVICE_BLOB_VERSION) --blobs-dir $(FP3_PROPRIETARY_PATH)
1056
1057# Check the presence of proprietary blobs
1058ifeq ("$(wildcard $(FP3_PROPRIETARY_PATH)/device-vendor.mk)","")
1059define BLOBS_INSTRUCTION
1060Cannot find FP3 binary blobs.
1061Please run
1062 $(GET_BLOBS_CMD)
1063and accept the terms of agreement.
1064endef
1065$(error $(BLOBS_INSTRUCTION))
1066endif
1067
Bharath756d7dd2021-08-07 23:53:55 +05301068# Call this in the end so that flags if required can be utilized.
Bharatha3a85a72022-05-23 17:50:24 +05301069$(call inherit-product, $(FP3_PROPRIETARY_PATH)/device-vendor.mk)
1070
Bharath12163282022-06-20 15:10:58 +05301071# Build some more display components to vendor
1072$(call inherit-product, vendor/qcom/opensource/commonsys-intf/display/config/display-interfaces-product.mk)
Bharath756d7dd2021-08-07 23:53:55 +05301073###################################################################################