blob: d518cefe6eb2ac00d91f0812a632ad3ba77238b8 [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 \
474 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
475
Bharath1dcb6512021-08-20 00:41:08 +0530476# Fingerprint
477PRODUCT_PACKAGES += \
478 android.hardware.biometrics.fingerprint@2.1 \
479 android.hardware.biometrics.fingerprint@2.1-service \
480 elan_device.rc \
481 fingerprint.default
482
483# Fingerprint files
484include $(FP_PATH)/elan_lib/fingerprint/elan_lib.mk
485
486# Fingerprint feature flag
487PRODUCT_COPY_FILES += \
488 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
489
490
Bharath756d7dd2021-08-07 23:53:55 +0530491# Framework Detect
492PRODUCT_PACKAGES += \
493 libqti_vndfwk_detect \
494 libqti_vndfwk_detect.vendor \
495 libvndfwk_detect_jni.qti \
496 libvndfwk_detect_jni.qti.vendor \
497 vndservicemanager
498
Bharath12163282022-06-20 15:10:58 +0530499# FRP
500PRODUCT_PROPERTY_OVERRIDES += ro.frp.pst=/dev/block/bootdevice/by-name/config
501
Bharath756d7dd2021-08-07 23:53:55 +0530502
503# HIDL
504PRODUCT_PACKAGES += \
505 android.hidl.base@1.0 \
506 libhidltransport \
507 libhidltransport.vendor \
508 libhwbinder \
509 libhwbinder.vendor
510
511
Bharath1710e062021-08-20 11:30:47 +0530512# GPS
513BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
Luca Weissa8a60262022-02-28 15:00:31 +0100514LOC_HIDL_VERSION := 4.0
Bharath1710e062021-08-20 11:30:47 +0530515
516PRODUCT_PACKAGES += \
Bharath70cf2ae2022-02-14 12:13:50 +0530517 android.hardware.gnss@2.1-impl-qti \
Bharath1710e062021-08-20 11:30:47 +0530518 android.hardware.gnss@2.1-service-qti \
519 libbatching \
520 libgeofencing \
521 libgnss \
522 libjson \
523 libwifi-hal-ctrl \
524 libgps.utils
525
526PRODUCT_PACKAGES += \
527 flp.conf \
528 gps.conf
529
530# gps/location secuity configuration file
531PRODUCT_COPY_FILES += \
532 $(FP_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
533
534# Permissions
535PRODUCT_COPY_FILES += \
536 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
537
Bharath12163282022-06-20 15:10:58 +0530538PRODUCT_PROPERTY_OVERRIDES += \
539 persist.backup.ntpServer=0.pool.ntp.org
540
Bharath1710e062021-08-20 11:30:47 +0530541
Bharath756d7dd2021-08-07 23:53:55 +0530542# Health
543PRODUCT_PACKAGES += \
544 android.hardware.health@2.1-impl \
545 android.hardware.health@2.1-impl.recovery \
546 android.hardware.health@2.1-service
547
548# IMS
549PRODUCT_PACKAGES += \
550 ims-ext-common \
551 ims_ext_common.xml \
552 ConfURIDialer
553
Bharath12163282022-06-20 15:10:58 +0530554
555# Init
556PRODUCT_PACKAGES += \
557 fstab.qcom \
558 init.class_main.sh \
559 init.crda.sh \
560 init.mdm.sh \
561 init.qcom.class_core.sh \
562 init.qcom.coex.sh \
563 init.qcom.early_boot.sh \
564 init.qcom.efs.sync.sh \
565 init.qcom.factory.rc \
566 init.qcom.post_boot.sh \
567 init.qcom.rc \
568 init.qcom.sdio.sh \
569 init.qcom.sensors.sh \
570 init.qcom.sh \
571 init.qcom.usb.rc \
572 init.qcom.usb.sh \
573 init.recovery.qcom.rc \
574 init.target.rc \
575 init.veth_ipa_config.sh \
576 qca6234-service.sh \
577 ueventd.qcom.rc \
578 vold.fstab
579
580#intialise PRODUCT_PACKAGES_DEBUG list for debug modules
581PRODUCT_PACKAGES_DEBUG := init.qcom.testscripts.sh
582
583#Add init.qcom.test.rc to PRODUCT_PACKAGES_DEBUG list
584PRODUCT_PACKAGES_DEBUG += init.qcom.test.rc
585PRODUCT_PACKAGES_DEBUG += init.qcom.debug.sh
586
587ifneq ($(strip $(TARGET_BUILD_VARIANT)),user)
588PRODUCT_COPY_FILES += \
589 device/qcom/common/rootdir/etc/init.qcom.testscripts.sh:$(TARGET_COPY_OUT_PRODUCT)/etc/init.qcom.testscripts.sh
590endif
591
592PRODUCT_PACKAGES_DEBUG += \
593 init.qcom.debug.sh \
594 init.qcom.debug-sdm660.sh \
595 init.qcom.debug-sdm710.sh \
596 init.qti.debug-msmnile-apps.sh \
597 init.qti.debug-msmnile-modem.sh \
598 init.qti.debug-msmnile-slpi.sh \
599 init.qti.debug-talos.sh \
600 init.qti.debug-msmnile.sh \
601 init.qti.debug-kona.sh \
602 init.qti.debug-lito.sh \
603 init.qti.debug-trinket.sh \
604 init.qti.debug-atoll.sh \
605 init.qti.debug-lagoon.sh \
606 init.qti.debug-bengal.sh
607
608
609# IP and iptables
610PRODUCT_PACKAGES += \
611 ip \
612 libiprouteutil \
613 iptables \
614 ip-up-vpn \
615 libext
616
617
Bharath756d7dd2021-08-07 23:53:55 +0530618# IPACM
619PRODUCT_PACKAGES += \
620 ipacm \
621 IPACM_cfg.xml \
622 libipanat \
623 liboffloadhal \
624 libqsap_sdk
625
626# IRQ
627PRODUCT_COPY_FILES += \
628 $(FP_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
629 $(FP_PATH)/configs/msm_irqbalance_little_big.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance_little_big.conf
630
631
632# Kernel modules
633# Kernel modules install path
634KERNEL_MODULES_INSTALL := dlkm
635KERNEL_MODULES_OUT := out/target/product/$(PRODUCT_NAME)/$(KERNEL_MODULES_INSTALL)/lib/modules
Bharath12163282022-06-20 15:10:58 +0530636KERNEL_TO_BUILD_ROOT_OFFSET := ../../
637
638
639# Key layouts
640PRODUCT_PACKAGES += \
641 ft5x06_ts.kl \
642 gpio-keys.kl \
643 synaptics_dsx.kl \
644 synaptics_dsxv26.kl \
645 synaptics_rmi4_i2c.kl
Bharath756d7dd2021-08-07 23:53:55 +0530646
647
648# LED packages
649PRODUCT_PACKAGES += \
650 android.hardware.light@2.0-impl \
651 android.hardware.light@2.0-service \
652 lights.msm8953
653
654
655# Media / StagefrightCodec 2.0
656PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
657
Bharathe3615be2021-08-18 22:25:42 +0530658# Enable features in video HAL that can compile only on this platform
Bharath12163282022-06-20 15:10:58 +0530659MSM_VIDC_TARGET_LIST := msm8953
Bharathe3615be2021-08-18 22:25:42 +0530660TARGET_USES_MEDIA_EXTENSIONS := true
661
662
663# media_profiles and media_codecs xmls for msm8953
664PRODUCT_COPY_FILES += \
665 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles.xml \
666 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \
667 $(FP_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
668 $(FP_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
669 $(FP_PATH)/media/media_codecs_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_8953.xml \
670 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
671 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_8953.xml \
672 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles_8953_v1.xml \
673 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_8953_v1.xml \
674 $(FP_PATH)/media/media_codecs_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v1.xml \
675 $(FP_PATH)/media/media_codecs_performance_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v1.xml \
676 $(FP_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
Bharath12163282022-06-20 15:10:58 +0530677 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
678 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml
679
680PRODUCT_COPY_FILES += \
681 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
682 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
683 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
684 frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml \
685 frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \
686 frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
687 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 +0530688
Bharath756d7dd2021-08-07 23:53:55 +0530689
690# NFC
Bharath1710e062021-08-20 11:30:47 +0530691PRODUCT_PACKAGES += \
692 NfcNci \
693 Tag \
694 com.android.nfc_extras \
695 com.nxp.nfc.nq \
696 com.nxp.nfc.nq.xml \
697 libnqnfc-nci \
698 libnqnfc_nci_jni \
699 nfc_nci.nqx.default.hw \
700 vendor.nxp.hardware.nfc@2.0-service
701
702# Permissions
703PRODUCT_COPY_FILES += \
704 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
705 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
706 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
707 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
708 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
709 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
710 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
711 vendor/nxp/opensource/halimpl/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
712 vendor/nxp/opensource/halimpl/SN100x/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci_SN100.conf
Bharath756d7dd2021-08-07 23:53:55 +0530713
714
715# OMX
716PRODUCT_PACKAGES += \
717 libavservices_minijail.vendor \
718 libc2dcolorconvert \
719 libOmxAacEnc \
720 libOmxAmrEnc \
721 libOmxCore \
722 libOmxEvrcEnc \
723 libOmxQcelp13Enc \
724 libOmxVdec \
725 libOmxVenc \
726 libqomx_core \
727 libaacwrapper \
728 libmm-omxcore \
729 libstagefrighthw \
730 libstagefright_softomx.vendor
731
732
733#
734# system prop for opengles version
735#
736# 196608 is decimal for 0x30000 to report major/minor versions as 3/0
737# 196609 is decimal for 0x30001 to report major/minor versions as 3/1
738# 196610 is decimal for 0x30002 to report major/minor versions as 3/2
739PRODUCT_PROPERTY_OVERRIDES += \
740 ro.opengles.version=196610
741
742
Bharath12163282022-06-20 15:10:58 +0530743# AOSP Packages
744PRODUCT_PACKAGES += \
745 DeskClock \
746 Calendar \
747 CalendarProvider \
748 Camera2 \
749 CertInstaller \
750 Gallery2 \
751 LatinIME \
752 Launcher3 \
753 LiveWallpapersPicker \
754 Music \
755 netutils-wrapper-1.0 \
756 Provision \
757 Protips \
758 QuickSearchBox \
759 Settings \
760 Stk \
761 SystemUI \
762
763
Bharath756d7dd2021-08-07 23:53:55 +0530764# Perf
765PRODUCT_COPY_FILES += \
766 $(FP_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
767
Bharath12163282022-06-20 15:10:58 +0530768PRODUCT_PROPERTY_OVERRIDES += \
769 persist.vendor.qcomsysd.enabled=1 \
770 ro.vendor.extension_library=libqti-perfd-client.so \
771 sys.vendor.shutdown.waittime=500
772
Bharath756d7dd2021-08-07 23:53:55 +0530773
774# Power
775PRODUCT_PACKAGES += \
776 android.hardware.power@1.0-impl \
777 android.hardware.power@1.0-service \
778 power.qcom
779
780
Bharath756d7dd2021-08-07 23:53:55 +0530781# privapp-permissions whitelisting
782PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
783
784
785# Protobuf
786PRODUCT_PACKAGES += \
787 libprotobuf-cpp-full \
788 libprotobuf-cpp-full-vendorcompat \
789 libprotobuf-cpp-lite-vendorcompat
790
791
Bharath12163282022-06-20 15:10:58 +0530792# include additional QCOM build utilities
793-include device/qcom/common/utils.mk
794
Bharath756d7dd2021-08-07 23:53:55 +0530795# RIL properties
796PRODUCT_PROPERTY_OVERRIDES += rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
797PRODUCT_PROPERTY_OVERRIDES += vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
798#vendor prop to disable advanced network scanning
799PRODUCT_PROPERTY_OVERRIDES += \
800 persist.vendor.radio.enableadvancedscan=false
801
Bharath12163282022-06-20 15:10:58 +0530802# Enable Dual SIM by default
803PRODUCT_PROPERTY_OVERRIDES += persist.radio.multisim.config=dsds
804
805PRODUCT_PROPERTY_OVERRIDES += \
806 persist.vendor.radio.apm_sim_not_pwdn=1 \
807 persist.vendor.radio.sib16_support=1 \
808 persist.vendor.radio.custom_ecc=1 \
809 persist.vendor.radio.rat_on=combine \
810 persist.vendor.radio.procedure_bytes=SKIP
811
Bharath756d7dd2021-08-07 23:53:55 +0530812
813# RenderScript
814PRODUCT_PACKAGES += \
815 android.hardware.renderscript@1.0-impl
816
817
818# SDCard
819# default is nosdcard, S/W button enabled in resource
820PRODUCT_CHARACTERISTICS := nosdcard
821
822
823# Seccomp
824PRODUCT_COPY_FILES += \
825 $(FP_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
826 $(FP_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
827
828
Bharath1710e062021-08-20 11:30:47 +0530829# Secure Element
830PRODUCT_PACKAGES += \
831 android.hardware.secure_element@1.2
832
833
Bharath756d7dd2021-08-07 23:53:55 +0530834# System helper
835PRODUCT_PACKAGES += \
836 vendor.qti.hardware.systemhelper@1.0
837
838
839# Service tracker
840PRODUCT_PACKAGES += \
841 vendor.qti.hardware.servicetracker@1.2.vendor
842
843
Bharatha60665d2021-08-19 09:37:22 +0530844# Sensors
845PRODUCT_PACKAGES += \
846 sensors.FP3 \
847 android.hardware.sensors@1.0-impl \
848 android.hardware.sensors@1.0-service \
849 libsensorndkbridge
850
851# Sensor HAL conf file
852PRODUCT_COPY_FILES += \
853 $(FP_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
854
855# Feature definition files for msm8953
856PRODUCT_COPY_FILES += \
857 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
858 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
859 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
860 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
861 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
862 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
863 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
864
865
Bharath756d7dd2021-08-07 23:53:55 +0530866# Telephony Permissions
Bharath12163282022-06-20 15:10:58 +0530867# whitelisted app
868PRODUCT_COPY_FILES += \
869 device/qcom/common/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml
870
871PRODUCT_COPY_FILES += \
872 device/qcom/common/privapp-permissions-qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-qti.xml
873
874# Telephony wrappers
875PRODUCT_PACKAGES += \
876 qti-telephony-hidl-wrapper \
877 qti_telephony_hidl_wrapper.xml \
878 qti-telephony-utils \
879 qti_telephony_utils.xml
Bharath756d7dd2021-08-07 23:53:55 +0530880
881
882# Thermal
883PRODUCT_PACKAGES += \
884 android.hardware.thermal@1.0-impl \
885 android.hardware.thermal@1.0-service
886
887
888# Tinyxml
889PRODUCT_PACKAGES += \
890 libtinyxml
891
892# USB
893PRODUCT_PACKAGES += \
894 android.hardware.usb@1.0-service
895
896-include vendor/qcom/opensource/usb/vendor_product.mk
897
898
899# Vendor move
900PRODUCT_VENDOR_MOVE_ENABLED := true
901
902
903# Vibrator
904PRODUCT_PACKAGES += \
905 android.hardware.vibrator@1.0-impl \
Bharath12163282022-06-20 15:10:58 +0530906 android.hardware.vibrator@1.0-service \
907 vendor.qti.hardware.vibrator.service
908
909PRODUCT_COPY_FILES += \
910 vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml
Bharath756d7dd2021-08-07 23:53:55 +0530911
912
Bharathed255712021-08-14 20:37:05 +0530913# WiFi
914# WLAN drivers
915PRODUCT_COPY_FILES += \
916 $(FP_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
917 $(FP_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_wlan_dictionary.dat \
918 $(FP_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin # From Android 10
919
920# Flag to check if wcnss_service is built from source
921TARGET_USE_WCNSS_HAL := false
922
923# If building from source then drop proprietary dependency
924ifeq ($(TARGET_USE_WCNSS_HAL),true)
925TARGET_USES_QCOM_WCNSS_QMI := false
Bharath70cf2ae2022-02-14 12:13:50 +0530926
927PRODUCT_PACKAGES += \
928 libwcnss_qmi \
929 wcnss_service
Bharathed255712021-08-14 20:37:05 +0530930endif
931
932# WiFi HAL
933PRODUCT_PACKAGES += \
934 android.hardware.wifi@1.0-service
935
Bharath12163282022-06-20 15:10:58 +0530936# WLAN DLKM
937PRODUCT_PACKAGES += \
938 pronto_wlan.ko
939
Bharathed255712021-08-14 20:37:05 +0530940# WiFi Components
941PRODUCT_PACKAGES += \
942 hostapd \
943 hostapd.accept \
944 hostapd.deny \
945 hostapd_cli \
946 hostapd_default.conf \
947 libnl \
948 libqsap_sdk \
Bharathed255712021-08-14 20:37:05 +0530949 libwifi-hal-qcom \
950 libwpa_client \
951 p2p_supplicant_overlay.conf \
952 vendor.qti.hardware.wifi.supplicant@1.0.vendor \
Bharathed255712021-08-14 20:37:05 +0530953 wificond \
954 wpa_cli \
955 wpa_supplicant.conf \
956 wpa_supplicant \
957 wpa_supplicant_overlay.conf \
958 WifiOverlay \
959 TetheringConfigOverlay
960
961
Bharath12163282022-06-20 15:10:58 +0530962# Zlib
963PRODUCT_HOST_PACKAGES += minigzip
964
965
966#soong namespace for qssi vs vendor differentiation
967SOONG_CONFIG_NAMESPACES += qssi_vs_vendor
968SOONG_CONFIG_qssi_vs_vendor += qssi_or_vendor
969SOONG_CONFIG_qssi_vs_vendor_qssi_or_vendor := vendor
970
971SOONG_CONFIG_NAMESPACES += aosp_vs_qva
972SOONG_CONFIG_aosp_vs_qva += aosp_or_qva
973ifeq ($(TARGET_FWK_SUPPORTS_FULL_VALUEADDS),true)
974SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := qva
975else
976SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := aosp
977endif
978
979SOONG_CONFIG_NAMESPACES += qtidisplaycommonsys
980# Soong Keys
981SOONG_CONFIG_qtidisplaycommonsys := displayconfig_enabled
982# Soong Values
983SOONG_CONFIG_qtidisplaycommonsys_displayconfig_enabled := true
984
985
Bharath756d7dd2021-08-07 23:53:55 +0530986# Call the proprietary setup
987# Call this in the end so that flags if required can be utilized.
988$(call inherit-product, device/fairphone/fp3-proprietary/device-vendor.mk)
989
Bharath12163282022-06-20 15:10:58 +0530990# Build some more display components to vendor
991$(call inherit-product, vendor/qcom/opensource/commonsys-intf/display/config/display-interfaces-product.mk)
Bharath756d7dd2021-08-07 23:53:55 +0530992###################################################################################