blob: 406b1bb6c0a34eca44d70aa381e3d675a05286fb [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
Bharath12163282022-06-20 15:10:58 +053025# Inherit generic AOSP content for telephony based 64-bit devices
26$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
27$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk)
Bharath756d7dd2021-08-07 23:53:55 +053028
29PRODUCT_NAME := FP3
30PRODUCT_DEVICE := FP3
31PRODUCT_MODEL := FP3
32PRODUCT_MANUFACTURER := Fairphone
33PRODUCT_BRAND := Fairphone
34
35
36# Allow using custom and expressive names for our Android flavors while in fact
37# targeting the same model with all of them.
Bharath6a7439e2022-02-21 17:35:49 +053038PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_MODEL=FP3 PRODUCT_NAME=FP3 TARGET_PRODUCT=FP3
Bharath756d7dd2021-08-07 23:53:55 +053039
Bharath756d7dd2021-08-07 23:53:55 +053040
Bharathdccdc592022-03-31 12:10:41 +053041TARGET_SYSTEM_PROP := $(FP_PATH)/system.prop
Bharath756d7dd2021-08-07 23:53:55 +053042
Borjan Tchakaloff17a5b5f2018-05-11 11:35:06 +020043# Define the build number based on the product flavour and on the build manifest
44# revision
45ifneq (,$(strip $(PRODUCT_FLAVOR)))
46 _BUILD_MANIFEST_REV := $(shell (git -C $(TOPDIR).repo/manifests rev-parse --short=8 HEAD))
47 BUILD_NUMBER := $(PRODUCT_FLAVOR)-$(_BUILD_MANIFEST_REV)
48 HAS_BUILD_NUMBER := true
49else
50 $(error PRODUCT_FLAVOR must be defined)
51endif
52$(warning Build defined as $(BUILD_ID) ($(BUILD_NUMBER)))
53
Bharath756d7dd2021-08-07 23:53:55 +053054
Luca Weisse7ef1c82022-07-13 13:13:20 +020055# Define SPL for boot & vendor
56BOOT_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
57VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
58
59
Bharath756d7dd2021-08-07 23:53:55 +053060# We don't have the calibration data as this sort of
61# data can only be generated at the factory so don't generate persist.img
62FP3_SKIP_PERSIST_IMG := true
63
Bharath80ba1872021-08-21 11:53:57 +053064
65# Operator specific overlays
66DEVICE_PACKAGE_OVERLAYS += \
67 $(LOCAL_PATH)/overlay-operators
68
Bharath756d7dd2021-08-07 23:53:55 +053069# Overlays
70DEVICE_PACKAGE_OVERLAYS += \
71 $(LOCAL_PATH)/overlay
72
73
74# A/B related defines
75AB_OTA_UPDATER := true
76AB_OTA_PARTITIONS += \
77 boot \
78 dtbo \
79 system \
80 vbmeta \
81 vendor
82
83
Bharath756d7dd2021-08-07 23:53:55 +053084PRODUCT_PACKAGES += \
Bharath756d7dd2021-08-07 23:53:55 +053085 update_engine_sideload
86
87
Bharath2307d3b2022-01-06 22:23:25 +053088# APN
89PRODUCT_COPY_FILES += \
90 $(LOCAL_PATH)/apns-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
91
92
Bharath756d7dd2021-08-07 23:53:55 +053093# AVB
94BOARD_AVB_ENABLE := true
95
96
97# Additional native libraries
98PRODUCT_COPY_FILES += \
99 $(FP_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
100
101
Bharath12163282022-06-20 15:10:58 +0530102# OEM Unlock reporting
103PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
104 ro.oem_unlock_supported=1
105
106
Bharath756d7dd2021-08-07 23:53:55 +0530107# Atrace HAL
108PRODUCT_PACKAGES += \
109 android.hardware.atrace@1.0-service
110
111
112# Audio
Bharath756d7dd2021-08-07 23:53:55 +0530113PRODUCT_PACKAGES += \
114 android.hardware.audio@6.0 \
115 android.hardware.audio.common@6.0 \
116 android.hardware.audio.common@6.0-util \
Bharath70cf2ae2022-02-14 12:13:50 +0530117 android.hardware.audio@6.0-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530118 android.hardware.audio.effect@6.0 \
Bharath70cf2ae2022-02-14 12:13:50 +0530119 android.hardware.audio.effect@6.0-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530120 android.hardware.audio.service \
121 android.hardware.soundtrigger@2.1-impl \
122 audio.a2dp.default \
123 audio.primary.msm8953 \
124 audio.r_submix.default \
125 audio.usb.default \
126 libaacwrapper \
127 libaudio-resampler \
128 libautohal \
129 libqcompostprocbundle \
130 libqcomvisualizer \
131 libqcomvoiceprocessing \
132 libvolumelistener \
133 tinymix
134
135
136AUDIO_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal
137
138# Audio files
139PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530140 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
141 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
142 $(AUDIO_HAL_PATH)/configs/msm8953/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
143 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
144 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku3_tasha.xml \
145 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku4.xml \
146 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tasha.xml \
147 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tashalite.xml \
148 $(AUDIO_HAL_PATH)/configs/msm8953/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
149 $(AUDIO_HAL_PATH)/configs/msm8953/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
150 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
151 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
152 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku3_tasha.xml \
153 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku4.xml \
154 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
155 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \
156 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
157 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9306.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9306.xml \
158 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9330.xml \
159 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \
160 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
161
162
163# Audio config files
164PRODUCT_COPY_FILES += \
165 frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
166 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
167 frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
168 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
169 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
170 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
171
172# Custom config files
173PRODUCT_COPY_FILES += \
174 $(FP_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
175
176
177# Audio firmware files
178PRODUCT_COPY_FILES += \
179 $(FP_PATH)/aw/aw8898_cfg.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/aw8898_cfg.bin \
180 $(FP_PATH)/tas2557_fw/OBO_0617_music.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557_uCDSP.bin \
181 $(FP_PATH)/tas2557_fw/tas2557evm_OBO_0617.ftcfg:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557evm_aacspk_a.ftcfg
182
183
184# Audio Specific device overlays
185DEVICE_PACKAGE_OVERLAYS += $(AUDIO_HAL_PATH)/configs/common/overlay
186
187
188# Audio Specific properties
189# Properties
190-include $(LOCAL_PATH)/audio_properties.mk
191
192
193# Audio Kernel modules
194AUDIO_DLKM := audio_apr.ko
195AUDIO_DLKM += audio_q6_notifier.ko
196AUDIO_DLKM += audio_adsp_loader.ko
197AUDIO_DLKM += audio_q6.ko
198AUDIO_DLKM += audio_usf.ko
199AUDIO_DLKM += audio_pinctrl_wcd.ko
200AUDIO_DLKM += audio_swr.ko
201AUDIO_DLKM += audio_wcd_core.ko
202AUDIO_DLKM += audio_swr_ctrl.ko
203AUDIO_DLKM += audio_wsa881x.ko
204AUDIO_DLKM += audio_wsa881x_analog.ko
205AUDIO_DLKM += audio_platform.ko
206AUDIO_DLKM += audio_cpe_lsm.ko
207AUDIO_DLKM += audio_hdmi.ko
208AUDIO_DLKM += audio_stub.ko
209AUDIO_DLKM += audio_wcd9xxx.ko
210AUDIO_DLKM += audio_mbhc.ko
211AUDIO_DLKM += audio_wcd9335.ko
212AUDIO_DLKM += audio_wcd_cpe.ko
213AUDIO_DLKM += audio_digital_cdc.ko
214AUDIO_DLKM += audio_analog_cdc.ko
215AUDIO_DLKM += audio_native.ko
216AUDIO_DLKM += audio_machine_sdm450.ko
217AUDIO_DLKM += audio_machine_ext_sdm450.ko
218PRODUCT_PACKAGES += $(AUDIO_DLKM)
219
220
Bharath9cdcce22021-12-08 15:43:43 +0530221# Automation/ATS
222PRODUCT_PACKAGES += \
223 automation_setup \
224 automation_adb_setup
225
226
Bharathfe661fb2021-08-16 18:56:32 +0530227# ANT
228PRODUCT_PACKAGES += \
229 AntHalService \
230 antradio_app \
231 com.dsi.ant@1.0 \
Bharath70cf2ae2022-02-14 12:13:50 +0530232 com.dsi.ant@1.0.vendor \
Bharathfe661fb2021-08-16 18:56:32 +0530233 libantradio
234
Bharath756d7dd2021-08-07 23:53:55 +0530235# Bluetooth
Bharathfe661fb2021-08-16 18:56:32 +0530236PRODUCT_PACKAGES += \
Bharathfe661fb2021-08-16 18:56:32 +0530237 audio.bluetooth.default \
238 android.hardware.bluetooth.audio@2.0-impl \
239 android.hardware.bluetooth@1.0 \
240 vendor.qti.hardware.bluetooth_audio@2.0 \
241 vendor.qti.hardware.bluetooth_audio@2.1.vendor \
242 vendor.qti.hardware.btconfigstore@1.0.vendor
243
244# Bluetooth Permissions
245PRODUCT_COPY_FILES += \
246 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
247 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 +0530248
249
Bharath12163282022-06-20 15:10:58 +0530250# Board platforms lists to be used for
251# TARGET_BOARD_PLATFORM specific featurization
252QCOM_BOARD_PLATFORMS += msm8953
253
254
Bharath756d7dd2021-08-07 23:53:55 +0530255# Boot
256PRODUCT_PACKAGES += \
257 android.hardware.boot@1.0-impl \
258 android.hardware.boot@1.0-impl.recovery \
259 android.hardware.boot@1.0-service \
260 bootctrl.msm8953 \
Bharathe341d1d2022-04-06 09:49:27 +0530261 bootctrl.msm8953.recovery \
Bharath756d7dd2021-08-07 23:53:55 +0530262 update_engine \
263 update_engine_client \
264 update_engine_sideload \
265 update_verifier
266
Bharath12163282022-06-20 15:10:58 +0530267# MSM updater library
268PRODUCT_PACKAGES += librecovery_updater_msm
269
270
271# Skip boot jars check
272SKIP_BOOT_JARS_CHECK := true
273
Bharath756d7dd2021-08-07 23:53:55 +0530274
275# Boot animation
276TARGET_SCREEN_HEIGHT := 2160
277TARGET_SCREEN_WIDTH := 1080
278
279
280PRODUCT_COPY_FILES += \
281 vendor/fairphone/media/bootanimation/bootanimation.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip
282
283
284# Camera
Bharathcbfb0a92021-08-19 21:13:50 +0530285PRODUCT_PACKAGES += \
286 android.frameworks.displayservice@1.0.vendor \
287 android.hidl.base@1.0.vendor \
288 android.hardware.camera.device@3.5 \
289 android.hardware.camera.provider@2.4 \
290 android.hardware.camera.provider@2.4-external \
291 android.hardware.camera.provider@2.4-impl \
292 android.hardware.camera.provider@2.4-legacy \
293 android.hardware.camera.provider@2.4-service \
294 android.hardware.camera.provider@2.6 \
295 camera.device@1.0-impl \
296 camera.device@3.5-impl \
297 camera.device@3.6-external-impl \
298 camera.msm8953 \
299 cameraconfig.txt \
300 libcamera2ndk_vendor \
301 libhal_dbg \
302 libjni_burstpmk \
303 libjni_imageutil \
304 libjni_snapcammosaic \
305 libjni_snapcamtinyplanet \
306 libmm-qcamera \
307 libmmcamera_interface \
308 libmmjpeg_interface \
309 libmmlib2d_interface \
310 libqomx_core \
311 libxml2 \
312 mm-qcamera-app \
313 vendor.qti.hardware.camera.device@1.0 \
314 vendor.qti.hardware.camera.device@1.0.vendor
315
316# Fairphone Camera
317PRODUCT_PACKAGES += \
318 FairphoneCamera
319
320# Arcsoft camera libraries
321PRODUCT_PACKAGES += \
322 libarcimageprocess \
323 libarcsoft_aiscenedetection \
324 libarcsoft_hdr_detection \
325 libarcsoft_high_dynamic_range \
326 libarcsoft_low_light_hdr \
327 libarcsoft_low_light_shot \
328 libarcsoft_object_tracking \
329 libarcsoft_panorama_burstcapture \
330 libarcsoft_singlecam_bokeh \
331 libarcsoft_videoautozoom \
332 libarcsoft_videostabs \
333 libmpbase \
334 libmpbase.vendor
335
336# Feature flags for camera
337PRODUCT_COPY_FILES += \
338 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
339 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
340 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
341 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 +0530342
343
344# Component overrides
345# TODO: Check if this is required.
346#PRODUCT_COPY_FILES += \
347 $(FP_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
348
349
Bharath12163282022-06-20 15:10:58 +0530350# Charger
351PRODUCT_PACKAGES += \
352 charger \
353 charger_res_images
354
355
356# Chromium
357PRODUCT_PACKAGES += \
358 libwebviewchromium_loader \
359 libwebviewchromium_plat_support
360
361
362# Curl
363PRODUCT_PACKAGES += \
364 curl \
365 libcurl
366
367
368# Data/rmnetctrl
369PRODUCT_PACKAGES += \
370 librmnetctl
371
372
Bharath756d7dd2021-08-07 23:53:55 +0530373# Display
374PRODUCT_PACKAGES += \
375 android.hardware.graphics.allocator@2.0-impl \
376 android.hardware.graphics.allocator@2.0-service \
377 android.hardware.graphics.composer@2.1-service \
378 android.hardware.graphics.mapper@2.0-impl-2.1 \
379 android.hardware.memtrack@1.0-impl \
380 android.hardware.memtrack@1.0-service \
381 gralloc.default \
382 gralloc.msm8953 \
383 hwcomposer.msm8953 \
Bharath12163282022-06-20 15:10:58 +0530384 libcomposerextn.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530385 libdisplayconfig \
Bharath12163282022-06-20 15:10:58 +0530386 libdisplayconfig.qti \
387 libdrm \
388 libgralloc.qti \
389 liblayerext.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530390 libqdMetaData \
Bharath12163282022-06-20 15:10:58 +0530391 libqdMetaData.system \
392 libqdutils \
393 libsmomo.qti \
394 libsmomoconfig.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530395 libvulkan \
Bharath12163282022-06-20 15:10:58 +0530396 memtrack.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530397 vendor.qti.hardware.display.composer@3.0
398
399
400# Vendor Display
401# Disable skip validate
402PRODUCT_PROPERTY_OVERRIDES += \
403 vendor.display.disable_skip_validate=1
404
405
406# Display Properties
407PRODUCT_AAPT_CONFIG := normal
408PRODUCT_AAPT_PREF_CONFIG := xxhdpi
409
410
411# DRM
412PRODUCT_PACKAGES += \
413 android.hardware.drm@1.3-service.clearkey
414
415
Pradeep Chenthatib4c3c102021-10-19 20:07:52 +0530416# Elabel
417PRODUCT_PACKAGES += \
418 eLabel.html.gz \
419 eLabel1.png \
420 eLabel2.png \
421 FAIRPHONE.html.gz \
422 FAIRPHONE.png
423
424
Bharath756d7dd2021-08-07 23:53:55 +0530425# Enable vndk-sp Libraries
426PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
427TARGET_USES_MKE2FS := true
428
429PRODUCT_PACKAGES += \
430 vndk_package
431
432
433# Encryption
434PRODUCT_PROPERTY_OVERRIDES += ro.crypto.allow_encrypt_override=true
435PRODUCT_PROPERTY_OVERRIDES += ro.crypto.volume.filenames_mode=aes-256-cts
436
437
Bharath12163282022-06-20 15:10:58 +0530438# E2fsck
439PRODUCT_PACKAGES += \
440 e2fsck
441
Bharath44ee36f2022-05-02 15:37:19 +0530442# ExFAT binaries
443PRODUCT_COPY_FILES += \
444 $(FP_PATH)/tuxera/exfatck:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatck \
445 $(FP_PATH)/tuxera/exfatdebug:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatdebug \
446 $(FP_PATH)/tuxera/exfatlabel:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatlabel \
447 $(FP_PATH)/tuxera/exfatvsn:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatvsn \
448 $(FP_PATH)/tuxera/mkexfat:$(TARGET_COPY_OUT_SYSTEM)/bin/mkexfat
449
450
Bharathe341d1d2022-04-06 09:49:27 +0530451# Fastbootd
452PRODUCT_PACKAGES += fastbootd
453
454
Bharath756d7dd2021-08-07 23:53:55 +0530455# FBE support
456PRODUCT_COPY_FILES += \
457 $(FP_PATH)/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh
458
459
Bharath1710e062021-08-20 11:30:47 +0530460# Feature flags and permissions
461PRODUCT_COPY_FILES += \
462 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
463 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
464 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
465 frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
466 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
467 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
468 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
469 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
470 frameworks/native/data/etc/android.hardware.vulkan.level-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level-0.xml \
Bharath0c86f4b2022-02-14 16:38:53 +0530471 frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version-1_1.xml \
Bharath1710e062021-08-20 11:30:47 +0530472 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
473 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
474 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 +0530475 frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
476 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
477 frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
478 frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.software.verified_boot.xml \
Bharathdf89a7d2022-06-27 20:12:06 +0530479 frameworks/native/data/etc/android.software.vulkan.deqp.level-2019-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml \
Bharath1710e062021-08-20 11:30:47 +0530480 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
481
Bharath1dcb6512021-08-20 00:41:08 +0530482# Fingerprint
483PRODUCT_PACKAGES += \
484 android.hardware.biometrics.fingerprint@2.1 \
485 android.hardware.biometrics.fingerprint@2.1-service \
486 elan_device.rc \
487 fingerprint.default
488
489# Fingerprint files
490include $(FP_PATH)/elan_lib/fingerprint/elan_lib.mk
491
492# Fingerprint feature flag
493PRODUCT_COPY_FILES += \
494 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
495
496
Bharath756d7dd2021-08-07 23:53:55 +0530497# Framework Detect
498PRODUCT_PACKAGES += \
499 libqti_vndfwk_detect \
500 libqti_vndfwk_detect.vendor \
501 libvndfwk_detect_jni.qti \
502 libvndfwk_detect_jni.qti.vendor \
503 vndservicemanager
504
Bharath12163282022-06-20 15:10:58 +0530505# FRP
506PRODUCT_PROPERTY_OVERRIDES += ro.frp.pst=/dev/block/bootdevice/by-name/config
507
Bharath756d7dd2021-08-07 23:53:55 +0530508
509# HIDL
510PRODUCT_PACKAGES += \
511 android.hidl.base@1.0 \
512 libhidltransport \
513 libhidltransport.vendor \
514 libhwbinder \
515 libhwbinder.vendor
516
517
Bharath1710e062021-08-20 11:30:47 +0530518# GPS
519BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
Luca Weissa8a60262022-02-28 15:00:31 +0100520LOC_HIDL_VERSION := 4.0
Bharath1710e062021-08-20 11:30:47 +0530521
522PRODUCT_PACKAGES += \
Bharath70cf2ae2022-02-14 12:13:50 +0530523 android.hardware.gnss@2.1-impl-qti \
Bharath1710e062021-08-20 11:30:47 +0530524 android.hardware.gnss@2.1-service-qti \
525 libbatching \
526 libgeofencing \
527 libgnss \
528 libjson \
529 libwifi-hal-ctrl \
530 libgps.utils
531
532PRODUCT_PACKAGES += \
533 flp.conf \
534 gps.conf
535
536# gps/location secuity configuration file
537PRODUCT_COPY_FILES += \
538 $(FP_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
539
540# Permissions
541PRODUCT_COPY_FILES += \
542 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
543
Bharath12163282022-06-20 15:10:58 +0530544PRODUCT_PROPERTY_OVERRIDES += \
545 persist.backup.ntpServer=0.pool.ntp.org
546
Bharath1710e062021-08-20 11:30:47 +0530547
Bharath756d7dd2021-08-07 23:53:55 +0530548# Health
549PRODUCT_PACKAGES += \
550 android.hardware.health@2.1-impl \
551 android.hardware.health@2.1-impl.recovery \
552 android.hardware.health@2.1-service
553
554# IMS
555PRODUCT_PACKAGES += \
556 ims-ext-common \
557 ims_ext_common.xml \
558 ConfURIDialer
559
Bharath12163282022-06-20 15:10:58 +0530560
561# Init
562PRODUCT_PACKAGES += \
563 fstab.qcom \
564 init.class_main.sh \
565 init.crda.sh \
566 init.mdm.sh \
567 init.qcom.class_core.sh \
568 init.qcom.coex.sh \
569 init.qcom.early_boot.sh \
570 init.qcom.efs.sync.sh \
571 init.qcom.factory.rc \
572 init.qcom.post_boot.sh \
573 init.qcom.rc \
574 init.qcom.sdio.sh \
575 init.qcom.sensors.sh \
576 init.qcom.sh \
577 init.qcom.usb.rc \
578 init.qcom.usb.sh \
579 init.recovery.qcom.rc \
580 init.target.rc \
581 init.veth_ipa_config.sh \
582 qca6234-service.sh \
583 ueventd.qcom.rc \
584 vold.fstab
585
586#intialise PRODUCT_PACKAGES_DEBUG list for debug modules
Luca Weiss2327bfb2022-07-13 09:47:07 +0200587PRODUCT_PACKAGES_DEBUG += init.qcom.testscripts.sh
Bharath12163282022-06-20 15:10:58 +0530588
589#Add init.qcom.test.rc to PRODUCT_PACKAGES_DEBUG list
590PRODUCT_PACKAGES_DEBUG += init.qcom.test.rc
591PRODUCT_PACKAGES_DEBUG += init.qcom.debug.sh
592
593ifneq ($(strip $(TARGET_BUILD_VARIANT)),user)
594PRODUCT_COPY_FILES += \
595 device/qcom/common/rootdir/etc/init.qcom.testscripts.sh:$(TARGET_COPY_OUT_PRODUCT)/etc/init.qcom.testscripts.sh
596endif
597
598PRODUCT_PACKAGES_DEBUG += \
599 init.qcom.debug.sh \
600 init.qcom.debug-sdm660.sh \
601 init.qcom.debug-sdm710.sh \
602 init.qti.debug-msmnile-apps.sh \
603 init.qti.debug-msmnile-modem.sh \
604 init.qti.debug-msmnile-slpi.sh \
605 init.qti.debug-talos.sh \
606 init.qti.debug-msmnile.sh \
607 init.qti.debug-kona.sh \
608 init.qti.debug-lito.sh \
609 init.qti.debug-trinket.sh \
610 init.qti.debug-atoll.sh \
611 init.qti.debug-lagoon.sh \
612 init.qti.debug-bengal.sh
613
614
615# IP and iptables
616PRODUCT_PACKAGES += \
617 ip \
618 libiprouteutil \
619 iptables \
620 ip-up-vpn \
621 libext
622
623
Bharath756d7dd2021-08-07 23:53:55 +0530624# IPACM
625PRODUCT_PACKAGES += \
626 ipacm \
627 IPACM_cfg.xml \
628 libipanat \
629 liboffloadhal \
630 libqsap_sdk
631
632# IRQ
633PRODUCT_COPY_FILES += \
634 $(FP_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
635 $(FP_PATH)/configs/msm_irqbalance_little_big.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance_little_big.conf
636
637
638# Kernel modules
639# Kernel modules install path
640KERNEL_MODULES_INSTALL := dlkm
641KERNEL_MODULES_OUT := out/target/product/$(PRODUCT_NAME)/$(KERNEL_MODULES_INSTALL)/lib/modules
Bharath12163282022-06-20 15:10:58 +0530642KERNEL_TO_BUILD_ROOT_OFFSET := ../../
643
644
645# Key layouts
646PRODUCT_PACKAGES += \
647 ft5x06_ts.kl \
648 gpio-keys.kl \
649 synaptics_dsx.kl \
650 synaptics_dsxv26.kl \
651 synaptics_rmi4_i2c.kl
Bharath756d7dd2021-08-07 23:53:55 +0530652
653
654# LED packages
655PRODUCT_PACKAGES += \
656 android.hardware.light@2.0-impl \
657 android.hardware.light@2.0-service \
658 lights.msm8953
659
660
661# Media / StagefrightCodec 2.0
662PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
663
Bharathe3615be2021-08-18 22:25:42 +0530664# Enable features in video HAL that can compile only on this platform
Bharath12163282022-06-20 15:10:58 +0530665MSM_VIDC_TARGET_LIST := msm8953
Bharathe3615be2021-08-18 22:25:42 +0530666TARGET_USES_MEDIA_EXTENSIONS := true
667
668
669# media_profiles and media_codecs xmls for msm8953
670PRODUCT_COPY_FILES += \
671 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles.xml \
672 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \
673 $(FP_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
674 $(FP_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
675 $(FP_PATH)/media/media_codecs_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_8953.xml \
676 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
677 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_8953.xml \
678 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles_8953_v1.xml \
679 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_8953_v1.xml \
680 $(FP_PATH)/media/media_codecs_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v1.xml \
681 $(FP_PATH)/media/media_codecs_performance_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v1.xml \
682 $(FP_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
Bharath12163282022-06-20 15:10:58 +0530683 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
684 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml
685
686PRODUCT_COPY_FILES += \
687 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
688 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
689 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
690 frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml \
691 frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \
692 frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
693 frameworks/av/media/libstagefright/data/media_codecs_google_c2_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_video.xml
Bharathe3615be2021-08-18 22:25:42 +0530694
Bharath756d7dd2021-08-07 23:53:55 +0530695
696# NFC
Bharath1710e062021-08-20 11:30:47 +0530697PRODUCT_PACKAGES += \
698 NfcNci \
699 Tag \
700 com.android.nfc_extras \
701 com.nxp.nfc.nq \
702 com.nxp.nfc.nq.xml \
703 libnqnfc-nci \
704 libnqnfc_nci_jni \
705 nfc_nci.nqx.default.hw \
706 vendor.nxp.hardware.nfc@2.0-service
707
708# Permissions
709PRODUCT_COPY_FILES += \
710 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
711 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
712 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
713 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
714 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
715 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
716 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
717 vendor/nxp/opensource/halimpl/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
718 vendor/nxp/opensource/halimpl/SN100x/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci_SN100.conf
Bharath756d7dd2021-08-07 23:53:55 +0530719
720
721# OMX
722PRODUCT_PACKAGES += \
723 libavservices_minijail.vendor \
724 libc2dcolorconvert \
725 libOmxAacEnc \
726 libOmxAmrEnc \
727 libOmxCore \
728 libOmxEvrcEnc \
729 libOmxQcelp13Enc \
730 libOmxVdec \
731 libOmxVenc \
732 libqomx_core \
733 libaacwrapper \
734 libmm-omxcore \
735 libstagefrighthw \
736 libstagefright_softomx.vendor
737
738
739#
740# system prop for opengles version
741#
742# 196608 is decimal for 0x30000 to report major/minor versions as 3/0
743# 196609 is decimal for 0x30001 to report major/minor versions as 3/1
744# 196610 is decimal for 0x30002 to report major/minor versions as 3/2
745PRODUCT_PROPERTY_OVERRIDES += \
746 ro.opengles.version=196610
747
748
Bharath12163282022-06-20 15:10:58 +0530749# AOSP Packages
750PRODUCT_PACKAGES += \
751 DeskClock \
752 Calendar \
753 CalendarProvider \
754 Camera2 \
755 CertInstaller \
756 Gallery2 \
757 LatinIME \
758 Launcher3 \
759 LiveWallpapersPicker \
760 Music \
761 netutils-wrapper-1.0 \
762 Provision \
763 Protips \
764 QuickSearchBox \
765 Settings \
766 Stk \
767 SystemUI \
768
769
Bharath756d7dd2021-08-07 23:53:55 +0530770# Perf
771PRODUCT_COPY_FILES += \
772 $(FP_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
773
Bharath12163282022-06-20 15:10:58 +0530774PRODUCT_PROPERTY_OVERRIDES += \
775 persist.vendor.qcomsysd.enabled=1 \
776 ro.vendor.extension_library=libqti-perfd-client.so \
777 sys.vendor.shutdown.waittime=500
778
Bharath756d7dd2021-08-07 23:53:55 +0530779
780# Power
781PRODUCT_PACKAGES += \
782 android.hardware.power@1.0-impl \
783 android.hardware.power@1.0-service \
784 power.qcom
785
786
Bharath756d7dd2021-08-07 23:53:55 +0530787# privapp-permissions whitelisting
788PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
789
790
791# Protobuf
792PRODUCT_PACKAGES += \
793 libprotobuf-cpp-full \
794 libprotobuf-cpp-full-vendorcompat \
795 libprotobuf-cpp-lite-vendorcompat
796
797
Bharath12163282022-06-20 15:10:58 +0530798# include additional QCOM build utilities
799-include device/qcom/common/utils.mk
800
Bharath756d7dd2021-08-07 23:53:55 +0530801# RIL properties
802PRODUCT_PROPERTY_OVERRIDES += rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
803PRODUCT_PROPERTY_OVERRIDES += vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
804#vendor prop to disable advanced network scanning
805PRODUCT_PROPERTY_OVERRIDES += \
806 persist.vendor.radio.enableadvancedscan=false
807
Bharath12163282022-06-20 15:10:58 +0530808# Enable Dual SIM by default
809PRODUCT_PROPERTY_OVERRIDES += persist.radio.multisim.config=dsds
810
811PRODUCT_PROPERTY_OVERRIDES += \
812 persist.vendor.radio.apm_sim_not_pwdn=1 \
813 persist.vendor.radio.sib16_support=1 \
814 persist.vendor.radio.custom_ecc=1 \
815 persist.vendor.radio.rat_on=combine \
816 persist.vendor.radio.procedure_bytes=SKIP
817
Bharath756d7dd2021-08-07 23:53:55 +0530818
819# RenderScript
820PRODUCT_PACKAGES += \
821 android.hardware.renderscript@1.0-impl
822
823
824# SDCard
825# default is nosdcard, S/W button enabled in resource
826PRODUCT_CHARACTERISTICS := nosdcard
827
828
829# Seccomp
830PRODUCT_COPY_FILES += \
831 $(FP_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
832 $(FP_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
833
834
Bharath1710e062021-08-20 11:30:47 +0530835# Secure Element
836PRODUCT_PACKAGES += \
837 android.hardware.secure_element@1.2
838
839
Bharath756d7dd2021-08-07 23:53:55 +0530840# System helper
841PRODUCT_PACKAGES += \
842 vendor.qti.hardware.systemhelper@1.0
843
844
845# Service tracker
846PRODUCT_PACKAGES += \
847 vendor.qti.hardware.servicetracker@1.2.vendor
848
849
Bharatha60665d2021-08-19 09:37:22 +0530850# Sensors
851PRODUCT_PACKAGES += \
852 sensors.FP3 \
853 android.hardware.sensors@1.0-impl \
854 android.hardware.sensors@1.0-service \
855 libsensorndkbridge
856
857# Sensor HAL conf file
858PRODUCT_COPY_FILES += \
859 $(FP_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
860
861# Feature definition files for msm8953
862PRODUCT_COPY_FILES += \
863 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
864 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
865 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
866 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
867 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
868 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
869 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
870
871
Bharath756d7dd2021-08-07 23:53:55 +0530872# Telephony Permissions
Bharath12163282022-06-20 15:10:58 +0530873# whitelisted app
874PRODUCT_COPY_FILES += \
875 device/qcom/common/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml
876
877PRODUCT_COPY_FILES += \
878 device/qcom/common/privapp-permissions-qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-qti.xml
879
880# Telephony wrappers
881PRODUCT_PACKAGES += \
882 qti-telephony-hidl-wrapper \
883 qti_telephony_hidl_wrapper.xml \
884 qti-telephony-utils \
885 qti_telephony_utils.xml
Bharath756d7dd2021-08-07 23:53:55 +0530886
887
888# Thermal
889PRODUCT_PACKAGES += \
890 android.hardware.thermal@1.0-impl \
891 android.hardware.thermal@1.0-service
892
893
894# Tinyxml
895PRODUCT_PACKAGES += \
896 libtinyxml
897
898# USB
899PRODUCT_PACKAGES += \
900 android.hardware.usb@1.0-service
901
902-include vendor/qcom/opensource/usb/vendor_product.mk
903
904
905# Vendor move
906PRODUCT_VENDOR_MOVE_ENABLED := true
907
908
909# Vibrator
910PRODUCT_PACKAGES += \
911 android.hardware.vibrator@1.0-impl \
Bharath12163282022-06-20 15:10:58 +0530912 android.hardware.vibrator@1.0-service \
913 vendor.qti.hardware.vibrator.service
914
915PRODUCT_COPY_FILES += \
916 vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml
Bharath756d7dd2021-08-07 23:53:55 +0530917
918
Bharathed255712021-08-14 20:37:05 +0530919# WiFi
920# WLAN drivers
921PRODUCT_COPY_FILES += \
922 $(FP_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
923 $(FP_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_wlan_dictionary.dat \
924 $(FP_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin # From Android 10
925
926# Flag to check if wcnss_service is built from source
927TARGET_USE_WCNSS_HAL := false
928
929# If building from source then drop proprietary dependency
930ifeq ($(TARGET_USE_WCNSS_HAL),true)
931TARGET_USES_QCOM_WCNSS_QMI := false
Bharath70cf2ae2022-02-14 12:13:50 +0530932
933PRODUCT_PACKAGES += \
934 libwcnss_qmi \
935 wcnss_service
Bharathed255712021-08-14 20:37:05 +0530936endif
937
938# WiFi HAL
939PRODUCT_PACKAGES += \
940 android.hardware.wifi@1.0-service
941
Bharath12163282022-06-20 15:10:58 +0530942# WLAN DLKM
943PRODUCT_PACKAGES += \
944 pronto_wlan.ko
945
Bharathed255712021-08-14 20:37:05 +0530946# WiFi Components
947PRODUCT_PACKAGES += \
948 hostapd \
949 hostapd.accept \
950 hostapd.deny \
951 hostapd_cli \
952 hostapd_default.conf \
953 libnl \
954 libqsap_sdk \
Bharathed255712021-08-14 20:37:05 +0530955 libwifi-hal-qcom \
956 libwpa_client \
957 p2p_supplicant_overlay.conf \
958 vendor.qti.hardware.wifi.supplicant@1.0.vendor \
Bharathed255712021-08-14 20:37:05 +0530959 wificond \
960 wpa_cli \
961 wpa_supplicant.conf \
962 wpa_supplicant \
963 wpa_supplicant_overlay.conf \
964 WifiOverlay \
965 TetheringConfigOverlay
966
967
Bharath12163282022-06-20 15:10:58 +0530968# Zlib
969PRODUCT_HOST_PACKAGES += minigzip
970
971
972#soong namespace for qssi vs vendor differentiation
973SOONG_CONFIG_NAMESPACES += qssi_vs_vendor
974SOONG_CONFIG_qssi_vs_vendor += qssi_or_vendor
975SOONG_CONFIG_qssi_vs_vendor_qssi_or_vendor := vendor
976
977SOONG_CONFIG_NAMESPACES += aosp_vs_qva
978SOONG_CONFIG_aosp_vs_qva += aosp_or_qva
979ifeq ($(TARGET_FWK_SUPPORTS_FULL_VALUEADDS),true)
980SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := qva
981else
982SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := aosp
983endif
984
985SOONG_CONFIG_NAMESPACES += qtidisplaycommonsys
986# Soong Keys
987SOONG_CONFIG_qtidisplaycommonsys := displayconfig_enabled
988# Soong Values
989SOONG_CONFIG_qtidisplaycommonsys_displayconfig_enabled := true
990
991
Bharath756d7dd2021-08-07 23:53:55 +0530992# Call the proprietary setup
Bharatha3a85a72022-05-23 17:50:24 +0530993ifeq ($(FP3_PROPRIETARY_PATH),)
994FP3_PROPRIETARY_PATH := device/fairphone/fp3-proprietary
995$(warning Using default blobs path: $(FP3_PROPRIETARY_PATH).)
996endif
997
Francesco Salvatore03117482019-02-28 16:39:11 +0100998DEVICE_BLOB_VERSION := 4.A.0013.3
999
1000GET_BLOBS_CMD = vendor/fairphone/tools/bin/get_blobs.py --device FP3 --build-id $(DEVICE_BLOB_VERSION) --blobs-dir $(FP3_PROPRIETARY_PATH)
1001
1002# Check the presence of proprietary blobs
1003ifeq ("$(wildcard $(FP3_PROPRIETARY_PATH)/device-vendor.mk)","")
1004define BLOBS_INSTRUCTION
1005Cannot find FP3 binary blobs.
1006Please run
1007 $(GET_BLOBS_CMD)
1008and accept the terms of agreement.
1009endef
1010$(error $(BLOBS_INSTRUCTION))
1011endif
1012
Bharath756d7dd2021-08-07 23:53:55 +05301013# Call this in the end so that flags if required can be utilized.
Bharatha3a85a72022-05-23 17:50:24 +05301014$(call inherit-product, $(FP3_PROPRIETARY_PATH)/device-vendor.mk)
1015
Bharath12163282022-06-20 15:10:58 +05301016# Build some more display components to vendor
1017$(call inherit-product, vendor/qcom/opensource/commonsys-intf/display/config/display-interfaces-product.mk)
Bharath756d7dd2021-08-07 23:53:55 +05301018###################################################################################