blob: 256df5ac080fcd1ad3ac5e47892e087bbfacab43 [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.
Bharath6a7439e2022-02-21 17:35:49 +053036PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_MODEL=FP3 PRODUCT_NAME=FP3 TARGET_PRODUCT=FP3
Bharath756d7dd2021-08-07 23:53:55 +053037
Bharath756d7dd2021-08-07 23:53:55 +053038
Bharathdccdc592022-03-31 12:10:41 +053039TARGET_SYSTEM_PROP := $(FP_PATH)/system.prop
Bharath756d7dd2021-08-07 23:53:55 +053040
Borjan Tchakaloff17a5b5f2018-05-11 11:35:06 +020041# Define the build number based on the product flavour and on the build manifest
42# revision
43ifneq (,$(strip $(PRODUCT_FLAVOR)))
44 _BUILD_MANIFEST_REV := $(shell (git -C $(TOPDIR).repo/manifests rev-parse --short=8 HEAD))
45 BUILD_NUMBER := $(PRODUCT_FLAVOR)-$(_BUILD_MANIFEST_REV)
46 HAS_BUILD_NUMBER := true
47else
48 $(error PRODUCT_FLAVOR must be defined)
49endif
50$(warning Build defined as $(BUILD_ID) ($(BUILD_NUMBER)))
51
Bharath756d7dd2021-08-07 23:53:55 +053052
53# We don't have the calibration data as this sort of
54# data can only be generated at the factory so don't generate persist.img
55FP3_SKIP_PERSIST_IMG := true
56
Bharath80ba1872021-08-21 11:53:57 +053057
58# Operator specific overlays
59DEVICE_PACKAGE_OVERLAYS += \
60 $(LOCAL_PATH)/overlay-operators
61
Bharath756d7dd2021-08-07 23:53:55 +053062# Overlays
63DEVICE_PACKAGE_OVERLAYS += \
64 $(LOCAL_PATH)/overlay
65
66
67# A/B related defines
68AB_OTA_UPDATER := true
69AB_OTA_PARTITIONS += \
70 boot \
71 dtbo \
72 system \
73 vbmeta \
74 vendor
75
76
Bharath756d7dd2021-08-07 23:53:55 +053077PRODUCT_PACKAGES += \
Bharath756d7dd2021-08-07 23:53:55 +053078 update_engine_sideload
79
80
Bharath2307d3b2022-01-06 22:23:25 +053081# APN
82PRODUCT_COPY_FILES += \
83 $(LOCAL_PATH)/apns-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
84
85
Bharath756d7dd2021-08-07 23:53:55 +053086# AVB
87BOARD_AVB_ENABLE := true
88
89
90# Additional native libraries
91PRODUCT_COPY_FILES += \
92 $(FP_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
93
94
95# Atrace HAL
96PRODUCT_PACKAGES += \
97 android.hardware.atrace@1.0-service
98
99
100# Audio
Bharath756d7dd2021-08-07 23:53:55 +0530101PRODUCT_PACKAGES += \
102 android.hardware.audio@6.0 \
103 android.hardware.audio.common@6.0 \
104 android.hardware.audio.common@6.0-util \
105 android.hardware.audio@6.0-impl:32 \
106 android.hardware.audio.effect@6.0 \
107 android.hardware.audio.effect@6.0-impl:32 \
108 android.hardware.audio.service \
109 android.hardware.soundtrigger@2.1-impl \
110 audio.a2dp.default \
111 audio.primary.msm8953 \
112 audio.r_submix.default \
113 audio.usb.default \
114 libaacwrapper \
115 libaudio-resampler \
116 libautohal \
117 libqcompostprocbundle \
118 libqcomvisualizer \
119 libqcomvoiceprocessing \
120 libvolumelistener \
121 tinymix
122
123
124AUDIO_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal
125
126# Audio files
127PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530128 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
129 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
130 $(AUDIO_HAL_PATH)/configs/msm8953/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
131 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
132 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku3_tasha.xml \
133 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku4.xml \
134 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tasha.xml \
135 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tashalite.xml \
136 $(AUDIO_HAL_PATH)/configs/msm8953/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
137 $(AUDIO_HAL_PATH)/configs/msm8953/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
138 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
139 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
140 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku3_tasha.xml \
141 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku4.xml \
142 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
143 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \
144 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
145 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9306.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9306.xml \
146 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9330.xml \
147 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \
148 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
149
150
151# Audio config files
152PRODUCT_COPY_FILES += \
153 frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
154 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
155 frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
156 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
157 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
158 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
159
160# Custom config files
161PRODUCT_COPY_FILES += \
162 $(FP_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
163
164
165# Audio firmware files
166PRODUCT_COPY_FILES += \
167 $(FP_PATH)/aw/aw8898_cfg.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/aw8898_cfg.bin \
168 $(FP_PATH)/tas2557_fw/OBO_0617_music.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557_uCDSP.bin \
169 $(FP_PATH)/tas2557_fw/tas2557evm_OBO_0617.ftcfg:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557evm_aacspk_a.ftcfg
170
171
172# Audio Specific device overlays
173DEVICE_PACKAGE_OVERLAYS += $(AUDIO_HAL_PATH)/configs/common/overlay
174
175
176# Audio Specific properties
177# Properties
178-include $(LOCAL_PATH)/audio_properties.mk
179
180
181# Audio Kernel modules
182AUDIO_DLKM := audio_apr.ko
183AUDIO_DLKM += audio_q6_notifier.ko
184AUDIO_DLKM += audio_adsp_loader.ko
185AUDIO_DLKM += audio_q6.ko
186AUDIO_DLKM += audio_usf.ko
187AUDIO_DLKM += audio_pinctrl_wcd.ko
188AUDIO_DLKM += audio_swr.ko
189AUDIO_DLKM += audio_wcd_core.ko
190AUDIO_DLKM += audio_swr_ctrl.ko
191AUDIO_DLKM += audio_wsa881x.ko
192AUDIO_DLKM += audio_wsa881x_analog.ko
193AUDIO_DLKM += audio_platform.ko
194AUDIO_DLKM += audio_cpe_lsm.ko
195AUDIO_DLKM += audio_hdmi.ko
196AUDIO_DLKM += audio_stub.ko
197AUDIO_DLKM += audio_wcd9xxx.ko
198AUDIO_DLKM += audio_mbhc.ko
199AUDIO_DLKM += audio_wcd9335.ko
200AUDIO_DLKM += audio_wcd_cpe.ko
201AUDIO_DLKM += audio_digital_cdc.ko
202AUDIO_DLKM += audio_analog_cdc.ko
203AUDIO_DLKM += audio_native.ko
204AUDIO_DLKM += audio_machine_sdm450.ko
205AUDIO_DLKM += audio_machine_ext_sdm450.ko
206PRODUCT_PACKAGES += $(AUDIO_DLKM)
207
208
Bharath9cdcce22021-12-08 15:43:43 +0530209# Automation/ATS
210PRODUCT_PACKAGES += \
211 automation_setup \
212 automation_adb_setup
213
214
Bharathfe661fb2021-08-16 18:56:32 +0530215# ANT
216PRODUCT_PACKAGES += \
217 AntHalService \
218 antradio_app \
219 com.dsi.ant@1.0 \
220 libantradio
221
Bharath756d7dd2021-08-07 23:53:55 +0530222# Bluetooth
Bharathfe661fb2021-08-16 18:56:32 +0530223PRODUCT_PACKAGES += \
224 libbt-vendor \
225 audio.bluetooth.default \
226 android.hardware.bluetooth.audio@2.0-impl \
227 android.hardware.bluetooth@1.0 \
228 vendor.qti.hardware.bluetooth_audio@2.0 \
229 vendor.qti.hardware.bluetooth_audio@2.1.vendor \
230 vendor.qti.hardware.btconfigstore@1.0.vendor
231
232# Bluetooth Permissions
233PRODUCT_COPY_FILES += \
234 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
235 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 +0530236
237
238# Boot
239PRODUCT_PACKAGES += \
240 android.hardware.boot@1.0-impl \
241 android.hardware.boot@1.0-impl.recovery \
242 android.hardware.boot@1.0-service \
243 bootctrl.msm8953 \
244 update_engine \
245 update_engine_client \
246 update_engine_sideload \
247 update_verifier
248
249
250# Boot animation
251TARGET_SCREEN_HEIGHT := 2160
252TARGET_SCREEN_WIDTH := 1080
253
254
255PRODUCT_COPY_FILES += \
256 vendor/fairphone/media/bootanimation/bootanimation.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip
257
258
259# Camera
Bharathcbfb0a92021-08-19 21:13:50 +0530260# Flag to check if Camera HAL binaries are built from source
261TARGET_USE_CAMERA_HAL := false
262
263PRODUCT_PACKAGES += \
264 android.frameworks.displayservice@1.0.vendor \
265 android.hidl.base@1.0.vendor \
266 android.hardware.camera.device@3.5 \
267 android.hardware.camera.provider@2.4 \
268 android.hardware.camera.provider@2.4-external \
269 android.hardware.camera.provider@2.4-impl \
270 android.hardware.camera.provider@2.4-legacy \
271 android.hardware.camera.provider@2.4-service \
272 android.hardware.camera.provider@2.6 \
273 camera.device@1.0-impl \
274 camera.device@3.5-impl \
275 camera.device@3.6-external-impl \
276 camera.msm8953 \
277 cameraconfig.txt \
278 libcamera2ndk_vendor \
279 libhal_dbg \
280 libjni_burstpmk \
281 libjni_imageutil \
282 libjni_snapcammosaic \
283 libjni_snapcamtinyplanet \
284 libmm-qcamera \
285 libmmcamera_interface \
286 libmmjpeg_interface \
287 libmmlib2d_interface \
288 libqomx_core \
289 libxml2 \
290 mm-qcamera-app \
291 vendor.qti.hardware.camera.device@1.0 \
292 vendor.qti.hardware.camera.device@1.0.vendor
293
294# Fairphone Camera
295PRODUCT_PACKAGES += \
296 FairphoneCamera
297
298# Arcsoft camera libraries
299PRODUCT_PACKAGES += \
300 libarcimageprocess \
301 libarcsoft_aiscenedetection \
302 libarcsoft_hdr_detection \
303 libarcsoft_high_dynamic_range \
304 libarcsoft_low_light_hdr \
305 libarcsoft_low_light_shot \
306 libarcsoft_object_tracking \
307 libarcsoft_panorama_burstcapture \
308 libarcsoft_singlecam_bokeh \
309 libarcsoft_videoautozoom \
310 libarcsoft_videostabs \
311 libmpbase \
312 libmpbase.vendor
313
314# Feature flags for camera
315PRODUCT_COPY_FILES += \
316 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
317 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
318 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
319 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 +0530320
321
322# Component overrides
323# TODO: Check if this is required.
324#PRODUCT_COPY_FILES += \
325 $(FP_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
326
327
328# Display
329PRODUCT_PACKAGES += \
330 android.hardware.graphics.allocator@2.0-impl \
331 android.hardware.graphics.allocator@2.0-service \
332 android.hardware.graphics.composer@2.1-service \
333 android.hardware.graphics.mapper@2.0-impl-2.1 \
334 android.hardware.memtrack@1.0-impl \
335 android.hardware.memtrack@1.0-service \
336 gralloc.default \
337 gralloc.msm8953 \
338 hwcomposer.msm8953 \
339 memtrack.msm8953 \
340 libdisplayconfig \
341 libqdutils \
342 libqdMetaData \
343 libvulkan \
344 vendor.qti.hardware.display.composer@3.0
345
346
347# Vendor Display
348# Disable skip validate
349PRODUCT_PROPERTY_OVERRIDES += \
350 vendor.display.disable_skip_validate=1
351
352
353# Display Properties
354PRODUCT_AAPT_CONFIG := normal
355PRODUCT_AAPT_PREF_CONFIG := xxhdpi
356
357
358# DRM
359PRODUCT_PACKAGES += \
360 android.hardware.drm@1.3-service.clearkey
361
362
Pradeep Chenthatib4c3c102021-10-19 20:07:52 +0530363# Elabel
364PRODUCT_PACKAGES += \
365 eLabel.html.gz \
366 eLabel1.png \
367 eLabel2.png \
368 FAIRPHONE.html.gz \
369 FAIRPHONE.png
370
371
Bharath756d7dd2021-08-07 23:53:55 +0530372# Enable vndk-sp Libraries
373PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
374TARGET_USES_MKE2FS := true
375
376PRODUCT_PACKAGES += \
377 vndk_package
378
379
380# Encryption
381PRODUCT_PROPERTY_OVERRIDES += ro.crypto.allow_encrypt_override=true
382PRODUCT_PROPERTY_OVERRIDES += ro.crypto.volume.filenames_mode=aes-256-cts
383
384
385# FBE support
386PRODUCT_COPY_FILES += \
387 $(FP_PATH)/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh
388
389
Bharath1710e062021-08-20 11:30:47 +0530390# Feature flags and permissions
391PRODUCT_COPY_FILES += \
392 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
393 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
394 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
395 frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
396 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
397 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
398 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
399 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
400 frameworks/native/data/etc/android.hardware.vulkan.level-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level-0.xml \
401 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 \
402 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
403 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
404 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 +0530405 frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
406 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
407 frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
408 frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.software.verified_boot.xml \
409 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
410
Bharath1dcb6512021-08-20 00:41:08 +0530411# Fingerprint
412PRODUCT_PACKAGES += \
413 android.hardware.biometrics.fingerprint@2.1 \
414 android.hardware.biometrics.fingerprint@2.1-service \
415 elan_device.rc \
416 fingerprint.default
417
418# Fingerprint files
419include $(FP_PATH)/elan_lib/fingerprint/elan_lib.mk
420
421# Fingerprint feature flag
422PRODUCT_COPY_FILES += \
423 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
424
425
Bharath756d7dd2021-08-07 23:53:55 +0530426# Framework Detect
427PRODUCT_PACKAGES += \
428 libqti_vndfwk_detect \
429 libqti_vndfwk_detect.vendor \
430 libvndfwk_detect_jni.qti \
431 libvndfwk_detect_jni.qti.vendor \
432 vndservicemanager
433
434
435# HIDL
436PRODUCT_PACKAGES += \
437 android.hidl.base@1.0 \
438 libhidltransport \
439 libhidltransport.vendor \
440 libhwbinder \
441 libhwbinder.vendor
442
443
Bharath1710e062021-08-20 11:30:47 +0530444# GPS
445BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
446
447PRODUCT_PACKAGES += \
448 android.hardware.gnss@2.1-impl-qti:64 \
449 android.hardware.gnss@2.1-service-qti \
450 libbatching \
451 libgeofencing \
452 libgnss \
453 libjson \
454 libwifi-hal-ctrl \
455 libgps.utils
456
457PRODUCT_PACKAGES += \
458 flp.conf \
459 gps.conf
460
461# gps/location secuity configuration file
462PRODUCT_COPY_FILES += \
463 $(FP_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
464
465# Permissions
466PRODUCT_COPY_FILES += \
467 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
468
469
Bharath756d7dd2021-08-07 23:53:55 +0530470# Health
471PRODUCT_PACKAGES += \
472 android.hardware.health@2.1-impl \
473 android.hardware.health@2.1-impl.recovery \
474 android.hardware.health@2.1-service
475
476# IMS
477PRODUCT_PACKAGES += \
478 ims-ext-common \
479 ims_ext_common.xml \
480 ConfURIDialer
481
482# IPACM
483PRODUCT_PACKAGES += \
484 ipacm \
485 IPACM_cfg.xml \
486 libipanat \
487 liboffloadhal \
488 libqsap_sdk
489
490# IRQ
491PRODUCT_COPY_FILES += \
492 $(FP_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
493 $(FP_PATH)/configs/msm_irqbalance_little_big.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance_little_big.conf
494
495
496# Kernel modules
497# Kernel modules install path
498KERNEL_MODULES_INSTALL := dlkm
499KERNEL_MODULES_OUT := out/target/product/$(PRODUCT_NAME)/$(KERNEL_MODULES_INSTALL)/lib/modules
500
501
502# LED packages
503PRODUCT_PACKAGES += \
504 android.hardware.light@2.0-impl \
505 android.hardware.light@2.0-service \
506 lights.msm8953
507
508
509# Media / StagefrightCodec 2.0
510PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
511
Bharathe3615be2021-08-18 22:25:42 +0530512# Enable features in video HAL that can compile only on this platform
513TARGET_USES_MEDIA_EXTENSIONS := true
514
515
516# media_profiles and media_codecs xmls for msm8953
517PRODUCT_COPY_FILES += \
518 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles.xml \
519 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \
520 $(FP_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
521 $(FP_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
522 $(FP_PATH)/media/media_codecs_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_8953.xml \
523 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
524 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_8953.xml \
525 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles_8953_v1.xml \
526 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_8953_v1.xml \
527 $(FP_PATH)/media/media_codecs_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v1.xml \
528 $(FP_PATH)/media/media_codecs_performance_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v1.xml \
529 $(FP_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
530 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
531
Bharath756d7dd2021-08-07 23:53:55 +0530532
533# NFC
Bharath1710e062021-08-20 11:30:47 +0530534PRODUCT_PACKAGES += \
535 NfcNci \
536 Tag \
537 com.android.nfc_extras \
538 com.nxp.nfc.nq \
539 com.nxp.nfc.nq.xml \
540 libnqnfc-nci \
541 libnqnfc_nci_jni \
542 nfc_nci.nqx.default.hw \
543 vendor.nxp.hardware.nfc@2.0-service
544
545# Permissions
546PRODUCT_COPY_FILES += \
547 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
548 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
549 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
550 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
551 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
552 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
553 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
554 vendor/nxp/opensource/halimpl/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
555 vendor/nxp/opensource/halimpl/SN100x/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci_SN100.conf
Bharath756d7dd2021-08-07 23:53:55 +0530556
557
558# OMX
559PRODUCT_PACKAGES += \
560 libavservices_minijail.vendor \
561 libc2dcolorconvert \
562 libOmxAacEnc \
563 libOmxAmrEnc \
564 libOmxCore \
565 libOmxEvrcEnc \
566 libOmxQcelp13Enc \
567 libOmxVdec \
568 libOmxVenc \
569 libqomx_core \
570 libaacwrapper \
571 libmm-omxcore \
572 libstagefrighthw \
573 libstagefright_softomx.vendor
574
575
576#
577# system prop for opengles version
578#
579# 196608 is decimal for 0x30000 to report major/minor versions as 3/0
580# 196609 is decimal for 0x30001 to report major/minor versions as 3/1
581# 196610 is decimal for 0x30002 to report major/minor versions as 3/2
582PRODUCT_PROPERTY_OVERRIDES += \
583 ro.opengles.version=196610
584
585
586# Perf
587PRODUCT_COPY_FILES += \
588 $(FP_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
589
590
591# Power
592PRODUCT_PACKAGES += \
593 android.hardware.power@1.0-impl \
594 android.hardware.power@1.0-service \
595 power.qcom
596
597
Bharath756d7dd2021-08-07 23:53:55 +0530598# privapp-permissions whitelisting
599PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
600
601
602# Protobuf
603PRODUCT_PACKAGES += \
604 libprotobuf-cpp-full \
605 libprotobuf-cpp-full-vendorcompat \
606 libprotobuf-cpp-lite-vendorcompat
607
608
609# RIL properties
610PRODUCT_PROPERTY_OVERRIDES += rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
611PRODUCT_PROPERTY_OVERRIDES += vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
612#vendor prop to disable advanced network scanning
613PRODUCT_PROPERTY_OVERRIDES += \
614 persist.vendor.radio.enableadvancedscan=false
615
616
617# RenderScript
618PRODUCT_PACKAGES += \
619 android.hardware.renderscript@1.0-impl
620
621
622# SDCard
623# default is nosdcard, S/W button enabled in resource
624PRODUCT_CHARACTERISTICS := nosdcard
625
626
627# Seccomp
628PRODUCT_COPY_FILES += \
629 $(FP_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
630 $(FP_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
631
632
Bharath1710e062021-08-20 11:30:47 +0530633# Secure Element
634PRODUCT_PACKAGES += \
635 android.hardware.secure_element@1.2
636
637
Bharath756d7dd2021-08-07 23:53:55 +0530638# System helper
639PRODUCT_PACKAGES += \
640 vendor.qti.hardware.systemhelper@1.0
641
642
643# Service tracker
644PRODUCT_PACKAGES += \
645 vendor.qti.hardware.servicetracker@1.2.vendor
646
647
Bharatha60665d2021-08-19 09:37:22 +0530648# Sensors
649PRODUCT_PACKAGES += \
650 sensors.FP3 \
651 android.hardware.sensors@1.0-impl \
652 android.hardware.sensors@1.0-service \
653 libsensorndkbridge
654
655# Sensor HAL conf file
656PRODUCT_COPY_FILES += \
657 $(FP_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
658
659# Feature definition files for msm8953
660PRODUCT_COPY_FILES += \
661 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
662 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
663 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
664 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
665 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
666 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
667 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
668
669
Bharath756d7dd2021-08-07 23:53:55 +0530670# Telephony Permissions
671
672
673# Thermal
674PRODUCT_PACKAGES += \
675 android.hardware.thermal@1.0-impl \
676 android.hardware.thermal@1.0-service
677
678
679# Tinyxml
680PRODUCT_PACKAGES += \
681 libtinyxml
682
683# USB
684PRODUCT_PACKAGES += \
685 android.hardware.usb@1.0-service
686
687-include vendor/qcom/opensource/usb/vendor_product.mk
688
689
690# Vendor move
691PRODUCT_VENDOR_MOVE_ENABLED := true
692
693
694# Vibrator
695PRODUCT_PACKAGES += \
696 android.hardware.vibrator@1.0-impl \
697 android.hardware.vibrator@1.0-service
698
699
Bharathed255712021-08-14 20:37:05 +0530700# WiFi
701# WLAN drivers
702PRODUCT_COPY_FILES += \
703 $(FP_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
704 $(FP_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_wlan_dictionary.dat \
705 $(FP_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin # From Android 10
706
707# Flag to check if wcnss_service is built from source
708TARGET_USE_WCNSS_HAL := false
709
710# If building from source then drop proprietary dependency
711ifeq ($(TARGET_USE_WCNSS_HAL),true)
712TARGET_USES_QCOM_WCNSS_QMI := false
713endif
714
715# WiFi HAL
716PRODUCT_PACKAGES += \
717 android.hardware.wifi@1.0-service
718
719# WiFi Components
720PRODUCT_PACKAGES += \
721 hostapd \
722 hostapd.accept \
723 hostapd.deny \
724 hostapd_cli \
725 hostapd_default.conf \
726 libnl \
727 libqsap_sdk \
728 libwcnss_qmi \
729 libwifi-hal-qcom \
730 libwpa_client \
731 p2p_supplicant_overlay.conf \
732 vendor.qti.hardware.wifi.supplicant@1.0.vendor \
733 wcnss_service \
734 wificond \
735 wpa_cli \
736 wpa_supplicant.conf \
737 wpa_supplicant \
738 wpa_supplicant_overlay.conf \
739 WifiOverlay \
740 TetheringConfigOverlay
741
742
Bharath756d7dd2021-08-07 23:53:55 +0530743# Call the proprietary setup
744# Call this in the end so that flags if required can be utilized.
745$(call inherit-product, device/fairphone/fp3-proprietary/device-vendor.mk)
746
747###################################################################################
748# This is the End of target.mk file.
749# Now, Pickup other split product.mk files:
750###################################################################################
Bharath1710e062021-08-20 11:30:47 +0530751$(call inherit-product-if-exists, hardware/qcom/gps/gps_vendor_product.mk)
Bharath756d7dd2021-08-07 23:53:55 +0530752$(call inherit-product-if-exists, vendor/qcom/opensource/commonsys-intf/display/config/display-product-system.mk)
753$(call inherit-product-if-exists, vendor/qcom/opensource/commonsys-intf/display/config/display-interfaces-product.mk)
754$(call inherit-product-if-exists, vendor/qcom/opensource/usb/vendor_product.mk)
755$(call inherit-product-if-exists, vendor/qcom/opensource/vibrator/vibrator-vendor-product.mk)
756###################################################################################