blob: 148b5802d086848b4ac2a449ef3d61f2fb5cb4f8 [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
Bharatha701c6b2022-07-25 17:26:28 +0530392PRODUCT_PROPERTY_OVERRIDES += ro.telephony.iwlan_operation_mode=legacy
393
Bharath12163282022-06-20 15:10:58 +0530394
Bharath756d7dd2021-08-07 23:53:55 +0530395# Display
396PRODUCT_PACKAGES += \
397 android.hardware.graphics.allocator@2.0-impl \
398 android.hardware.graphics.allocator@2.0-service \
399 android.hardware.graphics.composer@2.1-service \
400 android.hardware.graphics.mapper@2.0-impl-2.1 \
401 android.hardware.memtrack@1.0-impl \
402 android.hardware.memtrack@1.0-service \
403 gralloc.default \
404 gralloc.msm8953 \
405 hwcomposer.msm8953 \
Bharath12163282022-06-20 15:10:58 +0530406 libcomposerextn.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530407 libdisplayconfig \
Bharath12163282022-06-20 15:10:58 +0530408 libdisplayconfig.qti \
409 libdrm \
410 libgralloc.qti \
411 liblayerext.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530412 libqdMetaData \
Bharath12163282022-06-20 15:10:58 +0530413 libqdMetaData.system \
414 libqdutils \
415 libsmomo.qti \
416 libsmomoconfig.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530417 libvulkan \
Bharath12163282022-06-20 15:10:58 +0530418 memtrack.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530419 vendor.qti.hardware.display.composer@3.0
420
421
422# Vendor Display
423# Disable skip validate
424PRODUCT_PROPERTY_OVERRIDES += \
425 vendor.display.disable_skip_validate=1
426
Bharatha701c6b2022-07-25 17:26:28 +0530427PRODUCT_PROPERTY_OVERRIDES += ro.hardware.vulkan=adreno
428PRODUCT_PROPERTY_OVERRIDES += ro.hardware.egl=adreno
429
Bharath756d7dd2021-08-07 23:53:55 +0530430
431# Display Properties
432PRODUCT_AAPT_CONFIG := normal
433PRODUCT_AAPT_PREF_CONFIG := xxhdpi
434
435
436# DRM
437PRODUCT_PACKAGES += \
438 android.hardware.drm@1.3-service.clearkey
439
440
Pradeep Chenthatib4c3c102021-10-19 20:07:52 +0530441# Elabel
442PRODUCT_PACKAGES += \
443 eLabel.html.gz \
444 eLabel1.png \
445 eLabel2.png \
446 FAIRPHONE.html.gz \
447 FAIRPHONE.png
448
449
Bharath756d7dd2021-08-07 23:53:55 +0530450# Enable vndk-sp Libraries
451PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
452TARGET_USES_MKE2FS := true
453
454PRODUCT_PACKAGES += \
455 vndk_package
456
457
458# Encryption
459PRODUCT_PROPERTY_OVERRIDES += ro.crypto.allow_encrypt_override=true
460PRODUCT_PROPERTY_OVERRIDES += ro.crypto.volume.filenames_mode=aes-256-cts
461
462
Bharath12163282022-06-20 15:10:58 +0530463# E2fsck
464PRODUCT_PACKAGES += \
465 e2fsck
466
Bharath44ee36f2022-05-02 15:37:19 +0530467# ExFAT binaries
468PRODUCT_COPY_FILES += \
469 $(FP_PATH)/tuxera/exfatck:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatck \
470 $(FP_PATH)/tuxera/exfatdebug:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatdebug \
471 $(FP_PATH)/tuxera/exfatlabel:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatlabel \
472 $(FP_PATH)/tuxera/exfatvsn:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatvsn \
473 $(FP_PATH)/tuxera/mkexfat:$(TARGET_COPY_OUT_SYSTEM)/bin/mkexfat
474
475
Bharathe341d1d2022-04-06 09:49:27 +0530476# Fastbootd
477PRODUCT_PACKAGES += fastbootd
478
479
Bharath756d7dd2021-08-07 23:53:55 +0530480# FBE support
481PRODUCT_COPY_FILES += \
482 $(FP_PATH)/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh
483
484
Bharath1710e062021-08-20 11:30:47 +0530485# Feature flags and permissions
486PRODUCT_COPY_FILES += \
487 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
488 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
489 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
490 frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
491 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
492 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
493 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
494 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
495 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 +0530496 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 +0530497 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
498 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
499 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 +0530500 frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
501 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
502 frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
503 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 +0530504 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 +0530505 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
506
Bharath1dcb6512021-08-20 00:41:08 +0530507# Fingerprint
508PRODUCT_PACKAGES += \
509 android.hardware.biometrics.fingerprint@2.1 \
510 android.hardware.biometrics.fingerprint@2.1-service \
511 elan_device.rc \
512 fingerprint.default
513
514# Fingerprint files
515include $(FP_PATH)/elan_lib/fingerprint/elan_lib.mk
516
517# Fingerprint feature flag
518PRODUCT_COPY_FILES += \
519 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
520
521
Bharath756d7dd2021-08-07 23:53:55 +0530522# Framework Detect
523PRODUCT_PACKAGES += \
524 libqti_vndfwk_detect \
525 libqti_vndfwk_detect.vendor \
526 libvndfwk_detect_jni.qti \
527 libvndfwk_detect_jni.qti.vendor \
528 vndservicemanager
529
Bharath12163282022-06-20 15:10:58 +0530530# FRP
531PRODUCT_PROPERTY_OVERRIDES += ro.frp.pst=/dev/block/bootdevice/by-name/config
532
Bharath756d7dd2021-08-07 23:53:55 +0530533
534# HIDL
535PRODUCT_PACKAGES += \
536 android.hidl.base@1.0 \
537 libhidltransport \
538 libhidltransport.vendor \
539 libhwbinder \
540 libhwbinder.vendor
541
542
Bharath1710e062021-08-20 11:30:47 +0530543# GPS
544BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
Luca Weissa8a60262022-02-28 15:00:31 +0100545LOC_HIDL_VERSION := 4.0
Bharath1710e062021-08-20 11:30:47 +0530546
547PRODUCT_PACKAGES += \
Bharath70cf2ae2022-02-14 12:13:50 +0530548 android.hardware.gnss@2.1-impl-qti \
Bharath1710e062021-08-20 11:30:47 +0530549 android.hardware.gnss@2.1-service-qti \
550 libbatching \
551 libgeofencing \
552 libgnss \
553 libjson \
554 libwifi-hal-ctrl \
555 libgps.utils
556
557PRODUCT_PACKAGES += \
558 flp.conf \
559 gps.conf
560
561# gps/location secuity configuration file
562PRODUCT_COPY_FILES += \
563 $(FP_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
564
565# Permissions
566PRODUCT_COPY_FILES += \
567 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
568
Bharath12163282022-06-20 15:10:58 +0530569PRODUCT_PROPERTY_OVERRIDES += \
570 persist.backup.ntpServer=0.pool.ntp.org
571
Bharath1710e062021-08-20 11:30:47 +0530572
Bharath756d7dd2021-08-07 23:53:55 +0530573# Health
574PRODUCT_PACKAGES += \
575 android.hardware.health@2.1-impl \
576 android.hardware.health@2.1-impl.recovery \
577 android.hardware.health@2.1-service
578
579# IMS
580PRODUCT_PACKAGES += \
581 ims-ext-common \
582 ims_ext_common.xml \
583 ConfURIDialer
584
Bharath12163282022-06-20 15:10:58 +0530585
586# Init
587PRODUCT_PACKAGES += \
588 fstab.qcom \
589 init.class_main.sh \
590 init.crda.sh \
591 init.mdm.sh \
592 init.qcom.class_core.sh \
593 init.qcom.coex.sh \
594 init.qcom.early_boot.sh \
595 init.qcom.efs.sync.sh \
596 init.qcom.factory.rc \
597 init.qcom.post_boot.sh \
598 init.qcom.rc \
599 init.qcom.sdio.sh \
600 init.qcom.sensors.sh \
601 init.qcom.sh \
602 init.qcom.usb.rc \
603 init.qcom.usb.sh \
604 init.recovery.qcom.rc \
605 init.target.rc \
606 init.veth_ipa_config.sh \
607 qca6234-service.sh \
608 ueventd.qcom.rc \
609 vold.fstab
610
611#intialise PRODUCT_PACKAGES_DEBUG list for debug modules
Luca Weiss2327bfb2022-07-13 09:47:07 +0200612PRODUCT_PACKAGES_DEBUG += init.qcom.testscripts.sh
Bharath12163282022-06-20 15:10:58 +0530613
614#Add init.qcom.test.rc to PRODUCT_PACKAGES_DEBUG list
615PRODUCT_PACKAGES_DEBUG += init.qcom.test.rc
616PRODUCT_PACKAGES_DEBUG += init.qcom.debug.sh
617
618ifneq ($(strip $(TARGET_BUILD_VARIANT)),user)
619PRODUCT_COPY_FILES += \
620 device/qcom/common/rootdir/etc/init.qcom.testscripts.sh:$(TARGET_COPY_OUT_PRODUCT)/etc/init.qcom.testscripts.sh
621endif
622
623PRODUCT_PACKAGES_DEBUG += \
624 init.qcom.debug.sh \
625 init.qcom.debug-sdm660.sh \
626 init.qcom.debug-sdm710.sh \
627 init.qti.debug-msmnile-apps.sh \
628 init.qti.debug-msmnile-modem.sh \
629 init.qti.debug-msmnile-slpi.sh \
630 init.qti.debug-talos.sh \
631 init.qti.debug-msmnile.sh \
632 init.qti.debug-kona.sh \
633 init.qti.debug-lito.sh \
634 init.qti.debug-trinket.sh \
635 init.qti.debug-atoll.sh \
636 init.qti.debug-lagoon.sh \
637 init.qti.debug-bengal.sh
638
639
640# IP and iptables
641PRODUCT_PACKAGES += \
642 ip \
643 libiprouteutil \
644 iptables \
645 ip-up-vpn \
646 libext
647
648
Bharath756d7dd2021-08-07 23:53:55 +0530649# IPACM
650PRODUCT_PACKAGES += \
651 ipacm \
652 IPACM_cfg.xml \
653 libipanat \
654 liboffloadhal \
655 libqsap_sdk
656
657# IRQ
658PRODUCT_COPY_FILES += \
659 $(FP_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
660 $(FP_PATH)/configs/msm_irqbalance_little_big.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance_little_big.conf
661
662
663# Kernel modules
664# Kernel modules install path
665KERNEL_MODULES_INSTALL := dlkm
666KERNEL_MODULES_OUT := out/target/product/$(PRODUCT_NAME)/$(KERNEL_MODULES_INSTALL)/lib/modules
Bharath12163282022-06-20 15:10:58 +0530667KERNEL_TO_BUILD_ROOT_OFFSET := ../../
668
669
670# Key layouts
671PRODUCT_PACKAGES += \
672 ft5x06_ts.kl \
673 gpio-keys.kl \
674 synaptics_dsx.kl \
675 synaptics_dsxv26.kl \
676 synaptics_rmi4_i2c.kl
Bharath756d7dd2021-08-07 23:53:55 +0530677
678
Bharatha701c6b2022-07-25 17:26:28 +0530679# Keystore
680PRODUCT_PROPERTY_OVERRIDES += ro.hardware.keystore_desede=true
681
682
Bharath756d7dd2021-08-07 23:53:55 +0530683# LED packages
684PRODUCT_PACKAGES += \
685 android.hardware.light@2.0-impl \
686 android.hardware.light@2.0-service \
687 lights.msm8953
688
689
690# Media / StagefrightCodec 2.0
691PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
692
Bharathe3615be2021-08-18 22:25:42 +0530693# Enable features in video HAL that can compile only on this platform
Bharath12163282022-06-20 15:10:58 +0530694MSM_VIDC_TARGET_LIST := msm8953
Bharathe3615be2021-08-18 22:25:42 +0530695TARGET_USES_MEDIA_EXTENSIONS := true
696
697
698# media_profiles and media_codecs xmls for msm8953
699PRODUCT_COPY_FILES += \
700 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles.xml \
701 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \
702 $(FP_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
703 $(FP_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
704 $(FP_PATH)/media/media_codecs_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_8953.xml \
705 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
706 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_8953.xml \
707 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles_8953_v1.xml \
708 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_8953_v1.xml \
709 $(FP_PATH)/media/media_codecs_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v1.xml \
710 $(FP_PATH)/media/media_codecs_performance_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v1.xml \
711 $(FP_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
Bharath12163282022-06-20 15:10:58 +0530712 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
713 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml
714
715PRODUCT_COPY_FILES += \
716 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
717 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
718 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
719 frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml \
720 frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \
721 frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
722 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 +0530723
Bharath756d7dd2021-08-07 23:53:55 +0530724
725# NFC
Bharath1710e062021-08-20 11:30:47 +0530726PRODUCT_PACKAGES += \
727 NfcNci \
728 Tag \
729 com.android.nfc_extras \
730 com.nxp.nfc.nq \
731 com.nxp.nfc.nq.xml \
732 libnqnfc-nci \
733 libnqnfc_nci_jni \
734 nfc_nci.nqx.default.hw \
735 vendor.nxp.hardware.nfc@2.0-service
736
737# Permissions
738PRODUCT_COPY_FILES += \
739 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
740 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
741 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
742 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
743 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
744 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
745 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
746 vendor/nxp/opensource/halimpl/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
747 vendor/nxp/opensource/halimpl/SN100x/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci_SN100.conf
Bharath756d7dd2021-08-07 23:53:55 +0530748
749
750# OMX
751PRODUCT_PACKAGES += \
752 libavservices_minijail.vendor \
753 libc2dcolorconvert \
754 libOmxAacEnc \
755 libOmxAmrEnc \
756 libOmxCore \
757 libOmxEvrcEnc \
758 libOmxQcelp13Enc \
759 libOmxVdec \
760 libOmxVenc \
761 libqomx_core \
762 libaacwrapper \
763 libmm-omxcore \
764 libstagefrighthw \
765 libstagefright_softomx.vendor
766
767
768#
769# system prop for opengles version
770#
771# 196608 is decimal for 0x30000 to report major/minor versions as 3/0
772# 196609 is decimal for 0x30001 to report major/minor versions as 3/1
773# 196610 is decimal for 0x30002 to report major/minor versions as 3/2
774PRODUCT_PROPERTY_OVERRIDES += \
775 ro.opengles.version=196610
776
777
Bharath12163282022-06-20 15:10:58 +0530778# AOSP Packages
779PRODUCT_PACKAGES += \
780 DeskClock \
781 Calendar \
782 CalendarProvider \
783 Camera2 \
784 CertInstaller \
785 Gallery2 \
786 LatinIME \
787 Launcher3 \
788 LiveWallpapersPicker \
789 Music \
790 netutils-wrapper-1.0 \
791 Provision \
792 Protips \
793 QuickSearchBox \
794 Settings \
795 Stk \
796 SystemUI \
797
798
Bharath756d7dd2021-08-07 23:53:55 +0530799# Perf
800PRODUCT_COPY_FILES += \
801 $(FP_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
802
Bharath12163282022-06-20 15:10:58 +0530803PRODUCT_PROPERTY_OVERRIDES += \
804 persist.vendor.qcomsysd.enabled=1 \
805 ro.vendor.extension_library=libqti-perfd-client.so \
806 sys.vendor.shutdown.waittime=500
807
Bharath756d7dd2021-08-07 23:53:55 +0530808
809# Power
810PRODUCT_PACKAGES += \
811 android.hardware.power@1.0-impl \
812 android.hardware.power@1.0-service \
813 power.qcom
814
815
Bharath756d7dd2021-08-07 23:53:55 +0530816# privapp-permissions whitelisting
817PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
818
819
820# Protobuf
821PRODUCT_PACKAGES += \
822 libprotobuf-cpp-full \
823 libprotobuf-cpp-full-vendorcompat \
824 libprotobuf-cpp-lite-vendorcompat
825
826
Bharath12163282022-06-20 15:10:58 +0530827# include additional QCOM build utilities
828-include device/qcom/common/utils.mk
829
Bharath756d7dd2021-08-07 23:53:55 +0530830# RIL properties
831PRODUCT_PROPERTY_OVERRIDES += rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
832PRODUCT_PROPERTY_OVERRIDES += vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
833#vendor prop to disable advanced network scanning
834PRODUCT_PROPERTY_OVERRIDES += \
835 persist.vendor.radio.enableadvancedscan=false
836
Bharath12163282022-06-20 15:10:58 +0530837# Enable Dual SIM by default
838PRODUCT_PROPERTY_OVERRIDES += persist.radio.multisim.config=dsds
839
840PRODUCT_PROPERTY_OVERRIDES += \
841 persist.vendor.radio.apm_sim_not_pwdn=1 \
842 persist.vendor.radio.sib16_support=1 \
843 persist.vendor.radio.custom_ecc=1 \
844 persist.vendor.radio.rat_on=combine \
845 persist.vendor.radio.procedure_bytes=SKIP
846
Bharath756d7dd2021-08-07 23:53:55 +0530847
848# RenderScript
849PRODUCT_PACKAGES += \
850 android.hardware.renderscript@1.0-impl
851
852
853# SDCard
854# default is nosdcard, S/W button enabled in resource
855PRODUCT_CHARACTERISTICS := nosdcard
856
857
858# Seccomp
859PRODUCT_COPY_FILES += \
860 $(FP_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
861 $(FP_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
862
863
Bharath1710e062021-08-20 11:30:47 +0530864# Secure Element
865PRODUCT_PACKAGES += \
866 android.hardware.secure_element@1.2
867
868
Bharath756d7dd2021-08-07 23:53:55 +0530869# System helper
870PRODUCT_PACKAGES += \
871 vendor.qti.hardware.systemhelper@1.0
872
873
874# Service tracker
875PRODUCT_PACKAGES += \
876 vendor.qti.hardware.servicetracker@1.2.vendor
877
878
Bharatha60665d2021-08-19 09:37:22 +0530879# Sensors
880PRODUCT_PACKAGES += \
881 sensors.FP3 \
882 android.hardware.sensors@1.0-impl \
883 android.hardware.sensors@1.0-service \
884 libsensorndkbridge
885
886# Sensor HAL conf file
887PRODUCT_COPY_FILES += \
888 $(FP_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
889
890# Feature definition files for msm8953
891PRODUCT_COPY_FILES += \
892 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
893 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
894 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
895 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
896 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
897 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
898 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
899
900
Bharath756d7dd2021-08-07 23:53:55 +0530901# Telephony Permissions
Bharath12163282022-06-20 15:10:58 +0530902# whitelisted app
903PRODUCT_COPY_FILES += \
904 device/qcom/common/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml
905
906PRODUCT_COPY_FILES += \
907 device/qcom/common/privapp-permissions-qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-qti.xml
908
909# Telephony wrappers
910PRODUCT_PACKAGES += \
911 qti-telephony-hidl-wrapper \
912 qti_telephony_hidl_wrapper.xml \
913 qti-telephony-utils \
914 qti_telephony_utils.xml
Bharath756d7dd2021-08-07 23:53:55 +0530915
916
917# Thermal
918PRODUCT_PACKAGES += \
919 android.hardware.thermal@1.0-impl \
920 android.hardware.thermal@1.0-service
921
922
923# Tinyxml
924PRODUCT_PACKAGES += \
925 libtinyxml
926
927# USB
928PRODUCT_PACKAGES += \
929 android.hardware.usb@1.0-service
930
931-include vendor/qcom/opensource/usb/vendor_product.mk
932
933
934# Vendor move
935PRODUCT_VENDOR_MOVE_ENABLED := true
936
937
938# Vibrator
939PRODUCT_PACKAGES += \
940 android.hardware.vibrator@1.0-impl \
Bharath12163282022-06-20 15:10:58 +0530941 android.hardware.vibrator@1.0-service \
942 vendor.qti.hardware.vibrator.service
943
944PRODUCT_COPY_FILES += \
945 vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml
Bharath756d7dd2021-08-07 23:53:55 +0530946
947
Bharathed255712021-08-14 20:37:05 +0530948# WiFi
949# WLAN drivers
950PRODUCT_COPY_FILES += \
951 $(FP_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
952 $(FP_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_wlan_dictionary.dat \
953 $(FP_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin # From Android 10
954
955# Flag to check if wcnss_service is built from source
956TARGET_USE_WCNSS_HAL := false
957
958# If building from source then drop proprietary dependency
959ifeq ($(TARGET_USE_WCNSS_HAL),true)
960TARGET_USES_QCOM_WCNSS_QMI := false
Bharath70cf2ae2022-02-14 12:13:50 +0530961
962PRODUCT_PACKAGES += \
963 libwcnss_qmi \
964 wcnss_service
Bharathed255712021-08-14 20:37:05 +0530965endif
966
967# WiFi HAL
968PRODUCT_PACKAGES += \
969 android.hardware.wifi@1.0-service
970
Bharath12163282022-06-20 15:10:58 +0530971# WLAN DLKM
972PRODUCT_PACKAGES += \
973 pronto_wlan.ko
974
Bharathed255712021-08-14 20:37:05 +0530975# WiFi Components
976PRODUCT_PACKAGES += \
977 hostapd \
978 hostapd.accept \
979 hostapd.deny \
980 hostapd_cli \
981 hostapd_default.conf \
982 libnl \
983 libqsap_sdk \
Bharathed255712021-08-14 20:37:05 +0530984 libwifi-hal-qcom \
985 libwpa_client \
986 p2p_supplicant_overlay.conf \
987 vendor.qti.hardware.wifi.supplicant@1.0.vendor \
Bharathed255712021-08-14 20:37:05 +0530988 wificond \
989 wpa_cli \
990 wpa_supplicant.conf \
991 wpa_supplicant \
992 wpa_supplicant_overlay.conf \
993 WifiOverlay \
994 TetheringConfigOverlay
995
996
Bharath12163282022-06-20 15:10:58 +0530997# Zlib
998PRODUCT_HOST_PACKAGES += minigzip
999
1000
1001#soong namespace for qssi vs vendor differentiation
1002SOONG_CONFIG_NAMESPACES += qssi_vs_vendor
1003SOONG_CONFIG_qssi_vs_vendor += qssi_or_vendor
1004SOONG_CONFIG_qssi_vs_vendor_qssi_or_vendor := vendor
1005
1006SOONG_CONFIG_NAMESPACES += aosp_vs_qva
1007SOONG_CONFIG_aosp_vs_qva += aosp_or_qva
1008ifeq ($(TARGET_FWK_SUPPORTS_FULL_VALUEADDS),true)
1009SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := qva
1010else
1011SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := aosp
1012endif
1013
1014SOONG_CONFIG_NAMESPACES += qtidisplaycommonsys
1015# Soong Keys
1016SOONG_CONFIG_qtidisplaycommonsys := displayconfig_enabled
1017# Soong Values
1018SOONG_CONFIG_qtidisplaycommonsys_displayconfig_enabled := true
1019
1020
Bharath756d7dd2021-08-07 23:53:55 +05301021# Call the proprietary setup
Bharatha3a85a72022-05-23 17:50:24 +05301022ifeq ($(FP3_PROPRIETARY_PATH),)
1023FP3_PROPRIETARY_PATH := device/fairphone/fp3-proprietary
1024$(warning Using default blobs path: $(FP3_PROPRIETARY_PATH).)
1025endif
1026
Francesco Salvatore03117482019-02-28 16:39:11 +01001027DEVICE_BLOB_VERSION := 4.A.0013.3
1028
1029GET_BLOBS_CMD = vendor/fairphone/tools/bin/get_blobs.py --device FP3 --build-id $(DEVICE_BLOB_VERSION) --blobs-dir $(FP3_PROPRIETARY_PATH)
1030
1031# Check the presence of proprietary blobs
1032ifeq ("$(wildcard $(FP3_PROPRIETARY_PATH)/device-vendor.mk)","")
1033define BLOBS_INSTRUCTION
1034Cannot find FP3 binary blobs.
1035Please run
1036 $(GET_BLOBS_CMD)
1037and accept the terms of agreement.
1038endef
1039$(error $(BLOBS_INSTRUCTION))
1040endif
1041
Bharath756d7dd2021-08-07 23:53:55 +05301042# Call this in the end so that flags if required can be utilized.
Bharatha3a85a72022-05-23 17:50:24 +05301043$(call inherit-product, $(FP3_PROPRIETARY_PATH)/device-vendor.mk)
1044
Bharath12163282022-06-20 15:10:58 +05301045# Build some more display components to vendor
1046$(call inherit-product, vendor/qcom/opensource/commonsys-intf/display/config/display-interfaces-product.mk)
Bharath756d7dd2021-08-07 23:53:55 +05301047###################################################################################