blob: 732c996867965b086889a9c8773e24a2010342ca [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
Bharathcbfb0a92021-08-19 21:13:50 +0530263# Flag to check if Camera HAL binaries are built from source
264TARGET_USE_CAMERA_HAL := false
265
266PRODUCT_PACKAGES += \
267 android.frameworks.displayservice@1.0.vendor \
268 android.hidl.base@1.0.vendor \
269 android.hardware.camera.device@3.5 \
270 android.hardware.camera.provider@2.4 \
271 android.hardware.camera.provider@2.4-external \
272 android.hardware.camera.provider@2.4-impl \
273 android.hardware.camera.provider@2.4-legacy \
274 android.hardware.camera.provider@2.4-service \
275 android.hardware.camera.provider@2.6 \
276 camera.device@1.0-impl \
277 camera.device@3.5-impl \
278 camera.device@3.6-external-impl \
279 camera.msm8953 \
280 cameraconfig.txt \
281 libcamera2ndk_vendor \
282 libhal_dbg \
283 libjni_burstpmk \
284 libjni_imageutil \
285 libjni_snapcammosaic \
286 libjni_snapcamtinyplanet \
287 libmm-qcamera \
288 libmmcamera_interface \
289 libmmjpeg_interface \
290 libmmlib2d_interface \
291 libqomx_core \
292 libxml2 \
293 mm-qcamera-app \
294 vendor.qti.hardware.camera.device@1.0 \
295 vendor.qti.hardware.camera.device@1.0.vendor
296
297# Fairphone Camera
298PRODUCT_PACKAGES += \
299 FairphoneCamera
300
301# Arcsoft camera libraries
302PRODUCT_PACKAGES += \
303 libarcimageprocess \
304 libarcsoft_aiscenedetection \
305 libarcsoft_hdr_detection \
306 libarcsoft_high_dynamic_range \
307 libarcsoft_low_light_hdr \
308 libarcsoft_low_light_shot \
309 libarcsoft_object_tracking \
310 libarcsoft_panorama_burstcapture \
311 libarcsoft_singlecam_bokeh \
312 libarcsoft_videoautozoom \
313 libarcsoft_videostabs \
314 libmpbase \
315 libmpbase.vendor
316
317# Feature flags for camera
318PRODUCT_COPY_FILES += \
319 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
320 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
321 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
322 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 +0530323
324
325# Component overrides
326# TODO: Check if this is required.
327#PRODUCT_COPY_FILES += \
328 $(FP_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
329
330
331# Display
332PRODUCT_PACKAGES += \
333 android.hardware.graphics.allocator@2.0-impl \
334 android.hardware.graphics.allocator@2.0-service \
335 android.hardware.graphics.composer@2.1-service \
336 android.hardware.graphics.mapper@2.0-impl-2.1 \
337 android.hardware.memtrack@1.0-impl \
338 android.hardware.memtrack@1.0-service \
339 gralloc.default \
340 gralloc.msm8953 \
341 hwcomposer.msm8953 \
342 memtrack.msm8953 \
343 libdisplayconfig \
344 libqdutils \
345 libqdMetaData \
346 libvulkan \
347 vendor.qti.hardware.display.composer@3.0
348
349
350# Vendor Display
351# Disable skip validate
352PRODUCT_PROPERTY_OVERRIDES += \
353 vendor.display.disable_skip_validate=1
354
355
356# Display Properties
357PRODUCT_AAPT_CONFIG := normal
358PRODUCT_AAPT_PREF_CONFIG := xxhdpi
359
360
361# DRM
362PRODUCT_PACKAGES += \
363 android.hardware.drm@1.3-service.clearkey
364
365
Pradeep Chenthatib4c3c102021-10-19 20:07:52 +0530366# Elabel
367PRODUCT_PACKAGES += \
368 eLabel.html.gz \
369 eLabel1.png \
370 eLabel2.png \
371 FAIRPHONE.html.gz \
372 FAIRPHONE.png
373
374
Bharath756d7dd2021-08-07 23:53:55 +0530375# Enable vndk-sp Libraries
376PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
377TARGET_USES_MKE2FS := true
378
379PRODUCT_PACKAGES += \
380 vndk_package
381
382
383# Encryption
384PRODUCT_PROPERTY_OVERRIDES += ro.crypto.allow_encrypt_override=true
385PRODUCT_PROPERTY_OVERRIDES += ro.crypto.volume.filenames_mode=aes-256-cts
386
387
388# FBE support
389PRODUCT_COPY_FILES += \
390 $(FP_PATH)/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh
391
392
Bharath1710e062021-08-20 11:30:47 +0530393# Feature flags and permissions
394PRODUCT_COPY_FILES += \
395 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
396 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
397 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
398 frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
399 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
400 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
401 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
402 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
403 frameworks/native/data/etc/android.hardware.vulkan.level-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level-0.xml \
404 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 \
405 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
406 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
407 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 +0530408 frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
409 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
410 frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
411 frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.software.verified_boot.xml \
412 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
413
Bharath1dcb6512021-08-20 00:41:08 +0530414# Fingerprint
415PRODUCT_PACKAGES += \
416 android.hardware.biometrics.fingerprint@2.1 \
417 android.hardware.biometrics.fingerprint@2.1-service \
418 elan_device.rc \
419 fingerprint.default
420
421# Fingerprint files
422include $(FP_PATH)/elan_lib/fingerprint/elan_lib.mk
423
424# Fingerprint feature flag
425PRODUCT_COPY_FILES += \
426 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
427
428
Bharath756d7dd2021-08-07 23:53:55 +0530429# Framework Detect
430PRODUCT_PACKAGES += \
431 libqti_vndfwk_detect \
432 libqti_vndfwk_detect.vendor \
433 libvndfwk_detect_jni.qti \
434 libvndfwk_detect_jni.qti.vendor \
435 vndservicemanager
436
437
438# HIDL
439PRODUCT_PACKAGES += \
440 android.hidl.base@1.0 \
441 libhidltransport \
442 libhidltransport.vendor \
443 libhwbinder \
444 libhwbinder.vendor
445
446
Bharath1710e062021-08-20 11:30:47 +0530447# GPS
448BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
449
450PRODUCT_PACKAGES += \
451 android.hardware.gnss@2.1-impl-qti:64 \
452 android.hardware.gnss@2.1-service-qti \
453 libbatching \
454 libgeofencing \
455 libgnss \
456 libjson \
457 libwifi-hal-ctrl \
458 libgps.utils
459
460PRODUCT_PACKAGES += \
461 flp.conf \
462 gps.conf
463
464# gps/location secuity configuration file
465PRODUCT_COPY_FILES += \
466 $(FP_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
467
468# Permissions
469PRODUCT_COPY_FILES += \
470 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
471
472
Bharath756d7dd2021-08-07 23:53:55 +0530473# Health
474PRODUCT_PACKAGES += \
475 android.hardware.health@2.1-impl \
476 android.hardware.health@2.1-impl.recovery \
477 android.hardware.health@2.1-service
478
479# IMS
480PRODUCT_PACKAGES += \
481 ims-ext-common \
482 ims_ext_common.xml \
483 ConfURIDialer
484
485# IPACM
486PRODUCT_PACKAGES += \
487 ipacm \
488 IPACM_cfg.xml \
489 libipanat \
490 liboffloadhal \
491 libqsap_sdk
492
493# IRQ
494PRODUCT_COPY_FILES += \
495 $(FP_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
496 $(FP_PATH)/configs/msm_irqbalance_little_big.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance_little_big.conf
497
498
499# Kernel modules
500# Kernel modules install path
501KERNEL_MODULES_INSTALL := dlkm
502KERNEL_MODULES_OUT := out/target/product/$(PRODUCT_NAME)/$(KERNEL_MODULES_INSTALL)/lib/modules
503
504
505# LED packages
506PRODUCT_PACKAGES += \
507 android.hardware.light@2.0-impl \
508 android.hardware.light@2.0-service \
509 lights.msm8953
510
511
512# Media / StagefrightCodec 2.0
513PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
514
Bharathe3615be2021-08-18 22:25:42 +0530515# Enable features in video HAL that can compile only on this platform
516TARGET_USES_MEDIA_EXTENSIONS := true
517
518
519# media_profiles and media_codecs xmls for msm8953
520PRODUCT_COPY_FILES += \
521 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles.xml \
522 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \
523 $(FP_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
524 $(FP_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
525 $(FP_PATH)/media/media_codecs_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_8953.xml \
526 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
527 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_8953.xml \
528 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles_8953_v1.xml \
529 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_8953_v1.xml \
530 $(FP_PATH)/media/media_codecs_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v1.xml \
531 $(FP_PATH)/media/media_codecs_performance_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v1.xml \
532 $(FP_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
533 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
534
Bharath756d7dd2021-08-07 23:53:55 +0530535
536# NFC
Bharath1710e062021-08-20 11:30:47 +0530537PRODUCT_PACKAGES += \
538 NfcNci \
539 Tag \
540 com.android.nfc_extras \
541 com.nxp.nfc.nq \
542 com.nxp.nfc.nq.xml \
543 libnqnfc-nci \
544 libnqnfc_nci_jni \
545 nfc_nci.nqx.default.hw \
546 vendor.nxp.hardware.nfc@2.0-service
547
548# Permissions
549PRODUCT_COPY_FILES += \
550 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
551 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
552 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
553 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
554 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
555 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
556 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
557 vendor/nxp/opensource/halimpl/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
558 vendor/nxp/opensource/halimpl/SN100x/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci_SN100.conf
Bharath756d7dd2021-08-07 23:53:55 +0530559
560
561# OMX
562PRODUCT_PACKAGES += \
563 libavservices_minijail.vendor \
564 libc2dcolorconvert \
565 libOmxAacEnc \
566 libOmxAmrEnc \
567 libOmxCore \
568 libOmxEvrcEnc \
569 libOmxQcelp13Enc \
570 libOmxVdec \
571 libOmxVenc \
572 libqomx_core \
573 libaacwrapper \
574 libmm-omxcore \
575 libstagefrighthw \
576 libstagefright_softomx.vendor
577
578
579#
580# system prop for opengles version
581#
582# 196608 is decimal for 0x30000 to report major/minor versions as 3/0
583# 196609 is decimal for 0x30001 to report major/minor versions as 3/1
584# 196610 is decimal for 0x30002 to report major/minor versions as 3/2
585PRODUCT_PROPERTY_OVERRIDES += \
586 ro.opengles.version=196610
587
588
589# Perf
590PRODUCT_COPY_FILES += \
591 $(FP_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
592
593
594# Power
595PRODUCT_PACKAGES += \
596 android.hardware.power@1.0-impl \
597 android.hardware.power@1.0-service \
598 power.qcom
599
600
Bharath756d7dd2021-08-07 23:53:55 +0530601# privapp-permissions whitelisting
602PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
603
604
605# Protobuf
606PRODUCT_PACKAGES += \
607 libprotobuf-cpp-full \
608 libprotobuf-cpp-full-vendorcompat \
609 libprotobuf-cpp-lite-vendorcompat
610
611
612# RIL properties
613PRODUCT_PROPERTY_OVERRIDES += rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
614PRODUCT_PROPERTY_OVERRIDES += vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
615#vendor prop to disable advanced network scanning
616PRODUCT_PROPERTY_OVERRIDES += \
617 persist.vendor.radio.enableadvancedscan=false
618
619
620# RenderScript
621PRODUCT_PACKAGES += \
622 android.hardware.renderscript@1.0-impl
623
624
625# SDCard
626# default is nosdcard, S/W button enabled in resource
627PRODUCT_CHARACTERISTICS := nosdcard
628
629
630# Seccomp
631PRODUCT_COPY_FILES += \
632 $(FP_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
633 $(FP_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
634
635
Bharath1710e062021-08-20 11:30:47 +0530636# Secure Element
637PRODUCT_PACKAGES += \
638 android.hardware.secure_element@1.2
639
640
Bharath756d7dd2021-08-07 23:53:55 +0530641# System helper
642PRODUCT_PACKAGES += \
643 vendor.qti.hardware.systemhelper@1.0
644
645
646# Service tracker
647PRODUCT_PACKAGES += \
648 vendor.qti.hardware.servicetracker@1.2.vendor
649
650
Bharatha60665d2021-08-19 09:37:22 +0530651# Sensors
652PRODUCT_PACKAGES += \
653 sensors.FP3 \
654 android.hardware.sensors@1.0-impl \
655 android.hardware.sensors@1.0-service \
656 libsensorndkbridge
657
658# Sensor HAL conf file
659PRODUCT_COPY_FILES += \
660 $(FP_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
661
662# Feature definition files for msm8953
663PRODUCT_COPY_FILES += \
664 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
665 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
666 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
667 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
668 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
669 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
670 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
671
672
Bharath756d7dd2021-08-07 23:53:55 +0530673# Telephony Permissions
674
675
676# Thermal
677PRODUCT_PACKAGES += \
678 android.hardware.thermal@1.0-impl \
679 android.hardware.thermal@1.0-service
680
681
682# Tinyxml
683PRODUCT_PACKAGES += \
684 libtinyxml
685
686# USB
687PRODUCT_PACKAGES += \
688 android.hardware.usb@1.0-service
689
690-include vendor/qcom/opensource/usb/vendor_product.mk
691
692
693# Vendor move
694PRODUCT_VENDOR_MOVE_ENABLED := true
695
696
697# Vibrator
698PRODUCT_PACKAGES += \
699 android.hardware.vibrator@1.0-impl \
700 android.hardware.vibrator@1.0-service
701
702
Bharathed255712021-08-14 20:37:05 +0530703# WiFi
704# WLAN drivers
705PRODUCT_COPY_FILES += \
706 $(FP_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
707 $(FP_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_wlan_dictionary.dat \
708 $(FP_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin # From Android 10
709
710# Flag to check if wcnss_service is built from source
711TARGET_USE_WCNSS_HAL := false
712
713# If building from source then drop proprietary dependency
714ifeq ($(TARGET_USE_WCNSS_HAL),true)
715TARGET_USES_QCOM_WCNSS_QMI := false
716endif
717
718# WiFi HAL
719PRODUCT_PACKAGES += \
720 android.hardware.wifi@1.0-service
721
722# WiFi Components
723PRODUCT_PACKAGES += \
724 hostapd \
725 hostapd.accept \
726 hostapd.deny \
727 hostapd_cli \
728 hostapd_default.conf \
729 libnl \
730 libqsap_sdk \
731 libwcnss_qmi \
732 libwifi-hal-qcom \
733 libwpa_client \
734 p2p_supplicant_overlay.conf \
735 vendor.qti.hardware.wifi.supplicant@1.0.vendor \
736 wcnss_service \
737 wificond \
738 wpa_cli \
739 wpa_supplicant.conf \
740 wpa_supplicant \
741 wpa_supplicant_overlay.conf \
742 WifiOverlay \
743 TetheringConfigOverlay
744
745
Bharath756d7dd2021-08-07 23:53:55 +0530746# Call the proprietary setup
747# Call this in the end so that flags if required can be utilized.
748$(call inherit-product, device/fairphone/fp3-proprietary/device-vendor.mk)
749
750###################################################################################
751# This is the End of target.mk file.
752# Now, Pickup other split product.mk files:
753###################################################################################
Bharath1710e062021-08-20 11:30:47 +0530754$(call inherit-product-if-exists, hardware/qcom/gps/gps_vendor_product.mk)
Bharath756d7dd2021-08-07 23:53:55 +0530755$(call inherit-product-if-exists, vendor/qcom/opensource/commonsys-intf/display/config/display-product-system.mk)
756$(call inherit-product-if-exists, vendor/qcom/opensource/commonsys-intf/display/config/display-interfaces-product.mk)
757$(call inherit-product-if-exists, vendor/qcom/opensource/usb/vendor_product.mk)
758$(call inherit-product-if-exists, vendor/qcom/opensource/vibrator/vibrator-vendor-product.mk)
759###################################################################################