blob: 2b015d1654abc6aa3e0f58a20bea06fbe211a481 [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
lindaguo(103996)47226c12020-06-22 17:27:43 +080018# Disable data roaming by default
19PRODUCT_PROPERTY_OVERRIDES += \
20 ro.com.android.dataroaming=false
21
Bharath756d7dd2021-08-07 23:53:55 +053022# Call the vendor setup
23$(call inherit-product-if-exists, vendor/fairphone/fp3-common/device-vendor.mk)
24
25$(call inherit-product, build/make/target/product/product_launched_with_p.mk)
26
27$(call inherit-product, frameworks/native/build/phone-xhdpi-4096-dalvik-heap.mk)
28
Bharath12163282022-06-20 15:10:58 +053029# Inherit generic AOSP content for telephony based 64-bit devices
30$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
31$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk)
Bharath756d7dd2021-08-07 23:53:55 +053032
33PRODUCT_NAME := FP3
34PRODUCT_DEVICE := FP3
35PRODUCT_MODEL := FP3
36PRODUCT_MANUFACTURER := Fairphone
37PRODUCT_BRAND := Fairphone
38
39
40# Allow using custom and expressive names for our Android flavors while in fact
41# targeting the same model with all of them.
Bharath6a7439e2022-02-21 17:35:49 +053042PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_MODEL=FP3 PRODUCT_NAME=FP3 TARGET_PRODUCT=FP3
Bharath756d7dd2021-08-07 23:53:55 +053043
Bharath756d7dd2021-08-07 23:53:55 +053044
Bharathdccdc592022-03-31 12:10:41 +053045TARGET_SYSTEM_PROP := $(FP_PATH)/system.prop
Bharath756d7dd2021-08-07 23:53:55 +053046
Borjan Tchakaloff17a5b5f2018-05-11 11:35:06 +020047# Define the build number based on the product flavour and on the build manifest
48# revision
49ifneq (,$(strip $(PRODUCT_FLAVOR)))
50 _BUILD_MANIFEST_REV := $(shell (git -C $(TOPDIR).repo/manifests rev-parse --short=8 HEAD))
51 BUILD_NUMBER := $(PRODUCT_FLAVOR)-$(_BUILD_MANIFEST_REV)
52 HAS_BUILD_NUMBER := true
53else
54 $(error PRODUCT_FLAVOR must be defined)
55endif
56$(warning Build defined as $(BUILD_ID) ($(BUILD_NUMBER)))
57
Bharath756d7dd2021-08-07 23:53:55 +053058
Luca Weisse7ef1c82022-07-13 13:13:20 +020059# Define SPL for boot & vendor
60BOOT_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
61VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
62
63
Bharath756d7dd2021-08-07 23:53:55 +053064# We don't have the calibration data as this sort of
65# data can only be generated at the factory so don't generate persist.img
66FP3_SKIP_PERSIST_IMG := true
67
Bharath80ba1872021-08-21 11:53:57 +053068
69# Operator specific overlays
70DEVICE_PACKAGE_OVERLAYS += \
71 $(LOCAL_PATH)/overlay-operators
72
Bharath756d7dd2021-08-07 23:53:55 +053073# Overlays
74DEVICE_PACKAGE_OVERLAYS += \
75 $(LOCAL_PATH)/overlay
76
77
78# A/B related defines
79AB_OTA_UPDATER := true
Luca Weissd6c3ca12022-07-13 16:24:08 +020080AB_OTA_PARTITIONS := \
81 aboot \
82 cmnlib64 \
83 cmnlib \
84 devcfg \
85 dsp \
Bharath756d7dd2021-08-07 23:53:55 +053086 dtbo \
Luca Weissd6c3ca12022-07-13 16:24:08 +020087 keymaster \
88 lksecapp \
89 mdtp \
90 modem \
91 rpm \
92 sbl1 \
93 tz \
Bharath756d7dd2021-08-07 23:53:55 +053094 vbmeta \
Luca Weissd6c3ca12022-07-13 16:24:08 +020095 boot \
96 system \
Bharath756d7dd2021-08-07 23:53:55 +053097 vendor
98
99
Bharath756d7dd2021-08-07 23:53:55 +0530100PRODUCT_PACKAGES += \
Bharath756d7dd2021-08-07 23:53:55 +0530101 update_engine_sideload
102
103
Bharath2307d3b2022-01-06 22:23:25 +0530104# APN
105PRODUCT_COPY_FILES += \
106 $(LOCAL_PATH)/apns-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
107
108
Bharath756d7dd2021-08-07 23:53:55 +0530109# AVB
110BOARD_AVB_ENABLE := true
111
112
113# Additional native libraries
114PRODUCT_COPY_FILES += \
115 $(FP_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
116
117
Bharath12163282022-06-20 15:10:58 +0530118# OEM Unlock reporting
119PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
120 ro.oem_unlock_supported=1
121
122
Bharath756d7dd2021-08-07 23:53:55 +0530123# Atrace HAL
124PRODUCT_PACKAGES += \
125 android.hardware.atrace@1.0-service
126
127
128# Audio
Bharath756d7dd2021-08-07 23:53:55 +0530129PRODUCT_PACKAGES += \
130 android.hardware.audio@6.0 \
131 android.hardware.audio.common@6.0 \
132 android.hardware.audio.common@6.0-util \
Bharath70cf2ae2022-02-14 12:13:50 +0530133 android.hardware.audio@6.0-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530134 android.hardware.audio.effect@6.0 \
Bharath70cf2ae2022-02-14 12:13:50 +0530135 android.hardware.audio.effect@6.0-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530136 android.hardware.audio.service \
137 android.hardware.soundtrigger@2.1-impl \
138 audio.a2dp.default \
139 audio.primary.msm8953 \
140 audio.r_submix.default \
141 audio.usb.default \
142 libaacwrapper \
143 libaudio-resampler \
144 libautohal \
145 libqcompostprocbundle \
146 libqcomvisualizer \
147 libqcomvoiceprocessing \
148 libvolumelistener \
149 tinymix
150
151
152AUDIO_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal
153
154# Audio files
155PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530156 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
157 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
158 $(AUDIO_HAL_PATH)/configs/msm8953/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
159 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
160 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku3_tasha.xml \
161 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku4.xml \
162 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tasha.xml \
163 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tashalite.xml \
164 $(AUDIO_HAL_PATH)/configs/msm8953/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
165 $(AUDIO_HAL_PATH)/configs/msm8953/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
166 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
167 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
168 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku3_tasha.xml \
169 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku4.xml \
170 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
171 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \
172 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
173 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9306.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9306.xml \
174 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9330.xml \
175 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \
176 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
177
178
179# Audio config files
180PRODUCT_COPY_FILES += \
181 frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
182 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
183 frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
184 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
185 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
186 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
187
188# Custom config files
189PRODUCT_COPY_FILES += \
190 $(FP_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
191
192
193# Audio firmware files
194PRODUCT_COPY_FILES += \
195 $(FP_PATH)/aw/aw8898_cfg.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/aw8898_cfg.bin \
196 $(FP_PATH)/tas2557_fw/OBO_0617_music.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557_uCDSP.bin \
197 $(FP_PATH)/tas2557_fw/tas2557evm_OBO_0617.ftcfg:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557evm_aacspk_a.ftcfg
198
199
200# Audio Specific device overlays
201DEVICE_PACKAGE_OVERLAYS += $(AUDIO_HAL_PATH)/configs/common/overlay
202
203
204# Audio Specific properties
205# Properties
206-include $(LOCAL_PATH)/audio_properties.mk
207
208
209# Audio Kernel modules
210AUDIO_DLKM := audio_apr.ko
211AUDIO_DLKM += audio_q6_notifier.ko
212AUDIO_DLKM += audio_adsp_loader.ko
213AUDIO_DLKM += audio_q6.ko
214AUDIO_DLKM += audio_usf.ko
215AUDIO_DLKM += audio_pinctrl_wcd.ko
216AUDIO_DLKM += audio_swr.ko
217AUDIO_DLKM += audio_wcd_core.ko
218AUDIO_DLKM += audio_swr_ctrl.ko
219AUDIO_DLKM += audio_wsa881x.ko
220AUDIO_DLKM += audio_wsa881x_analog.ko
221AUDIO_DLKM += audio_platform.ko
222AUDIO_DLKM += audio_cpe_lsm.ko
223AUDIO_DLKM += audio_hdmi.ko
224AUDIO_DLKM += audio_stub.ko
225AUDIO_DLKM += audio_wcd9xxx.ko
226AUDIO_DLKM += audio_mbhc.ko
227AUDIO_DLKM += audio_wcd9335.ko
228AUDIO_DLKM += audio_wcd_cpe.ko
229AUDIO_DLKM += audio_digital_cdc.ko
230AUDIO_DLKM += audio_analog_cdc.ko
231AUDIO_DLKM += audio_native.ko
232AUDIO_DLKM += audio_machine_sdm450.ko
233AUDIO_DLKM += audio_machine_ext_sdm450.ko
234PRODUCT_PACKAGES += $(AUDIO_DLKM)
235
236
Bharath9cdcce22021-12-08 15:43:43 +0530237# Automation/ATS
238PRODUCT_PACKAGES += \
239 automation_setup \
240 automation_adb_setup
241
242
Bharathfe661fb2021-08-16 18:56:32 +0530243# ANT
244PRODUCT_PACKAGES += \
245 AntHalService \
246 antradio_app \
247 com.dsi.ant@1.0 \
Bharath70cf2ae2022-02-14 12:13:50 +0530248 com.dsi.ant@1.0.vendor \
Bharathfe661fb2021-08-16 18:56:32 +0530249 libantradio
250
Bharath756d7dd2021-08-07 23:53:55 +0530251# Bluetooth
Bharathfe661fb2021-08-16 18:56:32 +0530252PRODUCT_PACKAGES += \
Bharathfe661fb2021-08-16 18:56:32 +0530253 audio.bluetooth.default \
254 android.hardware.bluetooth.audio@2.0-impl \
255 android.hardware.bluetooth@1.0 \
256 vendor.qti.hardware.bluetooth_audio@2.0 \
257 vendor.qti.hardware.bluetooth_audio@2.1.vendor \
258 vendor.qti.hardware.btconfigstore@1.0.vendor
259
260# Bluetooth Permissions
261PRODUCT_COPY_FILES += \
262 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
263 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 +0530264
265
Bharath12163282022-06-20 15:10:58 +0530266# Board platforms lists to be used for
267# TARGET_BOARD_PLATFORM specific featurization
268QCOM_BOARD_PLATFORMS += msm8953
269
270
Bharath756d7dd2021-08-07 23:53:55 +0530271# Boot
272PRODUCT_PACKAGES += \
273 android.hardware.boot@1.0-impl \
274 android.hardware.boot@1.0-impl.recovery \
275 android.hardware.boot@1.0-service \
276 bootctrl.msm8953 \
Bharathe341d1d2022-04-06 09:49:27 +0530277 bootctrl.msm8953.recovery \
Bharath756d7dd2021-08-07 23:53:55 +0530278 update_engine \
279 update_engine_client \
280 update_engine_sideload \
281 update_verifier
282
Bharath12163282022-06-20 15:10:58 +0530283# MSM updater library
284PRODUCT_PACKAGES += librecovery_updater_msm
285
286
287# Skip boot jars check
288SKIP_BOOT_JARS_CHECK := true
289
Bharath756d7dd2021-08-07 23:53:55 +0530290
291# Boot animation
292TARGET_SCREEN_HEIGHT := 2160
293TARGET_SCREEN_WIDTH := 1080
294
295
296PRODUCT_COPY_FILES += \
297 vendor/fairphone/media/bootanimation/bootanimation.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip
298
299
300# Camera
Bharathcbfb0a92021-08-19 21:13:50 +0530301PRODUCT_PACKAGES += \
302 android.frameworks.displayservice@1.0.vendor \
303 android.hidl.base@1.0.vendor \
304 android.hardware.camera.device@3.5 \
305 android.hardware.camera.provider@2.4 \
306 android.hardware.camera.provider@2.4-external \
307 android.hardware.camera.provider@2.4-impl \
308 android.hardware.camera.provider@2.4-legacy \
309 android.hardware.camera.provider@2.4-service \
310 android.hardware.camera.provider@2.6 \
311 camera.device@1.0-impl \
312 camera.device@3.5-impl \
313 camera.device@3.6-external-impl \
314 camera.msm8953 \
315 cameraconfig.txt \
316 libcamera2ndk_vendor \
317 libhal_dbg \
318 libjni_burstpmk \
319 libjni_imageutil \
320 libjni_snapcammosaic \
321 libjni_snapcamtinyplanet \
322 libmm-qcamera \
323 libmmcamera_interface \
324 libmmjpeg_interface \
325 libmmlib2d_interface \
326 libqomx_core \
327 libxml2 \
328 mm-qcamera-app \
329 vendor.qti.hardware.camera.device@1.0 \
330 vendor.qti.hardware.camera.device@1.0.vendor
331
332# Fairphone Camera
333PRODUCT_PACKAGES += \
334 FairphoneCamera
335
336# Arcsoft camera libraries
337PRODUCT_PACKAGES += \
338 libarcimageprocess \
339 libarcsoft_aiscenedetection \
340 libarcsoft_hdr_detection \
341 libarcsoft_high_dynamic_range \
342 libarcsoft_low_light_hdr \
343 libarcsoft_low_light_shot \
344 libarcsoft_object_tracking \
345 libarcsoft_panorama_burstcapture \
346 libarcsoft_singlecam_bokeh \
347 libarcsoft_videoautozoom \
348 libarcsoft_videostabs \
349 libmpbase \
350 libmpbase.vendor
351
352# Feature flags for camera
353PRODUCT_COPY_FILES += \
354 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
355 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
356 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
357 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 +0530358
359
360# Component overrides
361# TODO: Check if this is required.
362#PRODUCT_COPY_FILES += \
363 $(FP_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
364
365
Bharath12163282022-06-20 15:10:58 +0530366# Charger
367PRODUCT_PACKAGES += \
368 charger \
369 charger_res_images
370
371
372# Chromium
373PRODUCT_PACKAGES += \
374 libwebviewchromium_loader \
375 libwebviewchromium_plat_support
376
377
378# Curl
379PRODUCT_PACKAGES += \
380 curl \
381 libcurl
382
383
384# Data/rmnetctrl
385PRODUCT_PACKAGES += \
386 librmnetctl
387
leolee75d66582020-10-21 15:26:49 +0800388# IPV4
389PRODUCT_PROPERTY_OVERRIDES += \
390 persist.vendor.data.profile_update=true
391
Bharath12163282022-06-20 15:10:58 +0530392
Bharath756d7dd2021-08-07 23:53:55 +0530393# Display
394PRODUCT_PACKAGES += \
395 android.hardware.graphics.allocator@2.0-impl \
396 android.hardware.graphics.allocator@2.0-service \
397 android.hardware.graphics.composer@2.1-service \
398 android.hardware.graphics.mapper@2.0-impl-2.1 \
399 android.hardware.memtrack@1.0-impl \
400 android.hardware.memtrack@1.0-service \
401 gralloc.default \
402 gralloc.msm8953 \
403 hwcomposer.msm8953 \
Bharath12163282022-06-20 15:10:58 +0530404 libcomposerextn.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530405 libdisplayconfig \
Bharath12163282022-06-20 15:10:58 +0530406 libdisplayconfig.qti \
407 libdrm \
408 libgralloc.qti \
409 liblayerext.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530410 libqdMetaData \
Bharath12163282022-06-20 15:10:58 +0530411 libqdMetaData.system \
412 libqdutils \
413 libsmomo.qti \
414 libsmomoconfig.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530415 libvulkan \
Bharath12163282022-06-20 15:10:58 +0530416 memtrack.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530417 vendor.qti.hardware.display.composer@3.0
418
419
420# Vendor Display
421# Disable skip validate
422PRODUCT_PROPERTY_OVERRIDES += \
423 vendor.display.disable_skip_validate=1
424
425
426# Display Properties
427PRODUCT_AAPT_CONFIG := normal
428PRODUCT_AAPT_PREF_CONFIG := xxhdpi
429
430
431# DRM
432PRODUCT_PACKAGES += \
433 android.hardware.drm@1.3-service.clearkey
434
435
Pradeep Chenthatib4c3c102021-10-19 20:07:52 +0530436# Elabel
437PRODUCT_PACKAGES += \
438 eLabel.html.gz \
439 eLabel1.png \
440 eLabel2.png \
441 FAIRPHONE.html.gz \
442 FAIRPHONE.png
443
444
Bharath756d7dd2021-08-07 23:53:55 +0530445# Enable vndk-sp Libraries
446PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
447TARGET_USES_MKE2FS := true
448
449PRODUCT_PACKAGES += \
450 vndk_package
451
452
453# Encryption
454PRODUCT_PROPERTY_OVERRIDES += ro.crypto.allow_encrypt_override=true
455PRODUCT_PROPERTY_OVERRIDES += ro.crypto.volume.filenames_mode=aes-256-cts
456
457
Bharath12163282022-06-20 15:10:58 +0530458# E2fsck
459PRODUCT_PACKAGES += \
460 e2fsck
461
Bharath44ee36f2022-05-02 15:37:19 +0530462# ExFAT binaries
463PRODUCT_COPY_FILES += \
464 $(FP_PATH)/tuxera/exfatck:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatck \
465 $(FP_PATH)/tuxera/exfatdebug:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatdebug \
466 $(FP_PATH)/tuxera/exfatlabel:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatlabel \
467 $(FP_PATH)/tuxera/exfatvsn:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatvsn \
468 $(FP_PATH)/tuxera/mkexfat:$(TARGET_COPY_OUT_SYSTEM)/bin/mkexfat
469
470
Bharathe341d1d2022-04-06 09:49:27 +0530471# Fastbootd
472PRODUCT_PACKAGES += fastbootd
473
474
Bharath756d7dd2021-08-07 23:53:55 +0530475# FBE support
476PRODUCT_COPY_FILES += \
477 $(FP_PATH)/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh
478
479
Bharath1710e062021-08-20 11:30:47 +0530480# Feature flags and permissions
481PRODUCT_COPY_FILES += \
482 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
483 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
484 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
485 frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
486 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
487 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
488 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
489 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
490 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 +0530491 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 +0530492 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
493 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
494 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 +0530495 frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
496 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
497 frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
498 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 +0530499 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 +0530500 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
501
Bharath1dcb6512021-08-20 00:41:08 +0530502# Fingerprint
503PRODUCT_PACKAGES += \
504 android.hardware.biometrics.fingerprint@2.1 \
505 android.hardware.biometrics.fingerprint@2.1-service \
506 elan_device.rc \
507 fingerprint.default
508
509# Fingerprint files
510include $(FP_PATH)/elan_lib/fingerprint/elan_lib.mk
511
512# Fingerprint feature flag
513PRODUCT_COPY_FILES += \
514 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
515
516
Bharath756d7dd2021-08-07 23:53:55 +0530517# Framework Detect
518PRODUCT_PACKAGES += \
519 libqti_vndfwk_detect \
520 libqti_vndfwk_detect.vendor \
521 libvndfwk_detect_jni.qti \
522 libvndfwk_detect_jni.qti.vendor \
523 vndservicemanager
524
Bharath12163282022-06-20 15:10:58 +0530525# FRP
526PRODUCT_PROPERTY_OVERRIDES += ro.frp.pst=/dev/block/bootdevice/by-name/config
527
Bharath756d7dd2021-08-07 23:53:55 +0530528
529# HIDL
530PRODUCT_PACKAGES += \
531 android.hidl.base@1.0 \
532 libhidltransport \
533 libhidltransport.vendor \
534 libhwbinder \
535 libhwbinder.vendor
536
537
Bharath1710e062021-08-20 11:30:47 +0530538# GPS
539BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
Luca Weissa8a60262022-02-28 15:00:31 +0100540LOC_HIDL_VERSION := 4.0
Bharath1710e062021-08-20 11:30:47 +0530541
542PRODUCT_PACKAGES += \
Bharath70cf2ae2022-02-14 12:13:50 +0530543 android.hardware.gnss@2.1-impl-qti \
Bharath1710e062021-08-20 11:30:47 +0530544 android.hardware.gnss@2.1-service-qti \
545 libbatching \
546 libgeofencing \
547 libgnss \
548 libjson \
549 libwifi-hal-ctrl \
550 libgps.utils
551
552PRODUCT_PACKAGES += \
553 flp.conf \
554 gps.conf
555
556# gps/location secuity configuration file
557PRODUCT_COPY_FILES += \
558 $(FP_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
559
560# Permissions
561PRODUCT_COPY_FILES += \
562 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
563
Bharath12163282022-06-20 15:10:58 +0530564PRODUCT_PROPERTY_OVERRIDES += \
565 persist.backup.ntpServer=0.pool.ntp.org
566
Bharath1710e062021-08-20 11:30:47 +0530567
Bharath756d7dd2021-08-07 23:53:55 +0530568# Health
569PRODUCT_PACKAGES += \
570 android.hardware.health@2.1-impl \
571 android.hardware.health@2.1-impl.recovery \
572 android.hardware.health@2.1-service
573
574# IMS
575PRODUCT_PACKAGES += \
576 ims-ext-common \
577 ims_ext_common.xml \
578 ConfURIDialer
579
Bharath12163282022-06-20 15:10:58 +0530580
581# Init
582PRODUCT_PACKAGES += \
583 fstab.qcom \
584 init.class_main.sh \
585 init.crda.sh \
586 init.mdm.sh \
587 init.qcom.class_core.sh \
588 init.qcom.coex.sh \
589 init.qcom.early_boot.sh \
590 init.qcom.efs.sync.sh \
591 init.qcom.factory.rc \
592 init.qcom.post_boot.sh \
593 init.qcom.rc \
594 init.qcom.sdio.sh \
595 init.qcom.sensors.sh \
596 init.qcom.sh \
597 init.qcom.usb.rc \
598 init.qcom.usb.sh \
599 init.recovery.qcom.rc \
600 init.target.rc \
601 init.veth_ipa_config.sh \
602 qca6234-service.sh \
603 ueventd.qcom.rc \
604 vold.fstab
605
606#intialise PRODUCT_PACKAGES_DEBUG list for debug modules
Luca Weiss2327bfb2022-07-13 09:47:07 +0200607PRODUCT_PACKAGES_DEBUG += init.qcom.testscripts.sh
Bharath12163282022-06-20 15:10:58 +0530608
609#Add init.qcom.test.rc to PRODUCT_PACKAGES_DEBUG list
610PRODUCT_PACKAGES_DEBUG += init.qcom.test.rc
611PRODUCT_PACKAGES_DEBUG += init.qcom.debug.sh
612
613ifneq ($(strip $(TARGET_BUILD_VARIANT)),user)
614PRODUCT_COPY_FILES += \
615 device/qcom/common/rootdir/etc/init.qcom.testscripts.sh:$(TARGET_COPY_OUT_PRODUCT)/etc/init.qcom.testscripts.sh
616endif
617
618PRODUCT_PACKAGES_DEBUG += \
619 init.qcom.debug.sh \
620 init.qcom.debug-sdm660.sh \
621 init.qcom.debug-sdm710.sh \
622 init.qti.debug-msmnile-apps.sh \
623 init.qti.debug-msmnile-modem.sh \
624 init.qti.debug-msmnile-slpi.sh \
625 init.qti.debug-talos.sh \
626 init.qti.debug-msmnile.sh \
627 init.qti.debug-kona.sh \
628 init.qti.debug-lito.sh \
629 init.qti.debug-trinket.sh \
630 init.qti.debug-atoll.sh \
631 init.qti.debug-lagoon.sh \
632 init.qti.debug-bengal.sh
633
634
635# IP and iptables
636PRODUCT_PACKAGES += \
637 ip \
638 libiprouteutil \
639 iptables \
640 ip-up-vpn \
641 libext
642
643
Bharath756d7dd2021-08-07 23:53:55 +0530644# IPACM
645PRODUCT_PACKAGES += \
646 ipacm \
647 IPACM_cfg.xml \
648 libipanat \
649 liboffloadhal \
650 libqsap_sdk
651
652# IRQ
653PRODUCT_COPY_FILES += \
654 $(FP_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
655 $(FP_PATH)/configs/msm_irqbalance_little_big.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance_little_big.conf
656
657
658# Kernel modules
659# Kernel modules install path
660KERNEL_MODULES_INSTALL := dlkm
661KERNEL_MODULES_OUT := out/target/product/$(PRODUCT_NAME)/$(KERNEL_MODULES_INSTALL)/lib/modules
Bharath12163282022-06-20 15:10:58 +0530662KERNEL_TO_BUILD_ROOT_OFFSET := ../../
663
664
665# Key layouts
666PRODUCT_PACKAGES += \
667 ft5x06_ts.kl \
668 gpio-keys.kl \
669 synaptics_dsx.kl \
670 synaptics_dsxv26.kl \
671 synaptics_rmi4_i2c.kl
Bharath756d7dd2021-08-07 23:53:55 +0530672
673
674# LED packages
675PRODUCT_PACKAGES += \
676 android.hardware.light@2.0-impl \
677 android.hardware.light@2.0-service \
678 lights.msm8953
679
680
681# Media / StagefrightCodec 2.0
682PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
683
Bharathe3615be2021-08-18 22:25:42 +0530684# Enable features in video HAL that can compile only on this platform
Bharath12163282022-06-20 15:10:58 +0530685MSM_VIDC_TARGET_LIST := msm8953
Bharathe3615be2021-08-18 22:25:42 +0530686TARGET_USES_MEDIA_EXTENSIONS := true
687
688
689# media_profiles and media_codecs xmls for msm8953
690PRODUCT_COPY_FILES += \
691 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles.xml \
692 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \
693 $(FP_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
694 $(FP_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
695 $(FP_PATH)/media/media_codecs_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_8953.xml \
696 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
697 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_8953.xml \
698 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles_8953_v1.xml \
699 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_8953_v1.xml \
700 $(FP_PATH)/media/media_codecs_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v1.xml \
701 $(FP_PATH)/media/media_codecs_performance_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v1.xml \
702 $(FP_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
Bharath12163282022-06-20 15:10:58 +0530703 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
704 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml
705
706PRODUCT_COPY_FILES += \
707 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
708 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
709 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
710 frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml \
711 frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \
712 frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
713 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 +0530714
Bharath756d7dd2021-08-07 23:53:55 +0530715
716# NFC
Bharath1710e062021-08-20 11:30:47 +0530717PRODUCT_PACKAGES += \
718 NfcNci \
719 Tag \
720 com.android.nfc_extras \
721 com.nxp.nfc.nq \
722 com.nxp.nfc.nq.xml \
723 libnqnfc-nci \
724 libnqnfc_nci_jni \
725 nfc_nci.nqx.default.hw \
726 vendor.nxp.hardware.nfc@2.0-service
727
728# Permissions
729PRODUCT_COPY_FILES += \
730 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
731 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
732 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
733 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
734 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
735 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
736 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
737 vendor/nxp/opensource/halimpl/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
738 vendor/nxp/opensource/halimpl/SN100x/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci_SN100.conf
Bharath756d7dd2021-08-07 23:53:55 +0530739
740
741# OMX
742PRODUCT_PACKAGES += \
743 libavservices_minijail.vendor \
744 libc2dcolorconvert \
745 libOmxAacEnc \
746 libOmxAmrEnc \
747 libOmxCore \
748 libOmxEvrcEnc \
749 libOmxQcelp13Enc \
750 libOmxVdec \
751 libOmxVenc \
752 libqomx_core \
753 libaacwrapper \
754 libmm-omxcore \
755 libstagefrighthw \
756 libstagefright_softomx.vendor
757
758
759#
760# system prop for opengles version
761#
762# 196608 is decimal for 0x30000 to report major/minor versions as 3/0
763# 196609 is decimal for 0x30001 to report major/minor versions as 3/1
764# 196610 is decimal for 0x30002 to report major/minor versions as 3/2
765PRODUCT_PROPERTY_OVERRIDES += \
766 ro.opengles.version=196610
767
768
Bharath12163282022-06-20 15:10:58 +0530769# AOSP Packages
770PRODUCT_PACKAGES += \
771 DeskClock \
772 Calendar \
773 CalendarProvider \
774 Camera2 \
775 CertInstaller \
776 Gallery2 \
777 LatinIME \
778 Launcher3 \
779 LiveWallpapersPicker \
780 Music \
781 netutils-wrapper-1.0 \
782 Provision \
783 Protips \
784 QuickSearchBox \
785 Settings \
786 Stk \
787 SystemUI \
788
789
Bharath756d7dd2021-08-07 23:53:55 +0530790# Perf
791PRODUCT_COPY_FILES += \
792 $(FP_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
793
Bharath12163282022-06-20 15:10:58 +0530794PRODUCT_PROPERTY_OVERRIDES += \
795 persist.vendor.qcomsysd.enabled=1 \
796 ro.vendor.extension_library=libqti-perfd-client.so \
797 sys.vendor.shutdown.waittime=500
798
Bharath756d7dd2021-08-07 23:53:55 +0530799
800# Power
801PRODUCT_PACKAGES += \
802 android.hardware.power@1.0-impl \
803 android.hardware.power@1.0-service \
804 power.qcom
805
806
Bharath756d7dd2021-08-07 23:53:55 +0530807# privapp-permissions whitelisting
808PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
809
810
811# Protobuf
812PRODUCT_PACKAGES += \
813 libprotobuf-cpp-full \
814 libprotobuf-cpp-full-vendorcompat \
815 libprotobuf-cpp-lite-vendorcompat
816
817
Bharath12163282022-06-20 15:10:58 +0530818# include additional QCOM build utilities
819-include device/qcom/common/utils.mk
820
Bharath756d7dd2021-08-07 23:53:55 +0530821# RIL properties
822PRODUCT_PROPERTY_OVERRIDES += rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
823PRODUCT_PROPERTY_OVERRIDES += vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
824#vendor prop to disable advanced network scanning
825PRODUCT_PROPERTY_OVERRIDES += \
826 persist.vendor.radio.enableadvancedscan=false
827
Bharath12163282022-06-20 15:10:58 +0530828# Enable Dual SIM by default
829PRODUCT_PROPERTY_OVERRIDES += persist.radio.multisim.config=dsds
830
831PRODUCT_PROPERTY_OVERRIDES += \
832 persist.vendor.radio.apm_sim_not_pwdn=1 \
833 persist.vendor.radio.sib16_support=1 \
834 persist.vendor.radio.custom_ecc=1 \
835 persist.vendor.radio.rat_on=combine \
836 persist.vendor.radio.procedure_bytes=SKIP
837
Bharath756d7dd2021-08-07 23:53:55 +0530838
839# RenderScript
840PRODUCT_PACKAGES += \
841 android.hardware.renderscript@1.0-impl
842
843
844# SDCard
845# default is nosdcard, S/W button enabled in resource
846PRODUCT_CHARACTERISTICS := nosdcard
847
848
849# Seccomp
850PRODUCT_COPY_FILES += \
851 $(FP_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
852 $(FP_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
853
854
Bharath1710e062021-08-20 11:30:47 +0530855# Secure Element
856PRODUCT_PACKAGES += \
857 android.hardware.secure_element@1.2
858
859
Bharath756d7dd2021-08-07 23:53:55 +0530860# System helper
861PRODUCT_PACKAGES += \
862 vendor.qti.hardware.systemhelper@1.0
863
864
865# Service tracker
866PRODUCT_PACKAGES += \
867 vendor.qti.hardware.servicetracker@1.2.vendor
868
869
Bharatha60665d2021-08-19 09:37:22 +0530870# Sensors
871PRODUCT_PACKAGES += \
872 sensors.FP3 \
873 android.hardware.sensors@1.0-impl \
874 android.hardware.sensors@1.0-service \
875 libsensorndkbridge
876
877# Sensor HAL conf file
878PRODUCT_COPY_FILES += \
879 $(FP_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
880
881# Feature definition files for msm8953
882PRODUCT_COPY_FILES += \
883 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
884 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
885 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
886 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
887 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
888 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
889 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
890
891
Bharath756d7dd2021-08-07 23:53:55 +0530892# Telephony Permissions
Bharath12163282022-06-20 15:10:58 +0530893# whitelisted app
894PRODUCT_COPY_FILES += \
895 device/qcom/common/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml
896
897PRODUCT_COPY_FILES += \
898 device/qcom/common/privapp-permissions-qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-qti.xml
899
900# Telephony wrappers
901PRODUCT_PACKAGES += \
902 qti-telephony-hidl-wrapper \
903 qti_telephony_hidl_wrapper.xml \
904 qti-telephony-utils \
905 qti_telephony_utils.xml
Bharath756d7dd2021-08-07 23:53:55 +0530906
907
908# Thermal
909PRODUCT_PACKAGES += \
910 android.hardware.thermal@1.0-impl \
911 android.hardware.thermal@1.0-service
912
913
914# Tinyxml
915PRODUCT_PACKAGES += \
916 libtinyxml
917
918# USB
919PRODUCT_PACKAGES += \
920 android.hardware.usb@1.0-service
921
922-include vendor/qcom/opensource/usb/vendor_product.mk
923
924
925# Vendor move
926PRODUCT_VENDOR_MOVE_ENABLED := true
927
928
929# Vibrator
930PRODUCT_PACKAGES += \
931 android.hardware.vibrator@1.0-impl \
Bharath12163282022-06-20 15:10:58 +0530932 android.hardware.vibrator@1.0-service \
933 vendor.qti.hardware.vibrator.service
934
935PRODUCT_COPY_FILES += \
936 vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml
Bharath756d7dd2021-08-07 23:53:55 +0530937
938
Bharathed255712021-08-14 20:37:05 +0530939# WiFi
940# WLAN drivers
941PRODUCT_COPY_FILES += \
942 $(FP_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
943 $(FP_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_wlan_dictionary.dat \
944 $(FP_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin # From Android 10
945
946# Flag to check if wcnss_service is built from source
947TARGET_USE_WCNSS_HAL := false
948
949# If building from source then drop proprietary dependency
950ifeq ($(TARGET_USE_WCNSS_HAL),true)
951TARGET_USES_QCOM_WCNSS_QMI := false
Bharath70cf2ae2022-02-14 12:13:50 +0530952
953PRODUCT_PACKAGES += \
954 libwcnss_qmi \
955 wcnss_service
Bharathed255712021-08-14 20:37:05 +0530956endif
957
958# WiFi HAL
959PRODUCT_PACKAGES += \
960 android.hardware.wifi@1.0-service
961
Bharath12163282022-06-20 15:10:58 +0530962# WLAN DLKM
963PRODUCT_PACKAGES += \
964 pronto_wlan.ko
965
Bharathed255712021-08-14 20:37:05 +0530966# WiFi Components
967PRODUCT_PACKAGES += \
968 hostapd \
969 hostapd.accept \
970 hostapd.deny \
971 hostapd_cli \
972 hostapd_default.conf \
973 libnl \
974 libqsap_sdk \
Bharathed255712021-08-14 20:37:05 +0530975 libwifi-hal-qcom \
976 libwpa_client \
977 p2p_supplicant_overlay.conf \
978 vendor.qti.hardware.wifi.supplicant@1.0.vendor \
Bharathed255712021-08-14 20:37:05 +0530979 wificond \
980 wpa_cli \
981 wpa_supplicant.conf \
982 wpa_supplicant \
983 wpa_supplicant_overlay.conf \
984 WifiOverlay \
985 TetheringConfigOverlay
986
987
Bharath12163282022-06-20 15:10:58 +0530988# Zlib
989PRODUCT_HOST_PACKAGES += minigzip
990
991
992#soong namespace for qssi vs vendor differentiation
993SOONG_CONFIG_NAMESPACES += qssi_vs_vendor
994SOONG_CONFIG_qssi_vs_vendor += qssi_or_vendor
995SOONG_CONFIG_qssi_vs_vendor_qssi_or_vendor := vendor
996
997SOONG_CONFIG_NAMESPACES += aosp_vs_qva
998SOONG_CONFIG_aosp_vs_qva += aosp_or_qva
999ifeq ($(TARGET_FWK_SUPPORTS_FULL_VALUEADDS),true)
1000SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := qva
1001else
1002SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := aosp
1003endif
1004
1005SOONG_CONFIG_NAMESPACES += qtidisplaycommonsys
1006# Soong Keys
1007SOONG_CONFIG_qtidisplaycommonsys := displayconfig_enabled
1008# Soong Values
1009SOONG_CONFIG_qtidisplaycommonsys_displayconfig_enabled := true
1010
1011
Bharath756d7dd2021-08-07 23:53:55 +05301012# Call the proprietary setup
Bharatha3a85a72022-05-23 17:50:24 +05301013ifeq ($(FP3_PROPRIETARY_PATH),)
1014FP3_PROPRIETARY_PATH := device/fairphone/fp3-proprietary
1015$(warning Using default blobs path: $(FP3_PROPRIETARY_PATH).)
1016endif
1017
Francesco Salvatore03117482019-02-28 16:39:11 +01001018DEVICE_BLOB_VERSION := 4.A.0013.3
1019
1020GET_BLOBS_CMD = vendor/fairphone/tools/bin/get_blobs.py --device FP3 --build-id $(DEVICE_BLOB_VERSION) --blobs-dir $(FP3_PROPRIETARY_PATH)
1021
1022# Check the presence of proprietary blobs
1023ifeq ("$(wildcard $(FP3_PROPRIETARY_PATH)/device-vendor.mk)","")
1024define BLOBS_INSTRUCTION
1025Cannot find FP3 binary blobs.
1026Please run
1027 $(GET_BLOBS_CMD)
1028and accept the terms of agreement.
1029endef
1030$(error $(BLOBS_INSTRUCTION))
1031endif
1032
Bharath756d7dd2021-08-07 23:53:55 +05301033# Call this in the end so that flags if required can be utilized.
Bharatha3a85a72022-05-23 17:50:24 +05301034$(call inherit-product, $(FP3_PROPRIETARY_PATH)/device-vendor.mk)
1035
Bharath12163282022-06-20 15:10:58 +05301036# Build some more display components to vendor
1037$(call inherit-product, vendor/qcom/opensource/commonsys-intf/display/config/display-interfaces-product.mk)
Bharath756d7dd2021-08-07 23:53:55 +05301038###################################################################################