blob: 7e36246f4b0b61223c14a7feb906bb751b1c2aa9 [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
Bharath776a9712022-03-18 00:00:41 +0530114# Ramdisk fstab file
115PRODUCT_PACKAGES += fstab_ramdisk.qcom
116
Bharath776a9712022-03-18 00:00:41 +0530117endif
Bharath756d7dd2021-08-07 23:53:55 +0530118
Bharath2307d3b2022-01-06 22:23:25 +0530119# APN
120PRODUCT_COPY_FILES += \
121 $(LOCAL_PATH)/apns-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
122
123
Bharath756d7dd2021-08-07 23:53:55 +0530124# AVB
125BOARD_AVB_ENABLE := true
126
127
128# Additional native libraries
129PRODUCT_COPY_FILES += \
130 $(FP_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
131
132
Bharath12163282022-06-20 15:10:58 +0530133# OEM Unlock reporting
134PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
135 ro.oem_unlock_supported=1
136
137
Bharath756d7dd2021-08-07 23:53:55 +0530138# Atrace HAL
139PRODUCT_PACKAGES += \
140 android.hardware.atrace@1.0-service
141
142
143# Audio
Bharath756d7dd2021-08-07 23:53:55 +0530144PRODUCT_PACKAGES += \
145 android.hardware.audio@6.0 \
146 android.hardware.audio.common@6.0 \
147 android.hardware.audio.common@6.0-util \
Bharath70cf2ae2022-02-14 12:13:50 +0530148 android.hardware.audio@6.0-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530149 android.hardware.audio.effect@6.0 \
Bharath70cf2ae2022-02-14 12:13:50 +0530150 android.hardware.audio.effect@6.0-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530151 android.hardware.audio.service \
152 android.hardware.soundtrigger@2.1-impl \
153 audio.a2dp.default \
154 audio.primary.msm8953 \
155 audio.r_submix.default \
156 audio.usb.default \
157 libaacwrapper \
158 libaudio-resampler \
159 libautohal \
160 libqcompostprocbundle \
161 libqcomvisualizer \
162 libqcomvoiceprocessing \
163 libvolumelistener \
164 tinymix
165
166
167AUDIO_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal
168
169# Audio files
170PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530171 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
172 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
173 $(AUDIO_HAL_PATH)/configs/msm8953/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
174 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
175 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku3_tasha.xml \
176 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku4.xml \
177 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tasha.xml \
178 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tashalite.xml \
179 $(AUDIO_HAL_PATH)/configs/msm8953/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
180 $(AUDIO_HAL_PATH)/configs/msm8953/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
181 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
182 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
183 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku3_tasha.xml \
184 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku4.xml \
185 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
186 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \
187 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
188 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9306.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9306.xml \
189 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9330.xml \
190 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \
191 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
192
193
194# Audio config files
195PRODUCT_COPY_FILES += \
196 frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
197 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
198 frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
199 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
200 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
201 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
202
203# Custom config files
204PRODUCT_COPY_FILES += \
205 $(FP_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
206
207
208# Audio firmware files
209PRODUCT_COPY_FILES += \
210 $(FP_PATH)/aw/aw8898_cfg.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/aw8898_cfg.bin \
211 $(FP_PATH)/tas2557_fw/OBO_0617_music.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557_uCDSP.bin \
212 $(FP_PATH)/tas2557_fw/tas2557evm_OBO_0617.ftcfg:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557evm_aacspk_a.ftcfg
213
214
215# Audio Specific device overlays
216DEVICE_PACKAGE_OVERLAYS += $(AUDIO_HAL_PATH)/configs/common/overlay
217
218
219# Audio Specific properties
220# Properties
221-include $(LOCAL_PATH)/audio_properties.mk
222
223
224# Audio Kernel modules
225AUDIO_DLKM := audio_apr.ko
226AUDIO_DLKM += audio_q6_notifier.ko
227AUDIO_DLKM += audio_adsp_loader.ko
228AUDIO_DLKM += audio_q6.ko
229AUDIO_DLKM += audio_usf.ko
230AUDIO_DLKM += audio_pinctrl_wcd.ko
231AUDIO_DLKM += audio_swr.ko
232AUDIO_DLKM += audio_wcd_core.ko
233AUDIO_DLKM += audio_swr_ctrl.ko
234AUDIO_DLKM += audio_wsa881x.ko
235AUDIO_DLKM += audio_wsa881x_analog.ko
236AUDIO_DLKM += audio_platform.ko
237AUDIO_DLKM += audio_cpe_lsm.ko
238AUDIO_DLKM += audio_hdmi.ko
239AUDIO_DLKM += audio_stub.ko
240AUDIO_DLKM += audio_wcd9xxx.ko
241AUDIO_DLKM += audio_mbhc.ko
242AUDIO_DLKM += audio_wcd9335.ko
243AUDIO_DLKM += audio_wcd_cpe.ko
244AUDIO_DLKM += audio_digital_cdc.ko
245AUDIO_DLKM += audio_analog_cdc.ko
246AUDIO_DLKM += audio_native.ko
247AUDIO_DLKM += audio_machine_sdm450.ko
248AUDIO_DLKM += audio_machine_ext_sdm450.ko
249PRODUCT_PACKAGES += $(AUDIO_DLKM)
250
251
Bharath9cdcce22021-12-08 15:43:43 +0530252# Automation/ATS
253PRODUCT_PACKAGES += \
254 automation_setup \
255 automation_adb_setup
256
257
Bharathfe661fb2021-08-16 18:56:32 +0530258# ANT
259PRODUCT_PACKAGES += \
260 AntHalService \
261 antradio_app \
262 com.dsi.ant@1.0 \
Bharath70cf2ae2022-02-14 12:13:50 +0530263 com.dsi.ant@1.0.vendor \
Bharathfe661fb2021-08-16 18:56:32 +0530264 libantradio
265
Bharath756d7dd2021-08-07 23:53:55 +0530266# Bluetooth
Bharathfe661fb2021-08-16 18:56:32 +0530267PRODUCT_PACKAGES += \
Bharathfe661fb2021-08-16 18:56:32 +0530268 audio.bluetooth.default \
269 android.hardware.bluetooth.audio@2.0-impl \
270 android.hardware.bluetooth@1.0 \
271 vendor.qti.hardware.bluetooth_audio@2.0 \
Bharath19ec3492022-03-14 10:22:26 +0530272 vendor.qti.hardware.bluetooth_audio@2.1.vendor
Bharathfe661fb2021-08-16 18:56:32 +0530273
274# Bluetooth Permissions
275PRODUCT_COPY_FILES += \
276 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
277 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 +0530278
279
Bharath12163282022-06-20 15:10:58 +0530280# Board platforms lists to be used for
281# TARGET_BOARD_PLATFORM specific featurization
282QCOM_BOARD_PLATFORMS += msm8953
283
284
Bharath756d7dd2021-08-07 23:53:55 +0530285# Boot
286PRODUCT_PACKAGES += \
287 android.hardware.boot@1.0-impl \
288 android.hardware.boot@1.0-impl.recovery \
289 android.hardware.boot@1.0-service \
290 bootctrl.msm8953 \
Bharathe341d1d2022-04-06 09:49:27 +0530291 bootctrl.msm8953.recovery \
Bharath756d7dd2021-08-07 23:53:55 +0530292 update_engine \
293 update_engine_client \
294 update_engine_sideload \
295 update_verifier
296
Bharath12163282022-06-20 15:10:58 +0530297# MSM updater library
298PRODUCT_PACKAGES += librecovery_updater_msm
299
300
301# Skip boot jars check
302SKIP_BOOT_JARS_CHECK := true
303
Bharath756d7dd2021-08-07 23:53:55 +0530304
305# Boot animation
306TARGET_SCREEN_HEIGHT := 2160
307TARGET_SCREEN_WIDTH := 1080
308
309
310PRODUCT_COPY_FILES += \
311 vendor/fairphone/media/bootanimation/bootanimation.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip
312
313
314# Camera
Bharathcbfb0a92021-08-19 21:13:50 +0530315PRODUCT_PACKAGES += \
316 android.frameworks.displayservice@1.0.vendor \
317 android.hidl.base@1.0.vendor \
318 android.hardware.camera.device@3.5 \
319 android.hardware.camera.provider@2.4 \
320 android.hardware.camera.provider@2.4-external \
321 android.hardware.camera.provider@2.4-impl \
322 android.hardware.camera.provider@2.4-legacy \
323 android.hardware.camera.provider@2.4-service \
324 android.hardware.camera.provider@2.6 \
325 camera.device@1.0-impl \
326 camera.device@3.5-impl \
327 camera.device@3.6-external-impl \
328 camera.msm8953 \
Bharathcbfb0a92021-08-19 21:13:50 +0530329 libcamera2ndk_vendor \
330 libhal_dbg \
331 libjni_burstpmk \
332 libjni_imageutil \
333 libjni_snapcammosaic \
334 libjni_snapcamtinyplanet \
335 libmm-qcamera \
336 libmmcamera_interface \
337 libmmjpeg_interface \
338 libmmlib2d_interface \
339 libqomx_core \
340 libxml2 \
341 mm-qcamera-app \
342 vendor.qti.hardware.camera.device@1.0 \
343 vendor.qti.hardware.camera.device@1.0.vendor
344
345# Fairphone Camera
346PRODUCT_PACKAGES += \
347 FairphoneCamera
348
349# Arcsoft camera libraries
350PRODUCT_PACKAGES += \
351 libarcimageprocess \
352 libarcsoft_aiscenedetection \
353 libarcsoft_hdr_detection \
354 libarcsoft_high_dynamic_range \
355 libarcsoft_low_light_hdr \
356 libarcsoft_low_light_shot \
357 libarcsoft_object_tracking \
358 libarcsoft_panorama_burstcapture \
359 libarcsoft_singlecam_bokeh \
360 libarcsoft_videoautozoom \
361 libarcsoft_videostabs \
362 libmpbase \
363 libmpbase.vendor
364
365# Feature flags for camera
366PRODUCT_COPY_FILES += \
367 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
368 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
369 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
370 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 +0530371
372
373# Component overrides
Bharathe025dac2022-08-02 15:02:41 +0530374PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530375 $(FP_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
376
377
Bharath12163282022-06-20 15:10:58 +0530378# Charger
379PRODUCT_PACKAGES += \
380 charger \
381 charger_res_images
382
383
384# Chromium
385PRODUCT_PACKAGES += \
386 libwebviewchromium_loader \
387 libwebviewchromium_plat_support
388
389
390# Curl
391PRODUCT_PACKAGES += \
392 curl \
393 libcurl
394
395
396# Data/rmnetctrl
397PRODUCT_PACKAGES += \
398 librmnetctl
399
leolee75d66582020-10-21 15:26:49 +0800400# IPV4
401PRODUCT_PROPERTY_OVERRIDES += \
402 persist.vendor.data.profile_update=true
403
Bharatha701c6b2022-07-25 17:26:28 +0530404PRODUCT_PROPERTY_OVERRIDES += ro.telephony.iwlan_operation_mode=legacy
405
Bharath12163282022-06-20 15:10:58 +0530406
Bharath756d7dd2021-08-07 23:53:55 +0530407# Display
408PRODUCT_PACKAGES += \
409 android.hardware.graphics.allocator@2.0-impl \
410 android.hardware.graphics.allocator@2.0-service \
411 android.hardware.graphics.composer@2.1-service \
412 android.hardware.graphics.mapper@2.0-impl-2.1 \
413 android.hardware.memtrack@1.0-impl \
414 android.hardware.memtrack@1.0-service \
415 gralloc.default \
416 gralloc.msm8953 \
417 hwcomposer.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530418 libdisplayconfig \
Bharath12163282022-06-20 15:10:58 +0530419 libdisplayconfig.qti \
420 libdrm \
421 libgralloc.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530422 libqdMetaData \
Bharath12163282022-06-20 15:10:58 +0530423 libqdutils \
Bharath756d7dd2021-08-07 23:53:55 +0530424 libvulkan \
Bharath12163282022-06-20 15:10:58 +0530425 memtrack.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530426 vendor.qti.hardware.display.composer@3.0
427
428
429# Vendor Display
430# Disable skip validate
431PRODUCT_PROPERTY_OVERRIDES += \
432 vendor.display.disable_skip_validate=1
433
Bharatha701c6b2022-07-25 17:26:28 +0530434PRODUCT_PROPERTY_OVERRIDES += ro.hardware.vulkan=adreno
435PRODUCT_PROPERTY_OVERRIDES += ro.hardware.egl=adreno
436
Bharath756d7dd2021-08-07 23:53:55 +0530437
438# Display Properties
439PRODUCT_AAPT_CONFIG := normal
440PRODUCT_AAPT_PREF_CONFIG := xxhdpi
441
442
443# DRM
444PRODUCT_PACKAGES += \
445 android.hardware.drm@1.3-service.clearkey
446
447
Pradeep Chenthatib4c3c102021-10-19 20:07:52 +0530448# Elabel
449PRODUCT_PACKAGES += \
450 eLabel.html.gz \
451 eLabel1.png \
452 eLabel2.png \
453 FAIRPHONE.html.gz \
454 FAIRPHONE.png
455
456
Bharath756d7dd2021-08-07 23:53:55 +0530457# Enable vndk-sp Libraries
458PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
459TARGET_USES_MKE2FS := true
460
461PRODUCT_PACKAGES += \
462 vndk_package
463
464
465# Encryption
466PRODUCT_PROPERTY_OVERRIDES += ro.crypto.allow_encrypt_override=true
467PRODUCT_PROPERTY_OVERRIDES += ro.crypto.volume.filenames_mode=aes-256-cts
468
469
Bharath12163282022-06-20 15:10:58 +0530470# E2fsck
471PRODUCT_PACKAGES += \
472 e2fsck
473
Bharath44ee36f2022-05-02 15:37:19 +0530474# ExFAT binaries
475PRODUCT_COPY_FILES += \
476 $(FP_PATH)/tuxera/exfatck:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatck \
477 $(FP_PATH)/tuxera/exfatdebug:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatdebug \
478 $(FP_PATH)/tuxera/exfatlabel:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatlabel \
479 $(FP_PATH)/tuxera/exfatvsn:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatvsn \
480 $(FP_PATH)/tuxera/mkexfat:$(TARGET_COPY_OUT_SYSTEM)/bin/mkexfat
481
482
Bharathe341d1d2022-04-06 09:49:27 +0530483# Fastbootd
484PRODUCT_PACKAGES += fastbootd
485
486
Bharath756d7dd2021-08-07 23:53:55 +0530487# FBE support
488PRODUCT_COPY_FILES += \
489 $(FP_PATH)/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh
490
491
Bharath1710e062021-08-20 11:30:47 +0530492# Feature flags and permissions
493PRODUCT_COPY_FILES += \
494 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
495 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
496 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
497 frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
498 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
499 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
500 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
501 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
502 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 +0530503 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 +0530504 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
505 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
506 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 +0530507 frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
508 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
509 frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
510 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 +0530511 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 +0530512 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
513
Bharath1dcb6512021-08-20 00:41:08 +0530514# Fingerprint
515PRODUCT_PACKAGES += \
516 android.hardware.biometrics.fingerprint@2.1 \
517 android.hardware.biometrics.fingerprint@2.1-service \
518 elan_device.rc \
519 fingerprint.default
520
521# Fingerprint files
522include $(FP_PATH)/elan_lib/fingerprint/elan_lib.mk
523
524# Fingerprint feature flag
525PRODUCT_COPY_FILES += \
526 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
527
528
Bharath756d7dd2021-08-07 23:53:55 +0530529# Framework Detect
530PRODUCT_PACKAGES += \
531 libqti_vndfwk_detect \
532 libqti_vndfwk_detect.vendor \
533 libvndfwk_detect_jni.qti \
534 libvndfwk_detect_jni.qti.vendor \
535 vndservicemanager
536
Bharath12163282022-06-20 15:10:58 +0530537# FRP
538PRODUCT_PROPERTY_OVERRIDES += ro.frp.pst=/dev/block/bootdevice/by-name/config
539
Bharath756d7dd2021-08-07 23:53:55 +0530540
541# HIDL
542PRODUCT_PACKAGES += \
543 android.hidl.base@1.0 \
544 libhidltransport \
545 libhidltransport.vendor \
546 libhwbinder \
547 libhwbinder.vendor
548
549
Bharath1710e062021-08-20 11:30:47 +0530550# GPS
551BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
Luca Weissa8a60262022-02-28 15:00:31 +0100552LOC_HIDL_VERSION := 4.0
Bharath1710e062021-08-20 11:30:47 +0530553
554PRODUCT_PACKAGES += \
Bharath70cf2ae2022-02-14 12:13:50 +0530555 android.hardware.gnss@2.1-impl-qti \
Bharath1710e062021-08-20 11:30:47 +0530556 android.hardware.gnss@2.1-service-qti \
557 libbatching \
558 libgeofencing \
559 libgnss \
560 libjson \
561 libwifi-hal-ctrl \
562 libgps.utils
563
564PRODUCT_PACKAGES += \
565 flp.conf \
566 gps.conf
567
568# gps/location secuity configuration file
569PRODUCT_COPY_FILES += \
570 $(FP_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
571
572# Permissions
573PRODUCT_COPY_FILES += \
574 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
575
Bharath12163282022-06-20 15:10:58 +0530576PRODUCT_PROPERTY_OVERRIDES += \
577 persist.backup.ntpServer=0.pool.ntp.org
578
Bharath1710e062021-08-20 11:30:47 +0530579
Bharath756d7dd2021-08-07 23:53:55 +0530580# Health
581PRODUCT_PACKAGES += \
582 android.hardware.health@2.1-impl \
583 android.hardware.health@2.1-impl.recovery \
584 android.hardware.health@2.1-service
585
586# IMS
587PRODUCT_PACKAGES += \
588 ims-ext-common \
589 ims_ext_common.xml \
590 ConfURIDialer
591
Bharath12163282022-06-20 15:10:58 +0530592
593# Init
594PRODUCT_PACKAGES += \
595 fstab.qcom \
596 init.class_main.sh \
597 init.crda.sh \
Karsten Tauschee270bad2022-08-22 15:41:19 +0200598 init.legacy_prop.rc \
Bharath12163282022-06-20 15:10:58 +0530599 init.mdm.sh \
600 init.qcom.class_core.sh \
601 init.qcom.coex.sh \
602 init.qcom.early_boot.sh \
603 init.qcom.efs.sync.sh \
604 init.qcom.factory.rc \
605 init.qcom.post_boot.sh \
606 init.qcom.rc \
607 init.qcom.sdio.sh \
608 init.qcom.sensors.sh \
609 init.qcom.sh \
610 init.qcom.usb.rc \
611 init.qcom.usb.sh \
612 init.recovery.qcom.rc \
613 init.target.rc \
614 init.veth_ipa_config.sh \
615 qca6234-service.sh \
616 ueventd.qcom.rc \
617 vold.fstab
618
619#intialise PRODUCT_PACKAGES_DEBUG list for debug modules
Luca Weiss2327bfb2022-07-13 09:47:07 +0200620PRODUCT_PACKAGES_DEBUG += init.qcom.testscripts.sh
Bharath12163282022-06-20 15:10:58 +0530621
622#Add init.qcom.test.rc to PRODUCT_PACKAGES_DEBUG list
623PRODUCT_PACKAGES_DEBUG += init.qcom.test.rc
624PRODUCT_PACKAGES_DEBUG += init.qcom.debug.sh
625
626ifneq ($(strip $(TARGET_BUILD_VARIANT)),user)
627PRODUCT_COPY_FILES += \
628 device/qcom/common/rootdir/etc/init.qcom.testscripts.sh:$(TARGET_COPY_OUT_PRODUCT)/etc/init.qcom.testscripts.sh
629endif
630
631PRODUCT_PACKAGES_DEBUG += \
632 init.qcom.debug.sh \
633 init.qcom.debug-sdm660.sh \
634 init.qcom.debug-sdm710.sh \
635 init.qti.debug-msmnile-apps.sh \
636 init.qti.debug-msmnile-modem.sh \
637 init.qti.debug-msmnile-slpi.sh \
638 init.qti.debug-talos.sh \
639 init.qti.debug-msmnile.sh \
640 init.qti.debug-kona.sh \
641 init.qti.debug-lito.sh \
642 init.qti.debug-trinket.sh \
643 init.qti.debug-atoll.sh \
644 init.qti.debug-lagoon.sh \
645 init.qti.debug-bengal.sh
646
647
648# IP and iptables
649PRODUCT_PACKAGES += \
650 ip \
651 libiprouteutil \
652 iptables \
653 ip-up-vpn \
654 libext
655
656
Bharath756d7dd2021-08-07 23:53:55 +0530657# IPACM
658PRODUCT_PACKAGES += \
659 ipacm \
660 IPACM_cfg.xml \
661 libipanat \
662 liboffloadhal \
663 libqsap_sdk
664
665# IRQ
666PRODUCT_COPY_FILES += \
667 $(FP_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
668 $(FP_PATH)/configs/msm_irqbalance_little_big.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance_little_big.conf
669
670
671# Kernel modules
672# Kernel modules install path
673KERNEL_MODULES_INSTALL := dlkm
674KERNEL_MODULES_OUT := out/target/product/$(PRODUCT_NAME)/$(KERNEL_MODULES_INSTALL)/lib/modules
Bharath12163282022-06-20 15:10:58 +0530675KERNEL_TO_BUILD_ROOT_OFFSET := ../../
676
677
678# Key layouts
679PRODUCT_PACKAGES += \
680 ft5x06_ts.kl \
681 gpio-keys.kl \
682 synaptics_dsx.kl \
683 synaptics_dsxv26.kl \
684 synaptics_rmi4_i2c.kl
Bharath756d7dd2021-08-07 23:53:55 +0530685
686
Bharatha701c6b2022-07-25 17:26:28 +0530687# Keystore
688PRODUCT_PROPERTY_OVERRIDES += ro.hardware.keystore_desede=true
689
690
Bharath756d7dd2021-08-07 23:53:55 +0530691# LED packages
692PRODUCT_PACKAGES += \
693 android.hardware.light@2.0-impl \
694 android.hardware.light@2.0-service \
695 lights.msm8953
696
697
698# Media / StagefrightCodec 2.0
699PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
700
Bharathe3615be2021-08-18 22:25:42 +0530701# Enable features in video HAL that can compile only on this platform
Bharath12163282022-06-20 15:10:58 +0530702MSM_VIDC_TARGET_LIST := msm8953
Bharathe3615be2021-08-18 22:25:42 +0530703TARGET_USES_MEDIA_EXTENSIONS := true
704
705
706# media_profiles and media_codecs xmls for msm8953
707PRODUCT_COPY_FILES += \
708 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles.xml \
709 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \
710 $(FP_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
711 $(FP_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
712 $(FP_PATH)/media/media_codecs_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_8953.xml \
713 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
714 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_8953.xml \
715 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles_8953_v1.xml \
716 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_8953_v1.xml \
717 $(FP_PATH)/media/media_codecs_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v1.xml \
718 $(FP_PATH)/media/media_codecs_performance_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v1.xml \
719 $(FP_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
Bharath12163282022-06-20 15:10:58 +0530720 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
721 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml
722
723PRODUCT_COPY_FILES += \
724 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
725 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
726 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
727 frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml \
728 frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \
729 frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
730 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 +0530731
Bharath756d7dd2021-08-07 23:53:55 +0530732
733# NFC
Bharath1710e062021-08-20 11:30:47 +0530734PRODUCT_PACKAGES += \
Bharathcaaa78e2022-09-06 10:18:06 +0530735 NQNfcNci \
Bharath1710e062021-08-20 11:30:47 +0530736 Tag \
737 com.android.nfc_extras \
738 com.nxp.nfc.nq \
739 com.nxp.nfc.nq.xml \
740 libnqnfc-nci \
741 libnqnfc_nci_jni \
742 nfc_nci.nqx.default.hw \
743 vendor.nxp.hardware.nfc@2.0-service
744
745# Permissions
746PRODUCT_COPY_FILES += \
747 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
748 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
749 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
750 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
751 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
752 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
753 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
754 vendor/nxp/opensource/halimpl/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
755 vendor/nxp/opensource/halimpl/SN100x/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci_SN100.conf
Bharath756d7dd2021-08-07 23:53:55 +0530756
757
758# OMX
759PRODUCT_PACKAGES += \
760 libavservices_minijail.vendor \
761 libc2dcolorconvert \
762 libOmxAacEnc \
763 libOmxAmrEnc \
764 libOmxCore \
765 libOmxEvrcEnc \
766 libOmxQcelp13Enc \
767 libOmxVdec \
768 libOmxVenc \
769 libqomx_core \
770 libaacwrapper \
771 libmm-omxcore \
772 libstagefrighthw \
773 libstagefright_softomx.vendor
774
775
776#
777# system prop for opengles version
778#
779# 196608 is decimal for 0x30000 to report major/minor versions as 3/0
780# 196609 is decimal for 0x30001 to report major/minor versions as 3/1
781# 196610 is decimal for 0x30002 to report major/minor versions as 3/2
782PRODUCT_PROPERTY_OVERRIDES += \
783 ro.opengles.version=196610
784
785
Bharath12163282022-06-20 15:10:58 +0530786# AOSP Packages
787PRODUCT_PACKAGES += \
788 DeskClock \
789 Calendar \
790 CalendarProvider \
791 Camera2 \
792 CertInstaller \
793 Gallery2 \
794 LatinIME \
795 Launcher3 \
796 LiveWallpapersPicker \
797 Music \
798 netutils-wrapper-1.0 \
799 Provision \
800 Protips \
801 QuickSearchBox \
802 Settings \
803 Stk \
804 SystemUI \
805
806
Bharath756d7dd2021-08-07 23:53:55 +0530807# Perf
808PRODUCT_COPY_FILES += \
809 $(FP_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
810
Bharath12163282022-06-20 15:10:58 +0530811PRODUCT_PROPERTY_OVERRIDES += \
812 persist.vendor.qcomsysd.enabled=1 \
813 ro.vendor.extension_library=libqti-perfd-client.so \
814 sys.vendor.shutdown.waittime=500
815
Bharath756d7dd2021-08-07 23:53:55 +0530816
817# Power
818PRODUCT_PACKAGES += \
819 android.hardware.power@1.0-impl \
820 android.hardware.power@1.0-service \
821 power.qcom
822
823
Bharath756d7dd2021-08-07 23:53:55 +0530824# privapp-permissions whitelisting
825PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
826
827
828# Protobuf
829PRODUCT_PACKAGES += \
830 libprotobuf-cpp-full \
831 libprotobuf-cpp-full-vendorcompat \
832 libprotobuf-cpp-lite-vendorcompat
833
834
Bharath12163282022-06-20 15:10:58 +0530835# include additional QCOM build utilities
836-include device/qcom/common/utils.mk
837
Bharath756d7dd2021-08-07 23:53:55 +0530838# RIL properties
839PRODUCT_PROPERTY_OVERRIDES += rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
840PRODUCT_PROPERTY_OVERRIDES += vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
841#vendor prop to disable advanced network scanning
842PRODUCT_PROPERTY_OVERRIDES += \
843 persist.vendor.radio.enableadvancedscan=false
844
Bharath12163282022-06-20 15:10:58 +0530845# Enable Dual SIM by default
846PRODUCT_PROPERTY_OVERRIDES += persist.radio.multisim.config=dsds
847
848PRODUCT_PROPERTY_OVERRIDES += \
849 persist.vendor.radio.apm_sim_not_pwdn=1 \
850 persist.vendor.radio.sib16_support=1 \
851 persist.vendor.radio.custom_ecc=1 \
852 persist.vendor.radio.rat_on=combine \
853 persist.vendor.radio.procedure_bytes=SKIP
854
Bharath756d7dd2021-08-07 23:53:55 +0530855
856# RenderScript
857PRODUCT_PACKAGES += \
858 android.hardware.renderscript@1.0-impl
859
860
861# SDCard
862# default is nosdcard, S/W button enabled in resource
863PRODUCT_CHARACTERISTICS := nosdcard
864
865
866# Seccomp
867PRODUCT_COPY_FILES += \
868 $(FP_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
869 $(FP_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
870
871
Bharath1710e062021-08-20 11:30:47 +0530872# Secure Element
873PRODUCT_PACKAGES += \
874 android.hardware.secure_element@1.2
875
876
Bharathca82a242022-08-18 19:48:51 +0530877# Sound Recorder
878PRODUCT_PACKAGES += \
879 QtiSoundRecorder
880
881
Bharath756d7dd2021-08-07 23:53:55 +0530882# System helper
883PRODUCT_PACKAGES += \
884 vendor.qti.hardware.systemhelper@1.0
885
886
887# Service tracker
888PRODUCT_PACKAGES += \
889 vendor.qti.hardware.servicetracker@1.2.vendor
890
891
Bharatha60665d2021-08-19 09:37:22 +0530892# Sensors
893PRODUCT_PACKAGES += \
894 sensors.FP3 \
895 android.hardware.sensors@1.0-impl \
896 android.hardware.sensors@1.0-service \
897 libsensorndkbridge
898
899# Sensor HAL conf file
900PRODUCT_COPY_FILES += \
901 $(FP_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
902
903# Feature definition files for msm8953
904PRODUCT_COPY_FILES += \
905 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
906 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
907 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
908 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
909 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
910 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
911 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
912
913
Bharath756d7dd2021-08-07 23:53:55 +0530914# Telephony Permissions
Bharath12163282022-06-20 15:10:58 +0530915# whitelisted app
916PRODUCT_COPY_FILES += \
917 device/qcom/common/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml
918
919PRODUCT_COPY_FILES += \
920 device/qcom/common/privapp-permissions-qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-qti.xml
921
922# Telephony wrappers
923PRODUCT_PACKAGES += \
924 qti-telephony-hidl-wrapper \
925 qti_telephony_hidl_wrapper.xml \
926 qti-telephony-utils \
927 qti_telephony_utils.xml
Bharath756d7dd2021-08-07 23:53:55 +0530928
929
930# Thermal
931PRODUCT_PACKAGES += \
932 android.hardware.thermal@1.0-impl \
933 android.hardware.thermal@1.0-service
934
935
936# Tinyxml
937PRODUCT_PACKAGES += \
938 libtinyxml
939
940# USB
941PRODUCT_PACKAGES += \
942 android.hardware.usb@1.0-service
943
944-include vendor/qcom/opensource/usb/vendor_product.mk
945
946
947# Vendor move
948PRODUCT_VENDOR_MOVE_ENABLED := true
949
950
951# Vibrator
952PRODUCT_PACKAGES += \
953 android.hardware.vibrator@1.0-impl \
Bharath12163282022-06-20 15:10:58 +0530954 android.hardware.vibrator@1.0-service \
955 vendor.qti.hardware.vibrator.service
956
957PRODUCT_COPY_FILES += \
958 vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml
Bharath756d7dd2021-08-07 23:53:55 +0530959
960
Bharathed255712021-08-14 20:37:05 +0530961# WiFi
962# WLAN drivers
963PRODUCT_COPY_FILES += \
964 $(FP_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
965 $(FP_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_wlan_dictionary.dat \
966 $(FP_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin # From Android 10
967
968# Flag to check if wcnss_service is built from source
969TARGET_USE_WCNSS_HAL := false
970
971# If building from source then drop proprietary dependency
972ifeq ($(TARGET_USE_WCNSS_HAL),true)
973TARGET_USES_QCOM_WCNSS_QMI := false
Bharath70cf2ae2022-02-14 12:13:50 +0530974
975PRODUCT_PACKAGES += \
976 libwcnss_qmi \
977 wcnss_service
Bharathed255712021-08-14 20:37:05 +0530978endif
979
980# WiFi HAL
981PRODUCT_PACKAGES += \
982 android.hardware.wifi@1.0-service
983
Bharath12163282022-06-20 15:10:58 +0530984# WLAN DLKM
985PRODUCT_PACKAGES += \
986 pronto_wlan.ko
987
Bharathed255712021-08-14 20:37:05 +0530988# WiFi Components
989PRODUCT_PACKAGES += \
990 hostapd \
991 hostapd.accept \
992 hostapd.deny \
993 hostapd_cli \
994 hostapd_default.conf \
995 libnl \
996 libqsap_sdk \
Bharathed255712021-08-14 20:37:05 +0530997 libwifi-hal-qcom \
998 libwpa_client \
999 p2p_supplicant_overlay.conf \
1000 vendor.qti.hardware.wifi.supplicant@1.0.vendor \
Bharathed255712021-08-14 20:37:05 +05301001 wificond \
1002 wpa_cli \
1003 wpa_supplicant.conf \
1004 wpa_supplicant \
1005 wpa_supplicant_overlay.conf \
1006 WifiOverlay \
1007 TetheringConfigOverlay
1008
1009
Bharath12163282022-06-20 15:10:58 +05301010# Zlib
1011PRODUCT_HOST_PACKAGES += minigzip
1012
1013
1014#soong namespace for qssi vs vendor differentiation
1015SOONG_CONFIG_NAMESPACES += qssi_vs_vendor
1016SOONG_CONFIG_qssi_vs_vendor += qssi_or_vendor
1017SOONG_CONFIG_qssi_vs_vendor_qssi_or_vendor := vendor
1018
1019SOONG_CONFIG_NAMESPACES += aosp_vs_qva
1020SOONG_CONFIG_aosp_vs_qva += aosp_or_qva
1021ifeq ($(TARGET_FWK_SUPPORTS_FULL_VALUEADDS),true)
1022SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := qva
1023else
1024SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := aosp
1025endif
1026
1027SOONG_CONFIG_NAMESPACES += qtidisplaycommonsys
1028# Soong Keys
1029SOONG_CONFIG_qtidisplaycommonsys := displayconfig_enabled
1030# Soong Values
1031SOONG_CONFIG_qtidisplaycommonsys_displayconfig_enabled := true
1032
1033
Bharath756d7dd2021-08-07 23:53:55 +05301034# Call the proprietary setup
Bharatha3a85a72022-05-23 17:50:24 +05301035FP3_PROPRIETARY_PATH := device/fairphone/fp3-proprietary
Bharatha3a85a72022-05-23 17:50:24 +05301036
Karsten Tausche98fd90f2022-12-22 15:03:44 +01001037DEVICE_BLOB_VERSION := 4.A.0020.0
Francesco Salvatore03117482019-02-28 16:39:11 +01001038
1039GET_BLOBS_CMD = vendor/fairphone/tools/bin/get_blobs.py --device FP3 --build-id $(DEVICE_BLOB_VERSION) --blobs-dir $(FP3_PROPRIETARY_PATH)
1040
1041# Check the presence of proprietary blobs
1042ifeq ("$(wildcard $(FP3_PROPRIETARY_PATH)/device-vendor.mk)","")
1043define BLOBS_INSTRUCTION
1044Cannot find FP3 binary blobs.
1045Please run
1046 $(GET_BLOBS_CMD)
1047and accept the terms of agreement.
1048endef
1049$(error $(BLOBS_INSTRUCTION))
1050endif
1051
Bharath756d7dd2021-08-07 23:53:55 +05301052# Call this in the end so that flags if required can be utilized.
Bharatha3a85a72022-05-23 17:50:24 +05301053$(call inherit-product, $(FP3_PROPRIETARY_PATH)/device-vendor.mk)
1054
Bharath12163282022-06-20 15:10:58 +05301055# Build some more display components to vendor
1056$(call inherit-product, vendor/qcom/opensource/commonsys-intf/display/config/display-interfaces-product.mk)
Bharath756d7dd2021-08-07 23:53:55 +05301057###################################################################################