blob: 03f84124eea2d0754ea49cd5be47603c8f26e0f2 [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
Bharathdec76372022-10-10 20:15:42 +053019PRODUCT_VENDOR_PROPERTIES += \
lindaguo(103996)47226c12020-06-22 17:27:43 +080020 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
Wilson Sung54b067e2021-03-03 18:08:45 +080063# Set system properties identifying the chipset
64PRODUCT_VENDOR_PROPERTIES += ro.soc.manufacturer=QTI
65PRODUCT_VENDOR_PROPERTIES += ro.soc.model=SDM450
66
67
Bharath756d7dd2021-08-07 23:53:55 +053068# We don't have the calibration data as this sort of
69# data can only be generated at the factory so don't generate persist.img
70FP3_SKIP_PERSIST_IMG := true
71
Bharath80ba1872021-08-21 11:53:57 +053072
73# Operator specific overlays
74DEVICE_PACKAGE_OVERLAYS += \
75 $(LOCAL_PATH)/overlay-operators
76
Bharath756d7dd2021-08-07 23:53:55 +053077# Overlays
78DEVICE_PACKAGE_OVERLAYS += \
79 $(LOCAL_PATH)/overlay
80
81
82# A/B related defines
83AB_OTA_UPDATER := true
Luca Weissd6c3ca12022-07-13 16:24:08 +020084AB_OTA_PARTITIONS := \
85 aboot \
86 cmnlib64 \
87 cmnlib \
88 devcfg \
89 dsp \
Bharath756d7dd2021-08-07 23:53:55 +053090 dtbo \
Luca Weissd6c3ca12022-07-13 16:24:08 +020091 keymaster \
92 lksecapp \
93 mdtp \
94 modem \
95 rpm \
96 sbl1 \
97 tz \
Bharath756d7dd2021-08-07 23:53:55 +053098 vbmeta \
Luca Weissd6c3ca12022-07-13 16:24:08 +020099 boot \
100 system \
Bharath756d7dd2021-08-07 23:53:55 +0530101 vendor
102
103
Bharath756d7dd2021-08-07 23:53:55 +0530104PRODUCT_PACKAGES += \
Bharath756d7dd2021-08-07 23:53:55 +0530105 update_engine_sideload
106
Bharath776a9712022-03-18 00:00:41 +0530107# Dynamic Partition
108# Enable retrofit dynamic partitions for FP3
109PRODUCT_USE_DYNAMIC_PARTITIONS := true
110PRODUCT_RETROFIT_DYNAMIC_PARTITIONS := true
111
112# Additional OTA partitions
113ifeq ($(PRODUCT_USE_DYNAMIC_PARTITIONS), true)
114AB_OTA_PARTITIONS += \
115 odm \
116 product \
117 system_ext
118
119# Check OTA update status
120PRODUCT_PACKAGES += check_dynamic_partitions
121
122# Ramdisk fstab file
123PRODUCT_PACKAGES += fstab_ramdisk.qcom
124
125AB_OTA_POSTINSTALL_CONFIG += \
126 RUN_POSTINSTALL_product=true \
127 POSTINSTALL_PATH_product=bin/check_dynamic_partitions \
128 FILESYSTEM_TYPE_product=ext4 \
129 POSTINSTALL_OPTIONAL_product=false
130
131endif
Bharath756d7dd2021-08-07 23:53:55 +0530132
Bharath2307d3b2022-01-06 22:23:25 +0530133# APN
134PRODUCT_COPY_FILES += \
135 $(LOCAL_PATH)/apns-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
136
137
Bharath756d7dd2021-08-07 23:53:55 +0530138# AVB
139BOARD_AVB_ENABLE := true
140
141
142# Additional native libraries
143PRODUCT_COPY_FILES += \
144 $(FP_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
145
146
Bharath12163282022-06-20 15:10:58 +0530147# OEM Unlock reporting
Bharathdec76372022-10-10 20:15:42 +0530148PRODUCT_VENDOR_PROPERTIES += \
Bharath12163282022-06-20 15:10:58 +0530149 ro.oem_unlock_supported=1
150
151
Bharath756d7dd2021-08-07 23:53:55 +0530152# Atrace HAL
153PRODUCT_PACKAGES += \
154 android.hardware.atrace@1.0-service
155
156
157# Audio
Bharath756d7dd2021-08-07 23:53:55 +0530158PRODUCT_PACKAGES += \
Mikhail Naganovb0f62432021-02-17 02:16:06 +0000159 android.hardware.audio@7.0 \
160 android.hardware.audio.common@7.0 \
161 android.hardware.audio.common@7.0-util \
162 android.hardware.audio@7.0-impl \
163 android.hardware.audio.effect@7.0 \
164 android.hardware.audio.effect@7.0-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530165 android.hardware.audio.service \
166 android.hardware.soundtrigger@2.1-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530167 audio.primary.msm8953 \
168 audio.r_submix.default \
169 audio.usb.default \
170 libaacwrapper \
171 libaudio-resampler \
172 libautohal \
173 libqcompostprocbundle \
174 libqcomvisualizer \
175 libqcomvoiceprocessing \
176 libvolumelistener \
177 tinymix
178
179
Bharathf96fea32022-10-05 09:43:16 +0530180AUDIO_HAL_PATH := hardware/qcom/audio
Bharath756d7dd2021-08-07 23:53:55 +0530181
182# Audio files
183PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530184 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
185 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
186 $(AUDIO_HAL_PATH)/configs/msm8953/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
187 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
188 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku3_tasha.xml \
189 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku4.xml \
190 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tasha.xml \
191 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tashalite.xml \
192 $(AUDIO_HAL_PATH)/configs/msm8953/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
193 $(AUDIO_HAL_PATH)/configs/msm8953/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
194 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
195 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
196 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku3_tasha.xml \
197 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku4.xml \
198 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
199 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \
200 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
201 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9306.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9306.xml \
202 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9330.xml \
203 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \
204 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
205
206
207# Audio config files
208PRODUCT_COPY_FILES += \
Mikhail Naganovb0f62432021-02-17 02:16:06 +0000209 frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration_7_0.xml \
Bharath756d7dd2021-08-07 23:53:55 +0530210 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
Mikhail Naganovb0f62432021-02-17 02:16:06 +0000211 frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration_7_0.xml \
Bharath756d7dd2021-08-07 23:53:55 +0530212 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
213 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
214 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
215
216# Custom config files
217PRODUCT_COPY_FILES += \
218 $(FP_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
219
220
221# Audio firmware files
222PRODUCT_COPY_FILES += \
223 $(FP_PATH)/aw/aw8898_cfg.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/aw8898_cfg.bin \
224 $(FP_PATH)/tas2557_fw/OBO_0617_music.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557_uCDSP.bin \
225 $(FP_PATH)/tas2557_fw/tas2557evm_OBO_0617.ftcfg:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557evm_aacspk_a.ftcfg
226
227
228# Audio Specific device overlays
229DEVICE_PACKAGE_OVERLAYS += $(AUDIO_HAL_PATH)/configs/common/overlay
230
231
232# Audio Specific properties
233# Properties
234-include $(LOCAL_PATH)/audio_properties.mk
235
236
237# Audio Kernel modules
238AUDIO_DLKM := audio_apr.ko
239AUDIO_DLKM += audio_q6_notifier.ko
240AUDIO_DLKM += audio_adsp_loader.ko
241AUDIO_DLKM += audio_q6.ko
242AUDIO_DLKM += audio_usf.ko
243AUDIO_DLKM += audio_pinctrl_wcd.ko
244AUDIO_DLKM += audio_swr.ko
245AUDIO_DLKM += audio_wcd_core.ko
246AUDIO_DLKM += audio_swr_ctrl.ko
247AUDIO_DLKM += audio_wsa881x.ko
248AUDIO_DLKM += audio_wsa881x_analog.ko
249AUDIO_DLKM += audio_platform.ko
250AUDIO_DLKM += audio_cpe_lsm.ko
251AUDIO_DLKM += audio_hdmi.ko
252AUDIO_DLKM += audio_stub.ko
253AUDIO_DLKM += audio_wcd9xxx.ko
254AUDIO_DLKM += audio_mbhc.ko
255AUDIO_DLKM += audio_wcd9335.ko
256AUDIO_DLKM += audio_wcd_cpe.ko
257AUDIO_DLKM += audio_digital_cdc.ko
258AUDIO_DLKM += audio_analog_cdc.ko
259AUDIO_DLKM += audio_native.ko
260AUDIO_DLKM += audio_machine_sdm450.ko
261AUDIO_DLKM += audio_machine_ext_sdm450.ko
262PRODUCT_PACKAGES += $(AUDIO_DLKM)
263
264
Bharath9cdcce22021-12-08 15:43:43 +0530265# Automation/ATS
266PRODUCT_PACKAGES += \
267 automation_setup \
268 automation_adb_setup
269
270
Bharathfe661fb2021-08-16 18:56:32 +0530271# ANT
272PRODUCT_PACKAGES += \
273 AntHalService \
274 antradio_app \
275 com.dsi.ant@1.0 \
Bharath70cf2ae2022-02-14 12:13:50 +0530276 com.dsi.ant@1.0.vendor \
Bharathfe661fb2021-08-16 18:56:32 +0530277 libantradio
278
Bharath756d7dd2021-08-07 23:53:55 +0530279# Bluetooth
Bharathfe661fb2021-08-16 18:56:32 +0530280PRODUCT_PACKAGES += \
Bharathfe661fb2021-08-16 18:56:32 +0530281 audio.bluetooth.default \
282 android.hardware.bluetooth.audio@2.0-impl \
283 android.hardware.bluetooth@1.0 \
284 vendor.qti.hardware.bluetooth_audio@2.0 \
Bharath19ec3492022-03-14 10:22:26 +0530285 vendor.qti.hardware.bluetooth_audio@2.1.vendor
Bharathfe661fb2021-08-16 18:56:32 +0530286
287# Bluetooth Permissions
288PRODUCT_COPY_FILES += \
289 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
290 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 +0530291
Etienne Ruffieux8ac2cec2022-01-20 21:27:18 +0000292# Bluetooth Properties
Sal Savage776e8102022-02-04 09:40:38 -0800293# Set supported Bluetooth profiles to enabled
Etienne Ruffieux8ac2cec2022-01-20 21:27:18 +0000294PRODUCT_PRODUCT_PROPERTIES += \
Sal Savage590b8d92022-04-27 13:13:03 -0700295 bluetooth.profile.asha.central.enabled?=true \
296 bluetooth.profile.a2dp.source.enabled?=true \
297 bluetooth.profile.avrcp.target.enabled?=true \
298 bluetooth.profile.bap.broadcast.assist.enabled?=true \
299 bluetooth.profile.bap.unicast.client.enabled?=true \
300 bluetooth.profile.bas.client.enabled?=true \
301 bluetooth.profile.csip.set_coordinator.enabled?=true \
302 bluetooth.profile.gatt.enabled?=true \
303 bluetooth.profile.hap.client.enabled?=true \
304 bluetooth.profile.hfp.ag.enabled?=true \
305 bluetooth.profile.hid.device.enabled?=true \
306 bluetooth.profile.hid.host.enabled?=true \
307 bluetooth.profile.map.server.enabled?=true \
308 bluetooth.profile.mcp.server.enabled?=true \
309 bluetooth.profile.opp.enabled?=true \
310 bluetooth.profile.pan.nap.enabled?=true \
311 bluetooth.profile.pan.panu.enabled?=true \
312 bluetooth.profile.pbap.server.enabled?=true \
313 bluetooth.profile.sap.server.enabled?=true \
314 bluetooth.profile.ccp.server.enabled?=true \
315 bluetooth.profile.vcp.controller.enabled?=true
Etienne Ruffieux8ac2cec2022-01-20 21:27:18 +0000316
Sal Savagede026932022-04-25 16:42:15 -0700317# Set the Bluetooth Class of Device
318# Service Field: 0x5A -> 90
319# Bit 17: Networking
320# Bit 19: Capturing
321# Bit 20: Object Transfer
322# Bit 22: Telephony
323# MAJOR_CLASS: 0x02 -> 2 (Phone)
324# MINOR_CLASS: 0x0C -> 12 (Smart Phone)
325PRODUCT_PRODUCT_PROPERTIES += \
326 bluetooth.device.class_of_device=90,2,12
327
Bharath756d7dd2021-08-07 23:53:55 +0530328
Bharath12163282022-06-20 15:10:58 +0530329# Board platforms lists to be used for
330# TARGET_BOARD_PLATFORM specific featurization
331QCOM_BOARD_PLATFORMS += msm8953
332
333
Bharath756d7dd2021-08-07 23:53:55 +0530334# Boot
335PRODUCT_PACKAGES += \
336 android.hardware.boot@1.0-impl \
337 android.hardware.boot@1.0-impl.recovery \
338 android.hardware.boot@1.0-service \
339 bootctrl.msm8953 \
Bharathe341d1d2022-04-06 09:49:27 +0530340 bootctrl.msm8953.recovery \
Bharath756d7dd2021-08-07 23:53:55 +0530341 update_engine \
342 update_engine_client \
343 update_engine_sideload \
344 update_verifier
345
Bharath12163282022-06-20 15:10:58 +0530346# MSM updater library
347PRODUCT_PACKAGES += librecovery_updater_msm
348
349
350# Skip boot jars check
351SKIP_BOOT_JARS_CHECK := true
352
Bharath756d7dd2021-08-07 23:53:55 +0530353
354# Boot animation
355TARGET_SCREEN_HEIGHT := 2160
356TARGET_SCREEN_WIDTH := 1080
357
358
359PRODUCT_COPY_FILES += \
360 vendor/fairphone/media/bootanimation/bootanimation.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip
361
362
363# Camera
Bharathcbfb0a92021-08-19 21:13:50 +0530364PRODUCT_PACKAGES += \
365 android.frameworks.displayservice@1.0.vendor \
366 android.hidl.base@1.0.vendor \
367 android.hardware.camera.device@3.5 \
368 android.hardware.camera.provider@2.4 \
369 android.hardware.camera.provider@2.4-external \
370 android.hardware.camera.provider@2.4-impl \
371 android.hardware.camera.provider@2.4-legacy \
372 android.hardware.camera.provider@2.4-service \
373 android.hardware.camera.provider@2.6 \
374 camera.device@1.0-impl \
375 camera.device@3.5-impl \
376 camera.device@3.6-external-impl \
377 camera.msm8953 \
Bharathcbfb0a92021-08-19 21:13:50 +0530378 libcamera2ndk_vendor \
379 libhal_dbg \
380 libjni_burstpmk \
381 libjni_imageutil \
382 libjni_snapcammosaic \
383 libjni_snapcamtinyplanet \
384 libmm-qcamera \
385 libmmcamera_interface \
386 libmmjpeg_interface \
387 libmmlib2d_interface \
388 libqomx_core \
389 libxml2 \
390 mm-qcamera-app \
391 vendor.qti.hardware.camera.device@1.0 \
392 vendor.qti.hardware.camera.device@1.0.vendor
393
394# Fairphone Camera
395PRODUCT_PACKAGES += \
396 FairphoneCamera
397
398# Arcsoft camera libraries
399PRODUCT_PACKAGES += \
400 libarcimageprocess \
401 libarcsoft_aiscenedetection \
402 libarcsoft_hdr_detection \
403 libarcsoft_high_dynamic_range \
404 libarcsoft_low_light_hdr \
405 libarcsoft_low_light_shot \
406 libarcsoft_object_tracking \
407 libarcsoft_panorama_burstcapture \
408 libarcsoft_singlecam_bokeh \
409 libarcsoft_videoautozoom \
410 libarcsoft_videostabs \
411 libmpbase \
412 libmpbase.vendor
413
414# Feature flags for camera
415PRODUCT_COPY_FILES += \
416 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
417 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
418 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
419 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 +0530420
421
422# Component overrides
Bharathe025dac2022-08-02 15:02:41 +0530423PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530424 $(FP_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
425
426
Bharath12163282022-06-20 15:10:58 +0530427# Charger
428PRODUCT_PACKAGES += \
429 charger \
430 charger_res_images
431
432
433# Chromium
434PRODUCT_PACKAGES += \
435 libwebviewchromium_loader \
436 libwebviewchromium_plat_support
437
438
439# Curl
440PRODUCT_PACKAGES += \
441 curl \
442 libcurl
443
444
445# Data/rmnetctrl
446PRODUCT_PACKAGES += \
447 librmnetctl
448
leolee75d66582020-10-21 15:26:49 +0800449# IPV4
Bharathdec76372022-10-10 20:15:42 +0530450PRODUCT_VENDOR_PROPERTIES += \
leolee75d66582020-10-21 15:26:49 +0800451 persist.vendor.data.profile_update=true
452
Bharathdec76372022-10-10 20:15:42 +0530453PRODUCT_VENDOR_PROPERTIES += ro.telephony.iwlan_operation_mode=legacy
Bharatha701c6b2022-07-25 17:26:28 +0530454
Bharath12163282022-06-20 15:10:58 +0530455
Bharath756d7dd2021-08-07 23:53:55 +0530456# Display
457PRODUCT_PACKAGES += \
458 android.hardware.graphics.allocator@2.0-impl \
459 android.hardware.graphics.allocator@2.0-service \
460 android.hardware.graphics.composer@2.1-service \
461 android.hardware.graphics.mapper@2.0-impl-2.1 \
462 android.hardware.memtrack@1.0-impl \
463 android.hardware.memtrack@1.0-service \
464 gralloc.default \
465 gralloc.msm8953 \
466 hwcomposer.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530467 libdisplayconfig \
Bharath12163282022-06-20 15:10:58 +0530468 libdisplayconfig.qti \
469 libdrm \
470 libgralloc.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530471 libqdMetaData \
Bharath12163282022-06-20 15:10:58 +0530472 libqdutils \
Bharath756d7dd2021-08-07 23:53:55 +0530473 libvulkan \
Bharath12163282022-06-20 15:10:58 +0530474 memtrack.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530475 vendor.qti.hardware.display.composer@3.0
476
477
478# Vendor Display
479# Disable skip validate
Bharathdec76372022-10-10 20:15:42 +0530480PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530481 vendor.display.disable_skip_validate=1
482
Bharathdec76372022-10-10 20:15:42 +0530483PRODUCT_VENDOR_PROPERTIES += ro.hardware.vulkan=adreno
484PRODUCT_VENDOR_PROPERTIES += ro.hardware.egl=adreno
Bharatha701c6b2022-07-25 17:26:28 +0530485
Bharath756d7dd2021-08-07 23:53:55 +0530486
487# Display Properties
488PRODUCT_AAPT_CONFIG := normal
489PRODUCT_AAPT_PREF_CONFIG := xxhdpi
490
491
492# DRM
493PRODUCT_PACKAGES += \
Edwin Wong8de56c72021-03-25 00:19:58 -0700494 android.hardware.drm@1.4-service.clearkey
Bharath756d7dd2021-08-07 23:53:55 +0530495
496
Pradeep Chenthatib4c3c102021-10-19 20:07:52 +0530497# Elabel
498PRODUCT_PACKAGES += \
499 eLabel.html.gz \
500 eLabel1.png \
501 eLabel2.png \
502 FAIRPHONE.html.gz \
503 FAIRPHONE.png
504
505
Bharath756d7dd2021-08-07 23:53:55 +0530506# Enable vndk-sp Libraries
507PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
508TARGET_USES_MKE2FS := true
509
510PRODUCT_PACKAGES += \
511 vndk_package
512
513
514# Encryption
Bharathdec76372022-10-10 20:15:42 +0530515PRODUCT_VENDOR_PROPERTIES += ro.crypto.allow_encrypt_override=true
516PRODUCT_VENDOR_PROPERTIES += ro.crypto.volume.filenames_mode=aes-256-cts
Bharath756d7dd2021-08-07 23:53:55 +0530517
518
Bharath12163282022-06-20 15:10:58 +0530519# E2fsck
520PRODUCT_PACKAGES += \
521 e2fsck
522
Bharath44ee36f2022-05-02 15:37:19 +0530523
Bharathe341d1d2022-04-06 09:49:27 +0530524# Fastbootd
525PRODUCT_PACKAGES += fastbootd
526
527
Bharath756d7dd2021-08-07 23:53:55 +0530528# FBE support
529PRODUCT_COPY_FILES += \
530 $(FP_PATH)/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh
531
532
Bharath1710e062021-08-20 11:30:47 +0530533# Feature flags and permissions
534PRODUCT_COPY_FILES += \
535 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
536 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
537 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
538 frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
539 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
540 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
541 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
542 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
543 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 +0530544 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 +0530545 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
546 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
547 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 +0530548 frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
549 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
550 frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
Gillian Lin59f821d2021-06-15 22:33:15 +0800551 frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.verified_boot.xml \
Bharathdf89a7d2022-06-27 20:12:06 +0530552 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 +0530553 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
554
Bharath1dcb6512021-08-20 00:41:08 +0530555# Fingerprint
556PRODUCT_PACKAGES += \
557 android.hardware.biometrics.fingerprint@2.1 \
558 android.hardware.biometrics.fingerprint@2.1-service \
559 elan_device.rc \
560 fingerprint.default
561
562# Fingerprint files
563include $(FP_PATH)/elan_lib/fingerprint/elan_lib.mk
564
565# Fingerprint feature flag
566PRODUCT_COPY_FILES += \
Luca Weiss9656b9c2022-03-03 11:15:21 +0100567 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.fingerprint.xml
Bharath1dcb6512021-08-20 00:41:08 +0530568
569
Bharath756d7dd2021-08-07 23:53:55 +0530570# Framework Detect
571PRODUCT_PACKAGES += \
572 libqti_vndfwk_detect \
573 libqti_vndfwk_detect.vendor \
574 libvndfwk_detect_jni.qti \
575 libvndfwk_detect_jni.qti.vendor \
576 vndservicemanager
577
Bharath12163282022-06-20 15:10:58 +0530578# FRP
Bharathdec76372022-10-10 20:15:42 +0530579PRODUCT_VENDOR_PROPERTIES += ro.frp.pst=/dev/block/bootdevice/by-name/config
Bharath12163282022-06-20 15:10:58 +0530580
Bharath756d7dd2021-08-07 23:53:55 +0530581
582# HIDL
583PRODUCT_PACKAGES += \
584 android.hidl.base@1.0 \
585 libhidltransport \
586 libhidltransport.vendor \
587 libhwbinder \
588 libhwbinder.vendor
589
590
Bharath1710e062021-08-20 11:30:47 +0530591# GPS
592BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
Luca Weissa8a60262022-02-28 15:00:31 +0100593LOC_HIDL_VERSION := 4.0
Bharath1710e062021-08-20 11:30:47 +0530594
595PRODUCT_PACKAGES += \
Bharath70cf2ae2022-02-14 12:13:50 +0530596 android.hardware.gnss@2.1-impl-qti \
Bharath1710e062021-08-20 11:30:47 +0530597 android.hardware.gnss@2.1-service-qti \
598 libbatching \
599 libgeofencing \
600 libgnss \
601 libjson \
602 libwifi-hal-ctrl \
603 libgps.utils
604
605PRODUCT_PACKAGES += \
606 flp.conf \
607 gps.conf
608
609# gps/location secuity configuration file
610PRODUCT_COPY_FILES += \
611 $(FP_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
612
613# Permissions
614PRODUCT_COPY_FILES += \
615 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
616
Bharathdec76372022-10-10 20:15:42 +0530617PRODUCT_VENDOR_PROPERTIES += \
Bharath12163282022-06-20 15:10:58 +0530618 persist.backup.ntpServer=0.pool.ntp.org
619
Bharath1710e062021-08-20 11:30:47 +0530620
Bharath756d7dd2021-08-07 23:53:55 +0530621# Health
622PRODUCT_PACKAGES += \
623 android.hardware.health@2.1-impl \
624 android.hardware.health@2.1-impl.recovery \
625 android.hardware.health@2.1-service
626
627# IMS
628PRODUCT_PACKAGES += \
629 ims-ext-common \
630 ims_ext_common.xml \
631 ConfURIDialer
632
Bharath12163282022-06-20 15:10:58 +0530633
634# Init
635PRODUCT_PACKAGES += \
636 fstab.qcom \
637 init.class_main.sh \
638 init.crda.sh \
Karsten Tauschee270bad2022-08-22 15:41:19 +0200639 init.legacy_prop.rc \
Bharath12163282022-06-20 15:10:58 +0530640 init.mdm.sh \
641 init.qcom.class_core.sh \
642 init.qcom.coex.sh \
643 init.qcom.early_boot.sh \
644 init.qcom.efs.sync.sh \
645 init.qcom.factory.rc \
646 init.qcom.post_boot.sh \
647 init.qcom.rc \
648 init.qcom.sdio.sh \
649 init.qcom.sensors.sh \
650 init.qcom.sh \
651 init.qcom.usb.rc \
652 init.qcom.usb.sh \
653 init.recovery.qcom.rc \
654 init.target.rc \
655 init.veth_ipa_config.sh \
656 qca6234-service.sh \
657 ueventd.qcom.rc \
658 vold.fstab
659
660#intialise PRODUCT_PACKAGES_DEBUG list for debug modules
Luca Weiss2327bfb2022-07-13 09:47:07 +0200661PRODUCT_PACKAGES_DEBUG += init.qcom.testscripts.sh
Bharath12163282022-06-20 15:10:58 +0530662
663#Add init.qcom.test.rc to PRODUCT_PACKAGES_DEBUG list
664PRODUCT_PACKAGES_DEBUG += init.qcom.test.rc
665PRODUCT_PACKAGES_DEBUG += init.qcom.debug.sh
666
667ifneq ($(strip $(TARGET_BUILD_VARIANT)),user)
668PRODUCT_COPY_FILES += \
Bharath8e773362022-10-05 09:42:57 +0530669 $(FP_PATH)/rootdir/etc/init.qcom.testscripts.sh:$(TARGET_COPY_OUT_PRODUCT)/etc/init.qcom.testscripts.sh
Bharath12163282022-06-20 15:10:58 +0530670endif
671
672PRODUCT_PACKAGES_DEBUG += \
673 init.qcom.debug.sh \
674 init.qcom.debug-sdm660.sh \
675 init.qcom.debug-sdm710.sh \
676 init.qti.debug-msmnile-apps.sh \
677 init.qti.debug-msmnile-modem.sh \
678 init.qti.debug-msmnile-slpi.sh \
679 init.qti.debug-talos.sh \
680 init.qti.debug-msmnile.sh \
681 init.qti.debug-kona.sh \
682 init.qti.debug-lito.sh \
683 init.qti.debug-trinket.sh \
684 init.qti.debug-atoll.sh \
685 init.qti.debug-lagoon.sh \
686 init.qti.debug-bengal.sh
687
688
689# IP and iptables
690PRODUCT_PACKAGES += \
691 ip \
692 libiprouteutil \
693 iptables \
694 ip-up-vpn \
695 libext
696
697
Bharath756d7dd2021-08-07 23:53:55 +0530698# IPACM
699PRODUCT_PACKAGES += \
700 ipacm \
701 IPACM_cfg.xml \
702 libipanat \
703 liboffloadhal \
704 libqsap_sdk
705
706# IRQ
707PRODUCT_COPY_FILES += \
708 $(FP_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
709 $(FP_PATH)/configs/msm_irqbalance_little_big.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance_little_big.conf
710
711
712# Kernel modules
713# Kernel modules install path
714KERNEL_MODULES_INSTALL := dlkm
715KERNEL_MODULES_OUT := out/target/product/$(PRODUCT_NAME)/$(KERNEL_MODULES_INSTALL)/lib/modules
Bharath12163282022-06-20 15:10:58 +0530716KERNEL_TO_BUILD_ROOT_OFFSET := ../../
717
718
719# Key layouts
720PRODUCT_PACKAGES += \
721 ft5x06_ts.kl \
722 gpio-keys.kl \
723 synaptics_dsx.kl \
724 synaptics_dsxv26.kl \
725 synaptics_rmi4_i2c.kl
Bharath756d7dd2021-08-07 23:53:55 +0530726
727
Bharatha701c6b2022-07-25 17:26:28 +0530728# Keystore
Bharathdec76372022-10-10 20:15:42 +0530729PRODUCT_VENDOR_PROPERTIES += ro.hardware.keystore_desede=true
Bharatha701c6b2022-07-25 17:26:28 +0530730
731
Bharath756d7dd2021-08-07 23:53:55 +0530732# LED packages
733PRODUCT_PACKAGES += \
734 android.hardware.light@2.0-impl \
735 android.hardware.light@2.0-service \
736 lights.msm8953
737
738
739# Media / StagefrightCodec 2.0
Bharathdec76372022-10-10 20:15:42 +0530740PRODUCT_VENDOR_PROPERTIES += debug.stagefright.omx_default_rank=0
Bharath756d7dd2021-08-07 23:53:55 +0530741
Bharathe3615be2021-08-18 22:25:42 +0530742# Enable features in video HAL that can compile only on this platform
Bharath12163282022-06-20 15:10:58 +0530743MSM_VIDC_TARGET_LIST := msm8953
Bharathe3615be2021-08-18 22:25:42 +0530744TARGET_USES_MEDIA_EXTENSIONS := true
745
746
Bharath4c762882022-10-10 20:15:40 +0530747#
748# media profiles and media codecs xmls
749#
750# We select non-default xmls in system partition with the properties.
751PRODUCT_SYSTEM_PROPERTIES += \
752 ro.media.xml_variant.codecs=_vendor \
753 ro.media.xml_variant.profiles=_8953_v1
754
755PRODUCT_COPY_FILES += \
756 $(FP_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
757 $(FP_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
758 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_8953_v1.xml
759
760# media files for GSI - using default paths
Bharathe3615be2021-08-18 22:25:42 +0530761PRODUCT_COPY_FILES += \
Bharathe3615be2021-08-18 22:25:42 +0530762 $(FP_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
Bharathe3615be2021-08-18 22:25:42 +0530763 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
Bharath4c762882022-10-10 20:15:40 +0530764 $(FP_PATH)/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
Bharath12163282022-06-20 15:10:58 +0530765
766PRODUCT_COPY_FILES += \
767 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
768 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
769 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
770 frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml \
771 frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \
772 frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
773 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 +0530774
Bharath756d7dd2021-08-07 23:53:55 +0530775
Bharath8d5d3992022-10-10 20:15:30 +0530776# Disable media transcoding
777PRODUCT_VENDOR_PROPERTIES += \
778 persist.sys.fuse.transcode_user_control=true \
779 persist.sys.fuse.transcode_enabled=false
780
781
Bharath756d7dd2021-08-07 23:53:55 +0530782# NFC
Bharath1710e062021-08-20 11:30:47 +0530783PRODUCT_PACKAGES += \
Bharathcaaa78e2022-09-06 10:18:06 +0530784 NQNfcNci \
Bharath1710e062021-08-20 11:30:47 +0530785 Tag \
786 com.android.nfc_extras \
787 com.nxp.nfc.nq \
788 com.nxp.nfc.nq.xml \
789 libnqnfc-nci \
790 libnqnfc_nci_jni \
791 nfc_nci.nqx.default.hw \
792 vendor.nxp.hardware.nfc@2.0-service
793
794# Permissions
795PRODUCT_COPY_FILES += \
796 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
797 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
798 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
799 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
800 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
801 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
802 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
803 vendor/nxp/opensource/halimpl/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
804 vendor/nxp/opensource/halimpl/SN100x/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci_SN100.conf
Bharath756d7dd2021-08-07 23:53:55 +0530805
806
807# OMX
808PRODUCT_PACKAGES += \
809 libavservices_minijail.vendor \
810 libc2dcolorconvert \
811 libOmxAacEnc \
812 libOmxAmrEnc \
813 libOmxCore \
814 libOmxEvrcEnc \
815 libOmxQcelp13Enc \
816 libOmxVdec \
817 libOmxVenc \
818 libqomx_core \
819 libaacwrapper \
820 libmm-omxcore \
821 libstagefrighthw \
822 libstagefright_softomx.vendor
823
824
825#
826# system prop for opengles version
827#
828# 196608 is decimal for 0x30000 to report major/minor versions as 3/0
829# 196609 is decimal for 0x30001 to report major/minor versions as 3/1
830# 196610 is decimal for 0x30002 to report major/minor versions as 3/2
Bharathdec76372022-10-10 20:15:42 +0530831PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530832 ro.opengles.version=196610
833
834
Bharath12163282022-06-20 15:10:58 +0530835# AOSP Packages
836PRODUCT_PACKAGES += \
837 DeskClock \
838 Calendar \
839 CalendarProvider \
840 Camera2 \
841 CertInstaller \
842 Gallery2 \
843 LatinIME \
844 Launcher3 \
845 LiveWallpapersPicker \
846 Music \
847 netutils-wrapper-1.0 \
848 Provision \
849 Protips \
850 QuickSearchBox \
851 Settings \
852 Stk \
853 SystemUI \
854
855
Bharath756d7dd2021-08-07 23:53:55 +0530856# Perf
857PRODUCT_COPY_FILES += \
858 $(FP_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
859
Bharathdec76372022-10-10 20:15:42 +0530860PRODUCT_VENDOR_PROPERTIES += \
Bharath12163282022-06-20 15:10:58 +0530861 persist.vendor.qcomsysd.enabled=1 \
862 ro.vendor.extension_library=libqti-perfd-client.so \
863 sys.vendor.shutdown.waittime=500
864
Bharath756d7dd2021-08-07 23:53:55 +0530865
866# Power
867PRODUCT_PACKAGES += \
868 android.hardware.power@1.0-impl \
869 android.hardware.power@1.0-service \
870 power.qcom
871
872
Bharath756d7dd2021-08-07 23:53:55 +0530873# privapp-permissions whitelisting
Bharathdec76372022-10-10 20:15:42 +0530874PRODUCT_VENDOR_PROPERTIES += ro.control_privapp_permissions=enforce
Bharath756d7dd2021-08-07 23:53:55 +0530875
876
877# Protobuf
878PRODUCT_PACKAGES += \
879 libprotobuf-cpp-full \
880 libprotobuf-cpp-full-vendorcompat \
881 libprotobuf-cpp-lite-vendorcompat
882
883
Bharath12163282022-06-20 15:10:58 +0530884# include additional QCOM build utilities
Bharath8e773362022-10-05 09:42:57 +0530885include $(FP_PATH)/utils.mk
Bharath12163282022-06-20 15:10:58 +0530886
Bharath756d7dd2021-08-07 23:53:55 +0530887# RIL properties
Bharathdec76372022-10-10 20:15:42 +0530888PRODUCT_VENDOR_PROPERTIES += vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
Bharath756d7dd2021-08-07 23:53:55 +0530889#vendor prop to disable advanced network scanning
Bharathdec76372022-10-10 20:15:42 +0530890PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530891 persist.vendor.radio.enableadvancedscan=false
892
Bharath12163282022-06-20 15:10:58 +0530893# Enable Dual SIM by default
Bharathdec76372022-10-10 20:15:42 +0530894PRODUCT_VENDOR_PROPERTIES += persist.radio.multisim.config=dsds
Bharath12163282022-06-20 15:10:58 +0530895
Bharathdec76372022-10-10 20:15:42 +0530896PRODUCT_VENDOR_PROPERTIES += \
Bharath12163282022-06-20 15:10:58 +0530897 persist.vendor.radio.apm_sim_not_pwdn=1 \
898 persist.vendor.radio.sib16_support=1 \
899 persist.vendor.radio.custom_ecc=1 \
900 persist.vendor.radio.rat_on=combine \
901 persist.vendor.radio.procedure_bytes=SKIP
902
Bharath756d7dd2021-08-07 23:53:55 +0530903
904# RenderScript
905PRODUCT_PACKAGES += \
906 android.hardware.renderscript@1.0-impl
907
908
909# SDCard
910# default is nosdcard, S/W button enabled in resource
911PRODUCT_CHARACTERISTICS := nosdcard
912
913
914# Seccomp
915PRODUCT_COPY_FILES += \
916 $(FP_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
917 $(FP_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
918
919
Bharath1710e062021-08-20 11:30:47 +0530920# Secure Element
921PRODUCT_PACKAGES += \
922 android.hardware.secure_element@1.2
923
924
Bharathca82a242022-08-18 19:48:51 +0530925# Sound Recorder
926PRODUCT_PACKAGES += \
927 QtiSoundRecorder
928
929
Bharath756d7dd2021-08-07 23:53:55 +0530930# System helper
931PRODUCT_PACKAGES += \
932 vendor.qti.hardware.systemhelper@1.0
933
934
935# Service tracker
936PRODUCT_PACKAGES += \
937 vendor.qti.hardware.servicetracker@1.2.vendor
938
939
Bharatha60665d2021-08-19 09:37:22 +0530940# Sensors
941PRODUCT_PACKAGES += \
942 sensors.FP3 \
943 android.hardware.sensors@1.0-impl \
944 android.hardware.sensors@1.0-service \
945 libsensorndkbridge
946
947# Sensor HAL conf file
948PRODUCT_COPY_FILES += \
949 $(FP_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
950
951# Feature definition files for msm8953
952PRODUCT_COPY_FILES += \
953 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
954 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
955 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
956 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
957 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
958 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
959 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
960
961
Bharath756d7dd2021-08-07 23:53:55 +0530962# Telephony Permissions
Bharath12163282022-06-20 15:10:58 +0530963# whitelisted app
964PRODUCT_COPY_FILES += \
Bharath8e773362022-10-05 09:42:57 +0530965 $(FP_PATH)/configs/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml
Bharath12163282022-06-20 15:10:58 +0530966
967PRODUCT_COPY_FILES += \
Bharath8e773362022-10-05 09:42:57 +0530968 $(FP_PATH)/configs/privapp-permissions-qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-qti.xml
Bharath12163282022-06-20 15:10:58 +0530969
970# Telephony wrappers
971PRODUCT_PACKAGES += \
972 qti-telephony-hidl-wrapper \
973 qti_telephony_hidl_wrapper.xml \
974 qti-telephony-utils \
975 qti_telephony_utils.xml
Bharath756d7dd2021-08-07 23:53:55 +0530976
977
978# Thermal
979PRODUCT_PACKAGES += \
980 android.hardware.thermal@1.0-impl \
981 android.hardware.thermal@1.0-service
982
983
984# Tinyxml
985PRODUCT_PACKAGES += \
986 libtinyxml
987
988# USB
989PRODUCT_PACKAGES += \
990 android.hardware.usb@1.0-service
991
992-include vendor/qcom/opensource/usb/vendor_product.mk
993
994
995# Vendor move
996PRODUCT_VENDOR_MOVE_ENABLED := true
997
998
999# Vibrator
1000PRODUCT_PACKAGES += \
1001 android.hardware.vibrator@1.0-impl \
Bharath12163282022-06-20 15:10:58 +05301002 android.hardware.vibrator@1.0-service \
1003 vendor.qti.hardware.vibrator.service
1004
1005PRODUCT_COPY_FILES += \
1006 vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml
Bharath756d7dd2021-08-07 23:53:55 +05301007
1008
Bharathed255712021-08-14 20:37:05 +05301009# WiFi
1010# WLAN drivers
1011PRODUCT_COPY_FILES += \
1012 $(FP_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
1013 $(FP_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_wlan_dictionary.dat \
1014 $(FP_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin # From Android 10
1015
1016# Flag to check if wcnss_service is built from source
1017TARGET_USE_WCNSS_HAL := false
1018
1019# If building from source then drop proprietary dependency
1020ifeq ($(TARGET_USE_WCNSS_HAL),true)
1021TARGET_USES_QCOM_WCNSS_QMI := false
Bharath70cf2ae2022-02-14 12:13:50 +05301022
1023PRODUCT_PACKAGES += \
1024 libwcnss_qmi \
1025 wcnss_service
Bharathed255712021-08-14 20:37:05 +05301026endif
1027
1028# WiFi HAL
1029PRODUCT_PACKAGES += \
1030 android.hardware.wifi@1.0-service
1031
Bharath12163282022-06-20 15:10:58 +05301032# WLAN DLKM
1033PRODUCT_PACKAGES += \
1034 pronto_wlan.ko
1035
Bharathed255712021-08-14 20:37:05 +05301036# WiFi Components
1037PRODUCT_PACKAGES += \
1038 hostapd \
1039 hostapd.accept \
1040 hostapd.deny \
1041 hostapd_cli \
1042 hostapd_default.conf \
1043 libnl \
1044 libqsap_sdk \
Bharathed255712021-08-14 20:37:05 +05301045 libwifi-hal-qcom \
1046 libwpa_client \
1047 p2p_supplicant_overlay.conf \
1048 vendor.qti.hardware.wifi.supplicant@1.0.vendor \
Bharathed255712021-08-14 20:37:05 +05301049 wificond \
1050 wpa_cli \
1051 wpa_supplicant.conf \
1052 wpa_supplicant \
1053 wpa_supplicant_overlay.conf \
1054 WifiOverlay \
1055 TetheringConfigOverlay
1056
1057
Bharath12163282022-06-20 15:10:58 +05301058# Zlib
1059PRODUCT_HOST_PACKAGES += minigzip
1060
1061
Bharath83dcc442022-10-10 20:16:21 +05301062# Enable zygote critical window.
1063PRODUCT_VENDOR_OVERRIDES += \
1064 zygote.critical_window.minute=10
1065
1066
Bharath12163282022-06-20 15:10:58 +05301067#soong namespace for qssi vs vendor differentiation
1068SOONG_CONFIG_NAMESPACES += qssi_vs_vendor
1069SOONG_CONFIG_qssi_vs_vendor += qssi_or_vendor
1070SOONG_CONFIG_qssi_vs_vendor_qssi_or_vendor := vendor
1071
1072SOONG_CONFIG_NAMESPACES += aosp_vs_qva
1073SOONG_CONFIG_aosp_vs_qva += aosp_or_qva
1074ifeq ($(TARGET_FWK_SUPPORTS_FULL_VALUEADDS),true)
1075SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := qva
1076else
1077SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := aosp
1078endif
1079
1080SOONG_CONFIG_NAMESPACES += qtidisplaycommonsys
1081# Soong Keys
1082SOONG_CONFIG_qtidisplaycommonsys := displayconfig_enabled
1083# Soong Values
1084SOONG_CONFIG_qtidisplaycommonsys_displayconfig_enabled := true
1085
1086
Bharath756d7dd2021-08-07 23:53:55 +05301087# Call the proprietary setup
Bharatha3a85a72022-05-23 17:50:24 +05301088FP3_PROPRIETARY_PATH := device/fairphone/fp3-proprietary
Bharatha3a85a72022-05-23 17:50:24 +05301089
Karsten Tauscheff99b112022-09-19 12:04:31 +02001090DEVICE_BLOB_VERSION := 4.A.0017.2
Francesco Salvatore03117482019-02-28 16:39:11 +01001091
1092GET_BLOBS_CMD = vendor/fairphone/tools/bin/get_blobs.py --device FP3 --build-id $(DEVICE_BLOB_VERSION) --blobs-dir $(FP3_PROPRIETARY_PATH)
1093
1094# Check the presence of proprietary blobs
1095ifeq ("$(wildcard $(FP3_PROPRIETARY_PATH)/device-vendor.mk)","")
1096define BLOBS_INSTRUCTION
1097Cannot find FP3 binary blobs.
1098Please run
1099 $(GET_BLOBS_CMD)
1100and accept the terms of agreement.
1101endef
1102$(error $(BLOBS_INSTRUCTION))
1103endif
1104
Bharath756d7dd2021-08-07 23:53:55 +05301105# Call this in the end so that flags if required can be utilized.
Bharatha3a85a72022-05-23 17:50:24 +05301106$(call inherit-product, $(FP3_PROPRIETARY_PATH)/device-vendor.mk)
1107
Bharath12163282022-06-20 15:10:58 +05301108# Build some more display components to vendor
1109$(call inherit-product, vendor/qcom/opensource/commonsys-intf/display/config/display-interfaces-product.mk)
Bharath756d7dd2021-08-07 23:53:55 +05301110###################################################################################