blob: 8779b829f3366450940cdc6513cad836bb605e47 [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
55# We don't have the calibration data as this sort of
56# data can only be generated at the factory so don't generate persist.img
57FP3_SKIP_PERSIST_IMG := true
58
Bharath80ba1872021-08-21 11:53:57 +053059
60# Operator specific overlays
61DEVICE_PACKAGE_OVERLAYS += \
62 $(LOCAL_PATH)/overlay-operators
63
Bharath756d7dd2021-08-07 23:53:55 +053064# Overlays
65DEVICE_PACKAGE_OVERLAYS += \
66 $(LOCAL_PATH)/overlay
67
68
69# A/B related defines
70AB_OTA_UPDATER := true
71AB_OTA_PARTITIONS += \
72 boot \
73 dtbo \
74 system \
75 vbmeta \
76 vendor
77
78
Bharath756d7dd2021-08-07 23:53:55 +053079PRODUCT_PACKAGES += \
Bharath756d7dd2021-08-07 23:53:55 +053080 update_engine_sideload
81
82
Bharath2307d3b2022-01-06 22:23:25 +053083# APN
84PRODUCT_COPY_FILES += \
85 $(LOCAL_PATH)/apns-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
86
87
Bharath756d7dd2021-08-07 23:53:55 +053088# AVB
89BOARD_AVB_ENABLE := true
90
91
92# Additional native libraries
93PRODUCT_COPY_FILES += \
94 $(FP_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
95
96
Bharath12163282022-06-20 15:10:58 +053097# OEM Unlock reporting
98PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
99 ro.oem_unlock_supported=1
100
101
Bharath756d7dd2021-08-07 23:53:55 +0530102# Atrace HAL
103PRODUCT_PACKAGES += \
104 android.hardware.atrace@1.0-service
105
106
107# Audio
Bharath756d7dd2021-08-07 23:53:55 +0530108PRODUCT_PACKAGES += \
109 android.hardware.audio@6.0 \
110 android.hardware.audio.common@6.0 \
111 android.hardware.audio.common@6.0-util \
Bharath70cf2ae2022-02-14 12:13:50 +0530112 android.hardware.audio@6.0-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530113 android.hardware.audio.effect@6.0 \
Bharath70cf2ae2022-02-14 12:13:50 +0530114 android.hardware.audio.effect@6.0-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530115 android.hardware.audio.service \
116 android.hardware.soundtrigger@2.1-impl \
117 audio.a2dp.default \
118 audio.primary.msm8953 \
119 audio.r_submix.default \
120 audio.usb.default \
121 libaacwrapper \
122 libaudio-resampler \
123 libautohal \
124 libqcompostprocbundle \
125 libqcomvisualizer \
126 libqcomvoiceprocessing \
127 libvolumelistener \
128 tinymix
129
130
131AUDIO_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal
132
133# Audio files
134PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530135 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
136 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
137 $(AUDIO_HAL_PATH)/configs/msm8953/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
138 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
139 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku3_tasha.xml \
140 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku4.xml \
141 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tasha.xml \
142 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tashalite.xml \
143 $(AUDIO_HAL_PATH)/configs/msm8953/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
144 $(AUDIO_HAL_PATH)/configs/msm8953/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
145 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
146 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
147 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku3_tasha.xml \
148 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku4.xml \
149 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
150 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \
151 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
152 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9306.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9306.xml \
153 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9330.xml \
154 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \
155 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
156
157
158# Audio config files
159PRODUCT_COPY_FILES += \
160 frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
161 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
162 frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
163 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
164 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
165 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
166
167# Custom config files
168PRODUCT_COPY_FILES += \
169 $(FP_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
170
171
172# Audio firmware files
173PRODUCT_COPY_FILES += \
174 $(FP_PATH)/aw/aw8898_cfg.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/aw8898_cfg.bin \
175 $(FP_PATH)/tas2557_fw/OBO_0617_music.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557_uCDSP.bin \
176 $(FP_PATH)/tas2557_fw/tas2557evm_OBO_0617.ftcfg:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557evm_aacspk_a.ftcfg
177
178
179# Audio Specific device overlays
180DEVICE_PACKAGE_OVERLAYS += $(AUDIO_HAL_PATH)/configs/common/overlay
181
182
183# Audio Specific properties
184# Properties
185-include $(LOCAL_PATH)/audio_properties.mk
186
187
188# Audio Kernel modules
189AUDIO_DLKM := audio_apr.ko
190AUDIO_DLKM += audio_q6_notifier.ko
191AUDIO_DLKM += audio_adsp_loader.ko
192AUDIO_DLKM += audio_q6.ko
193AUDIO_DLKM += audio_usf.ko
194AUDIO_DLKM += audio_pinctrl_wcd.ko
195AUDIO_DLKM += audio_swr.ko
196AUDIO_DLKM += audio_wcd_core.ko
197AUDIO_DLKM += audio_swr_ctrl.ko
198AUDIO_DLKM += audio_wsa881x.ko
199AUDIO_DLKM += audio_wsa881x_analog.ko
200AUDIO_DLKM += audio_platform.ko
201AUDIO_DLKM += audio_cpe_lsm.ko
202AUDIO_DLKM += audio_hdmi.ko
203AUDIO_DLKM += audio_stub.ko
204AUDIO_DLKM += audio_wcd9xxx.ko
205AUDIO_DLKM += audio_mbhc.ko
206AUDIO_DLKM += audio_wcd9335.ko
207AUDIO_DLKM += audio_wcd_cpe.ko
208AUDIO_DLKM += audio_digital_cdc.ko
209AUDIO_DLKM += audio_analog_cdc.ko
210AUDIO_DLKM += audio_native.ko
211AUDIO_DLKM += audio_machine_sdm450.ko
212AUDIO_DLKM += audio_machine_ext_sdm450.ko
213PRODUCT_PACKAGES += $(AUDIO_DLKM)
214
215
Bharath9cdcce22021-12-08 15:43:43 +0530216# Automation/ATS
217PRODUCT_PACKAGES += \
218 automation_setup \
219 automation_adb_setup
220
221
Bharathfe661fb2021-08-16 18:56:32 +0530222# ANT
223PRODUCT_PACKAGES += \
224 AntHalService \
225 antradio_app \
226 com.dsi.ant@1.0 \
Bharath70cf2ae2022-02-14 12:13:50 +0530227 com.dsi.ant@1.0.vendor \
Bharathfe661fb2021-08-16 18:56:32 +0530228 libantradio
229
Bharath756d7dd2021-08-07 23:53:55 +0530230# Bluetooth
Bharathfe661fb2021-08-16 18:56:32 +0530231PRODUCT_PACKAGES += \
Bharathfe661fb2021-08-16 18:56:32 +0530232 audio.bluetooth.default \
233 android.hardware.bluetooth.audio@2.0-impl \
234 android.hardware.bluetooth@1.0 \
235 vendor.qti.hardware.bluetooth_audio@2.0 \
236 vendor.qti.hardware.bluetooth_audio@2.1.vendor \
237 vendor.qti.hardware.btconfigstore@1.0.vendor
238
239# Bluetooth Permissions
240PRODUCT_COPY_FILES += \
241 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
242 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 +0530243
244
Bharath12163282022-06-20 15:10:58 +0530245# Board platforms lists to be used for
246# TARGET_BOARD_PLATFORM specific featurization
247QCOM_BOARD_PLATFORMS += msm8953
248
249
Bharath756d7dd2021-08-07 23:53:55 +0530250# Boot
251PRODUCT_PACKAGES += \
252 android.hardware.boot@1.0-impl \
253 android.hardware.boot@1.0-impl.recovery \
254 android.hardware.boot@1.0-service \
255 bootctrl.msm8953 \
Bharathe341d1d2022-04-06 09:49:27 +0530256 bootctrl.msm8953.recovery \
Bharath756d7dd2021-08-07 23:53:55 +0530257 update_engine \
258 update_engine_client \
259 update_engine_sideload \
260 update_verifier
261
Bharath12163282022-06-20 15:10:58 +0530262# MSM updater library
263PRODUCT_PACKAGES += librecovery_updater_msm
264
265
266# Skip boot jars check
267SKIP_BOOT_JARS_CHECK := true
268
Bharath756d7dd2021-08-07 23:53:55 +0530269
270# Boot animation
271TARGET_SCREEN_HEIGHT := 2160
272TARGET_SCREEN_WIDTH := 1080
273
274
275PRODUCT_COPY_FILES += \
276 vendor/fairphone/media/bootanimation/bootanimation.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip
277
278
279# Camera
Bharathcbfb0a92021-08-19 21:13:50 +0530280PRODUCT_PACKAGES += \
281 android.frameworks.displayservice@1.0.vendor \
282 android.hidl.base@1.0.vendor \
283 android.hardware.camera.device@3.5 \
284 android.hardware.camera.provider@2.4 \
285 android.hardware.camera.provider@2.4-external \
286 android.hardware.camera.provider@2.4-impl \
287 android.hardware.camera.provider@2.4-legacy \
288 android.hardware.camera.provider@2.4-service \
289 android.hardware.camera.provider@2.6 \
290 camera.device@1.0-impl \
291 camera.device@3.5-impl \
292 camera.device@3.6-external-impl \
293 camera.msm8953 \
294 cameraconfig.txt \
295 libcamera2ndk_vendor \
296 libhal_dbg \
297 libjni_burstpmk \
298 libjni_imageutil \
299 libjni_snapcammosaic \
300 libjni_snapcamtinyplanet \
301 libmm-qcamera \
302 libmmcamera_interface \
303 libmmjpeg_interface \
304 libmmlib2d_interface \
305 libqomx_core \
306 libxml2 \
307 mm-qcamera-app \
308 vendor.qti.hardware.camera.device@1.0 \
309 vendor.qti.hardware.camera.device@1.0.vendor
310
311# Fairphone Camera
312PRODUCT_PACKAGES += \
313 FairphoneCamera
314
315# Arcsoft camera libraries
316PRODUCT_PACKAGES += \
317 libarcimageprocess \
318 libarcsoft_aiscenedetection \
319 libarcsoft_hdr_detection \
320 libarcsoft_high_dynamic_range \
321 libarcsoft_low_light_hdr \
322 libarcsoft_low_light_shot \
323 libarcsoft_object_tracking \
324 libarcsoft_panorama_burstcapture \
325 libarcsoft_singlecam_bokeh \
326 libarcsoft_videoautozoom \
327 libarcsoft_videostabs \
328 libmpbase \
329 libmpbase.vendor
330
331# Feature flags for camera
332PRODUCT_COPY_FILES += \
333 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
334 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
335 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
336 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 +0530337
338
339# Component overrides
340# TODO: Check if this is required.
341#PRODUCT_COPY_FILES += \
342 $(FP_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
343
344
Bharath12163282022-06-20 15:10:58 +0530345# Charger
346PRODUCT_PACKAGES += \
347 charger \
348 charger_res_images
349
350
351# Chromium
352PRODUCT_PACKAGES += \
353 libwebviewchromium_loader \
354 libwebviewchromium_plat_support
355
356
357# Curl
358PRODUCT_PACKAGES += \
359 curl \
360 libcurl
361
362
363# Data/rmnetctrl
364PRODUCT_PACKAGES += \
365 librmnetctl
366
367
Bharath756d7dd2021-08-07 23:53:55 +0530368# Display
369PRODUCT_PACKAGES += \
370 android.hardware.graphics.allocator@2.0-impl \
371 android.hardware.graphics.allocator@2.0-service \
372 android.hardware.graphics.composer@2.1-service \
373 android.hardware.graphics.mapper@2.0-impl-2.1 \
374 android.hardware.memtrack@1.0-impl \
375 android.hardware.memtrack@1.0-service \
376 gralloc.default \
377 gralloc.msm8953 \
378 hwcomposer.msm8953 \
Bharath12163282022-06-20 15:10:58 +0530379 libcomposerextn.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530380 libdisplayconfig \
Bharath12163282022-06-20 15:10:58 +0530381 libdisplayconfig.qti \
382 libdrm \
383 libgralloc.qti \
384 liblayerext.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530385 libqdMetaData \
Bharath12163282022-06-20 15:10:58 +0530386 libqdMetaData.system \
387 libqdutils \
388 libsmomo.qti \
389 libsmomoconfig.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530390 libvulkan \
Bharath12163282022-06-20 15:10:58 +0530391 memtrack.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530392 vendor.qti.hardware.display.composer@3.0
393
394
395# Vendor Display
396# Disable skip validate
397PRODUCT_PROPERTY_OVERRIDES += \
398 vendor.display.disable_skip_validate=1
399
400
401# Display Properties
402PRODUCT_AAPT_CONFIG := normal
403PRODUCT_AAPT_PREF_CONFIG := xxhdpi
404
405
406# DRM
407PRODUCT_PACKAGES += \
408 android.hardware.drm@1.3-service.clearkey
409
410
Pradeep Chenthatib4c3c102021-10-19 20:07:52 +0530411# Elabel
412PRODUCT_PACKAGES += \
413 eLabel.html.gz \
414 eLabel1.png \
415 eLabel2.png \
416 FAIRPHONE.html.gz \
417 FAIRPHONE.png
418
419
Bharath756d7dd2021-08-07 23:53:55 +0530420# Enable vndk-sp Libraries
421PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
422TARGET_USES_MKE2FS := true
423
424PRODUCT_PACKAGES += \
425 vndk_package
426
427
428# Encryption
429PRODUCT_PROPERTY_OVERRIDES += ro.crypto.allow_encrypt_override=true
430PRODUCT_PROPERTY_OVERRIDES += ro.crypto.volume.filenames_mode=aes-256-cts
431
432
Bharath12163282022-06-20 15:10:58 +0530433# E2fsck
434PRODUCT_PACKAGES += \
435 e2fsck
436
Bharath44ee36f2022-05-02 15:37:19 +0530437# ExFAT binaries
438PRODUCT_COPY_FILES += \
439 $(FP_PATH)/tuxera/exfatck:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatck \
440 $(FP_PATH)/tuxera/exfatdebug:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatdebug \
441 $(FP_PATH)/tuxera/exfatlabel:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatlabel \
442 $(FP_PATH)/tuxera/exfatvsn:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatvsn \
443 $(FP_PATH)/tuxera/mkexfat:$(TARGET_COPY_OUT_SYSTEM)/bin/mkexfat
444
445
Bharathe341d1d2022-04-06 09:49:27 +0530446# Fastbootd
447PRODUCT_PACKAGES += fastbootd
448
449
Bharath756d7dd2021-08-07 23:53:55 +0530450# FBE support
451PRODUCT_COPY_FILES += \
452 $(FP_PATH)/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh
453
454
Bharath1710e062021-08-20 11:30:47 +0530455# Feature flags and permissions
456PRODUCT_COPY_FILES += \
457 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
458 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
459 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
460 frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
461 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
462 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
463 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
464 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
465 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 +0530466 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 +0530467 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
468 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
469 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 +0530470 frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
471 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
472 frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
473 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 +0530474 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 +0530475 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
476
Bharath1dcb6512021-08-20 00:41:08 +0530477# Fingerprint
478PRODUCT_PACKAGES += \
479 android.hardware.biometrics.fingerprint@2.1 \
480 android.hardware.biometrics.fingerprint@2.1-service \
481 elan_device.rc \
482 fingerprint.default
483
484# Fingerprint files
485include $(FP_PATH)/elan_lib/fingerprint/elan_lib.mk
486
487# Fingerprint feature flag
488PRODUCT_COPY_FILES += \
489 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
490
491
Bharath756d7dd2021-08-07 23:53:55 +0530492# Framework Detect
493PRODUCT_PACKAGES += \
494 libqti_vndfwk_detect \
495 libqti_vndfwk_detect.vendor \
496 libvndfwk_detect_jni.qti \
497 libvndfwk_detect_jni.qti.vendor \
498 vndservicemanager
499
Bharath12163282022-06-20 15:10:58 +0530500# FRP
501PRODUCT_PROPERTY_OVERRIDES += ro.frp.pst=/dev/block/bootdevice/by-name/config
502
Bharath756d7dd2021-08-07 23:53:55 +0530503
504# HIDL
505PRODUCT_PACKAGES += \
506 android.hidl.base@1.0 \
507 libhidltransport \
508 libhidltransport.vendor \
509 libhwbinder \
510 libhwbinder.vendor
511
512
Bharath1710e062021-08-20 11:30:47 +0530513# GPS
514BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
Luca Weissa8a60262022-02-28 15:00:31 +0100515LOC_HIDL_VERSION := 4.0
Bharath1710e062021-08-20 11:30:47 +0530516
517PRODUCT_PACKAGES += \
Bharath70cf2ae2022-02-14 12:13:50 +0530518 android.hardware.gnss@2.1-impl-qti \
Bharath1710e062021-08-20 11:30:47 +0530519 android.hardware.gnss@2.1-service-qti \
520 libbatching \
521 libgeofencing \
522 libgnss \
523 libjson \
524 libwifi-hal-ctrl \
525 libgps.utils
526
527PRODUCT_PACKAGES += \
528 flp.conf \
529 gps.conf
530
531# gps/location secuity configuration file
532PRODUCT_COPY_FILES += \
533 $(FP_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
534
535# Permissions
536PRODUCT_COPY_FILES += \
537 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
538
Bharath12163282022-06-20 15:10:58 +0530539PRODUCT_PROPERTY_OVERRIDES += \
540 persist.backup.ntpServer=0.pool.ntp.org
541
Bharath1710e062021-08-20 11:30:47 +0530542
Bharath756d7dd2021-08-07 23:53:55 +0530543# Health
544PRODUCT_PACKAGES += \
545 android.hardware.health@2.1-impl \
546 android.hardware.health@2.1-impl.recovery \
547 android.hardware.health@2.1-service
548
549# IMS
550PRODUCT_PACKAGES += \
551 ims-ext-common \
552 ims_ext_common.xml \
553 ConfURIDialer
554
Bharath12163282022-06-20 15:10:58 +0530555
556# Init
557PRODUCT_PACKAGES += \
558 fstab.qcom \
559 init.class_main.sh \
560 init.crda.sh \
561 init.mdm.sh \
562 init.qcom.class_core.sh \
563 init.qcom.coex.sh \
564 init.qcom.early_boot.sh \
565 init.qcom.efs.sync.sh \
566 init.qcom.factory.rc \
567 init.qcom.post_boot.sh \
568 init.qcom.rc \
569 init.qcom.sdio.sh \
570 init.qcom.sensors.sh \
571 init.qcom.sh \
572 init.qcom.usb.rc \
573 init.qcom.usb.sh \
574 init.recovery.qcom.rc \
575 init.target.rc \
576 init.veth_ipa_config.sh \
577 qca6234-service.sh \
578 ueventd.qcom.rc \
579 vold.fstab
580
581#intialise PRODUCT_PACKAGES_DEBUG list for debug modules
582PRODUCT_PACKAGES_DEBUG := init.qcom.testscripts.sh
583
584#Add init.qcom.test.rc to PRODUCT_PACKAGES_DEBUG list
585PRODUCT_PACKAGES_DEBUG += init.qcom.test.rc
586PRODUCT_PACKAGES_DEBUG += init.qcom.debug.sh
587
588ifneq ($(strip $(TARGET_BUILD_VARIANT)),user)
589PRODUCT_COPY_FILES += \
590 device/qcom/common/rootdir/etc/init.qcom.testscripts.sh:$(TARGET_COPY_OUT_PRODUCT)/etc/init.qcom.testscripts.sh
591endif
592
593PRODUCT_PACKAGES_DEBUG += \
594 init.qcom.debug.sh \
595 init.qcom.debug-sdm660.sh \
596 init.qcom.debug-sdm710.sh \
597 init.qti.debug-msmnile-apps.sh \
598 init.qti.debug-msmnile-modem.sh \
599 init.qti.debug-msmnile-slpi.sh \
600 init.qti.debug-talos.sh \
601 init.qti.debug-msmnile.sh \
602 init.qti.debug-kona.sh \
603 init.qti.debug-lito.sh \
604 init.qti.debug-trinket.sh \
605 init.qti.debug-atoll.sh \
606 init.qti.debug-lagoon.sh \
607 init.qti.debug-bengal.sh
608
609
610# IP and iptables
611PRODUCT_PACKAGES += \
612 ip \
613 libiprouteutil \
614 iptables \
615 ip-up-vpn \
616 libext
617
618
Bharath756d7dd2021-08-07 23:53:55 +0530619# IPACM
620PRODUCT_PACKAGES += \
621 ipacm \
622 IPACM_cfg.xml \
623 libipanat \
624 liboffloadhal \
625 libqsap_sdk
626
627# IRQ
628PRODUCT_COPY_FILES += \
629 $(FP_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
630 $(FP_PATH)/configs/msm_irqbalance_little_big.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance_little_big.conf
631
632
633# Kernel modules
634# Kernel modules install path
635KERNEL_MODULES_INSTALL := dlkm
636KERNEL_MODULES_OUT := out/target/product/$(PRODUCT_NAME)/$(KERNEL_MODULES_INSTALL)/lib/modules
Bharath12163282022-06-20 15:10:58 +0530637KERNEL_TO_BUILD_ROOT_OFFSET := ../../
638
639
640# Key layouts
641PRODUCT_PACKAGES += \
642 ft5x06_ts.kl \
643 gpio-keys.kl \
644 synaptics_dsx.kl \
645 synaptics_dsxv26.kl \
646 synaptics_rmi4_i2c.kl
Bharath756d7dd2021-08-07 23:53:55 +0530647
648
649# LED packages
650PRODUCT_PACKAGES += \
651 android.hardware.light@2.0-impl \
652 android.hardware.light@2.0-service \
653 lights.msm8953
654
655
656# Media / StagefrightCodec 2.0
657PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
658
Bharathe3615be2021-08-18 22:25:42 +0530659# Enable features in video HAL that can compile only on this platform
Bharath12163282022-06-20 15:10:58 +0530660MSM_VIDC_TARGET_LIST := msm8953
Bharathe3615be2021-08-18 22:25:42 +0530661TARGET_USES_MEDIA_EXTENSIONS := true
662
663
664# media_profiles and media_codecs xmls for msm8953
665PRODUCT_COPY_FILES += \
666 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles.xml \
667 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \
668 $(FP_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
669 $(FP_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
670 $(FP_PATH)/media/media_codecs_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_8953.xml \
671 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
672 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_8953.xml \
673 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles_8953_v1.xml \
674 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_8953_v1.xml \
675 $(FP_PATH)/media/media_codecs_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v1.xml \
676 $(FP_PATH)/media/media_codecs_performance_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v1.xml \
677 $(FP_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
Bharath12163282022-06-20 15:10:58 +0530678 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
679 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml
680
681PRODUCT_COPY_FILES += \
682 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
683 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
684 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
685 frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml \
686 frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \
687 frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
688 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 +0530689
Bharath756d7dd2021-08-07 23:53:55 +0530690
691# NFC
Bharath1710e062021-08-20 11:30:47 +0530692PRODUCT_PACKAGES += \
693 NfcNci \
694 Tag \
695 com.android.nfc_extras \
696 com.nxp.nfc.nq \
697 com.nxp.nfc.nq.xml \
698 libnqnfc-nci \
699 libnqnfc_nci_jni \
700 nfc_nci.nqx.default.hw \
701 vendor.nxp.hardware.nfc@2.0-service
702
703# Permissions
704PRODUCT_COPY_FILES += \
705 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
706 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
707 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
708 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
709 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
710 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
711 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
712 vendor/nxp/opensource/halimpl/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
713 vendor/nxp/opensource/halimpl/SN100x/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci_SN100.conf
Bharath756d7dd2021-08-07 23:53:55 +0530714
715
716# OMX
717PRODUCT_PACKAGES += \
718 libavservices_minijail.vendor \
719 libc2dcolorconvert \
720 libOmxAacEnc \
721 libOmxAmrEnc \
722 libOmxCore \
723 libOmxEvrcEnc \
724 libOmxQcelp13Enc \
725 libOmxVdec \
726 libOmxVenc \
727 libqomx_core \
728 libaacwrapper \
729 libmm-omxcore \
730 libstagefrighthw \
731 libstagefright_softomx.vendor
732
733
734#
735# system prop for opengles version
736#
737# 196608 is decimal for 0x30000 to report major/minor versions as 3/0
738# 196609 is decimal for 0x30001 to report major/minor versions as 3/1
739# 196610 is decimal for 0x30002 to report major/minor versions as 3/2
740PRODUCT_PROPERTY_OVERRIDES += \
741 ro.opengles.version=196610
742
743
Bharath12163282022-06-20 15:10:58 +0530744# AOSP Packages
745PRODUCT_PACKAGES += \
746 DeskClock \
747 Calendar \
748 CalendarProvider \
749 Camera2 \
750 CertInstaller \
751 Gallery2 \
752 LatinIME \
753 Launcher3 \
754 LiveWallpapersPicker \
755 Music \
756 netutils-wrapper-1.0 \
757 Provision \
758 Protips \
759 QuickSearchBox \
760 Settings \
761 Stk \
762 SystemUI \
763
764
Bharath756d7dd2021-08-07 23:53:55 +0530765# Perf
766PRODUCT_COPY_FILES += \
767 $(FP_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
768
Bharath12163282022-06-20 15:10:58 +0530769PRODUCT_PROPERTY_OVERRIDES += \
770 persist.vendor.qcomsysd.enabled=1 \
771 ro.vendor.extension_library=libqti-perfd-client.so \
772 sys.vendor.shutdown.waittime=500
773
Bharath756d7dd2021-08-07 23:53:55 +0530774
775# Power
776PRODUCT_PACKAGES += \
777 android.hardware.power@1.0-impl \
778 android.hardware.power@1.0-service \
779 power.qcom
780
781
Bharath756d7dd2021-08-07 23:53:55 +0530782# privapp-permissions whitelisting
783PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
784
785
786# Protobuf
787PRODUCT_PACKAGES += \
788 libprotobuf-cpp-full \
789 libprotobuf-cpp-full-vendorcompat \
790 libprotobuf-cpp-lite-vendorcompat
791
792
Bharath12163282022-06-20 15:10:58 +0530793# include additional QCOM build utilities
794-include device/qcom/common/utils.mk
795
Bharath756d7dd2021-08-07 23:53:55 +0530796# RIL properties
797PRODUCT_PROPERTY_OVERRIDES += rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
798PRODUCT_PROPERTY_OVERRIDES += vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
799#vendor prop to disable advanced network scanning
800PRODUCT_PROPERTY_OVERRIDES += \
801 persist.vendor.radio.enableadvancedscan=false
802
Bharath12163282022-06-20 15:10:58 +0530803# Enable Dual SIM by default
804PRODUCT_PROPERTY_OVERRIDES += persist.radio.multisim.config=dsds
805
806PRODUCT_PROPERTY_OVERRIDES += \
807 persist.vendor.radio.apm_sim_not_pwdn=1 \
808 persist.vendor.radio.sib16_support=1 \
809 persist.vendor.radio.custom_ecc=1 \
810 persist.vendor.radio.rat_on=combine \
811 persist.vendor.radio.procedure_bytes=SKIP
812
Bharath756d7dd2021-08-07 23:53:55 +0530813
814# RenderScript
815PRODUCT_PACKAGES += \
816 android.hardware.renderscript@1.0-impl
817
818
819# SDCard
820# default is nosdcard, S/W button enabled in resource
821PRODUCT_CHARACTERISTICS := nosdcard
822
823
824# Seccomp
825PRODUCT_COPY_FILES += \
826 $(FP_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
827 $(FP_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
828
829
Bharath1710e062021-08-20 11:30:47 +0530830# Secure Element
831PRODUCT_PACKAGES += \
832 android.hardware.secure_element@1.2
833
834
Bharath756d7dd2021-08-07 23:53:55 +0530835# System helper
836PRODUCT_PACKAGES += \
837 vendor.qti.hardware.systemhelper@1.0
838
839
840# Service tracker
841PRODUCT_PACKAGES += \
842 vendor.qti.hardware.servicetracker@1.2.vendor
843
844
Bharatha60665d2021-08-19 09:37:22 +0530845# Sensors
846PRODUCT_PACKAGES += \
847 sensors.FP3 \
848 android.hardware.sensors@1.0-impl \
849 android.hardware.sensors@1.0-service \
850 libsensorndkbridge
851
852# Sensor HAL conf file
853PRODUCT_COPY_FILES += \
854 $(FP_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
855
856# Feature definition files for msm8953
857PRODUCT_COPY_FILES += \
858 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
859 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
860 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
861 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
862 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
863 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
864 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
865
866
Bharath756d7dd2021-08-07 23:53:55 +0530867# Telephony Permissions
Bharath12163282022-06-20 15:10:58 +0530868# whitelisted app
869PRODUCT_COPY_FILES += \
870 device/qcom/common/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml
871
872PRODUCT_COPY_FILES += \
873 device/qcom/common/privapp-permissions-qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-qti.xml
874
875# Telephony wrappers
876PRODUCT_PACKAGES += \
877 qti-telephony-hidl-wrapper \
878 qti_telephony_hidl_wrapper.xml \
879 qti-telephony-utils \
880 qti_telephony_utils.xml
Bharath756d7dd2021-08-07 23:53:55 +0530881
882
883# Thermal
884PRODUCT_PACKAGES += \
885 android.hardware.thermal@1.0-impl \
886 android.hardware.thermal@1.0-service
887
888
889# Tinyxml
890PRODUCT_PACKAGES += \
891 libtinyxml
892
893# USB
894PRODUCT_PACKAGES += \
895 android.hardware.usb@1.0-service
896
897-include vendor/qcom/opensource/usb/vendor_product.mk
898
899
900# Vendor move
901PRODUCT_VENDOR_MOVE_ENABLED := true
902
903
904# Vibrator
905PRODUCT_PACKAGES += \
906 android.hardware.vibrator@1.0-impl \
Bharath12163282022-06-20 15:10:58 +0530907 android.hardware.vibrator@1.0-service \
908 vendor.qti.hardware.vibrator.service
909
910PRODUCT_COPY_FILES += \
911 vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml
Bharath756d7dd2021-08-07 23:53:55 +0530912
913
Bharathed255712021-08-14 20:37:05 +0530914# WiFi
915# WLAN drivers
916PRODUCT_COPY_FILES += \
917 $(FP_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
918 $(FP_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_wlan_dictionary.dat \
919 $(FP_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin # From Android 10
920
921# Flag to check if wcnss_service is built from source
922TARGET_USE_WCNSS_HAL := false
923
924# If building from source then drop proprietary dependency
925ifeq ($(TARGET_USE_WCNSS_HAL),true)
926TARGET_USES_QCOM_WCNSS_QMI := false
Bharath70cf2ae2022-02-14 12:13:50 +0530927
928PRODUCT_PACKAGES += \
929 libwcnss_qmi \
930 wcnss_service
Bharathed255712021-08-14 20:37:05 +0530931endif
932
933# WiFi HAL
934PRODUCT_PACKAGES += \
935 android.hardware.wifi@1.0-service
936
Bharath12163282022-06-20 15:10:58 +0530937# WLAN DLKM
938PRODUCT_PACKAGES += \
939 pronto_wlan.ko
940
Bharathed255712021-08-14 20:37:05 +0530941# WiFi Components
942PRODUCT_PACKAGES += \
943 hostapd \
944 hostapd.accept \
945 hostapd.deny \
946 hostapd_cli \
947 hostapd_default.conf \
948 libnl \
949 libqsap_sdk \
Bharathed255712021-08-14 20:37:05 +0530950 libwifi-hal-qcom \
951 libwpa_client \
952 p2p_supplicant_overlay.conf \
953 vendor.qti.hardware.wifi.supplicant@1.0.vendor \
Bharathed255712021-08-14 20:37:05 +0530954 wificond \
955 wpa_cli \
956 wpa_supplicant.conf \
957 wpa_supplicant \
958 wpa_supplicant_overlay.conf \
959 WifiOverlay \
960 TetheringConfigOverlay
961
962
Bharath12163282022-06-20 15:10:58 +0530963# Zlib
964PRODUCT_HOST_PACKAGES += minigzip
965
966
967#soong namespace for qssi vs vendor differentiation
968SOONG_CONFIG_NAMESPACES += qssi_vs_vendor
969SOONG_CONFIG_qssi_vs_vendor += qssi_or_vendor
970SOONG_CONFIG_qssi_vs_vendor_qssi_or_vendor := vendor
971
972SOONG_CONFIG_NAMESPACES += aosp_vs_qva
973SOONG_CONFIG_aosp_vs_qva += aosp_or_qva
974ifeq ($(TARGET_FWK_SUPPORTS_FULL_VALUEADDS),true)
975SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := qva
976else
977SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := aosp
978endif
979
980SOONG_CONFIG_NAMESPACES += qtidisplaycommonsys
981# Soong Keys
982SOONG_CONFIG_qtidisplaycommonsys := displayconfig_enabled
983# Soong Values
984SOONG_CONFIG_qtidisplaycommonsys_displayconfig_enabled := true
985
986
Bharath756d7dd2021-08-07 23:53:55 +0530987# Call the proprietary setup
Bharatha3a85a72022-05-23 17:50:24 +0530988ifeq ($(FP3_PROPRIETARY_PATH),)
989FP3_PROPRIETARY_PATH := device/fairphone/fp3-proprietary
990$(warning Using default blobs path: $(FP3_PROPRIETARY_PATH).)
991endif
992
Francesco Salvatore03117482019-02-28 16:39:11 +0100993DEVICE_BLOB_VERSION := 4.A.0013.3
994
995GET_BLOBS_CMD = vendor/fairphone/tools/bin/get_blobs.py --device FP3 --build-id $(DEVICE_BLOB_VERSION) --blobs-dir $(FP3_PROPRIETARY_PATH)
996
997# Check the presence of proprietary blobs
998ifeq ("$(wildcard $(FP3_PROPRIETARY_PATH)/device-vendor.mk)","")
999define BLOBS_INSTRUCTION
1000Cannot find FP3 binary blobs.
1001Please run
1002 $(GET_BLOBS_CMD)
1003and accept the terms of agreement.
1004endef
1005$(error $(BLOBS_INSTRUCTION))
1006endif
1007
Bharath756d7dd2021-08-07 23:53:55 +05301008# Call this in the end so that flags if required can be utilized.
Bharatha3a85a72022-05-23 17:50:24 +05301009$(call inherit-product, $(FP3_PROPRIETARY_PATH)/device-vendor.mk)
1010
Bharath12163282022-06-20 15:10:58 +05301011# Build some more display components to vendor
1012$(call inherit-product, vendor/qcom/opensource/commonsys-intf/display/config/display-interfaces-product.mk)
Bharath756d7dd2021-08-07 23:53:55 +05301013###################################################################################