blob: c449d89a0a4dba850bba72270e915777c9a3fe33 [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
Jiakai Zhange4fa5b32022-05-11 16:49:38 +010063# Compile SystemUI on device with `speed`.
64PRODUCT_VENDOR_PROPERTIES += \
65 dalvik.vm.systemuicompilerfilter=speed
66
67
Wilson Sung54b067e2021-03-03 18:08:45 +080068# Set system properties identifying the chipset
69PRODUCT_VENDOR_PROPERTIES += ro.soc.manufacturer=QTI
70PRODUCT_VENDOR_PROPERTIES += ro.soc.model=SDM450
71
72
Bharath756d7dd2021-08-07 23:53:55 +053073# We don't have the calibration data as this sort of
74# data can only be generated at the factory so don't generate persist.img
75FP3_SKIP_PERSIST_IMG := true
76
Bharath80ba1872021-08-21 11:53:57 +053077
78# Operator specific overlays
79DEVICE_PACKAGE_OVERLAYS += \
80 $(LOCAL_PATH)/overlay-operators
81
Bharath756d7dd2021-08-07 23:53:55 +053082# Overlays
83DEVICE_PACKAGE_OVERLAYS += \
84 $(LOCAL_PATH)/overlay
85
86
87# A/B related defines
88AB_OTA_UPDATER := true
Luca Weissd6c3ca12022-07-13 16:24:08 +020089AB_OTA_PARTITIONS := \
90 aboot \
91 cmnlib64 \
92 cmnlib \
93 devcfg \
94 dsp \
Bharath756d7dd2021-08-07 23:53:55 +053095 dtbo \
Luca Weissd6c3ca12022-07-13 16:24:08 +020096 keymaster \
97 lksecapp \
98 mdtp \
99 modem \
100 rpm \
101 sbl1 \
102 tz \
Bharath756d7dd2021-08-07 23:53:55 +0530103 vbmeta \
Luca Weissd6c3ca12022-07-13 16:24:08 +0200104 boot \
105 system \
Bharath756d7dd2021-08-07 23:53:55 +0530106 vendor
107
108
Bharath756d7dd2021-08-07 23:53:55 +0530109PRODUCT_PACKAGES += \
Bharath756d7dd2021-08-07 23:53:55 +0530110 update_engine_sideload
111
Bharath776a9712022-03-18 00:00:41 +0530112# Dynamic Partition
113# Enable retrofit dynamic partitions for FP3
114PRODUCT_USE_DYNAMIC_PARTITIONS := true
115PRODUCT_RETROFIT_DYNAMIC_PARTITIONS := true
116
117# Additional OTA partitions
118ifeq ($(PRODUCT_USE_DYNAMIC_PARTITIONS), true)
119AB_OTA_PARTITIONS += \
120 odm \
121 product \
122 system_ext
123
124# Check OTA update status
125PRODUCT_PACKAGES += check_dynamic_partitions
126
127# Ramdisk fstab file
128PRODUCT_PACKAGES += fstab_ramdisk.qcom
129
130AB_OTA_POSTINSTALL_CONFIG += \
131 RUN_POSTINSTALL_product=true \
132 POSTINSTALL_PATH_product=bin/check_dynamic_partitions \
133 FILESYSTEM_TYPE_product=ext4 \
134 POSTINSTALL_OPTIONAL_product=false
135
136endif
Bharath756d7dd2021-08-07 23:53:55 +0530137
Bharath2307d3b2022-01-06 22:23:25 +0530138# APN
139PRODUCT_COPY_FILES += \
140 $(LOCAL_PATH)/apns-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
141
142
Bharath756d7dd2021-08-07 23:53:55 +0530143# AVB
144BOARD_AVB_ENABLE := true
145
146
147# Additional native libraries
148PRODUCT_COPY_FILES += \
149 $(FP_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
150
151
Bharath12163282022-06-20 15:10:58 +0530152# OEM Unlock reporting
Bharathdec76372022-10-10 20:15:42 +0530153PRODUCT_VENDOR_PROPERTIES += \
Bharath12163282022-06-20 15:10:58 +0530154 ro.oem_unlock_supported=1
155
156
Bharath756d7dd2021-08-07 23:53:55 +0530157# Atrace HAL
158PRODUCT_PACKAGES += \
159 android.hardware.atrace@1.0-service
160
161
162# Audio
Bharath756d7dd2021-08-07 23:53:55 +0530163PRODUCT_PACKAGES += \
Mikhail Naganovb0f62432021-02-17 02:16:06 +0000164 android.hardware.audio@7.0 \
165 android.hardware.audio.common@7.0 \
166 android.hardware.audio.common@7.0-util \
167 android.hardware.audio@7.0-impl \
168 android.hardware.audio.effect@7.0 \
169 android.hardware.audio.effect@7.0-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530170 android.hardware.audio.service \
171 android.hardware.soundtrigger@2.1-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530172 audio.primary.msm8953 \
173 audio.r_submix.default \
174 audio.usb.default \
175 libaacwrapper \
176 libaudio-resampler \
177 libautohal \
178 libqcompostprocbundle \
179 libqcomvisualizer \
180 libqcomvoiceprocessing \
181 libvolumelistener \
182 tinymix
183
184
Bharathf96fea32022-10-05 09:43:16 +0530185AUDIO_HAL_PATH := hardware/qcom/audio
Bharath756d7dd2021-08-07 23:53:55 +0530186
187# Audio files
188PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530189 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
190 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
191 $(AUDIO_HAL_PATH)/configs/msm8953/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
192 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
193 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku3_tasha.xml \
194 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku4.xml \
195 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tasha.xml \
196 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tashalite.xml \
197 $(AUDIO_HAL_PATH)/configs/msm8953/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
198 $(AUDIO_HAL_PATH)/configs/msm8953/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
199 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
200 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
201 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku3_tasha.xml \
202 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku4.xml \
203 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
204 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \
205 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
206 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9306.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9306.xml \
207 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9330.xml \
208 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \
209 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
210
211
212# Audio config files
213PRODUCT_COPY_FILES += \
Mikhail Naganovb0f62432021-02-17 02:16:06 +0000214 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 +0530215 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 +0000216 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 +0530217 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
218 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
219 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
220
221# Custom config files
222PRODUCT_COPY_FILES += \
223 $(FP_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
224
225
226# Audio firmware files
227PRODUCT_COPY_FILES += \
228 $(FP_PATH)/aw/aw8898_cfg.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/aw8898_cfg.bin \
229 $(FP_PATH)/tas2557_fw/OBO_0617_music.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557_uCDSP.bin \
230 $(FP_PATH)/tas2557_fw/tas2557evm_OBO_0617.ftcfg:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557evm_aacspk_a.ftcfg
231
232
233# Audio Specific device overlays
234DEVICE_PACKAGE_OVERLAYS += $(AUDIO_HAL_PATH)/configs/common/overlay
235
236
237# Audio Specific properties
238# Properties
239-include $(LOCAL_PATH)/audio_properties.mk
240
241
242# Audio Kernel modules
243AUDIO_DLKM := audio_apr.ko
244AUDIO_DLKM += audio_q6_notifier.ko
245AUDIO_DLKM += audio_adsp_loader.ko
246AUDIO_DLKM += audio_q6.ko
247AUDIO_DLKM += audio_usf.ko
248AUDIO_DLKM += audio_pinctrl_wcd.ko
249AUDIO_DLKM += audio_swr.ko
250AUDIO_DLKM += audio_wcd_core.ko
251AUDIO_DLKM += audio_swr_ctrl.ko
252AUDIO_DLKM += audio_wsa881x.ko
253AUDIO_DLKM += audio_wsa881x_analog.ko
254AUDIO_DLKM += audio_platform.ko
255AUDIO_DLKM += audio_cpe_lsm.ko
256AUDIO_DLKM += audio_hdmi.ko
257AUDIO_DLKM += audio_stub.ko
258AUDIO_DLKM += audio_wcd9xxx.ko
259AUDIO_DLKM += audio_mbhc.ko
260AUDIO_DLKM += audio_wcd9335.ko
261AUDIO_DLKM += audio_wcd_cpe.ko
262AUDIO_DLKM += audio_digital_cdc.ko
263AUDIO_DLKM += audio_analog_cdc.ko
264AUDIO_DLKM += audio_native.ko
265AUDIO_DLKM += audio_machine_sdm450.ko
266AUDIO_DLKM += audio_machine_ext_sdm450.ko
267PRODUCT_PACKAGES += $(AUDIO_DLKM)
268
269
Bharath9cdcce22021-12-08 15:43:43 +0530270# Automation/ATS
271PRODUCT_PACKAGES += \
272 automation_setup \
273 automation_adb_setup
274
275
Bharathfe661fb2021-08-16 18:56:32 +0530276# ANT
277PRODUCT_PACKAGES += \
278 AntHalService \
279 antradio_app \
280 com.dsi.ant@1.0 \
Bharath70cf2ae2022-02-14 12:13:50 +0530281 com.dsi.ant@1.0.vendor \
Bharathfe661fb2021-08-16 18:56:32 +0530282 libantradio
283
Bharath756d7dd2021-08-07 23:53:55 +0530284# Bluetooth
Bharathfe661fb2021-08-16 18:56:32 +0530285PRODUCT_PACKAGES += \
Bharathfe661fb2021-08-16 18:56:32 +0530286 audio.bluetooth.default \
287 android.hardware.bluetooth.audio@2.0-impl \
288 android.hardware.bluetooth@1.0 \
289 vendor.qti.hardware.bluetooth_audio@2.0 \
Bharath19ec3492022-03-14 10:22:26 +0530290 vendor.qti.hardware.bluetooth_audio@2.1.vendor
Bharathfe661fb2021-08-16 18:56:32 +0530291
292# Bluetooth Permissions
293PRODUCT_COPY_FILES += \
294 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
295 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 +0530296
Etienne Ruffieux8ac2cec2022-01-20 21:27:18 +0000297# Bluetooth Properties
Sal Savage776e8102022-02-04 09:40:38 -0800298# Set supported Bluetooth profiles to enabled
Etienne Ruffieux8ac2cec2022-01-20 21:27:18 +0000299PRODUCT_PRODUCT_PROPERTIES += \
Sal Savage590b8d92022-04-27 13:13:03 -0700300 bluetooth.profile.asha.central.enabled?=true \
301 bluetooth.profile.a2dp.source.enabled?=true \
302 bluetooth.profile.avrcp.target.enabled?=true \
Sal Savage590b8d92022-04-27 13:13:03 -0700303 bluetooth.profile.bas.client.enabled?=true \
Sal Savage590b8d92022-04-27 13:13:03 -0700304 bluetooth.profile.gatt.enabled?=true \
Sal Savage590b8d92022-04-27 13:13:03 -0700305 bluetooth.profile.hfp.ag.enabled?=true \
306 bluetooth.profile.hid.device.enabled?=true \
307 bluetooth.profile.hid.host.enabled?=true \
308 bluetooth.profile.map.server.enabled?=true \
Sal Savage590b8d92022-04-27 13:13:03 -0700309 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 \
Bharath4baf2322022-10-10 20:19:45 +0530313 bluetooth.profile.sap.server.enabled?=true
Etienne Ruffieux8ac2cec2022-01-20 21:27:18 +0000314
Sal Savagede026932022-04-25 16:42:15 -0700315# Set the Bluetooth Class of Device
316# Service Field: 0x5A -> 90
317# Bit 17: Networking
318# Bit 19: Capturing
319# Bit 20: Object Transfer
320# Bit 22: Telephony
321# MAJOR_CLASS: 0x02 -> 2 (Phone)
322# MINOR_CLASS: 0x0C -> 12 (Smart Phone)
323PRODUCT_PRODUCT_PROPERTIES += \
324 bluetooth.device.class_of_device=90,2,12
325
Bharath756d7dd2021-08-07 23:53:55 +0530326
Bharath12163282022-06-20 15:10:58 +0530327# Board platforms lists to be used for
328# TARGET_BOARD_PLATFORM specific featurization
329QCOM_BOARD_PLATFORMS += msm8953
330
331
Bharath756d7dd2021-08-07 23:53:55 +0530332# Boot
333PRODUCT_PACKAGES += \
334 android.hardware.boot@1.0-impl \
335 android.hardware.boot@1.0-impl.recovery \
336 android.hardware.boot@1.0-service \
337 bootctrl.msm8953 \
Bharathe341d1d2022-04-06 09:49:27 +0530338 bootctrl.msm8953.recovery \
Bharath756d7dd2021-08-07 23:53:55 +0530339 update_engine \
340 update_engine_client \
341 update_engine_sideload \
342 update_verifier
343
Bharath12163282022-06-20 15:10:58 +0530344# MSM updater library
345PRODUCT_PACKAGES += librecovery_updater_msm
346
347
348# Skip boot jars check
349SKIP_BOOT_JARS_CHECK := true
350
Bharath756d7dd2021-08-07 23:53:55 +0530351
352# Boot animation
353TARGET_SCREEN_HEIGHT := 2160
354TARGET_SCREEN_WIDTH := 1080
355
356
357PRODUCT_COPY_FILES += \
358 vendor/fairphone/media/bootanimation/bootanimation.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip
359
360
361# Camera
Bharathcbfb0a92021-08-19 21:13:50 +0530362PRODUCT_PACKAGES += \
363 android.frameworks.displayservice@1.0.vendor \
364 android.hidl.base@1.0.vendor \
365 android.hardware.camera.device@3.5 \
366 android.hardware.camera.provider@2.4 \
367 android.hardware.camera.provider@2.4-external \
368 android.hardware.camera.provider@2.4-impl \
369 android.hardware.camera.provider@2.4-legacy \
370 android.hardware.camera.provider@2.4-service \
371 android.hardware.camera.provider@2.6 \
372 camera.device@1.0-impl \
373 camera.device@3.5-impl \
374 camera.device@3.6-external-impl \
375 camera.msm8953 \
Bharathcbfb0a92021-08-19 21:13:50 +0530376 libcamera2ndk_vendor \
377 libhal_dbg \
378 libjni_burstpmk \
379 libjni_imageutil \
380 libjni_snapcammosaic \
381 libjni_snapcamtinyplanet \
382 libmm-qcamera \
383 libmmcamera_interface \
384 libmmjpeg_interface \
385 libmmlib2d_interface \
386 libqomx_core \
387 libxml2 \
388 mm-qcamera-app \
389 vendor.qti.hardware.camera.device@1.0 \
390 vendor.qti.hardware.camera.device@1.0.vendor
391
392# Fairphone Camera
393PRODUCT_PACKAGES += \
394 FairphoneCamera
395
396# Arcsoft camera libraries
397PRODUCT_PACKAGES += \
398 libarcimageprocess \
399 libarcsoft_aiscenedetection \
400 libarcsoft_hdr_detection \
401 libarcsoft_high_dynamic_range \
402 libarcsoft_low_light_hdr \
403 libarcsoft_low_light_shot \
404 libarcsoft_object_tracking \
405 libarcsoft_panorama_burstcapture \
406 libarcsoft_singlecam_bokeh \
407 libarcsoft_videoautozoom \
408 libarcsoft_videostabs \
409 libmpbase \
410 libmpbase.vendor
411
412# Feature flags for camera
413PRODUCT_COPY_FILES += \
414 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
415 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
416 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
417 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 +0530418
419
420# Component overrides
Bharathe025dac2022-08-02 15:02:41 +0530421PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530422 $(FP_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
423
424
Bharath12163282022-06-20 15:10:58 +0530425# Charger
426PRODUCT_PACKAGES += \
427 charger \
428 charger_res_images
429
430
431# Chromium
432PRODUCT_PACKAGES += \
433 libwebviewchromium_loader \
434 libwebviewchromium_plat_support
435
436
437# Curl
438PRODUCT_PACKAGES += \
439 curl \
440 libcurl
441
442
443# Data/rmnetctrl
444PRODUCT_PACKAGES += \
445 librmnetctl
446
leolee75d66582020-10-21 15:26:49 +0800447# IPV4
Bharathdec76372022-10-10 20:15:42 +0530448PRODUCT_VENDOR_PROPERTIES += \
leolee75d66582020-10-21 15:26:49 +0800449 persist.vendor.data.profile_update=true
450
Bharathdec76372022-10-10 20:15:42 +0530451PRODUCT_VENDOR_PROPERTIES += ro.telephony.iwlan_operation_mode=legacy
Bharatha701c6b2022-07-25 17:26:28 +0530452
Bharath12163282022-06-20 15:10:58 +0530453
Bharath756d7dd2021-08-07 23:53:55 +0530454# Display
455PRODUCT_PACKAGES += \
456 android.hardware.graphics.allocator@2.0-impl \
457 android.hardware.graphics.allocator@2.0-service \
458 android.hardware.graphics.composer@2.1-service \
459 android.hardware.graphics.mapper@2.0-impl-2.1 \
460 android.hardware.memtrack@1.0-impl \
461 android.hardware.memtrack@1.0-service \
462 gralloc.default \
463 gralloc.msm8953 \
464 hwcomposer.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530465 libdisplayconfig \
Bharath12163282022-06-20 15:10:58 +0530466 libdisplayconfig.qti \
467 libdrm \
468 libgralloc.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530469 libqdMetaData \
Bharath12163282022-06-20 15:10:58 +0530470 libqdutils \
Bharath756d7dd2021-08-07 23:53:55 +0530471 libvulkan \
Bharath12163282022-06-20 15:10:58 +0530472 memtrack.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530473 vendor.qti.hardware.display.composer@3.0
474
475
476# Vendor Display
477# Disable skip validate
Bharathdec76372022-10-10 20:15:42 +0530478PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530479 vendor.display.disable_skip_validate=1
480
Bharathdec76372022-10-10 20:15:42 +0530481PRODUCT_VENDOR_PROPERTIES += ro.hardware.vulkan=adreno
482PRODUCT_VENDOR_PROPERTIES += ro.hardware.egl=adreno
Bharatha701c6b2022-07-25 17:26:28 +0530483
Bharath756d7dd2021-08-07 23:53:55 +0530484
485# Display Properties
486PRODUCT_AAPT_CONFIG := normal
487PRODUCT_AAPT_PREF_CONFIG := xxhdpi
488
489
490# DRM
491PRODUCT_PACKAGES += \
Edwin Wong8de56c72021-03-25 00:19:58 -0700492 android.hardware.drm@1.4-service.clearkey
Bharath756d7dd2021-08-07 23:53:55 +0530493
494
Pradeep Chenthatib4c3c102021-10-19 20:07:52 +0530495# Elabel
496PRODUCT_PACKAGES += \
497 eLabel.html.gz \
498 eLabel1.png \
499 eLabel2.png \
500 FAIRPHONE.html.gz \
501 FAIRPHONE.png
502
503
Bharath756d7dd2021-08-07 23:53:55 +0530504# Enable vndk-sp Libraries
505PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
506TARGET_USES_MKE2FS := true
507
508PRODUCT_PACKAGES += \
509 vndk_package
510
511
512# Encryption
Bharathdec76372022-10-10 20:15:42 +0530513PRODUCT_VENDOR_PROPERTIES += ro.crypto.allow_encrypt_override=true
514PRODUCT_VENDOR_PROPERTIES += ro.crypto.volume.filenames_mode=aes-256-cts
Bharath756d7dd2021-08-07 23:53:55 +0530515
516
Bharath12163282022-06-20 15:10:58 +0530517# E2fsck
518PRODUCT_PACKAGES += \
519 e2fsck
520
Bharath44ee36f2022-05-02 15:37:19 +0530521
Bharathe341d1d2022-04-06 09:49:27 +0530522# Fastbootd
523PRODUCT_PACKAGES += fastbootd
524
525
Bharath756d7dd2021-08-07 23:53:55 +0530526# FBE support
527PRODUCT_COPY_FILES += \
528 $(FP_PATH)/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh
529
530
Bharath1710e062021-08-20 11:30:47 +0530531# Feature flags and permissions
532PRODUCT_COPY_FILES += \
533 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
534 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
535 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
536 frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
537 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
538 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
539 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
540 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
541 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 +0530542 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 +0530543 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
544 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
545 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 +0530546 frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
547 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
548 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 +0800549 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 +0530550 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 +0530551 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
552
Bharath1dcb6512021-08-20 00:41:08 +0530553# Fingerprint
554PRODUCT_PACKAGES += \
555 android.hardware.biometrics.fingerprint@2.1 \
556 android.hardware.biometrics.fingerprint@2.1-service \
557 elan_device.rc \
558 fingerprint.default
559
560# Fingerprint files
561include $(FP_PATH)/elan_lib/fingerprint/elan_lib.mk
562
563# Fingerprint feature flag
564PRODUCT_COPY_FILES += \
Luca Weiss9656b9c2022-03-03 11:15:21 +0100565 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.fingerprint.xml
Bharath1dcb6512021-08-20 00:41:08 +0530566
567
Bharath756d7dd2021-08-07 23:53:55 +0530568# Framework Detect
569PRODUCT_PACKAGES += \
570 libqti_vndfwk_detect \
571 libqti_vndfwk_detect.vendor \
572 libvndfwk_detect_jni.qti \
573 libvndfwk_detect_jni.qti.vendor \
574 vndservicemanager
575
Bharath12163282022-06-20 15:10:58 +0530576# FRP
Bharathdec76372022-10-10 20:15:42 +0530577PRODUCT_VENDOR_PROPERTIES += ro.frp.pst=/dev/block/bootdevice/by-name/config
Bharath12163282022-06-20 15:10:58 +0530578
Bharath756d7dd2021-08-07 23:53:55 +0530579
580# HIDL
581PRODUCT_PACKAGES += \
582 android.hidl.base@1.0 \
583 libhidltransport \
584 libhidltransport.vendor \
585 libhwbinder \
586 libhwbinder.vendor
587
588
Bharath1710e062021-08-20 11:30:47 +0530589# GPS
590BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
Luca Weissa8a60262022-02-28 15:00:31 +0100591LOC_HIDL_VERSION := 4.0
Bharath1710e062021-08-20 11:30:47 +0530592
593PRODUCT_PACKAGES += \
Bharath70cf2ae2022-02-14 12:13:50 +0530594 android.hardware.gnss@2.1-impl-qti \
Bharath1710e062021-08-20 11:30:47 +0530595 android.hardware.gnss@2.1-service-qti \
596 libbatching \
597 libgeofencing \
598 libgnss \
599 libjson \
600 libwifi-hal-ctrl \
601 libgps.utils
602
603PRODUCT_PACKAGES += \
604 flp.conf \
605 gps.conf
606
607# gps/location secuity configuration file
608PRODUCT_COPY_FILES += \
609 $(FP_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
610
611# Permissions
612PRODUCT_COPY_FILES += \
613 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
614
Bharathdec76372022-10-10 20:15:42 +0530615PRODUCT_VENDOR_PROPERTIES += \
Bharath12163282022-06-20 15:10:58 +0530616 persist.backup.ntpServer=0.pool.ntp.org
617
Bharath1710e062021-08-20 11:30:47 +0530618
Bharath756d7dd2021-08-07 23:53:55 +0530619# Health
620PRODUCT_PACKAGES += \
621 android.hardware.health@2.1-impl \
622 android.hardware.health@2.1-impl.recovery \
623 android.hardware.health@2.1-service
624
625# IMS
626PRODUCT_PACKAGES += \
627 ims-ext-common \
628 ims_ext_common.xml \
629 ConfURIDialer
630
Bharath12163282022-06-20 15:10:58 +0530631
632# Init
633PRODUCT_PACKAGES += \
634 fstab.qcom \
635 init.class_main.sh \
636 init.crda.sh \
Karsten Tauschee270bad2022-08-22 15:41:19 +0200637 init.legacy_prop.rc \
Bharath12163282022-06-20 15:10:58 +0530638 init.mdm.sh \
639 init.qcom.class_core.sh \
640 init.qcom.coex.sh \
641 init.qcom.early_boot.sh \
642 init.qcom.efs.sync.sh \
643 init.qcom.factory.rc \
644 init.qcom.post_boot.sh \
645 init.qcom.rc \
646 init.qcom.sdio.sh \
647 init.qcom.sensors.sh \
648 init.qcom.sh \
649 init.qcom.usb.rc \
650 init.qcom.usb.sh \
651 init.recovery.qcom.rc \
652 init.target.rc \
653 init.veth_ipa_config.sh \
654 qca6234-service.sh \
655 ueventd.qcom.rc \
656 vold.fstab
657
658#intialise PRODUCT_PACKAGES_DEBUG list for debug modules
Luca Weiss2327bfb2022-07-13 09:47:07 +0200659PRODUCT_PACKAGES_DEBUG += init.qcom.testscripts.sh
Bharath12163282022-06-20 15:10:58 +0530660
661#Add init.qcom.test.rc to PRODUCT_PACKAGES_DEBUG list
662PRODUCT_PACKAGES_DEBUG += init.qcom.test.rc
663PRODUCT_PACKAGES_DEBUG += init.qcom.debug.sh
664
665ifneq ($(strip $(TARGET_BUILD_VARIANT)),user)
666PRODUCT_COPY_FILES += \
Bharath8e773362022-10-05 09:42:57 +0530667 $(FP_PATH)/rootdir/etc/init.qcom.testscripts.sh:$(TARGET_COPY_OUT_PRODUCT)/etc/init.qcom.testscripts.sh
Bharath12163282022-06-20 15:10:58 +0530668endif
669
670PRODUCT_PACKAGES_DEBUG += \
671 init.qcom.debug.sh \
672 init.qcom.debug-sdm660.sh \
673 init.qcom.debug-sdm710.sh \
674 init.qti.debug-msmnile-apps.sh \
675 init.qti.debug-msmnile-modem.sh \
676 init.qti.debug-msmnile-slpi.sh \
677 init.qti.debug-talos.sh \
678 init.qti.debug-msmnile.sh \
679 init.qti.debug-kona.sh \
680 init.qti.debug-lito.sh \
681 init.qti.debug-trinket.sh \
682 init.qti.debug-atoll.sh \
683 init.qti.debug-lagoon.sh \
684 init.qti.debug-bengal.sh
685
686
687# IP and iptables
688PRODUCT_PACKAGES += \
689 ip \
690 libiprouteutil \
691 iptables \
692 ip-up-vpn \
693 libext
694
695
Bharath756d7dd2021-08-07 23:53:55 +0530696# IPACM
697PRODUCT_PACKAGES += \
698 ipacm \
699 IPACM_cfg.xml \
700 libipanat \
701 liboffloadhal \
702 libqsap_sdk
703
704# IRQ
705PRODUCT_COPY_FILES += \
706 $(FP_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
707 $(FP_PATH)/configs/msm_irqbalance_little_big.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance_little_big.conf
708
709
710# Kernel modules
711# Kernel modules install path
712KERNEL_MODULES_INSTALL := dlkm
713KERNEL_MODULES_OUT := out/target/product/$(PRODUCT_NAME)/$(KERNEL_MODULES_INSTALL)/lib/modules
Bharath12163282022-06-20 15:10:58 +0530714KERNEL_TO_BUILD_ROOT_OFFSET := ../../
715
716
717# Key layouts
718PRODUCT_PACKAGES += \
719 ft5x06_ts.kl \
720 gpio-keys.kl \
721 synaptics_dsx.kl \
722 synaptics_dsxv26.kl \
723 synaptics_rmi4_i2c.kl
Bharath756d7dd2021-08-07 23:53:55 +0530724
725
Bharatha701c6b2022-07-25 17:26:28 +0530726# Keystore
Bharathdec76372022-10-10 20:15:42 +0530727PRODUCT_VENDOR_PROPERTIES += ro.hardware.keystore_desede=true
Bharatha701c6b2022-07-25 17:26:28 +0530728
729
Bharath756d7dd2021-08-07 23:53:55 +0530730# LED packages
731PRODUCT_PACKAGES += \
732 android.hardware.light@2.0-impl \
733 android.hardware.light@2.0-service \
734 lights.msm8953
735
736
737# Media / StagefrightCodec 2.0
Bharathdec76372022-10-10 20:15:42 +0530738PRODUCT_VENDOR_PROPERTIES += debug.stagefright.omx_default_rank=0
Bharath756d7dd2021-08-07 23:53:55 +0530739
Bharathe3615be2021-08-18 22:25:42 +0530740# Enable features in video HAL that can compile only on this platform
Bharath12163282022-06-20 15:10:58 +0530741MSM_VIDC_TARGET_LIST := msm8953
Bharathe3615be2021-08-18 22:25:42 +0530742TARGET_USES_MEDIA_EXTENSIONS := true
743
744
Bharath4c762882022-10-10 20:15:40 +0530745#
746# media profiles and media codecs xmls
747#
748# We select non-default xmls in system partition with the properties.
749PRODUCT_SYSTEM_PROPERTIES += \
750 ro.media.xml_variant.codecs=_vendor \
751 ro.media.xml_variant.profiles=_8953_v1
752
753PRODUCT_COPY_FILES += \
754 $(FP_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
755 $(FP_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
756 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_8953_v1.xml
757
758# media files for GSI - using default paths
Bharathe3615be2021-08-18 22:25:42 +0530759PRODUCT_COPY_FILES += \
Bharathe3615be2021-08-18 22:25:42 +0530760 $(FP_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
Bharathe3615be2021-08-18 22:25:42 +0530761 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
Bharath4c762882022-10-10 20:15:40 +0530762 $(FP_PATH)/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
Bharath12163282022-06-20 15:10:58 +0530763
764PRODUCT_COPY_FILES += \
765 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
766 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
767 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
768 frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml \
769 frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \
770 frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
771 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 +0530772
Bharath756d7dd2021-08-07 23:53:55 +0530773
Bharath8d5d3992022-10-10 20:15:30 +0530774# Disable media transcoding
775PRODUCT_VENDOR_PROPERTIES += \
776 persist.sys.fuse.transcode_user_control=true \
777 persist.sys.fuse.transcode_enabled=false
778
779
Bharath756d7dd2021-08-07 23:53:55 +0530780# NFC
Bharath1710e062021-08-20 11:30:47 +0530781PRODUCT_PACKAGES += \
Bharathcaaa78e2022-09-06 10:18:06 +0530782 NQNfcNci \
Bharath1710e062021-08-20 11:30:47 +0530783 Tag \
784 com.android.nfc_extras \
785 com.nxp.nfc.nq \
786 com.nxp.nfc.nq.xml \
787 libnqnfc-nci \
788 libnqnfc_nci_jni \
789 nfc_nci.nqx.default.hw \
790 vendor.nxp.hardware.nfc@2.0-service
791
792# Permissions
793PRODUCT_COPY_FILES += \
794 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
795 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
796 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
797 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
798 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
799 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
800 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
801 vendor/nxp/opensource/halimpl/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
802 vendor/nxp/opensource/halimpl/SN100x/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci_SN100.conf
Bharath756d7dd2021-08-07 23:53:55 +0530803
804
805# OMX
806PRODUCT_PACKAGES += \
807 libavservices_minijail.vendor \
808 libc2dcolorconvert \
809 libOmxAacEnc \
810 libOmxAmrEnc \
811 libOmxCore \
812 libOmxEvrcEnc \
813 libOmxQcelp13Enc \
814 libOmxVdec \
815 libOmxVenc \
816 libqomx_core \
817 libaacwrapper \
818 libmm-omxcore \
819 libstagefrighthw \
820 libstagefright_softomx.vendor
821
822
823#
824# system prop for opengles version
825#
826# 196608 is decimal for 0x30000 to report major/minor versions as 3/0
827# 196609 is decimal for 0x30001 to report major/minor versions as 3/1
828# 196610 is decimal for 0x30002 to report major/minor versions as 3/2
Bharathdec76372022-10-10 20:15:42 +0530829PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530830 ro.opengles.version=196610
831
832
Bharath12163282022-06-20 15:10:58 +0530833# AOSP Packages
834PRODUCT_PACKAGES += \
835 DeskClock \
836 Calendar \
837 CalendarProvider \
838 Camera2 \
839 CertInstaller \
840 Gallery2 \
841 LatinIME \
842 Launcher3 \
843 LiveWallpapersPicker \
844 Music \
845 netutils-wrapper-1.0 \
846 Provision \
847 Protips \
848 QuickSearchBox \
849 Settings \
850 Stk \
851 SystemUI \
852
853
Bharath756d7dd2021-08-07 23:53:55 +0530854# Perf
855PRODUCT_COPY_FILES += \
856 $(FP_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
857
Bharathdec76372022-10-10 20:15:42 +0530858PRODUCT_VENDOR_PROPERTIES += \
Bharath12163282022-06-20 15:10:58 +0530859 persist.vendor.qcomsysd.enabled=1 \
860 ro.vendor.extension_library=libqti-perfd-client.so \
861 sys.vendor.shutdown.waittime=500
862
Bharath756d7dd2021-08-07 23:53:55 +0530863
864# Power
865PRODUCT_PACKAGES += \
866 android.hardware.power@1.0-impl \
867 android.hardware.power@1.0-service \
868 power.qcom
869
870
Bharath756d7dd2021-08-07 23:53:55 +0530871# privapp-permissions whitelisting
Bharathdec76372022-10-10 20:15:42 +0530872PRODUCT_VENDOR_PROPERTIES += ro.control_privapp_permissions=enforce
Bharath756d7dd2021-08-07 23:53:55 +0530873
874
875# Protobuf
876PRODUCT_PACKAGES += \
877 libprotobuf-cpp-full \
878 libprotobuf-cpp-full-vendorcompat \
879 libprotobuf-cpp-lite-vendorcompat
880
881
Bharath12163282022-06-20 15:10:58 +0530882# include additional QCOM build utilities
Bharath8e773362022-10-05 09:42:57 +0530883include $(FP_PATH)/utils.mk
Bharath12163282022-06-20 15:10:58 +0530884
Bharath756d7dd2021-08-07 23:53:55 +0530885# RIL properties
Bharathdec76372022-10-10 20:15:42 +0530886PRODUCT_VENDOR_PROPERTIES += vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
Bharath756d7dd2021-08-07 23:53:55 +0530887#vendor prop to disable advanced network scanning
Bharathdec76372022-10-10 20:15:42 +0530888PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530889 persist.vendor.radio.enableadvancedscan=false
890
Bharath12163282022-06-20 15:10:58 +0530891# Enable Dual SIM by default
Bharathdec76372022-10-10 20:15:42 +0530892PRODUCT_VENDOR_PROPERTIES += persist.radio.multisim.config=dsds
Bharath12163282022-06-20 15:10:58 +0530893
Bharathdec76372022-10-10 20:15:42 +0530894PRODUCT_VENDOR_PROPERTIES += \
Bharath12163282022-06-20 15:10:58 +0530895 persist.vendor.radio.apm_sim_not_pwdn=1 \
896 persist.vendor.radio.sib16_support=1 \
897 persist.vendor.radio.custom_ecc=1 \
898 persist.vendor.radio.rat_on=combine \
899 persist.vendor.radio.procedure_bytes=SKIP
900
Bharath756d7dd2021-08-07 23:53:55 +0530901
902# RenderScript
903PRODUCT_PACKAGES += \
904 android.hardware.renderscript@1.0-impl
905
906
907# SDCard
908# default is nosdcard, S/W button enabled in resource
909PRODUCT_CHARACTERISTICS := nosdcard
910
911
912# Seccomp
913PRODUCT_COPY_FILES += \
914 $(FP_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
915 $(FP_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
916
917
Bharath1710e062021-08-20 11:30:47 +0530918# Secure Element
919PRODUCT_PACKAGES += \
920 android.hardware.secure_element@1.2
921
922
Bharathca82a242022-08-18 19:48:51 +0530923# Sound Recorder
924PRODUCT_PACKAGES += \
925 QtiSoundRecorder
926
927
Bharath756d7dd2021-08-07 23:53:55 +0530928# System helper
929PRODUCT_PACKAGES += \
930 vendor.qti.hardware.systemhelper@1.0
931
932
933# Service tracker
934PRODUCT_PACKAGES += \
935 vendor.qti.hardware.servicetracker@1.2.vendor
936
937
Bharatha60665d2021-08-19 09:37:22 +0530938# Sensors
939PRODUCT_PACKAGES += \
940 sensors.FP3 \
941 android.hardware.sensors@1.0-impl \
942 android.hardware.sensors@1.0-service \
943 libsensorndkbridge
944
945# Sensor HAL conf file
946PRODUCT_COPY_FILES += \
947 $(FP_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
948
949# Feature definition files for msm8953
950PRODUCT_COPY_FILES += \
951 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
952 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
953 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
954 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
955 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
956 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
957 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
958
959
Bharath756d7dd2021-08-07 23:53:55 +0530960# Telephony Permissions
Bharath12163282022-06-20 15:10:58 +0530961# whitelisted app
962PRODUCT_COPY_FILES += \
Bharath8e773362022-10-05 09:42:57 +0530963 $(FP_PATH)/configs/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml
Bharath12163282022-06-20 15:10:58 +0530964
965PRODUCT_COPY_FILES += \
Bharath8e773362022-10-05 09:42:57 +0530966 $(FP_PATH)/configs/privapp-permissions-qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-qti.xml
Bharath12163282022-06-20 15:10:58 +0530967
968# Telephony wrappers
969PRODUCT_PACKAGES += \
970 qti-telephony-hidl-wrapper \
971 qti_telephony_hidl_wrapper.xml \
972 qti-telephony-utils \
973 qti_telephony_utils.xml
Bharath756d7dd2021-08-07 23:53:55 +0530974
975
976# Thermal
977PRODUCT_PACKAGES += \
978 android.hardware.thermal@1.0-impl \
979 android.hardware.thermal@1.0-service
980
981
982# Tinyxml
983PRODUCT_PACKAGES += \
984 libtinyxml
985
986# USB
987PRODUCT_PACKAGES += \
988 android.hardware.usb@1.0-service
989
990-include vendor/qcom/opensource/usb/vendor_product.mk
991
992
993# Vendor move
994PRODUCT_VENDOR_MOVE_ENABLED := true
995
996
997# Vibrator
998PRODUCT_PACKAGES += \
999 android.hardware.vibrator@1.0-impl \
Bharath12163282022-06-20 15:10:58 +05301000 android.hardware.vibrator@1.0-service \
1001 vendor.qti.hardware.vibrator.service
1002
1003PRODUCT_COPY_FILES += \
1004 vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml
Bharath756d7dd2021-08-07 23:53:55 +05301005
1006
Bharathed255712021-08-14 20:37:05 +05301007# WiFi
1008# WLAN drivers
1009PRODUCT_COPY_FILES += \
1010 $(FP_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
1011 $(FP_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_wlan_dictionary.dat \
1012 $(FP_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin # From Android 10
1013
1014# Flag to check if wcnss_service is built from source
1015TARGET_USE_WCNSS_HAL := false
1016
1017# If building from source then drop proprietary dependency
1018ifeq ($(TARGET_USE_WCNSS_HAL),true)
1019TARGET_USES_QCOM_WCNSS_QMI := false
Bharath70cf2ae2022-02-14 12:13:50 +05301020
1021PRODUCT_PACKAGES += \
1022 libwcnss_qmi \
1023 wcnss_service
Bharathed255712021-08-14 20:37:05 +05301024endif
1025
1026# WiFi HAL
1027PRODUCT_PACKAGES += \
1028 android.hardware.wifi@1.0-service
1029
Bharath12163282022-06-20 15:10:58 +05301030# WLAN DLKM
1031PRODUCT_PACKAGES += \
1032 pronto_wlan.ko
1033
Bharathed255712021-08-14 20:37:05 +05301034# WiFi Components
1035PRODUCT_PACKAGES += \
1036 hostapd \
1037 hostapd.accept \
1038 hostapd.deny \
1039 hostapd_cli \
1040 hostapd_default.conf \
1041 libnl \
1042 libqsap_sdk \
Bharathed255712021-08-14 20:37:05 +05301043 libwifi-hal-qcom \
1044 libwpa_client \
1045 p2p_supplicant_overlay.conf \
1046 vendor.qti.hardware.wifi.supplicant@1.0.vendor \
Bharathed255712021-08-14 20:37:05 +05301047 wificond \
1048 wpa_cli \
1049 wpa_supplicant.conf \
1050 wpa_supplicant \
1051 wpa_supplicant_overlay.conf \
1052 WifiOverlay \
1053 TetheringConfigOverlay
1054
1055
Bharath12163282022-06-20 15:10:58 +05301056# Zlib
1057PRODUCT_HOST_PACKAGES += minigzip
1058
1059
Bharath83dcc442022-10-10 20:16:21 +05301060# Enable zygote critical window.
1061PRODUCT_VENDOR_OVERRIDES += \
1062 zygote.critical_window.minute=10
1063
1064
Bharath12163282022-06-20 15:10:58 +05301065#soong namespace for qssi vs vendor differentiation
1066SOONG_CONFIG_NAMESPACES += qssi_vs_vendor
1067SOONG_CONFIG_qssi_vs_vendor += qssi_or_vendor
1068SOONG_CONFIG_qssi_vs_vendor_qssi_or_vendor := vendor
1069
1070SOONG_CONFIG_NAMESPACES += aosp_vs_qva
1071SOONG_CONFIG_aosp_vs_qva += aosp_or_qva
1072ifeq ($(TARGET_FWK_SUPPORTS_FULL_VALUEADDS),true)
1073SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := qva
1074else
1075SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := aosp
1076endif
1077
1078SOONG_CONFIG_NAMESPACES += qtidisplaycommonsys
1079# Soong Keys
1080SOONG_CONFIG_qtidisplaycommonsys := displayconfig_enabled
1081# Soong Values
1082SOONG_CONFIG_qtidisplaycommonsys_displayconfig_enabled := true
1083
1084
Bharath756d7dd2021-08-07 23:53:55 +05301085# Call the proprietary setup
Bharatha3a85a72022-05-23 17:50:24 +05301086FP3_PROPRIETARY_PATH := device/fairphone/fp3-proprietary
Bharatha3a85a72022-05-23 17:50:24 +05301087
Karsten Tauscheff99b112022-09-19 12:04:31 +02001088DEVICE_BLOB_VERSION := 4.A.0017.2
Francesco Salvatore03117482019-02-28 16:39:11 +01001089
1090GET_BLOBS_CMD = vendor/fairphone/tools/bin/get_blobs.py --device FP3 --build-id $(DEVICE_BLOB_VERSION) --blobs-dir $(FP3_PROPRIETARY_PATH)
1091
1092# Check the presence of proprietary blobs
1093ifeq ("$(wildcard $(FP3_PROPRIETARY_PATH)/device-vendor.mk)","")
1094define BLOBS_INSTRUCTION
1095Cannot find FP3 binary blobs.
1096Please run
1097 $(GET_BLOBS_CMD)
1098and accept the terms of agreement.
1099endef
1100$(error $(BLOBS_INSTRUCTION))
1101endif
1102
Bharath756d7dd2021-08-07 23:53:55 +05301103# Call this in the end so that flags if required can be utilized.
Bharatha3a85a72022-05-23 17:50:24 +05301104$(call inherit-product, $(FP3_PROPRIETARY_PATH)/device-vendor.mk)
1105
Bharath12163282022-06-20 15:10:58 +05301106# Build some more display components to vendor
1107$(call inherit-product, vendor/qcom/opensource/commonsys-intf/display/config/display-interfaces-product.mk)
Bharath756d7dd2021-08-07 23:53:55 +05301108###################################################################################