blob: 7a79bd9f2cb41dd0e3bebd8dea48565029ecb0bf [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
18# Call the vendor setup
19$(call inherit-product-if-exists, vendor/fairphone/fp3-common/device-vendor.mk)
20
21$(call inherit-product, build/make/target/product/product_launched_with_p.mk)
22
23$(call inherit-product, frameworks/native/build/phone-xhdpi-4096-dalvik-heap.mk)
24
25$(call inherit-product, device/fairphone/fp3-common/common/common64.mk)
26
27PRODUCT_NAME := FP3
28PRODUCT_DEVICE := FP3
29PRODUCT_MODEL := FP3
30PRODUCT_MANUFACTURER := Fairphone
31PRODUCT_BRAND := Fairphone
32
33
34# Allow using custom and expressive names for our Android flavors while in fact
35# targeting the same model with all of them.
36PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_MODEL=FP3 PRODUCT_NAME=FP3
37
38# vendor/qcom/proprietary/common/config/device-vendor.mk --> PRODUCT_LIST
39TARGET_BASE_PRODUCT := FP3
40TARGET_VENDOR := fairphone
41
42TARGET_SYSTEM_PROP := device/$(TARGET_VENDOR)/$(PRODUCT_NAME)/system.prop
43
44
45# We don't have the calibration data as this sort of
46# data can only be generated at the factory so don't generate persist.img
47FP3_SKIP_PERSIST_IMG := true
48
Bharath80ba1872021-08-21 11:53:57 +053049
50# Operator specific overlays
51DEVICE_PACKAGE_OVERLAYS += \
52 $(LOCAL_PATH)/overlay-operators
53
Bharath756d7dd2021-08-07 23:53:55 +053054# Overlays
55DEVICE_PACKAGE_OVERLAYS += \
56 $(LOCAL_PATH)/overlay
57
58
59# A/B related defines
60AB_OTA_UPDATER := true
61AB_OTA_PARTITIONS += \
62 boot \
63 dtbo \
64 system \
65 vbmeta \
66 vendor
67
68
69AB_OTA_POSTINSTALL_CONFIG += \
70 RUN_POSTINSTALL_vendor=true \
71 POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
72 FILESYSTEM_TYPE_vendor=ext4 \
73 POSTINSTALL_OPTIONAL_vendor=true
74
75PRODUCT_PACKAGES += \
76 checkpoint_gc \
77 update_engine_sideload
78
79
80# AVB
81BOARD_AVB_ENABLE := true
82
83
84# Additional native libraries
85PRODUCT_COPY_FILES += \
86 $(FP_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
87
88
89# Atrace HAL
90PRODUCT_PACKAGES += \
91 android.hardware.atrace@1.0-service
92
93
94# Audio
95# AV Enhancement
96TARGET_ENABLE_QC_AV_ENHANCEMENTS := true
97
98
99PRODUCT_PACKAGES += \
100 android.hardware.audio@6.0 \
101 android.hardware.audio.common@6.0 \
102 android.hardware.audio.common@6.0-util \
103 android.hardware.audio@6.0-impl:32 \
104 android.hardware.audio.effect@6.0 \
105 android.hardware.audio.effect@6.0-impl:32 \
106 android.hardware.audio.service \
107 android.hardware.soundtrigger@2.1-impl \
108 audio.a2dp.default \
109 audio.primary.msm8953 \
110 audio.r_submix.default \
111 audio.usb.default \
112 libaacwrapper \
113 libaudio-resampler \
114 libautohal \
115 libqcompostprocbundle \
116 libqcomvisualizer \
117 libqcomvoiceprocessing \
118 libvolumelistener \
119 tinymix
120
121
122AUDIO_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal
123
124# Audio files
125PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530126 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
127 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
128 $(AUDIO_HAL_PATH)/configs/msm8953/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
129 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
130 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku3_tasha.xml \
131 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku4.xml \
132 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tasha.xml \
133 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tashalite.xml \
134 $(AUDIO_HAL_PATH)/configs/msm8953/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
135 $(AUDIO_HAL_PATH)/configs/msm8953/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
136 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
137 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
138 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku3_tasha.xml \
139 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku4.xml \
140 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
141 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \
142 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
143 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9306.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9306.xml \
144 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9330.xml \
145 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \
146 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
147
148
149# Audio config files
150PRODUCT_COPY_FILES += \
151 frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
152 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
153 frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
154 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
155 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
156 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
157
158# Custom config files
159PRODUCT_COPY_FILES += \
160 $(FP_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
161
162
163# Audio firmware files
164PRODUCT_COPY_FILES += \
165 $(FP_PATH)/aw/aw8898_cfg.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/aw8898_cfg.bin \
166 $(FP_PATH)/tas2557_fw/OBO_0617_music.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557_uCDSP.bin \
167 $(FP_PATH)/tas2557_fw/tas2557evm_OBO_0617.ftcfg:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557evm_aacspk_a.ftcfg
168
169
170# Audio Specific device overlays
171DEVICE_PACKAGE_OVERLAYS += $(AUDIO_HAL_PATH)/configs/common/overlay
172
173
174# Audio Specific properties
175# Properties
176-include $(LOCAL_PATH)/audio_properties.mk
177
178
179# Audio Kernel modules
180AUDIO_DLKM := audio_apr.ko
181AUDIO_DLKM += audio_q6_notifier.ko
182AUDIO_DLKM += audio_adsp_loader.ko
183AUDIO_DLKM += audio_q6.ko
184AUDIO_DLKM += audio_usf.ko
185AUDIO_DLKM += audio_pinctrl_wcd.ko
186AUDIO_DLKM += audio_swr.ko
187AUDIO_DLKM += audio_wcd_core.ko
188AUDIO_DLKM += audio_swr_ctrl.ko
189AUDIO_DLKM += audio_wsa881x.ko
190AUDIO_DLKM += audio_wsa881x_analog.ko
191AUDIO_DLKM += audio_platform.ko
192AUDIO_DLKM += audio_cpe_lsm.ko
193AUDIO_DLKM += audio_hdmi.ko
194AUDIO_DLKM += audio_stub.ko
195AUDIO_DLKM += audio_wcd9xxx.ko
196AUDIO_DLKM += audio_mbhc.ko
197AUDIO_DLKM += audio_wcd9335.ko
198AUDIO_DLKM += audio_wcd_cpe.ko
199AUDIO_DLKM += audio_digital_cdc.ko
200AUDIO_DLKM += audio_analog_cdc.ko
201AUDIO_DLKM += audio_native.ko
202AUDIO_DLKM += audio_machine_sdm450.ko
203AUDIO_DLKM += audio_machine_ext_sdm450.ko
204PRODUCT_PACKAGES += $(AUDIO_DLKM)
205
206
Bharath9cdcce22021-12-08 15:43:43 +0530207# Automation/ATS
208PRODUCT_PACKAGES += \
209 automation_setup \
210 automation_adb_setup
211
212
Bharathfe661fb2021-08-16 18:56:32 +0530213# ANT
214PRODUCT_PACKAGES += \
215 AntHalService \
216 antradio_app \
217 com.dsi.ant@1.0 \
218 libantradio
219
Bharath756d7dd2021-08-07 23:53:55 +0530220# Bluetooth
Bharathfe661fb2021-08-16 18:56:32 +0530221PRODUCT_PACKAGES += \
222 libbt-vendor \
223 audio.bluetooth.default \
224 android.hardware.bluetooth.audio@2.0-impl \
225 android.hardware.bluetooth@1.0 \
226 vendor.qti.hardware.bluetooth_audio@2.0 \
227 vendor.qti.hardware.bluetooth_audio@2.1.vendor \
228 vendor.qti.hardware.btconfigstore@1.0.vendor
229
230# Bluetooth Permissions
231PRODUCT_COPY_FILES += \
232 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
233 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 +0530234
235
236# Boot
237PRODUCT_PACKAGES += \
238 android.hardware.boot@1.0-impl \
239 android.hardware.boot@1.0-impl.recovery \
240 android.hardware.boot@1.0-service \
241 bootctrl.msm8953 \
242 update_engine \
243 update_engine_client \
244 update_engine_sideload \
245 update_verifier
246
247
248# Boot animation
249TARGET_SCREEN_HEIGHT := 2160
250TARGET_SCREEN_WIDTH := 1080
251
252
253PRODUCT_COPY_FILES += \
254 vendor/fairphone/media/bootanimation/bootanimation.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip
255
256
257# Camera
258
259
260# Component overrides
261# TODO: Check if this is required.
262#PRODUCT_COPY_FILES += \
263 $(FP_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
264
265
266# Display
267PRODUCT_PACKAGES += \
268 android.hardware.graphics.allocator@2.0-impl \
269 android.hardware.graphics.allocator@2.0-service \
270 android.hardware.graphics.composer@2.1-service \
271 android.hardware.graphics.mapper@2.0-impl-2.1 \
272 android.hardware.memtrack@1.0-impl \
273 android.hardware.memtrack@1.0-service \
274 gralloc.default \
275 gralloc.msm8953 \
276 hwcomposer.msm8953 \
277 memtrack.msm8953 \
278 libdisplayconfig \
279 libqdutils \
280 libqdMetaData \
281 libvulkan \
282 vendor.qti.hardware.display.composer@3.0
283
284
285# Vendor Display
286# Disable skip validate
287PRODUCT_PROPERTY_OVERRIDES += \
288 vendor.display.disable_skip_validate=1
289
290
291# Display Properties
292PRODUCT_AAPT_CONFIG := normal
293PRODUCT_AAPT_PREF_CONFIG := xxhdpi
294
295
296# DRM
297PRODUCT_PACKAGES += \
298 android.hardware.drm@1.3-service.clearkey
299
300
301# Enable vndk-sp Libraries
302PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
303TARGET_USES_MKE2FS := true
304
305PRODUCT_PACKAGES += \
306 vndk_package
307
308
309# Encryption
310PRODUCT_PROPERTY_OVERRIDES += ro.crypto.allow_encrypt_override=true
311PRODUCT_PROPERTY_OVERRIDES += ro.crypto.volume.filenames_mode=aes-256-cts
312
313
314# FBE support
315PRODUCT_COPY_FILES += \
316 $(FP_PATH)/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh
317
318
Bharath1710e062021-08-20 11:30:47 +0530319# Feature flags and permissions
320PRODUCT_COPY_FILES += \
321 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
322 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
323 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
324 frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
325 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
326 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
327 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
328 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
329 frameworks/native/data/etc/android.hardware.vulkan.level-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level-0.xml \
330 frameworks/native/data/etc/android.hardware.vulkan.version-1_0_3.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version-1_0_3.xml \
331 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
332 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
333 frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml \
334 frameworks/native/data/etc/android.software.device_id_attestation.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_id_attestation.xml \
335 frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
336 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
337 frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
338 frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.software.verified_boot.xml \
339 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
340
Bharath1dcb6512021-08-20 00:41:08 +0530341# Fingerprint
342PRODUCT_PACKAGES += \
343 android.hardware.biometrics.fingerprint@2.1 \
344 android.hardware.biometrics.fingerprint@2.1-service \
345 elan_device.rc \
346 fingerprint.default
347
348# Fingerprint files
349include $(FP_PATH)/elan_lib/fingerprint/elan_lib.mk
350
351# Fingerprint feature flag
352PRODUCT_COPY_FILES += \
353 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
354
355
Bharath756d7dd2021-08-07 23:53:55 +0530356# Framework Detect
357PRODUCT_PACKAGES += \
358 libqti_vndfwk_detect \
359 libqti_vndfwk_detect.vendor \
360 libvndfwk_detect_jni.qti \
361 libvndfwk_detect_jni.qti.vendor \
362 vndservicemanager
363
364
365# HIDL
366PRODUCT_PACKAGES += \
367 android.hidl.base@1.0 \
368 libhidltransport \
369 libhidltransport.vendor \
370 libhwbinder \
371 libhwbinder.vendor
372
373
Bharath1710e062021-08-20 11:30:47 +0530374# GPS
375BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
376
377PRODUCT_PACKAGES += \
378 android.hardware.gnss@2.1-impl-qti:64 \
379 android.hardware.gnss@2.1-service-qti \
380 libbatching \
381 libgeofencing \
382 libgnss \
383 libjson \
384 libwifi-hal-ctrl \
385 libgps.utils
386
387PRODUCT_PACKAGES += \
388 flp.conf \
389 gps.conf
390
391# gps/location secuity configuration file
392PRODUCT_COPY_FILES += \
393 $(FP_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
394
395# Permissions
396PRODUCT_COPY_FILES += \
397 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
398
399
Bharath756d7dd2021-08-07 23:53:55 +0530400# Health
401PRODUCT_PACKAGES += \
402 android.hardware.health@2.1-impl \
403 android.hardware.health@2.1-impl.recovery \
404 android.hardware.health@2.1-service
405
406# IMS
407PRODUCT_PACKAGES += \
408 ims-ext-common \
409 ims_ext_common.xml \
410 ConfURIDialer
411
412# IPACM
413PRODUCT_PACKAGES += \
414 ipacm \
415 IPACM_cfg.xml \
416 libipanat \
417 liboffloadhal \
418 libqsap_sdk
419
420# IRQ
421PRODUCT_COPY_FILES += \
422 $(FP_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
423 $(FP_PATH)/configs/msm_irqbalance_little_big.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance_little_big.conf
424
425
426# Kernel modules
427# Kernel modules install path
428KERNEL_MODULES_INSTALL := dlkm
429KERNEL_MODULES_OUT := out/target/product/$(PRODUCT_NAME)/$(KERNEL_MODULES_INSTALL)/lib/modules
430
431
432# LED packages
433PRODUCT_PACKAGES += \
434 android.hardware.light@2.0-impl \
435 android.hardware.light@2.0-service \
436 lights.msm8953
437
438
439# Media / StagefrightCodec 2.0
440PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
441
Bharathe3615be2021-08-18 22:25:42 +0530442# Enable features in video HAL that can compile only on this platform
443TARGET_USES_MEDIA_EXTENSIONS := true
444
445
446# media_profiles and media_codecs xmls for msm8953
447PRODUCT_COPY_FILES += \
448 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles.xml \
449 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \
450 $(FP_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
451 $(FP_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
452 $(FP_PATH)/media/media_codecs_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_8953.xml \
453 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
454 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_8953.xml \
455 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles_8953_v1.xml \
456 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_8953_v1.xml \
457 $(FP_PATH)/media/media_codecs_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v1.xml \
458 $(FP_PATH)/media/media_codecs_performance_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v1.xml \
459 $(FP_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
460 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
461
Bharath756d7dd2021-08-07 23:53:55 +0530462
463# NFC
Bharath1710e062021-08-20 11:30:47 +0530464PRODUCT_PACKAGES += \
465 NfcNci \
466 Tag \
467 com.android.nfc_extras \
468 com.nxp.nfc.nq \
469 com.nxp.nfc.nq.xml \
470 libnqnfc-nci \
471 libnqnfc_nci_jni \
472 nfc_nci.nqx.default.hw \
473 vendor.nxp.hardware.nfc@2.0-service
474
475# Permissions
476PRODUCT_COPY_FILES += \
477 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
478 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
479 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
480 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
481 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
482 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
483 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
484 vendor/nxp/opensource/halimpl/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
485 vendor/nxp/opensource/halimpl/SN100x/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci_SN100.conf
Bharath756d7dd2021-08-07 23:53:55 +0530486
487
488# OMX
489PRODUCT_PACKAGES += \
490 libavservices_minijail.vendor \
491 libc2dcolorconvert \
492 libOmxAacEnc \
493 libOmxAmrEnc \
494 libOmxCore \
495 libOmxEvrcEnc \
496 libOmxQcelp13Enc \
497 libOmxVdec \
498 libOmxVenc \
499 libqomx_core \
500 libaacwrapper \
501 libmm-omxcore \
502 libstagefrighthw \
503 libstagefright_softomx.vendor
504
505
506#
507# system prop for opengles version
508#
509# 196608 is decimal for 0x30000 to report major/minor versions as 3/0
510# 196609 is decimal for 0x30001 to report major/minor versions as 3/1
511# 196610 is decimal for 0x30002 to report major/minor versions as 3/2
512PRODUCT_PROPERTY_OVERRIDES += \
513 ro.opengles.version=196610
514
515
516# Perf
517PRODUCT_COPY_FILES += \
518 $(FP_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
519
520
521# Power
522PRODUCT_PACKAGES += \
523 android.hardware.power@1.0-impl \
524 android.hardware.power@1.0-service \
525 power.qcom
526
527
Bharath756d7dd2021-08-07 23:53:55 +0530528# privapp-permissions whitelisting
529PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
530
531
532# Protobuf
533PRODUCT_PACKAGES += \
534 libprotobuf-cpp-full \
535 libprotobuf-cpp-full-vendorcompat \
536 libprotobuf-cpp-lite-vendorcompat
537
538
539# RIL properties
540PRODUCT_PROPERTY_OVERRIDES += rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
541PRODUCT_PROPERTY_OVERRIDES += vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
542#vendor prop to disable advanced network scanning
543PRODUCT_PROPERTY_OVERRIDES += \
544 persist.vendor.radio.enableadvancedscan=false
545
546
547# RenderScript
548PRODUCT_PACKAGES += \
549 android.hardware.renderscript@1.0-impl
550
551
552# SDCard
553# default is nosdcard, S/W button enabled in resource
554PRODUCT_CHARACTERISTICS := nosdcard
555
556
557# Seccomp
558PRODUCT_COPY_FILES += \
559 $(FP_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
560 $(FP_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
561
562
Bharath1710e062021-08-20 11:30:47 +0530563# Secure Element
564PRODUCT_PACKAGES += \
565 android.hardware.secure_element@1.2
566
567
Bharath756d7dd2021-08-07 23:53:55 +0530568# System helper
569PRODUCT_PACKAGES += \
570 vendor.qti.hardware.systemhelper@1.0
571
572
573# Service tracker
574PRODUCT_PACKAGES += \
575 vendor.qti.hardware.servicetracker@1.2.vendor
576
577
Bharatha60665d2021-08-19 09:37:22 +0530578# Sensors
579PRODUCT_PACKAGES += \
580 sensors.FP3 \
581 android.hardware.sensors@1.0-impl \
582 android.hardware.sensors@1.0-service \
583 libsensorndkbridge
584
585# Sensor HAL conf file
586PRODUCT_COPY_FILES += \
587 $(FP_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
588
589# Feature definition files for msm8953
590PRODUCT_COPY_FILES += \
591 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
592 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
593 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
594 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
595 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
596 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
597 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
598
599
Bharath756d7dd2021-08-07 23:53:55 +0530600# Telephony Permissions
601
602
603# Thermal
604PRODUCT_PACKAGES += \
605 android.hardware.thermal@1.0-impl \
606 android.hardware.thermal@1.0-service
607
608
609# Tinyxml
610PRODUCT_PACKAGES += \
611 libtinyxml
612
613# USB
614PRODUCT_PACKAGES += \
615 android.hardware.usb@1.0-service
616
617-include vendor/qcom/opensource/usb/vendor_product.mk
618
619
620# Vendor move
621PRODUCT_VENDOR_MOVE_ENABLED := true
622
623
624# Vibrator
625PRODUCT_PACKAGES += \
626 android.hardware.vibrator@1.0-impl \
627 android.hardware.vibrator@1.0-service
628
629
Bharathed255712021-08-14 20:37:05 +0530630# WiFi
631# WLAN drivers
632PRODUCT_COPY_FILES += \
633 $(FP_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
634 $(FP_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_wlan_dictionary.dat \
635 $(FP_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin # From Android 10
636
637# Flag to check if wcnss_service is built from source
638TARGET_USE_WCNSS_HAL := false
639
640# If building from source then drop proprietary dependency
641ifeq ($(TARGET_USE_WCNSS_HAL),true)
642TARGET_USES_QCOM_WCNSS_QMI := false
643endif
644
645# WiFi HAL
646PRODUCT_PACKAGES += \
647 android.hardware.wifi@1.0-service
648
649# WiFi Components
650PRODUCT_PACKAGES += \
651 hostapd \
652 hostapd.accept \
653 hostapd.deny \
654 hostapd_cli \
655 hostapd_default.conf \
656 libnl \
657 libqsap_sdk \
658 libwcnss_qmi \
659 libwifi-hal-qcom \
660 libwpa_client \
661 p2p_supplicant_overlay.conf \
662 vendor.qti.hardware.wifi.supplicant@1.0.vendor \
663 wcnss_service \
664 wificond \
665 wpa_cli \
666 wpa_supplicant.conf \
667 wpa_supplicant \
668 wpa_supplicant_overlay.conf \
669 WifiOverlay \
670 TetheringConfigOverlay
671
672
Bharath756d7dd2021-08-07 23:53:55 +0530673# Call the proprietary setup
674# Call this in the end so that flags if required can be utilized.
675$(call inherit-product, device/fairphone/fp3-proprietary/device-vendor.mk)
676
677###################################################################################
678# This is the End of target.mk file.
679# Now, Pickup other split product.mk files:
680###################################################################################
Bharath1710e062021-08-20 11:30:47 +0530681$(call inherit-product-if-exists, hardware/qcom/gps/gps_vendor_product.mk)
Bharath756d7dd2021-08-07 23:53:55 +0530682$(call inherit-product-if-exists, vendor/qcom/opensource/commonsys-intf/display/config/display-product-system.mk)
683$(call inherit-product-if-exists, vendor/qcom/opensource/commonsys-intf/display/config/display-interfaces-product.mk)
684$(call inherit-product-if-exists, vendor/qcom/opensource/usb/vendor_product.mk)
685$(call inherit-product-if-exists, vendor/qcom/opensource/vibrator/vibrator-vendor-product.mk)
686###################################################################################