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