blob: 2b5a138fbb26841d3f3034cb9ec19f25ce152cf3 [file] [log] [blame]
Bharath756d7dd2021-08-07 23:53:55 +05301# Copyright 2021-2022 Fairphone B.V.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16FP_PATH := device/fairphone/FP3
17
18# Call the vendor setup
19$(call inherit-product-if-exists, vendor/fairphone/fp3-common/device-vendor.mk)
20
21$(call inherit-product, build/make/target/product/product_launched_with_p.mk)
22
23$(call inherit-product, frameworks/native/build/phone-xhdpi-4096-dalvik-heap.mk)
24
Bharath12163282022-06-20 15:10:58 +053025# Inherit generic AOSP content for telephony based 64-bit devices
26$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
27$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk)
Bharath756d7dd2021-08-07 23:53:55 +053028
29PRODUCT_NAME := FP3
30PRODUCT_DEVICE := FP3
31PRODUCT_MODEL := FP3
32PRODUCT_MANUFACTURER := Fairphone
33PRODUCT_BRAND := Fairphone
34
35
36# Allow using custom and expressive names for our Android flavors while in fact
37# targeting the same model with all of them.
Bharath6a7439e2022-02-21 17:35:49 +053038PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_MODEL=FP3 PRODUCT_NAME=FP3 TARGET_PRODUCT=FP3
Bharath756d7dd2021-08-07 23:53:55 +053039
Bharath756d7dd2021-08-07 23:53:55 +053040
Bharathdccdc592022-03-31 12:10:41 +053041TARGET_SYSTEM_PROP := $(FP_PATH)/system.prop
Bharath756d7dd2021-08-07 23:53:55 +053042
Borjan Tchakaloff17a5b5f2018-05-11 11:35:06 +020043# Define the build number based on the product flavour and on the build manifest
44# revision
45ifneq (,$(strip $(PRODUCT_FLAVOR)))
46 _BUILD_MANIFEST_REV := $(shell (git -C $(TOPDIR).repo/manifests rev-parse --short=8 HEAD))
47 BUILD_NUMBER := $(PRODUCT_FLAVOR)-$(_BUILD_MANIFEST_REV)
48 HAS_BUILD_NUMBER := true
49else
50 $(error PRODUCT_FLAVOR must be defined)
51endif
52$(warning Build defined as $(BUILD_ID) ($(BUILD_NUMBER)))
53
Bharath756d7dd2021-08-07 23:53:55 +053054
Luca Weisse7ef1c82022-07-13 13:13:20 +020055# Define SPL for boot & vendor
56BOOT_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
57VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
58
59
Bharath756d7dd2021-08-07 23:53:55 +053060# We don't have the calibration data as this sort of
61# data can only be generated at the factory so don't generate persist.img
62FP3_SKIP_PERSIST_IMG := true
63
Bharath80ba1872021-08-21 11:53:57 +053064
65# Operator specific overlays
66DEVICE_PACKAGE_OVERLAYS += \
67 $(LOCAL_PATH)/overlay-operators
68
Bharath756d7dd2021-08-07 23:53:55 +053069# Overlays
70DEVICE_PACKAGE_OVERLAYS += \
71 $(LOCAL_PATH)/overlay
72
73
74# A/B related defines
75AB_OTA_UPDATER := true
Luca Weissd6c3ca12022-07-13 16:24:08 +020076AB_OTA_PARTITIONS := \
77 aboot \
78 cmnlib64 \
79 cmnlib \
80 devcfg \
81 dsp \
Bharath756d7dd2021-08-07 23:53:55 +053082 dtbo \
Luca Weissd6c3ca12022-07-13 16:24:08 +020083 keymaster \
84 lksecapp \
85 mdtp \
86 modem \
87 rpm \
88 sbl1 \
89 tz \
Bharath756d7dd2021-08-07 23:53:55 +053090 vbmeta \
Luca Weissd6c3ca12022-07-13 16:24:08 +020091 boot \
92 system \
Bharath756d7dd2021-08-07 23:53:55 +053093 vendor
94
95
Bharath756d7dd2021-08-07 23:53:55 +053096PRODUCT_PACKAGES += \
Bharath756d7dd2021-08-07 23:53:55 +053097 update_engine_sideload
98
99
Bharath2307d3b2022-01-06 22:23:25 +0530100# APN
101PRODUCT_COPY_FILES += \
102 $(LOCAL_PATH)/apns-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
103
104
Bharath756d7dd2021-08-07 23:53:55 +0530105# AVB
106BOARD_AVB_ENABLE := true
107
108
109# Additional native libraries
110PRODUCT_COPY_FILES += \
111 $(FP_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
112
113
Bharath12163282022-06-20 15:10:58 +0530114# OEM Unlock reporting
115PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
116 ro.oem_unlock_supported=1
117
118
Bharath756d7dd2021-08-07 23:53:55 +0530119# Atrace HAL
120PRODUCT_PACKAGES += \
121 android.hardware.atrace@1.0-service
122
123
124# Audio
Bharath756d7dd2021-08-07 23:53:55 +0530125PRODUCT_PACKAGES += \
126 android.hardware.audio@6.0 \
127 android.hardware.audio.common@6.0 \
128 android.hardware.audio.common@6.0-util \
Bharath70cf2ae2022-02-14 12:13:50 +0530129 android.hardware.audio@6.0-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530130 android.hardware.audio.effect@6.0 \
Bharath70cf2ae2022-02-14 12:13:50 +0530131 android.hardware.audio.effect@6.0-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530132 android.hardware.audio.service \
133 android.hardware.soundtrigger@2.1-impl \
134 audio.a2dp.default \
135 audio.primary.msm8953 \
136 audio.r_submix.default \
137 audio.usb.default \
138 libaacwrapper \
139 libaudio-resampler \
140 libautohal \
141 libqcompostprocbundle \
142 libqcomvisualizer \
143 libqcomvoiceprocessing \
144 libvolumelistener \
145 tinymix
146
147
148AUDIO_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal
149
150# Audio files
151PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530152 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
153 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
154 $(AUDIO_HAL_PATH)/configs/msm8953/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
155 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
156 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku3_tasha.xml \
157 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku4.xml \
158 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tasha.xml \
159 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tashalite.xml \
160 $(AUDIO_HAL_PATH)/configs/msm8953/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
161 $(AUDIO_HAL_PATH)/configs/msm8953/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
162 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
163 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
164 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku3_tasha.xml \
165 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku4.xml \
166 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
167 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \
168 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
169 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9306.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9306.xml \
170 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9330.xml \
171 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \
172 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
173
174
175# Audio config files
176PRODUCT_COPY_FILES += \
177 frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
178 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
179 frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
180 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
181 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
182 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
183
184# Custom config files
185PRODUCT_COPY_FILES += \
186 $(FP_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
187
188
189# Audio firmware files
190PRODUCT_COPY_FILES += \
191 $(FP_PATH)/aw/aw8898_cfg.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/aw8898_cfg.bin \
192 $(FP_PATH)/tas2557_fw/OBO_0617_music.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557_uCDSP.bin \
193 $(FP_PATH)/tas2557_fw/tas2557evm_OBO_0617.ftcfg:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557evm_aacspk_a.ftcfg
194
195
196# Audio Specific device overlays
197DEVICE_PACKAGE_OVERLAYS += $(AUDIO_HAL_PATH)/configs/common/overlay
198
199
200# Audio Specific properties
201# Properties
202-include $(LOCAL_PATH)/audio_properties.mk
203
204
205# Audio Kernel modules
206AUDIO_DLKM := audio_apr.ko
207AUDIO_DLKM += audio_q6_notifier.ko
208AUDIO_DLKM += audio_adsp_loader.ko
209AUDIO_DLKM += audio_q6.ko
210AUDIO_DLKM += audio_usf.ko
211AUDIO_DLKM += audio_pinctrl_wcd.ko
212AUDIO_DLKM += audio_swr.ko
213AUDIO_DLKM += audio_wcd_core.ko
214AUDIO_DLKM += audio_swr_ctrl.ko
215AUDIO_DLKM += audio_wsa881x.ko
216AUDIO_DLKM += audio_wsa881x_analog.ko
217AUDIO_DLKM += audio_platform.ko
218AUDIO_DLKM += audio_cpe_lsm.ko
219AUDIO_DLKM += audio_hdmi.ko
220AUDIO_DLKM += audio_stub.ko
221AUDIO_DLKM += audio_wcd9xxx.ko
222AUDIO_DLKM += audio_mbhc.ko
223AUDIO_DLKM += audio_wcd9335.ko
224AUDIO_DLKM += audio_wcd_cpe.ko
225AUDIO_DLKM += audio_digital_cdc.ko
226AUDIO_DLKM += audio_analog_cdc.ko
227AUDIO_DLKM += audio_native.ko
228AUDIO_DLKM += audio_machine_sdm450.ko
229AUDIO_DLKM += audio_machine_ext_sdm450.ko
230PRODUCT_PACKAGES += $(AUDIO_DLKM)
231
232
Bharath9cdcce22021-12-08 15:43:43 +0530233# Automation/ATS
234PRODUCT_PACKAGES += \
235 automation_setup \
236 automation_adb_setup
237
238
Bharathfe661fb2021-08-16 18:56:32 +0530239# ANT
240PRODUCT_PACKAGES += \
241 AntHalService \
242 antradio_app \
243 com.dsi.ant@1.0 \
Bharath70cf2ae2022-02-14 12:13:50 +0530244 com.dsi.ant@1.0.vendor \
Bharathfe661fb2021-08-16 18:56:32 +0530245 libantradio
246
Bharath756d7dd2021-08-07 23:53:55 +0530247# Bluetooth
Bharathfe661fb2021-08-16 18:56:32 +0530248PRODUCT_PACKAGES += \
Bharathfe661fb2021-08-16 18:56:32 +0530249 audio.bluetooth.default \
250 android.hardware.bluetooth.audio@2.0-impl \
251 android.hardware.bluetooth@1.0 \
252 vendor.qti.hardware.bluetooth_audio@2.0 \
253 vendor.qti.hardware.bluetooth_audio@2.1.vendor \
254 vendor.qti.hardware.btconfigstore@1.0.vendor
255
256# Bluetooth Permissions
257PRODUCT_COPY_FILES += \
258 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
259 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 +0530260
261
Bharath12163282022-06-20 15:10:58 +0530262# Board platforms lists to be used for
263# TARGET_BOARD_PLATFORM specific featurization
264QCOM_BOARD_PLATFORMS += msm8953
265
266
Bharath756d7dd2021-08-07 23:53:55 +0530267# Boot
268PRODUCT_PACKAGES += \
269 android.hardware.boot@1.0-impl \
270 android.hardware.boot@1.0-impl.recovery \
271 android.hardware.boot@1.0-service \
272 bootctrl.msm8953 \
Bharathe341d1d2022-04-06 09:49:27 +0530273 bootctrl.msm8953.recovery \
Bharath756d7dd2021-08-07 23:53:55 +0530274 update_engine \
275 update_engine_client \
276 update_engine_sideload \
277 update_verifier
278
Bharath12163282022-06-20 15:10:58 +0530279# MSM updater library
280PRODUCT_PACKAGES += librecovery_updater_msm
281
282
283# Skip boot jars check
284SKIP_BOOT_JARS_CHECK := true
285
Bharath756d7dd2021-08-07 23:53:55 +0530286
287# Boot animation
288TARGET_SCREEN_HEIGHT := 2160
289TARGET_SCREEN_WIDTH := 1080
290
291
292PRODUCT_COPY_FILES += \
293 vendor/fairphone/media/bootanimation/bootanimation.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip
294
295
296# Camera
Bharathcbfb0a92021-08-19 21:13:50 +0530297PRODUCT_PACKAGES += \
298 android.frameworks.displayservice@1.0.vendor \
299 android.hidl.base@1.0.vendor \
300 android.hardware.camera.device@3.5 \
301 android.hardware.camera.provider@2.4 \
302 android.hardware.camera.provider@2.4-external \
303 android.hardware.camera.provider@2.4-impl \
304 android.hardware.camera.provider@2.4-legacy \
305 android.hardware.camera.provider@2.4-service \
306 android.hardware.camera.provider@2.6 \
307 camera.device@1.0-impl \
308 camera.device@3.5-impl \
309 camera.device@3.6-external-impl \
310 camera.msm8953 \
311 cameraconfig.txt \
312 libcamera2ndk_vendor \
313 libhal_dbg \
314 libjni_burstpmk \
315 libjni_imageutil \
316 libjni_snapcammosaic \
317 libjni_snapcamtinyplanet \
318 libmm-qcamera \
319 libmmcamera_interface \
320 libmmjpeg_interface \
321 libmmlib2d_interface \
322 libqomx_core \
323 libxml2 \
324 mm-qcamera-app \
325 vendor.qti.hardware.camera.device@1.0 \
326 vendor.qti.hardware.camera.device@1.0.vendor
327
328# Fairphone Camera
329PRODUCT_PACKAGES += \
330 FairphoneCamera
331
332# Arcsoft camera libraries
333PRODUCT_PACKAGES += \
334 libarcimageprocess \
335 libarcsoft_aiscenedetection \
336 libarcsoft_hdr_detection \
337 libarcsoft_high_dynamic_range \
338 libarcsoft_low_light_hdr \
339 libarcsoft_low_light_shot \
340 libarcsoft_object_tracking \
341 libarcsoft_panorama_burstcapture \
342 libarcsoft_singlecam_bokeh \
343 libarcsoft_videoautozoom \
344 libarcsoft_videostabs \
345 libmpbase \
346 libmpbase.vendor
347
348# Feature flags for camera
349PRODUCT_COPY_FILES += \
350 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
351 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
352 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
353 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 +0530354
355
356# Component overrides
357# TODO: Check if this is required.
358#PRODUCT_COPY_FILES += \
359 $(FP_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
360
361
Bharath12163282022-06-20 15:10:58 +0530362# Charger
363PRODUCT_PACKAGES += \
364 charger \
365 charger_res_images
366
367
368# Chromium
369PRODUCT_PACKAGES += \
370 libwebviewchromium_loader \
371 libwebviewchromium_plat_support
372
373
374# Curl
375PRODUCT_PACKAGES += \
376 curl \
377 libcurl
378
379
380# Data/rmnetctrl
381PRODUCT_PACKAGES += \
382 librmnetctl
383
384
Bharath756d7dd2021-08-07 23:53:55 +0530385# Display
386PRODUCT_PACKAGES += \
387 android.hardware.graphics.allocator@2.0-impl \
388 android.hardware.graphics.allocator@2.0-service \
389 android.hardware.graphics.composer@2.1-service \
390 android.hardware.graphics.mapper@2.0-impl-2.1 \
391 android.hardware.memtrack@1.0-impl \
392 android.hardware.memtrack@1.0-service \
393 gralloc.default \
394 gralloc.msm8953 \
395 hwcomposer.msm8953 \
Bharath12163282022-06-20 15:10:58 +0530396 libcomposerextn.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530397 libdisplayconfig \
Bharath12163282022-06-20 15:10:58 +0530398 libdisplayconfig.qti \
399 libdrm \
400 libgralloc.qti \
401 liblayerext.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530402 libqdMetaData \
Bharath12163282022-06-20 15:10:58 +0530403 libqdMetaData.system \
404 libqdutils \
405 libsmomo.qti \
406 libsmomoconfig.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530407 libvulkan \
Bharath12163282022-06-20 15:10:58 +0530408 memtrack.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530409 vendor.qti.hardware.display.composer@3.0
410
411
412# Vendor Display
413# Disable skip validate
414PRODUCT_PROPERTY_OVERRIDES += \
415 vendor.display.disable_skip_validate=1
416
417
418# Display Properties
419PRODUCT_AAPT_CONFIG := normal
420PRODUCT_AAPT_PREF_CONFIG := xxhdpi
421
422
423# DRM
424PRODUCT_PACKAGES += \
425 android.hardware.drm@1.3-service.clearkey
426
427
Pradeep Chenthatib4c3c102021-10-19 20:07:52 +0530428# Elabel
429PRODUCT_PACKAGES += \
430 eLabel.html.gz \
431 eLabel1.png \
432 eLabel2.png \
433 FAIRPHONE.html.gz \
434 FAIRPHONE.png
435
436
Bharath756d7dd2021-08-07 23:53:55 +0530437# Enable vndk-sp Libraries
438PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
439TARGET_USES_MKE2FS := true
440
441PRODUCT_PACKAGES += \
442 vndk_package
443
444
445# Encryption
446PRODUCT_PROPERTY_OVERRIDES += ro.crypto.allow_encrypt_override=true
447PRODUCT_PROPERTY_OVERRIDES += ro.crypto.volume.filenames_mode=aes-256-cts
448
449
Bharath12163282022-06-20 15:10:58 +0530450# E2fsck
451PRODUCT_PACKAGES += \
452 e2fsck
453
Bharath44ee36f2022-05-02 15:37:19 +0530454# ExFAT binaries
455PRODUCT_COPY_FILES += \
456 $(FP_PATH)/tuxera/exfatck:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatck \
457 $(FP_PATH)/tuxera/exfatdebug:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatdebug \
458 $(FP_PATH)/tuxera/exfatlabel:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatlabel \
459 $(FP_PATH)/tuxera/exfatvsn:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatvsn \
460 $(FP_PATH)/tuxera/mkexfat:$(TARGET_COPY_OUT_SYSTEM)/bin/mkexfat
461
462
Bharathe341d1d2022-04-06 09:49:27 +0530463# Fastbootd
464PRODUCT_PACKAGES += fastbootd
465
466
Bharath756d7dd2021-08-07 23:53:55 +0530467# FBE support
468PRODUCT_COPY_FILES += \
469 $(FP_PATH)/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh
470
471
Bharath1710e062021-08-20 11:30:47 +0530472# Feature flags and permissions
473PRODUCT_COPY_FILES += \
474 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
475 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
476 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
477 frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
478 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
479 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
480 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
481 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
482 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 +0530483 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 +0530484 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
485 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
486 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 +0530487 frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
488 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
489 frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
490 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 +0530491 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 +0530492 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
493
Bharath1dcb6512021-08-20 00:41:08 +0530494# Fingerprint
495PRODUCT_PACKAGES += \
496 android.hardware.biometrics.fingerprint@2.1 \
497 android.hardware.biometrics.fingerprint@2.1-service \
498 elan_device.rc \
499 fingerprint.default
500
501# Fingerprint files
502include $(FP_PATH)/elan_lib/fingerprint/elan_lib.mk
503
504# Fingerprint feature flag
505PRODUCT_COPY_FILES += \
506 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
507
508
Bharath756d7dd2021-08-07 23:53:55 +0530509# Framework Detect
510PRODUCT_PACKAGES += \
511 libqti_vndfwk_detect \
512 libqti_vndfwk_detect.vendor \
513 libvndfwk_detect_jni.qti \
514 libvndfwk_detect_jni.qti.vendor \
515 vndservicemanager
516
Bharath12163282022-06-20 15:10:58 +0530517# FRP
518PRODUCT_PROPERTY_OVERRIDES += ro.frp.pst=/dev/block/bootdevice/by-name/config
519
Bharath756d7dd2021-08-07 23:53:55 +0530520
521# HIDL
522PRODUCT_PACKAGES += \
523 android.hidl.base@1.0 \
524 libhidltransport \
525 libhidltransport.vendor \
526 libhwbinder \
527 libhwbinder.vendor
528
529
Bharath1710e062021-08-20 11:30:47 +0530530# GPS
531BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
Luca Weissa8a60262022-02-28 15:00:31 +0100532LOC_HIDL_VERSION := 4.0
Bharath1710e062021-08-20 11:30:47 +0530533
534PRODUCT_PACKAGES += \
Bharath70cf2ae2022-02-14 12:13:50 +0530535 android.hardware.gnss@2.1-impl-qti \
Bharath1710e062021-08-20 11:30:47 +0530536 android.hardware.gnss@2.1-service-qti \
537 libbatching \
538 libgeofencing \
539 libgnss \
540 libjson \
541 libwifi-hal-ctrl \
542 libgps.utils
543
544PRODUCT_PACKAGES += \
545 flp.conf \
546 gps.conf
547
548# gps/location secuity configuration file
549PRODUCT_COPY_FILES += \
550 $(FP_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
551
552# Permissions
553PRODUCT_COPY_FILES += \
554 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
555
Bharath12163282022-06-20 15:10:58 +0530556PRODUCT_PROPERTY_OVERRIDES += \
557 persist.backup.ntpServer=0.pool.ntp.org
558
Bharath1710e062021-08-20 11:30:47 +0530559
Bharath756d7dd2021-08-07 23:53:55 +0530560# Health
561PRODUCT_PACKAGES += \
562 android.hardware.health@2.1-impl \
563 android.hardware.health@2.1-impl.recovery \
564 android.hardware.health@2.1-service
565
566# IMS
567PRODUCT_PACKAGES += \
568 ims-ext-common \
569 ims_ext_common.xml \
570 ConfURIDialer
571
Bharath12163282022-06-20 15:10:58 +0530572
573# Init
574PRODUCT_PACKAGES += \
575 fstab.qcom \
576 init.class_main.sh \
577 init.crda.sh \
578 init.mdm.sh \
579 init.qcom.class_core.sh \
580 init.qcom.coex.sh \
581 init.qcom.early_boot.sh \
582 init.qcom.efs.sync.sh \
583 init.qcom.factory.rc \
584 init.qcom.post_boot.sh \
585 init.qcom.rc \
586 init.qcom.sdio.sh \
587 init.qcom.sensors.sh \
588 init.qcom.sh \
589 init.qcom.usb.rc \
590 init.qcom.usb.sh \
591 init.recovery.qcom.rc \
592 init.target.rc \
593 init.veth_ipa_config.sh \
594 qca6234-service.sh \
595 ueventd.qcom.rc \
596 vold.fstab
597
598#intialise PRODUCT_PACKAGES_DEBUG list for debug modules
Luca Weiss2327bfb2022-07-13 09:47:07 +0200599PRODUCT_PACKAGES_DEBUG += init.qcom.testscripts.sh
Bharath12163282022-06-20 15:10:58 +0530600
601#Add init.qcom.test.rc to PRODUCT_PACKAGES_DEBUG list
602PRODUCT_PACKAGES_DEBUG += init.qcom.test.rc
603PRODUCT_PACKAGES_DEBUG += init.qcom.debug.sh
604
605ifneq ($(strip $(TARGET_BUILD_VARIANT)),user)
606PRODUCT_COPY_FILES += \
607 device/qcom/common/rootdir/etc/init.qcom.testscripts.sh:$(TARGET_COPY_OUT_PRODUCT)/etc/init.qcom.testscripts.sh
608endif
609
610PRODUCT_PACKAGES_DEBUG += \
611 init.qcom.debug.sh \
612 init.qcom.debug-sdm660.sh \
613 init.qcom.debug-sdm710.sh \
614 init.qti.debug-msmnile-apps.sh \
615 init.qti.debug-msmnile-modem.sh \
616 init.qti.debug-msmnile-slpi.sh \
617 init.qti.debug-talos.sh \
618 init.qti.debug-msmnile.sh \
619 init.qti.debug-kona.sh \
620 init.qti.debug-lito.sh \
621 init.qti.debug-trinket.sh \
622 init.qti.debug-atoll.sh \
623 init.qti.debug-lagoon.sh \
624 init.qti.debug-bengal.sh
625
626
627# IP and iptables
628PRODUCT_PACKAGES += \
629 ip \
630 libiprouteutil \
631 iptables \
632 ip-up-vpn \
633 libext
634
635
Bharath756d7dd2021-08-07 23:53:55 +0530636# IPACM
637PRODUCT_PACKAGES += \
638 ipacm \
639 IPACM_cfg.xml \
640 libipanat \
641 liboffloadhal \
642 libqsap_sdk
643
644# IRQ
645PRODUCT_COPY_FILES += \
646 $(FP_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
647 $(FP_PATH)/configs/msm_irqbalance_little_big.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance_little_big.conf
648
649
650# Kernel modules
651# Kernel modules install path
652KERNEL_MODULES_INSTALL := dlkm
653KERNEL_MODULES_OUT := out/target/product/$(PRODUCT_NAME)/$(KERNEL_MODULES_INSTALL)/lib/modules
Bharath12163282022-06-20 15:10:58 +0530654KERNEL_TO_BUILD_ROOT_OFFSET := ../../
655
656
657# Key layouts
658PRODUCT_PACKAGES += \
659 ft5x06_ts.kl \
660 gpio-keys.kl \
661 synaptics_dsx.kl \
662 synaptics_dsxv26.kl \
663 synaptics_rmi4_i2c.kl
Bharath756d7dd2021-08-07 23:53:55 +0530664
665
666# LED packages
667PRODUCT_PACKAGES += \
668 android.hardware.light@2.0-impl \
669 android.hardware.light@2.0-service \
670 lights.msm8953
671
672
673# Media / StagefrightCodec 2.0
674PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
675
Bharathe3615be2021-08-18 22:25:42 +0530676# Enable features in video HAL that can compile only on this platform
Bharath12163282022-06-20 15:10:58 +0530677MSM_VIDC_TARGET_LIST := msm8953
Bharathe3615be2021-08-18 22:25:42 +0530678TARGET_USES_MEDIA_EXTENSIONS := true
679
680
681# media_profiles and media_codecs xmls for msm8953
682PRODUCT_COPY_FILES += \
683 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles.xml \
684 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \
685 $(FP_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
686 $(FP_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
687 $(FP_PATH)/media/media_codecs_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_8953.xml \
688 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
689 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_8953.xml \
690 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles_8953_v1.xml \
691 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_8953_v1.xml \
692 $(FP_PATH)/media/media_codecs_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v1.xml \
693 $(FP_PATH)/media/media_codecs_performance_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v1.xml \
694 $(FP_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
Bharath12163282022-06-20 15:10:58 +0530695 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
696 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml
697
698PRODUCT_COPY_FILES += \
699 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
700 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
701 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
702 frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml \
703 frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \
704 frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
705 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 +0530706
Bharath756d7dd2021-08-07 23:53:55 +0530707
708# NFC
Bharath1710e062021-08-20 11:30:47 +0530709PRODUCT_PACKAGES += \
710 NfcNci \
711 Tag \
712 com.android.nfc_extras \
713 com.nxp.nfc.nq \
714 com.nxp.nfc.nq.xml \
715 libnqnfc-nci \
716 libnqnfc_nci_jni \
717 nfc_nci.nqx.default.hw \
718 vendor.nxp.hardware.nfc@2.0-service
719
720# Permissions
721PRODUCT_COPY_FILES += \
722 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
723 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
724 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
725 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
726 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
727 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
728 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
729 vendor/nxp/opensource/halimpl/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
730 vendor/nxp/opensource/halimpl/SN100x/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci_SN100.conf
Bharath756d7dd2021-08-07 23:53:55 +0530731
732
733# OMX
734PRODUCT_PACKAGES += \
735 libavservices_minijail.vendor \
736 libc2dcolorconvert \
737 libOmxAacEnc \
738 libOmxAmrEnc \
739 libOmxCore \
740 libOmxEvrcEnc \
741 libOmxQcelp13Enc \
742 libOmxVdec \
743 libOmxVenc \
744 libqomx_core \
745 libaacwrapper \
746 libmm-omxcore \
747 libstagefrighthw \
748 libstagefright_softomx.vendor
749
750
751#
752# system prop for opengles version
753#
754# 196608 is decimal for 0x30000 to report major/minor versions as 3/0
755# 196609 is decimal for 0x30001 to report major/minor versions as 3/1
756# 196610 is decimal for 0x30002 to report major/minor versions as 3/2
757PRODUCT_PROPERTY_OVERRIDES += \
758 ro.opengles.version=196610
759
760
Bharath12163282022-06-20 15:10:58 +0530761# AOSP Packages
762PRODUCT_PACKAGES += \
763 DeskClock \
764 Calendar \
765 CalendarProvider \
766 Camera2 \
767 CertInstaller \
768 Gallery2 \
769 LatinIME \
770 Launcher3 \
771 LiveWallpapersPicker \
772 Music \
773 netutils-wrapper-1.0 \
774 Provision \
775 Protips \
776 QuickSearchBox \
777 Settings \
778 Stk \
779 SystemUI \
780
781
Bharath756d7dd2021-08-07 23:53:55 +0530782# Perf
783PRODUCT_COPY_FILES += \
784 $(FP_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
785
Bharath12163282022-06-20 15:10:58 +0530786PRODUCT_PROPERTY_OVERRIDES += \
787 persist.vendor.qcomsysd.enabled=1 \
788 ro.vendor.extension_library=libqti-perfd-client.so \
789 sys.vendor.shutdown.waittime=500
790
Bharath756d7dd2021-08-07 23:53:55 +0530791
792# Power
793PRODUCT_PACKAGES += \
794 android.hardware.power@1.0-impl \
795 android.hardware.power@1.0-service \
796 power.qcom
797
798
Bharath756d7dd2021-08-07 23:53:55 +0530799# privapp-permissions whitelisting
800PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
801
802
803# Protobuf
804PRODUCT_PACKAGES += \
805 libprotobuf-cpp-full \
806 libprotobuf-cpp-full-vendorcompat \
807 libprotobuf-cpp-lite-vendorcompat
808
809
Bharath12163282022-06-20 15:10:58 +0530810# include additional QCOM build utilities
811-include device/qcom/common/utils.mk
812
Bharath756d7dd2021-08-07 23:53:55 +0530813# RIL properties
814PRODUCT_PROPERTY_OVERRIDES += rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
815PRODUCT_PROPERTY_OVERRIDES += vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
816#vendor prop to disable advanced network scanning
817PRODUCT_PROPERTY_OVERRIDES += \
818 persist.vendor.radio.enableadvancedscan=false
819
Bharath12163282022-06-20 15:10:58 +0530820# Enable Dual SIM by default
821PRODUCT_PROPERTY_OVERRIDES += persist.radio.multisim.config=dsds
822
823PRODUCT_PROPERTY_OVERRIDES += \
824 persist.vendor.radio.apm_sim_not_pwdn=1 \
825 persist.vendor.radio.sib16_support=1 \
826 persist.vendor.radio.custom_ecc=1 \
827 persist.vendor.radio.rat_on=combine \
828 persist.vendor.radio.procedure_bytes=SKIP
829
Bharath756d7dd2021-08-07 23:53:55 +0530830
831# RenderScript
832PRODUCT_PACKAGES += \
833 android.hardware.renderscript@1.0-impl
834
835
836# SDCard
837# default is nosdcard, S/W button enabled in resource
838PRODUCT_CHARACTERISTICS := nosdcard
839
840
841# Seccomp
842PRODUCT_COPY_FILES += \
843 $(FP_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
844 $(FP_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
845
846
Bharath1710e062021-08-20 11:30:47 +0530847# Secure Element
848PRODUCT_PACKAGES += \
849 android.hardware.secure_element@1.2
850
851
Bharath756d7dd2021-08-07 23:53:55 +0530852# System helper
853PRODUCT_PACKAGES += \
854 vendor.qti.hardware.systemhelper@1.0
855
856
857# Service tracker
858PRODUCT_PACKAGES += \
859 vendor.qti.hardware.servicetracker@1.2.vendor
860
861
Bharatha60665d2021-08-19 09:37:22 +0530862# Sensors
863PRODUCT_PACKAGES += \
864 sensors.FP3 \
865 android.hardware.sensors@1.0-impl \
866 android.hardware.sensors@1.0-service \
867 libsensorndkbridge
868
869# Sensor HAL conf file
870PRODUCT_COPY_FILES += \
871 $(FP_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
872
873# Feature definition files for msm8953
874PRODUCT_COPY_FILES += \
875 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
876 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
877 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
878 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
879 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
880 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
881 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
882
883
Bharath756d7dd2021-08-07 23:53:55 +0530884# Telephony Permissions
Bharath12163282022-06-20 15:10:58 +0530885# whitelisted app
886PRODUCT_COPY_FILES += \
887 device/qcom/common/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml
888
889PRODUCT_COPY_FILES += \
890 device/qcom/common/privapp-permissions-qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-qti.xml
891
892# Telephony wrappers
893PRODUCT_PACKAGES += \
894 qti-telephony-hidl-wrapper \
895 qti_telephony_hidl_wrapper.xml \
896 qti-telephony-utils \
897 qti_telephony_utils.xml
Bharath756d7dd2021-08-07 23:53:55 +0530898
899
900# Thermal
901PRODUCT_PACKAGES += \
902 android.hardware.thermal@1.0-impl \
903 android.hardware.thermal@1.0-service
904
905
906# Tinyxml
907PRODUCT_PACKAGES += \
908 libtinyxml
909
910# USB
911PRODUCT_PACKAGES += \
912 android.hardware.usb@1.0-service
913
914-include vendor/qcom/opensource/usb/vendor_product.mk
915
916
917# Vendor move
918PRODUCT_VENDOR_MOVE_ENABLED := true
919
920
921# Vibrator
922PRODUCT_PACKAGES += \
923 android.hardware.vibrator@1.0-impl \
Bharath12163282022-06-20 15:10:58 +0530924 android.hardware.vibrator@1.0-service \
925 vendor.qti.hardware.vibrator.service
926
927PRODUCT_COPY_FILES += \
928 vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml
Bharath756d7dd2021-08-07 23:53:55 +0530929
930
Bharathed255712021-08-14 20:37:05 +0530931# WiFi
932# WLAN drivers
933PRODUCT_COPY_FILES += \
934 $(FP_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
935 $(FP_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_wlan_dictionary.dat \
936 $(FP_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin # From Android 10
937
938# Flag to check if wcnss_service is built from source
939TARGET_USE_WCNSS_HAL := false
940
941# If building from source then drop proprietary dependency
942ifeq ($(TARGET_USE_WCNSS_HAL),true)
943TARGET_USES_QCOM_WCNSS_QMI := false
Bharath70cf2ae2022-02-14 12:13:50 +0530944
945PRODUCT_PACKAGES += \
946 libwcnss_qmi \
947 wcnss_service
Bharathed255712021-08-14 20:37:05 +0530948endif
949
950# WiFi HAL
951PRODUCT_PACKAGES += \
952 android.hardware.wifi@1.0-service
953
Bharath12163282022-06-20 15:10:58 +0530954# WLAN DLKM
955PRODUCT_PACKAGES += \
956 pronto_wlan.ko
957
Bharathed255712021-08-14 20:37:05 +0530958# WiFi Components
959PRODUCT_PACKAGES += \
960 hostapd \
961 hostapd.accept \
962 hostapd.deny \
963 hostapd_cli \
964 hostapd_default.conf \
965 libnl \
966 libqsap_sdk \
Bharathed255712021-08-14 20:37:05 +0530967 libwifi-hal-qcom \
968 libwpa_client \
969 p2p_supplicant_overlay.conf \
970 vendor.qti.hardware.wifi.supplicant@1.0.vendor \
Bharathed255712021-08-14 20:37:05 +0530971 wificond \
972 wpa_cli \
973 wpa_supplicant.conf \
974 wpa_supplicant \
975 wpa_supplicant_overlay.conf \
976 WifiOverlay \
977 TetheringConfigOverlay
978
979
Bharath12163282022-06-20 15:10:58 +0530980# Zlib
981PRODUCT_HOST_PACKAGES += minigzip
982
983
984#soong namespace for qssi vs vendor differentiation
985SOONG_CONFIG_NAMESPACES += qssi_vs_vendor
986SOONG_CONFIG_qssi_vs_vendor += qssi_or_vendor
987SOONG_CONFIG_qssi_vs_vendor_qssi_or_vendor := vendor
988
989SOONG_CONFIG_NAMESPACES += aosp_vs_qva
990SOONG_CONFIG_aosp_vs_qva += aosp_or_qva
991ifeq ($(TARGET_FWK_SUPPORTS_FULL_VALUEADDS),true)
992SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := qva
993else
994SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := aosp
995endif
996
997SOONG_CONFIG_NAMESPACES += qtidisplaycommonsys
998# Soong Keys
999SOONG_CONFIG_qtidisplaycommonsys := displayconfig_enabled
1000# Soong Values
1001SOONG_CONFIG_qtidisplaycommonsys_displayconfig_enabled := true
1002
1003
Bharath756d7dd2021-08-07 23:53:55 +05301004# Call the proprietary setup
Bharatha3a85a72022-05-23 17:50:24 +05301005ifeq ($(FP3_PROPRIETARY_PATH),)
1006FP3_PROPRIETARY_PATH := device/fairphone/fp3-proprietary
1007$(warning Using default blobs path: $(FP3_PROPRIETARY_PATH).)
1008endif
1009
Francesco Salvatore03117482019-02-28 16:39:11 +01001010DEVICE_BLOB_VERSION := 4.A.0013.3
1011
1012GET_BLOBS_CMD = vendor/fairphone/tools/bin/get_blobs.py --device FP3 --build-id $(DEVICE_BLOB_VERSION) --blobs-dir $(FP3_PROPRIETARY_PATH)
1013
1014# Check the presence of proprietary blobs
1015ifeq ("$(wildcard $(FP3_PROPRIETARY_PATH)/device-vendor.mk)","")
1016define BLOBS_INSTRUCTION
1017Cannot find FP3 binary blobs.
1018Please run
1019 $(GET_BLOBS_CMD)
1020and accept the terms of agreement.
1021endef
1022$(error $(BLOBS_INSTRUCTION))
1023endif
1024
Bharath756d7dd2021-08-07 23:53:55 +05301025# Call this in the end so that flags if required can be utilized.
Bharatha3a85a72022-05-23 17:50:24 +05301026$(call inherit-product, $(FP3_PROPRIETARY_PATH)/device-vendor.mk)
1027
Bharath12163282022-06-20 15:10:58 +05301028# Build some more display components to vendor
1029$(call inherit-product, vendor/qcom/opensource/commonsys-intf/display/config/display-interfaces-product.mk)
Bharath756d7dd2021-08-07 23:53:55 +05301030###################################################################################