blob: c4701ddef060c44cc04a542a9c27fd705dc87ff8 [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
Jiakai Zhange915cae2022-05-20 14:56:44 +0100454# Preopt SystemUI
455PRODUCT_DEXPREOPT_SPEED_APPS += SystemUI # For AOSP
456
457
Bharath756d7dd2021-08-07 23:53:55 +0530458# Display
459PRODUCT_PACKAGES += \
460 android.hardware.graphics.allocator@2.0-impl \
461 android.hardware.graphics.allocator@2.0-service \
462 android.hardware.graphics.composer@2.1-service \
463 android.hardware.graphics.mapper@2.0-impl-2.1 \
464 android.hardware.memtrack@1.0-impl \
465 android.hardware.memtrack@1.0-service \
466 gralloc.default \
467 gralloc.msm8953 \
468 hwcomposer.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530469 libdisplayconfig \
Bharath12163282022-06-20 15:10:58 +0530470 libdisplayconfig.qti \
471 libdrm \
472 libgralloc.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530473 libqdMetaData \
Bharath12163282022-06-20 15:10:58 +0530474 libqdutils \
Bharath756d7dd2021-08-07 23:53:55 +0530475 libvulkan \
Bharath12163282022-06-20 15:10:58 +0530476 memtrack.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530477 vendor.qti.hardware.display.composer@3.0
478
479
480# Vendor Display
481# Disable skip validate
Bharathdec76372022-10-10 20:15:42 +0530482PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530483 vendor.display.disable_skip_validate=1
484
Bharathdec76372022-10-10 20:15:42 +0530485PRODUCT_VENDOR_PROPERTIES += ro.hardware.vulkan=adreno
486PRODUCT_VENDOR_PROPERTIES += ro.hardware.egl=adreno
Bharatha701c6b2022-07-25 17:26:28 +0530487
Bharath756d7dd2021-08-07 23:53:55 +0530488
489# Display Properties
490PRODUCT_AAPT_CONFIG := normal
491PRODUCT_AAPT_PREF_CONFIG := xxhdpi
492
493
494# DRM
495PRODUCT_PACKAGES += \
Edwin Wong8de56c72021-03-25 00:19:58 -0700496 android.hardware.drm@1.4-service.clearkey
Bharath756d7dd2021-08-07 23:53:55 +0530497
498
Pradeep Chenthatib4c3c102021-10-19 20:07:52 +0530499# Elabel
500PRODUCT_PACKAGES += \
501 eLabel.html.gz \
502 eLabel1.png \
503 eLabel2.png \
504 FAIRPHONE.html.gz \
505 FAIRPHONE.png
506
507
Bharath756d7dd2021-08-07 23:53:55 +0530508# Enable vndk-sp Libraries
509PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
510TARGET_USES_MKE2FS := true
511
512PRODUCT_PACKAGES += \
513 vndk_package
514
515
516# Encryption
Bharathdec76372022-10-10 20:15:42 +0530517PRODUCT_VENDOR_PROPERTIES += ro.crypto.allow_encrypt_override=true
518PRODUCT_VENDOR_PROPERTIES += ro.crypto.volume.filenames_mode=aes-256-cts
Bharath756d7dd2021-08-07 23:53:55 +0530519
520
Bharath12163282022-06-20 15:10:58 +0530521# E2fsck
522PRODUCT_PACKAGES += \
523 e2fsck
524
Bharath44ee36f2022-05-02 15:37:19 +0530525
Bharathe341d1d2022-04-06 09:49:27 +0530526# Fastbootd
527PRODUCT_PACKAGES += fastbootd
528
529
Bharath756d7dd2021-08-07 23:53:55 +0530530# FBE support
531PRODUCT_COPY_FILES += \
532 $(FP_PATH)/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh
533
534
Bharath1710e062021-08-20 11:30:47 +0530535# Feature flags and permissions
536PRODUCT_COPY_FILES += \
537 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
538 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
539 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
540 frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
541 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
542 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
543 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
544 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
545 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 +0530546 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 +0530547 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
548 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
549 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 +0530550 frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
551 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
552 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 +0800553 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 +0530554 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 +0530555 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
556
Bharath1dcb6512021-08-20 00:41:08 +0530557# Fingerprint
558PRODUCT_PACKAGES += \
559 android.hardware.biometrics.fingerprint@2.1 \
560 android.hardware.biometrics.fingerprint@2.1-service \
561 elan_device.rc \
562 fingerprint.default
563
564# Fingerprint files
565include $(FP_PATH)/elan_lib/fingerprint/elan_lib.mk
566
567# Fingerprint feature flag
568PRODUCT_COPY_FILES += \
Luca Weiss9656b9c2022-03-03 11:15:21 +0100569 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.fingerprint.xml
Bharath1dcb6512021-08-20 00:41:08 +0530570
571
Bharath756d7dd2021-08-07 23:53:55 +0530572# Framework Detect
573PRODUCT_PACKAGES += \
574 libqti_vndfwk_detect \
575 libqti_vndfwk_detect.vendor \
576 libvndfwk_detect_jni.qti \
577 libvndfwk_detect_jni.qti.vendor \
578 vndservicemanager
579
Bharath12163282022-06-20 15:10:58 +0530580# FRP
Bharathdec76372022-10-10 20:15:42 +0530581PRODUCT_VENDOR_PROPERTIES += ro.frp.pst=/dev/block/bootdevice/by-name/config
Bharath12163282022-06-20 15:10:58 +0530582
Bharath756d7dd2021-08-07 23:53:55 +0530583
584# HIDL
585PRODUCT_PACKAGES += \
586 android.hidl.base@1.0 \
587 libhidltransport \
588 libhidltransport.vendor \
589 libhwbinder \
590 libhwbinder.vendor
591
592
Bharath1710e062021-08-20 11:30:47 +0530593# GPS
594BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
Luca Weissa8a60262022-02-28 15:00:31 +0100595LOC_HIDL_VERSION := 4.0
Bharath1710e062021-08-20 11:30:47 +0530596
597PRODUCT_PACKAGES += \
Bharath70cf2ae2022-02-14 12:13:50 +0530598 android.hardware.gnss@2.1-impl-qti \
Bharath1710e062021-08-20 11:30:47 +0530599 android.hardware.gnss@2.1-service-qti \
600 libbatching \
601 libgeofencing \
602 libgnss \
603 libjson \
604 libwifi-hal-ctrl \
605 libgps.utils
606
607PRODUCT_PACKAGES += \
608 flp.conf \
609 gps.conf
610
611# gps/location secuity configuration file
612PRODUCT_COPY_FILES += \
613 $(FP_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
614
615# Permissions
616PRODUCT_COPY_FILES += \
617 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
618
Bharathdec76372022-10-10 20:15:42 +0530619PRODUCT_VENDOR_PROPERTIES += \
Bharath12163282022-06-20 15:10:58 +0530620 persist.backup.ntpServer=0.pool.ntp.org
621
Bharath1710e062021-08-20 11:30:47 +0530622
Bharath756d7dd2021-08-07 23:53:55 +0530623# Health
624PRODUCT_PACKAGES += \
625 android.hardware.health@2.1-impl \
626 android.hardware.health@2.1-impl.recovery \
627 android.hardware.health@2.1-service
628
629# IMS
630PRODUCT_PACKAGES += \
631 ims-ext-common \
632 ims_ext_common.xml \
633 ConfURIDialer
634
Bharath12163282022-06-20 15:10:58 +0530635
636# Init
637PRODUCT_PACKAGES += \
638 fstab.qcom \
639 init.class_main.sh \
640 init.crda.sh \
Karsten Tauschee270bad2022-08-22 15:41:19 +0200641 init.legacy_prop.rc \
Bharath12163282022-06-20 15:10:58 +0530642 init.mdm.sh \
643 init.qcom.class_core.sh \
644 init.qcom.coex.sh \
645 init.qcom.early_boot.sh \
646 init.qcom.efs.sync.sh \
647 init.qcom.factory.rc \
648 init.qcom.post_boot.sh \
649 init.qcom.rc \
650 init.qcom.sdio.sh \
651 init.qcom.sensors.sh \
652 init.qcom.sh \
653 init.qcom.usb.rc \
654 init.qcom.usb.sh \
655 init.recovery.qcom.rc \
656 init.target.rc \
657 init.veth_ipa_config.sh \
658 qca6234-service.sh \
659 ueventd.qcom.rc \
660 vold.fstab
661
662#intialise PRODUCT_PACKAGES_DEBUG list for debug modules
Luca Weiss2327bfb2022-07-13 09:47:07 +0200663PRODUCT_PACKAGES_DEBUG += init.qcom.testscripts.sh
Bharath12163282022-06-20 15:10:58 +0530664
665#Add init.qcom.test.rc to PRODUCT_PACKAGES_DEBUG list
666PRODUCT_PACKAGES_DEBUG += init.qcom.test.rc
667PRODUCT_PACKAGES_DEBUG += init.qcom.debug.sh
668
669ifneq ($(strip $(TARGET_BUILD_VARIANT)),user)
670PRODUCT_COPY_FILES += \
Bharath8e773362022-10-05 09:42:57 +0530671 $(FP_PATH)/rootdir/etc/init.qcom.testscripts.sh:$(TARGET_COPY_OUT_PRODUCT)/etc/init.qcom.testscripts.sh
Bharath12163282022-06-20 15:10:58 +0530672endif
673
674PRODUCT_PACKAGES_DEBUG += \
675 init.qcom.debug.sh \
676 init.qcom.debug-sdm660.sh \
677 init.qcom.debug-sdm710.sh \
678 init.qti.debug-msmnile-apps.sh \
679 init.qti.debug-msmnile-modem.sh \
680 init.qti.debug-msmnile-slpi.sh \
681 init.qti.debug-talos.sh \
682 init.qti.debug-msmnile.sh \
683 init.qti.debug-kona.sh \
684 init.qti.debug-lito.sh \
685 init.qti.debug-trinket.sh \
686 init.qti.debug-atoll.sh \
687 init.qti.debug-lagoon.sh \
688 init.qti.debug-bengal.sh
689
690
691# IP and iptables
692PRODUCT_PACKAGES += \
693 ip \
694 libiprouteutil \
695 iptables \
696 ip-up-vpn \
697 libext
698
699
Bharath756d7dd2021-08-07 23:53:55 +0530700# IPACM
701PRODUCT_PACKAGES += \
702 ipacm \
703 IPACM_cfg.xml \
704 libipanat \
705 liboffloadhal \
706 libqsap_sdk
707
708# IRQ
709PRODUCT_COPY_FILES += \
710 $(FP_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
711 $(FP_PATH)/configs/msm_irqbalance_little_big.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance_little_big.conf
712
713
714# Kernel modules
715# Kernel modules install path
716KERNEL_MODULES_INSTALL := dlkm
717KERNEL_MODULES_OUT := out/target/product/$(PRODUCT_NAME)/$(KERNEL_MODULES_INSTALL)/lib/modules
Bharath12163282022-06-20 15:10:58 +0530718KERNEL_TO_BUILD_ROOT_OFFSET := ../../
719
720
721# Key layouts
722PRODUCT_PACKAGES += \
723 ft5x06_ts.kl \
724 gpio-keys.kl \
725 synaptics_dsx.kl \
726 synaptics_dsxv26.kl \
727 synaptics_rmi4_i2c.kl
Bharath756d7dd2021-08-07 23:53:55 +0530728
729
Bharatha701c6b2022-07-25 17:26:28 +0530730# Keystore
Bharathdec76372022-10-10 20:15:42 +0530731PRODUCT_VENDOR_PROPERTIES += ro.hardware.keystore_desede=true
Bharatha701c6b2022-07-25 17:26:28 +0530732
733
Bharath756d7dd2021-08-07 23:53:55 +0530734# LED packages
735PRODUCT_PACKAGES += \
736 android.hardware.light@2.0-impl \
737 android.hardware.light@2.0-service \
738 lights.msm8953
739
740
741# Media / StagefrightCodec 2.0
Bharathdec76372022-10-10 20:15:42 +0530742PRODUCT_VENDOR_PROPERTIES += debug.stagefright.omx_default_rank=0
Bharath756d7dd2021-08-07 23:53:55 +0530743
Bharathe3615be2021-08-18 22:25:42 +0530744# Enable features in video HAL that can compile only on this platform
Bharath12163282022-06-20 15:10:58 +0530745MSM_VIDC_TARGET_LIST := msm8953
Bharathe3615be2021-08-18 22:25:42 +0530746TARGET_USES_MEDIA_EXTENSIONS := true
747
748
Bharath4c762882022-10-10 20:15:40 +0530749#
750# media profiles and media codecs xmls
751#
752# We select non-default xmls in system partition with the properties.
753PRODUCT_SYSTEM_PROPERTIES += \
754 ro.media.xml_variant.codecs=_vendor \
755 ro.media.xml_variant.profiles=_8953_v1
756
757PRODUCT_COPY_FILES += \
758 $(FP_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
759 $(FP_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
760 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_8953_v1.xml
761
762# media files for GSI - using default paths
Bharathe3615be2021-08-18 22:25:42 +0530763PRODUCT_COPY_FILES += \
Bharathe3615be2021-08-18 22:25:42 +0530764 $(FP_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
Bharathe3615be2021-08-18 22:25:42 +0530765 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
Bharath4c762882022-10-10 20:15:40 +0530766 $(FP_PATH)/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
Bharath12163282022-06-20 15:10:58 +0530767
768PRODUCT_COPY_FILES += \
769 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
770 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
771 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
772 frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml \
773 frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \
774 frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
775 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 +0530776
Bharath756d7dd2021-08-07 23:53:55 +0530777
Bharath8d5d3992022-10-10 20:15:30 +0530778# Disable media transcoding
779PRODUCT_VENDOR_PROPERTIES += \
780 persist.sys.fuse.transcode_user_control=true \
781 persist.sys.fuse.transcode_enabled=false
782
783
Bharath756d7dd2021-08-07 23:53:55 +0530784# NFC
Bharath1710e062021-08-20 11:30:47 +0530785PRODUCT_PACKAGES += \
Bharathcaaa78e2022-09-06 10:18:06 +0530786 NQNfcNci \
Bharath1710e062021-08-20 11:30:47 +0530787 Tag \
788 com.android.nfc_extras \
789 com.nxp.nfc.nq \
790 com.nxp.nfc.nq.xml \
791 libnqnfc-nci \
792 libnqnfc_nci_jni \
793 nfc_nci.nqx.default.hw \
794 vendor.nxp.hardware.nfc@2.0-service
795
796# Permissions
797PRODUCT_COPY_FILES += \
798 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
799 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
800 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
801 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
802 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
803 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
804 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
805 vendor/nxp/opensource/halimpl/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
806 vendor/nxp/opensource/halimpl/SN100x/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci_SN100.conf
Bharath756d7dd2021-08-07 23:53:55 +0530807
808
809# OMX
810PRODUCT_PACKAGES += \
811 libavservices_minijail.vendor \
812 libc2dcolorconvert \
813 libOmxAacEnc \
814 libOmxAmrEnc \
815 libOmxCore \
816 libOmxEvrcEnc \
817 libOmxQcelp13Enc \
818 libOmxVdec \
819 libOmxVenc \
820 libqomx_core \
821 libaacwrapper \
822 libmm-omxcore \
823 libstagefrighthw \
824 libstagefright_softomx.vendor
825
826
827#
828# system prop for opengles version
829#
830# 196608 is decimal for 0x30000 to report major/minor versions as 3/0
831# 196609 is decimal for 0x30001 to report major/minor versions as 3/1
832# 196610 is decimal for 0x30002 to report major/minor versions as 3/2
Bharathdec76372022-10-10 20:15:42 +0530833PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530834 ro.opengles.version=196610
835
836
Bharath12163282022-06-20 15:10:58 +0530837# AOSP Packages
838PRODUCT_PACKAGES += \
839 DeskClock \
840 Calendar \
841 CalendarProvider \
842 Camera2 \
843 CertInstaller \
844 Gallery2 \
845 LatinIME \
846 Launcher3 \
847 LiveWallpapersPicker \
848 Music \
849 netutils-wrapper-1.0 \
850 Provision \
851 Protips \
852 QuickSearchBox \
853 Settings \
854 Stk \
855 SystemUI \
856
857
Bharath756d7dd2021-08-07 23:53:55 +0530858# Perf
859PRODUCT_COPY_FILES += \
860 $(FP_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
861
Bharathdec76372022-10-10 20:15:42 +0530862PRODUCT_VENDOR_PROPERTIES += \
Bharath12163282022-06-20 15:10:58 +0530863 persist.vendor.qcomsysd.enabled=1 \
864 ro.vendor.extension_library=libqti-perfd-client.so \
865 sys.vendor.shutdown.waittime=500
866
Bharath756d7dd2021-08-07 23:53:55 +0530867
868# Power
869PRODUCT_PACKAGES += \
870 android.hardware.power@1.0-impl \
871 android.hardware.power@1.0-service \
872 power.qcom
873
874
Bharath756d7dd2021-08-07 23:53:55 +0530875# privapp-permissions whitelisting
Bharathdec76372022-10-10 20:15:42 +0530876PRODUCT_VENDOR_PROPERTIES += ro.control_privapp_permissions=enforce
Bharath756d7dd2021-08-07 23:53:55 +0530877
878
879# Protobuf
880PRODUCT_PACKAGES += \
881 libprotobuf-cpp-full \
882 libprotobuf-cpp-full-vendorcompat \
883 libprotobuf-cpp-lite-vendorcompat
884
885
Bharath12163282022-06-20 15:10:58 +0530886# include additional QCOM build utilities
Bharath8e773362022-10-05 09:42:57 +0530887include $(FP_PATH)/utils.mk
Bharath12163282022-06-20 15:10:58 +0530888
Bharath756d7dd2021-08-07 23:53:55 +0530889# RIL properties
Bharathdec76372022-10-10 20:15:42 +0530890PRODUCT_VENDOR_PROPERTIES += vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
Bharath756d7dd2021-08-07 23:53:55 +0530891#vendor prop to disable advanced network scanning
Bharathdec76372022-10-10 20:15:42 +0530892PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530893 persist.vendor.radio.enableadvancedscan=false
894
Bharath12163282022-06-20 15:10:58 +0530895# Enable Dual SIM by default
Bharathdec76372022-10-10 20:15:42 +0530896PRODUCT_VENDOR_PROPERTIES += persist.radio.multisim.config=dsds
Bharath12163282022-06-20 15:10:58 +0530897
Bharathdec76372022-10-10 20:15:42 +0530898PRODUCT_VENDOR_PROPERTIES += \
Bharath12163282022-06-20 15:10:58 +0530899 persist.vendor.radio.apm_sim_not_pwdn=1 \
900 persist.vendor.radio.sib16_support=1 \
901 persist.vendor.radio.custom_ecc=1 \
902 persist.vendor.radio.rat_on=combine \
903 persist.vendor.radio.procedure_bytes=SKIP
904
Bharath756d7dd2021-08-07 23:53:55 +0530905
906# RenderScript
907PRODUCT_PACKAGES += \
908 android.hardware.renderscript@1.0-impl
909
910
911# SDCard
912# default is nosdcard, S/W button enabled in resource
913PRODUCT_CHARACTERISTICS := nosdcard
914
915
916# Seccomp
917PRODUCT_COPY_FILES += \
918 $(FP_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
919 $(FP_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
920
921
Bharath1710e062021-08-20 11:30:47 +0530922# Secure Element
923PRODUCT_PACKAGES += \
924 android.hardware.secure_element@1.2
925
926
Bharathca82a242022-08-18 19:48:51 +0530927# Sound Recorder
928PRODUCT_PACKAGES += \
929 QtiSoundRecorder
930
931
Bharath756d7dd2021-08-07 23:53:55 +0530932# System helper
933PRODUCT_PACKAGES += \
934 vendor.qti.hardware.systemhelper@1.0
935
936
937# Service tracker
938PRODUCT_PACKAGES += \
939 vendor.qti.hardware.servicetracker@1.2.vendor
940
941
Bharatha60665d2021-08-19 09:37:22 +0530942# Sensors
943PRODUCT_PACKAGES += \
944 sensors.FP3 \
945 android.hardware.sensors@1.0-impl \
946 android.hardware.sensors@1.0-service \
947 libsensorndkbridge
948
949# Sensor HAL conf file
950PRODUCT_COPY_FILES += \
951 $(FP_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
952
953# Feature definition files for msm8953
954PRODUCT_COPY_FILES += \
955 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
956 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
957 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
958 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
959 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
960 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
961 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
962
963
Bharath756d7dd2021-08-07 23:53:55 +0530964# Telephony Permissions
Bharath12163282022-06-20 15:10:58 +0530965# whitelisted app
966PRODUCT_COPY_FILES += \
Bharath8e773362022-10-05 09:42:57 +0530967 $(FP_PATH)/configs/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml
Bharath12163282022-06-20 15:10:58 +0530968
969PRODUCT_COPY_FILES += \
Bharath8e773362022-10-05 09:42:57 +0530970 $(FP_PATH)/configs/privapp-permissions-qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-qti.xml
Bharath12163282022-06-20 15:10:58 +0530971
972# Telephony wrappers
973PRODUCT_PACKAGES += \
974 qti-telephony-hidl-wrapper \
975 qti_telephony_hidl_wrapper.xml \
976 qti-telephony-utils \
977 qti_telephony_utils.xml
Bharath756d7dd2021-08-07 23:53:55 +0530978
979
980# Thermal
981PRODUCT_PACKAGES += \
982 android.hardware.thermal@1.0-impl \
983 android.hardware.thermal@1.0-service
984
985
986# Tinyxml
987PRODUCT_PACKAGES += \
988 libtinyxml
989
990# USB
991PRODUCT_PACKAGES += \
992 android.hardware.usb@1.0-service
993
994-include vendor/qcom/opensource/usb/vendor_product.mk
995
996
997# Vendor move
998PRODUCT_VENDOR_MOVE_ENABLED := true
999
1000
1001# Vibrator
1002PRODUCT_PACKAGES += \
1003 android.hardware.vibrator@1.0-impl \
Bharath12163282022-06-20 15:10:58 +05301004 android.hardware.vibrator@1.0-service \
1005 vendor.qti.hardware.vibrator.service
1006
1007PRODUCT_COPY_FILES += \
1008 vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml
Bharath756d7dd2021-08-07 23:53:55 +05301009
1010
Bharathed255712021-08-14 20:37:05 +05301011# WiFi
1012# WLAN drivers
1013PRODUCT_COPY_FILES += \
1014 $(FP_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
1015 $(FP_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_wlan_dictionary.dat \
1016 $(FP_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin # From Android 10
1017
1018# Flag to check if wcnss_service is built from source
1019TARGET_USE_WCNSS_HAL := false
1020
1021# If building from source then drop proprietary dependency
1022ifeq ($(TARGET_USE_WCNSS_HAL),true)
1023TARGET_USES_QCOM_WCNSS_QMI := false
Bharath70cf2ae2022-02-14 12:13:50 +05301024
1025PRODUCT_PACKAGES += \
1026 libwcnss_qmi \
1027 wcnss_service
Bharathed255712021-08-14 20:37:05 +05301028endif
1029
1030# WiFi HAL
1031PRODUCT_PACKAGES += \
1032 android.hardware.wifi@1.0-service
1033
Bharath12163282022-06-20 15:10:58 +05301034# WLAN DLKM
1035PRODUCT_PACKAGES += \
1036 pronto_wlan.ko
1037
Bharathed255712021-08-14 20:37:05 +05301038# WiFi Components
1039PRODUCT_PACKAGES += \
1040 hostapd \
1041 hostapd.accept \
1042 hostapd.deny \
1043 hostapd_cli \
1044 hostapd_default.conf \
1045 libnl \
1046 libqsap_sdk \
Bharathed255712021-08-14 20:37:05 +05301047 libwifi-hal-qcom \
1048 libwpa_client \
1049 p2p_supplicant_overlay.conf \
1050 vendor.qti.hardware.wifi.supplicant@1.0.vendor \
Bharathed255712021-08-14 20:37:05 +05301051 wificond \
1052 wpa_cli \
1053 wpa_supplicant.conf \
1054 wpa_supplicant \
1055 wpa_supplicant_overlay.conf \
1056 WifiOverlay \
1057 TetheringConfigOverlay
1058
1059
Bharath12163282022-06-20 15:10:58 +05301060# Zlib
1061PRODUCT_HOST_PACKAGES += minigzip
1062
1063
Bharath83dcc442022-10-10 20:16:21 +05301064# Enable zygote critical window.
1065PRODUCT_VENDOR_OVERRIDES += \
1066 zygote.critical_window.minute=10
1067
1068
Bharath12163282022-06-20 15:10:58 +05301069#soong namespace for qssi vs vendor differentiation
1070SOONG_CONFIG_NAMESPACES += qssi_vs_vendor
1071SOONG_CONFIG_qssi_vs_vendor += qssi_or_vendor
1072SOONG_CONFIG_qssi_vs_vendor_qssi_or_vendor := vendor
1073
1074SOONG_CONFIG_NAMESPACES += aosp_vs_qva
1075SOONG_CONFIG_aosp_vs_qva += aosp_or_qva
1076ifeq ($(TARGET_FWK_SUPPORTS_FULL_VALUEADDS),true)
1077SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := qva
1078else
1079SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := aosp
1080endif
1081
1082SOONG_CONFIG_NAMESPACES += qtidisplaycommonsys
1083# Soong Keys
1084SOONG_CONFIG_qtidisplaycommonsys := displayconfig_enabled
1085# Soong Values
1086SOONG_CONFIG_qtidisplaycommonsys_displayconfig_enabled := true
1087
1088
Bharath756d7dd2021-08-07 23:53:55 +05301089# Call the proprietary setup
Bharatha3a85a72022-05-23 17:50:24 +05301090FP3_PROPRIETARY_PATH := device/fairphone/fp3-proprietary
Bharatha3a85a72022-05-23 17:50:24 +05301091
Karsten Tauscheff99b112022-09-19 12:04:31 +02001092DEVICE_BLOB_VERSION := 4.A.0017.2
Francesco Salvatore03117482019-02-28 16:39:11 +01001093
1094GET_BLOBS_CMD = vendor/fairphone/tools/bin/get_blobs.py --device FP3 --build-id $(DEVICE_BLOB_VERSION) --blobs-dir $(FP3_PROPRIETARY_PATH)
1095
1096# Check the presence of proprietary blobs
1097ifeq ("$(wildcard $(FP3_PROPRIETARY_PATH)/device-vendor.mk)","")
1098define BLOBS_INSTRUCTION
1099Cannot find FP3 binary blobs.
1100Please run
1101 $(GET_BLOBS_CMD)
1102and accept the terms of agreement.
1103endef
1104$(error $(BLOBS_INSTRUCTION))
1105endif
1106
Bharath756d7dd2021-08-07 23:53:55 +05301107# Call this in the end so that flags if required can be utilized.
Bharatha3a85a72022-05-23 17:50:24 +05301108$(call inherit-product, $(FP3_PROPRIETARY_PATH)/device-vendor.mk)
1109
Bharath12163282022-06-20 15:10:58 +05301110# Build some more display components to vendor
1111$(call inherit-product, vendor/qcom/opensource/commonsys-intf/display/config/display-interfaces-product.mk)
Bharath756d7dd2021-08-07 23:53:55 +05301112###################################################################################