blob: 0f0a26b8305e433d004bf11857fa4fa9c79f7b1f [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
Borjan Tchakaloff17a5b5f2018-05-11 11:35:06 +020056
Bharath756d7dd2021-08-07 23:53:55 +053057
Luca Weisse7ef1c82022-07-13 13:13:20 +020058# Define SPL for boot & vendor
59BOOT_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
60VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
61
62
Bharath756d7dd2021-08-07 23:53:55 +053063# We don't have the calibration data as this sort of
64# data can only be generated at the factory so don't generate persist.img
65FP3_SKIP_PERSIST_IMG := true
66
Bharath80ba1872021-08-21 11:53:57 +053067
68# Operator specific overlays
69DEVICE_PACKAGE_OVERLAYS += \
70 $(LOCAL_PATH)/overlay-operators
71
Bharath756d7dd2021-08-07 23:53:55 +053072# Overlays
73DEVICE_PACKAGE_OVERLAYS += \
74 $(LOCAL_PATH)/overlay
75
76
77# A/B related defines
78AB_OTA_UPDATER := true
Luca Weissd6c3ca12022-07-13 16:24:08 +020079AB_OTA_PARTITIONS := \
80 aboot \
81 cmnlib64 \
82 cmnlib \
83 devcfg \
84 dsp \
Bharath756d7dd2021-08-07 23:53:55 +053085 dtbo \
Luca Weissd6c3ca12022-07-13 16:24:08 +020086 keymaster \
87 lksecapp \
88 mdtp \
89 modem \
90 rpm \
91 sbl1 \
92 tz \
Bharath756d7dd2021-08-07 23:53:55 +053093 vbmeta \
Luca Weissd6c3ca12022-07-13 16:24:08 +020094 boot \
95 system \
Bharath756d7dd2021-08-07 23:53:55 +053096 vendor
97
98
Bharath756d7dd2021-08-07 23:53:55 +053099PRODUCT_PACKAGES += \
Bharath756d7dd2021-08-07 23:53:55 +0530100 update_engine_sideload
101
Bharath776a9712022-03-18 00:00:41 +0530102# Dynamic Partition
103# Enable retrofit dynamic partitions for FP3
104PRODUCT_USE_DYNAMIC_PARTITIONS := true
105PRODUCT_RETROFIT_DYNAMIC_PARTITIONS := true
106
107# Additional OTA partitions
108ifeq ($(PRODUCT_USE_DYNAMIC_PARTITIONS), true)
109AB_OTA_PARTITIONS += \
110 odm \
111 product \
112 system_ext
113
114# Check OTA update status
115PRODUCT_PACKAGES += check_dynamic_partitions
116
117# Ramdisk fstab file
118PRODUCT_PACKAGES += fstab_ramdisk.qcom
119
120AB_OTA_POSTINSTALL_CONFIG += \
121 RUN_POSTINSTALL_product=true \
122 POSTINSTALL_PATH_product=bin/check_dynamic_partitions \
123 FILESYSTEM_TYPE_product=ext4 \
124 POSTINSTALL_OPTIONAL_product=false
125
126endif
Bharath756d7dd2021-08-07 23:53:55 +0530127
Bharath2307d3b2022-01-06 22:23:25 +0530128# APN
129PRODUCT_COPY_FILES += \
130 $(LOCAL_PATH)/apns-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
131
132
Bharath756d7dd2021-08-07 23:53:55 +0530133# AVB
134BOARD_AVB_ENABLE := true
135
136
137# Additional native libraries
138PRODUCT_COPY_FILES += \
139 $(FP_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
140
141
Bharath12163282022-06-20 15:10:58 +0530142# OEM Unlock reporting
143PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
144 ro.oem_unlock_supported=1
145
146
Bharath756d7dd2021-08-07 23:53:55 +0530147# Atrace HAL
148PRODUCT_PACKAGES += \
149 android.hardware.atrace@1.0-service
150
151
152# Audio
Bharath756d7dd2021-08-07 23:53:55 +0530153PRODUCT_PACKAGES += \
154 android.hardware.audio@6.0 \
155 android.hardware.audio.common@6.0 \
156 android.hardware.audio.common@6.0-util \
Bharath70cf2ae2022-02-14 12:13:50 +0530157 android.hardware.audio@6.0-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530158 android.hardware.audio.effect@6.0 \
Bharath70cf2ae2022-02-14 12:13:50 +0530159 android.hardware.audio.effect@6.0-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530160 android.hardware.audio.service \
161 android.hardware.soundtrigger@2.1-impl \
162 audio.a2dp.default \
163 audio.primary.msm8953 \
164 audio.r_submix.default \
165 audio.usb.default \
166 libaacwrapper \
167 libaudio-resampler \
168 libautohal \
169 libqcompostprocbundle \
170 libqcomvisualizer \
171 libqcomvoiceprocessing \
172 libvolumelistener \
173 tinymix
174
175
Bharathf96fea32022-10-05 09:43:16 +0530176AUDIO_HAL_PATH := hardware/qcom/audio
Bharath756d7dd2021-08-07 23:53:55 +0530177
178# Audio files
179PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530180 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
181 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
182 $(AUDIO_HAL_PATH)/configs/msm8953/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
183 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
184 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku3_tasha.xml \
185 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku4.xml \
186 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tasha.xml \
187 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tashalite.xml \
188 $(AUDIO_HAL_PATH)/configs/msm8953/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
189 $(AUDIO_HAL_PATH)/configs/msm8953/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
190 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
191 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
192 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku3_tasha.xml \
193 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku4.xml \
194 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
195 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \
196 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
197 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9306.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9306.xml \
198 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9330.xml \
199 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \
200 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
201
202
203# Audio config files
204PRODUCT_COPY_FILES += \
205 frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
206 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
207 frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
208 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
209 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
210 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
211
212# Custom config files
213PRODUCT_COPY_FILES += \
214 $(FP_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
215
216
217# Audio firmware files
218PRODUCT_COPY_FILES += \
219 $(FP_PATH)/aw/aw8898_cfg.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/aw8898_cfg.bin \
220 $(FP_PATH)/tas2557_fw/OBO_0617_music.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557_uCDSP.bin \
221 $(FP_PATH)/tas2557_fw/tas2557evm_OBO_0617.ftcfg:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557evm_aacspk_a.ftcfg
222
223
224# Audio Specific device overlays
225DEVICE_PACKAGE_OVERLAYS += $(AUDIO_HAL_PATH)/configs/common/overlay
226
227
228# Audio Specific properties
229# Properties
230-include $(LOCAL_PATH)/audio_properties.mk
231
232
233# Audio Kernel modules
234AUDIO_DLKM := audio_apr.ko
235AUDIO_DLKM += audio_q6_notifier.ko
236AUDIO_DLKM += audio_adsp_loader.ko
237AUDIO_DLKM += audio_q6.ko
238AUDIO_DLKM += audio_usf.ko
239AUDIO_DLKM += audio_pinctrl_wcd.ko
240AUDIO_DLKM += audio_swr.ko
241AUDIO_DLKM += audio_wcd_core.ko
242AUDIO_DLKM += audio_swr_ctrl.ko
243AUDIO_DLKM += audio_wsa881x.ko
244AUDIO_DLKM += audio_wsa881x_analog.ko
245AUDIO_DLKM += audio_platform.ko
246AUDIO_DLKM += audio_cpe_lsm.ko
247AUDIO_DLKM += audio_hdmi.ko
248AUDIO_DLKM += audio_stub.ko
249AUDIO_DLKM += audio_wcd9xxx.ko
250AUDIO_DLKM += audio_mbhc.ko
251AUDIO_DLKM += audio_wcd9335.ko
252AUDIO_DLKM += audio_wcd_cpe.ko
253AUDIO_DLKM += audio_digital_cdc.ko
254AUDIO_DLKM += audio_analog_cdc.ko
255AUDIO_DLKM += audio_native.ko
256AUDIO_DLKM += audio_machine_sdm450.ko
257AUDIO_DLKM += audio_machine_ext_sdm450.ko
258PRODUCT_PACKAGES += $(AUDIO_DLKM)
259
260
Bharath9cdcce22021-12-08 15:43:43 +0530261# Automation/ATS
262PRODUCT_PACKAGES += \
263 automation_setup \
264 automation_adb_setup
265
266
Bharathfe661fb2021-08-16 18:56:32 +0530267# ANT
268PRODUCT_PACKAGES += \
269 AntHalService \
270 antradio_app \
271 com.dsi.ant@1.0 \
Bharath70cf2ae2022-02-14 12:13:50 +0530272 com.dsi.ant@1.0.vendor \
Bharathfe661fb2021-08-16 18:56:32 +0530273 libantradio
274
Bharath756d7dd2021-08-07 23:53:55 +0530275# Bluetooth
Bharathfe661fb2021-08-16 18:56:32 +0530276PRODUCT_PACKAGES += \
Bharathfe661fb2021-08-16 18:56:32 +0530277 audio.bluetooth.default \
278 android.hardware.bluetooth.audio@2.0-impl \
279 android.hardware.bluetooth@1.0 \
280 vendor.qti.hardware.bluetooth_audio@2.0 \
Bharath19ec3492022-03-14 10:22:26 +0530281 vendor.qti.hardware.bluetooth_audio@2.1.vendor
Bharathfe661fb2021-08-16 18:56:32 +0530282
283# Bluetooth Permissions
284PRODUCT_COPY_FILES += \
285 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
286 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 +0530287
288
Bharath12163282022-06-20 15:10:58 +0530289# Board platforms lists to be used for
290# TARGET_BOARD_PLATFORM specific featurization
291QCOM_BOARD_PLATFORMS += msm8953
292
293
Bharath756d7dd2021-08-07 23:53:55 +0530294# Boot
295PRODUCT_PACKAGES += \
296 android.hardware.boot@1.0-impl \
297 android.hardware.boot@1.0-impl.recovery \
298 android.hardware.boot@1.0-service \
299 bootctrl.msm8953 \
Bharathe341d1d2022-04-06 09:49:27 +0530300 bootctrl.msm8953.recovery \
Bharath756d7dd2021-08-07 23:53:55 +0530301 update_engine \
302 update_engine_client \
303 update_engine_sideload \
304 update_verifier
305
Bharath12163282022-06-20 15:10:58 +0530306# MSM updater library
307PRODUCT_PACKAGES += librecovery_updater_msm
308
309
310# Skip boot jars check
311SKIP_BOOT_JARS_CHECK := true
312
Bharath756d7dd2021-08-07 23:53:55 +0530313
314# Boot animation
315TARGET_SCREEN_HEIGHT := 2160
316TARGET_SCREEN_WIDTH := 1080
317
318
319PRODUCT_COPY_FILES += \
320 vendor/fairphone/media/bootanimation/bootanimation.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip
321
322
323# Camera
Bharathcbfb0a92021-08-19 21:13:50 +0530324PRODUCT_PACKAGES += \
325 android.frameworks.displayservice@1.0.vendor \
326 android.hidl.base@1.0.vendor \
327 android.hardware.camera.device@3.5 \
328 android.hardware.camera.provider@2.4 \
329 android.hardware.camera.provider@2.4-external \
330 android.hardware.camera.provider@2.4-impl \
331 android.hardware.camera.provider@2.4-legacy \
332 android.hardware.camera.provider@2.4-service \
333 android.hardware.camera.provider@2.6 \
334 camera.device@1.0-impl \
335 camera.device@3.5-impl \
336 camera.device@3.6-external-impl \
337 camera.msm8953 \
Bharathcbfb0a92021-08-19 21:13:50 +0530338 libcamera2ndk_vendor \
339 libhal_dbg \
340 libjni_burstpmk \
341 libjni_imageutil \
342 libjni_snapcammosaic \
343 libjni_snapcamtinyplanet \
344 libmm-qcamera \
345 libmmcamera_interface \
346 libmmjpeg_interface \
347 libmmlib2d_interface \
348 libqomx_core \
349 libxml2 \
350 mm-qcamera-app \
351 vendor.qti.hardware.camera.device@1.0 \
352 vendor.qti.hardware.camera.device@1.0.vendor
353
354# Fairphone Camera
355PRODUCT_PACKAGES += \
356 FairphoneCamera
357
358# Arcsoft camera libraries
359PRODUCT_PACKAGES += \
360 libarcimageprocess \
361 libarcsoft_aiscenedetection \
362 libarcsoft_hdr_detection \
363 libarcsoft_high_dynamic_range \
364 libarcsoft_low_light_hdr \
365 libarcsoft_low_light_shot \
366 libarcsoft_object_tracking \
367 libarcsoft_panorama_burstcapture \
368 libarcsoft_singlecam_bokeh \
369 libarcsoft_videoautozoom \
370 libarcsoft_videostabs \
371 libmpbase \
372 libmpbase.vendor
373
374# Feature flags for camera
375PRODUCT_COPY_FILES += \
376 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
377 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
378 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
379 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 +0530380
381
382# Component overrides
Bharathe025dac2022-08-02 15:02:41 +0530383PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530384 $(FP_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
385
386
Bharath12163282022-06-20 15:10:58 +0530387# Charger
388PRODUCT_PACKAGES += \
389 charger \
390 charger_res_images
391
392
393# Chromium
394PRODUCT_PACKAGES += \
395 libwebviewchromium_loader \
396 libwebviewchromium_plat_support
397
398
399# Curl
400PRODUCT_PACKAGES += \
401 curl \
402 libcurl
403
404
405# Data/rmnetctrl
406PRODUCT_PACKAGES += \
407 librmnetctl
408
leolee75d66582020-10-21 15:26:49 +0800409# IPV4
410PRODUCT_PROPERTY_OVERRIDES += \
411 persist.vendor.data.profile_update=true
412
Bharatha701c6b2022-07-25 17:26:28 +0530413PRODUCT_PROPERTY_OVERRIDES += ro.telephony.iwlan_operation_mode=legacy
414
Bharath12163282022-06-20 15:10:58 +0530415
Bharath756d7dd2021-08-07 23:53:55 +0530416# Display
417PRODUCT_PACKAGES += \
418 android.hardware.graphics.allocator@2.0-impl \
419 android.hardware.graphics.allocator@2.0-service \
420 android.hardware.graphics.composer@2.1-service \
421 android.hardware.graphics.mapper@2.0-impl-2.1 \
422 android.hardware.memtrack@1.0-impl \
423 android.hardware.memtrack@1.0-service \
424 gralloc.default \
425 gralloc.msm8953 \
426 hwcomposer.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530427 libdisplayconfig \
Bharath12163282022-06-20 15:10:58 +0530428 libdisplayconfig.qti \
429 libdrm \
430 libgralloc.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530431 libqdMetaData \
Bharath12163282022-06-20 15:10:58 +0530432 libqdutils \
Bharath756d7dd2021-08-07 23:53:55 +0530433 libvulkan \
Bharath12163282022-06-20 15:10:58 +0530434 memtrack.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530435 vendor.qti.hardware.display.composer@3.0
436
437
438# Vendor Display
439# Disable skip validate
440PRODUCT_PROPERTY_OVERRIDES += \
441 vendor.display.disable_skip_validate=1
442
Bharatha701c6b2022-07-25 17:26:28 +0530443PRODUCT_PROPERTY_OVERRIDES += ro.hardware.vulkan=adreno
444PRODUCT_PROPERTY_OVERRIDES += ro.hardware.egl=adreno
445
Bharath756d7dd2021-08-07 23:53:55 +0530446
447# Display Properties
448PRODUCT_AAPT_CONFIG := normal
449PRODUCT_AAPT_PREF_CONFIG := xxhdpi
450
451
452# DRM
453PRODUCT_PACKAGES += \
Edwin Wong8de56c72021-03-25 00:19:58 -0700454 android.hardware.drm@1.4-service.clearkey
Bharath756d7dd2021-08-07 23:53:55 +0530455
456
Pradeep Chenthatib4c3c102021-10-19 20:07:52 +0530457# Elabel
458PRODUCT_PACKAGES += \
459 eLabel.html.gz \
460 eLabel1.png \
461 eLabel2.png \
462 FAIRPHONE.html.gz \
463 FAIRPHONE.png
464
465
Bharath756d7dd2021-08-07 23:53:55 +0530466# Enable vndk-sp Libraries
467PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
468TARGET_USES_MKE2FS := true
469
470PRODUCT_PACKAGES += \
471 vndk_package
472
473
474# Encryption
475PRODUCT_PROPERTY_OVERRIDES += ro.crypto.allow_encrypt_override=true
476PRODUCT_PROPERTY_OVERRIDES += ro.crypto.volume.filenames_mode=aes-256-cts
477
478
Bharath12163282022-06-20 15:10:58 +0530479# E2fsck
480PRODUCT_PACKAGES += \
481 e2fsck
482
Bharath44ee36f2022-05-02 15:37:19 +0530483# ExFAT binaries
484PRODUCT_COPY_FILES += \
485 $(FP_PATH)/tuxera/exfatck:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatck \
486 $(FP_PATH)/tuxera/exfatdebug:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatdebug \
487 $(FP_PATH)/tuxera/exfatlabel:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatlabel \
488 $(FP_PATH)/tuxera/exfatvsn:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatvsn \
489 $(FP_PATH)/tuxera/mkexfat:$(TARGET_COPY_OUT_SYSTEM)/bin/mkexfat
490
491
Bharathe341d1d2022-04-06 09:49:27 +0530492# Fastbootd
493PRODUCT_PACKAGES += fastbootd
494
495
Bharath756d7dd2021-08-07 23:53:55 +0530496# FBE support
497PRODUCT_COPY_FILES += \
498 $(FP_PATH)/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh
499
500
Bharath1710e062021-08-20 11:30:47 +0530501# Feature flags and permissions
502PRODUCT_COPY_FILES += \
503 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
504 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
505 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
506 frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
507 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
508 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
509 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
510 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
511 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 +0530512 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 +0530513 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
514 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
515 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 +0530516 frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
517 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
518 frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
519 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 +0530520 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 +0530521 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
522
Bharath1dcb6512021-08-20 00:41:08 +0530523# Fingerprint
524PRODUCT_PACKAGES += \
525 android.hardware.biometrics.fingerprint@2.1 \
526 android.hardware.biometrics.fingerprint@2.1-service \
527 elan_device.rc \
528 fingerprint.default
529
530# Fingerprint files
531include $(FP_PATH)/elan_lib/fingerprint/elan_lib.mk
532
533# Fingerprint feature flag
534PRODUCT_COPY_FILES += \
535 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
536
537
Bharath756d7dd2021-08-07 23:53:55 +0530538# Framework Detect
539PRODUCT_PACKAGES += \
540 libqti_vndfwk_detect \
541 libqti_vndfwk_detect.vendor \
542 libvndfwk_detect_jni.qti \
543 libvndfwk_detect_jni.qti.vendor \
544 vndservicemanager
545
Bharath12163282022-06-20 15:10:58 +0530546# FRP
547PRODUCT_PROPERTY_OVERRIDES += ro.frp.pst=/dev/block/bootdevice/by-name/config
548
Bharath756d7dd2021-08-07 23:53:55 +0530549
550# HIDL
551PRODUCT_PACKAGES += \
552 android.hidl.base@1.0 \
553 libhidltransport \
554 libhidltransport.vendor \
555 libhwbinder \
556 libhwbinder.vendor
557
558
Bharath1710e062021-08-20 11:30:47 +0530559# GPS
560BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
Luca Weissa8a60262022-02-28 15:00:31 +0100561LOC_HIDL_VERSION := 4.0
Bharath1710e062021-08-20 11:30:47 +0530562
563PRODUCT_PACKAGES += \
Bharath70cf2ae2022-02-14 12:13:50 +0530564 android.hardware.gnss@2.1-impl-qti \
Bharath1710e062021-08-20 11:30:47 +0530565 android.hardware.gnss@2.1-service-qti \
566 libbatching \
567 libgeofencing \
568 libgnss \
569 libjson \
570 libwifi-hal-ctrl \
571 libgps.utils
572
573PRODUCT_PACKAGES += \
574 flp.conf \
575 gps.conf
576
577# gps/location secuity configuration file
578PRODUCT_COPY_FILES += \
579 $(FP_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
580
581# Permissions
582PRODUCT_COPY_FILES += \
583 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
584
Bharath12163282022-06-20 15:10:58 +0530585PRODUCT_PROPERTY_OVERRIDES += \
586 persist.backup.ntpServer=0.pool.ntp.org
587
Bharath1710e062021-08-20 11:30:47 +0530588
Bharath756d7dd2021-08-07 23:53:55 +0530589# Health
590PRODUCT_PACKAGES += \
591 android.hardware.health@2.1-impl \
592 android.hardware.health@2.1-impl.recovery \
593 android.hardware.health@2.1-service
594
595# IMS
596PRODUCT_PACKAGES += \
597 ims-ext-common \
598 ims_ext_common.xml \
599 ConfURIDialer
600
Bharath12163282022-06-20 15:10:58 +0530601
602# Init
603PRODUCT_PACKAGES += \
604 fstab.qcom \
605 init.class_main.sh \
606 init.crda.sh \
Karsten Tauschee270bad2022-08-22 15:41:19 +0200607 init.legacy_prop.rc \
Bharath12163282022-06-20 15:10:58 +0530608 init.mdm.sh \
609 init.qcom.class_core.sh \
610 init.qcom.coex.sh \
611 init.qcom.early_boot.sh \
612 init.qcom.efs.sync.sh \
613 init.qcom.factory.rc \
614 init.qcom.post_boot.sh \
615 init.qcom.rc \
616 init.qcom.sdio.sh \
617 init.qcom.sensors.sh \
618 init.qcom.sh \
619 init.qcom.usb.rc \
620 init.qcom.usb.sh \
621 init.recovery.qcom.rc \
622 init.target.rc \
623 init.veth_ipa_config.sh \
624 qca6234-service.sh \
625 ueventd.qcom.rc \
626 vold.fstab
627
628#intialise PRODUCT_PACKAGES_DEBUG list for debug modules
Luca Weiss2327bfb2022-07-13 09:47:07 +0200629PRODUCT_PACKAGES_DEBUG += init.qcom.testscripts.sh
Bharath12163282022-06-20 15:10:58 +0530630
631#Add init.qcom.test.rc to PRODUCT_PACKAGES_DEBUG list
632PRODUCT_PACKAGES_DEBUG += init.qcom.test.rc
633PRODUCT_PACKAGES_DEBUG += init.qcom.debug.sh
634
635ifneq ($(strip $(TARGET_BUILD_VARIANT)),user)
636PRODUCT_COPY_FILES += \
Bharath8e773362022-10-05 09:42:57 +0530637 $(FP_PATH)/rootdir/etc/init.qcom.testscripts.sh:$(TARGET_COPY_OUT_PRODUCT)/etc/init.qcom.testscripts.sh
Bharath12163282022-06-20 15:10:58 +0530638endif
639
640PRODUCT_PACKAGES_DEBUG += \
641 init.qcom.debug.sh \
642 init.qcom.debug-sdm660.sh \
643 init.qcom.debug-sdm710.sh \
644 init.qti.debug-msmnile-apps.sh \
645 init.qti.debug-msmnile-modem.sh \
646 init.qti.debug-msmnile-slpi.sh \
647 init.qti.debug-talos.sh \
648 init.qti.debug-msmnile.sh \
649 init.qti.debug-kona.sh \
650 init.qti.debug-lito.sh \
651 init.qti.debug-trinket.sh \
652 init.qti.debug-atoll.sh \
653 init.qti.debug-lagoon.sh \
654 init.qti.debug-bengal.sh
655
656
657# IP and iptables
658PRODUCT_PACKAGES += \
659 ip \
660 libiprouteutil \
661 iptables \
662 ip-up-vpn \
663 libext
664
665
Bharath756d7dd2021-08-07 23:53:55 +0530666# IPACM
667PRODUCT_PACKAGES += \
668 ipacm \
669 IPACM_cfg.xml \
670 libipanat \
671 liboffloadhal \
672 libqsap_sdk
673
674# IRQ
675PRODUCT_COPY_FILES += \
676 $(FP_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
677 $(FP_PATH)/configs/msm_irqbalance_little_big.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance_little_big.conf
678
679
680# Kernel modules
681# Kernel modules install path
682KERNEL_MODULES_INSTALL := dlkm
683KERNEL_MODULES_OUT := out/target/product/$(PRODUCT_NAME)/$(KERNEL_MODULES_INSTALL)/lib/modules
Bharath12163282022-06-20 15:10:58 +0530684KERNEL_TO_BUILD_ROOT_OFFSET := ../../
685
686
687# Key layouts
688PRODUCT_PACKAGES += \
689 ft5x06_ts.kl \
690 gpio-keys.kl \
691 synaptics_dsx.kl \
692 synaptics_dsxv26.kl \
693 synaptics_rmi4_i2c.kl
Bharath756d7dd2021-08-07 23:53:55 +0530694
695
Bharatha701c6b2022-07-25 17:26:28 +0530696# Keystore
697PRODUCT_PROPERTY_OVERRIDES += ro.hardware.keystore_desede=true
698
699
Bharath756d7dd2021-08-07 23:53:55 +0530700# LED packages
701PRODUCT_PACKAGES += \
702 android.hardware.light@2.0-impl \
703 android.hardware.light@2.0-service \
704 lights.msm8953
705
706
707# Media / StagefrightCodec 2.0
708PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
709
Bharathe3615be2021-08-18 22:25:42 +0530710# Enable features in video HAL that can compile only on this platform
Bharath12163282022-06-20 15:10:58 +0530711MSM_VIDC_TARGET_LIST := msm8953
Bharathe3615be2021-08-18 22:25:42 +0530712TARGET_USES_MEDIA_EXTENSIONS := true
713
714
715# media_profiles and media_codecs xmls for msm8953
716PRODUCT_COPY_FILES += \
717 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles.xml \
718 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \
719 $(FP_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
720 $(FP_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
721 $(FP_PATH)/media/media_codecs_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_8953.xml \
722 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
723 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_8953.xml \
724 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles_8953_v1.xml \
725 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_8953_v1.xml \
726 $(FP_PATH)/media/media_codecs_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v1.xml \
727 $(FP_PATH)/media/media_codecs_performance_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v1.xml \
728 $(FP_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
Bharath8e773362022-10-05 09:42:57 +0530729 $(FP_PATH)/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
730 $(FP_PATH)/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml
Bharath12163282022-06-20 15:10:58 +0530731
732PRODUCT_COPY_FILES += \
733 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
734 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
735 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
736 frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml \
737 frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \
738 frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
739 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 +0530740
Bharath756d7dd2021-08-07 23:53:55 +0530741
742# NFC
Bharath1710e062021-08-20 11:30:47 +0530743PRODUCT_PACKAGES += \
Bharathcaaa78e2022-09-06 10:18:06 +0530744 NQNfcNci \
Bharath1710e062021-08-20 11:30:47 +0530745 Tag \
746 com.android.nfc_extras \
747 com.nxp.nfc.nq \
748 com.nxp.nfc.nq.xml \
749 libnqnfc-nci \
750 libnqnfc_nci_jni \
751 nfc_nci.nqx.default.hw \
752 vendor.nxp.hardware.nfc@2.0-service
753
754# Permissions
755PRODUCT_COPY_FILES += \
756 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
757 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
758 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
759 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
760 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
761 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
762 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
763 vendor/nxp/opensource/halimpl/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
764 vendor/nxp/opensource/halimpl/SN100x/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci_SN100.conf
Bharath756d7dd2021-08-07 23:53:55 +0530765
766
767# OMX
768PRODUCT_PACKAGES += \
769 libavservices_minijail.vendor \
770 libc2dcolorconvert \
771 libOmxAacEnc \
772 libOmxAmrEnc \
773 libOmxCore \
774 libOmxEvrcEnc \
775 libOmxQcelp13Enc \
776 libOmxVdec \
777 libOmxVenc \
778 libqomx_core \
779 libaacwrapper \
780 libmm-omxcore \
781 libstagefrighthw \
782 libstagefright_softomx.vendor
783
784
785#
786# system prop for opengles version
787#
788# 196608 is decimal for 0x30000 to report major/minor versions as 3/0
789# 196609 is decimal for 0x30001 to report major/minor versions as 3/1
790# 196610 is decimal for 0x30002 to report major/minor versions as 3/2
791PRODUCT_PROPERTY_OVERRIDES += \
792 ro.opengles.version=196610
793
794
Bharath12163282022-06-20 15:10:58 +0530795# AOSP Packages
796PRODUCT_PACKAGES += \
797 DeskClock \
798 Calendar \
799 CalendarProvider \
800 Camera2 \
801 CertInstaller \
802 Gallery2 \
803 LatinIME \
804 Launcher3 \
805 LiveWallpapersPicker \
806 Music \
807 netutils-wrapper-1.0 \
808 Provision \
809 Protips \
810 QuickSearchBox \
811 Settings \
812 Stk \
813 SystemUI \
814
815
Bharath756d7dd2021-08-07 23:53:55 +0530816# Perf
817PRODUCT_COPY_FILES += \
818 $(FP_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
819
Bharath12163282022-06-20 15:10:58 +0530820PRODUCT_PROPERTY_OVERRIDES += \
821 persist.vendor.qcomsysd.enabled=1 \
822 ro.vendor.extension_library=libqti-perfd-client.so \
823 sys.vendor.shutdown.waittime=500
824
Bharath756d7dd2021-08-07 23:53:55 +0530825
826# Power
827PRODUCT_PACKAGES += \
828 android.hardware.power@1.0-impl \
829 android.hardware.power@1.0-service \
830 power.qcom
831
832
Bharath756d7dd2021-08-07 23:53:55 +0530833# privapp-permissions whitelisting
834PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
835
836
837# Protobuf
838PRODUCT_PACKAGES += \
839 libprotobuf-cpp-full \
840 libprotobuf-cpp-full-vendorcompat \
841 libprotobuf-cpp-lite-vendorcompat
842
843
Bharath12163282022-06-20 15:10:58 +0530844# include additional QCOM build utilities
Bharath8e773362022-10-05 09:42:57 +0530845include $(FP_PATH)/utils.mk
Bharath12163282022-06-20 15:10:58 +0530846
Bharath756d7dd2021-08-07 23:53:55 +0530847# RIL properties
848PRODUCT_PROPERTY_OVERRIDES += rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
849PRODUCT_PROPERTY_OVERRIDES += vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
850#vendor prop to disable advanced network scanning
851PRODUCT_PROPERTY_OVERRIDES += \
852 persist.vendor.radio.enableadvancedscan=false
853
Bharath12163282022-06-20 15:10:58 +0530854# Enable Dual SIM by default
855PRODUCT_PROPERTY_OVERRIDES += persist.radio.multisim.config=dsds
856
857PRODUCT_PROPERTY_OVERRIDES += \
858 persist.vendor.radio.apm_sim_not_pwdn=1 \
859 persist.vendor.radio.sib16_support=1 \
860 persist.vendor.radio.custom_ecc=1 \
861 persist.vendor.radio.rat_on=combine \
862 persist.vendor.radio.procedure_bytes=SKIP
863
Bharath756d7dd2021-08-07 23:53:55 +0530864
865# RenderScript
866PRODUCT_PACKAGES += \
867 android.hardware.renderscript@1.0-impl
868
869
870# SDCard
871# default is nosdcard, S/W button enabled in resource
872PRODUCT_CHARACTERISTICS := nosdcard
873
874
875# Seccomp
876PRODUCT_COPY_FILES += \
877 $(FP_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
878 $(FP_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
879
880
Bharath1710e062021-08-20 11:30:47 +0530881# Secure Element
882PRODUCT_PACKAGES += \
883 android.hardware.secure_element@1.2
884
885
Bharathca82a242022-08-18 19:48:51 +0530886# Sound Recorder
887PRODUCT_PACKAGES += \
888 QtiSoundRecorder
889
890
Bharath756d7dd2021-08-07 23:53:55 +0530891# System helper
892PRODUCT_PACKAGES += \
893 vendor.qti.hardware.systemhelper@1.0
894
895
896# Service tracker
897PRODUCT_PACKAGES += \
898 vendor.qti.hardware.servicetracker@1.2.vendor
899
900
Bharatha60665d2021-08-19 09:37:22 +0530901# Sensors
902PRODUCT_PACKAGES += \
903 sensors.FP3 \
904 android.hardware.sensors@1.0-impl \
905 android.hardware.sensors@1.0-service \
906 libsensorndkbridge
907
908# Sensor HAL conf file
909PRODUCT_COPY_FILES += \
910 $(FP_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
911
912# Feature definition files for msm8953
913PRODUCT_COPY_FILES += \
914 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
915 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
916 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
917 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
918 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
919 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
920 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
921
922
Bharath756d7dd2021-08-07 23:53:55 +0530923# Telephony Permissions
Bharath12163282022-06-20 15:10:58 +0530924# whitelisted app
925PRODUCT_COPY_FILES += \
Bharath8e773362022-10-05 09:42:57 +0530926 $(FP_PATH)/configs/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml
Bharath12163282022-06-20 15:10:58 +0530927
928PRODUCT_COPY_FILES += \
Bharath8e773362022-10-05 09:42:57 +0530929 $(FP_PATH)/configs/privapp-permissions-qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-qti.xml
Bharath12163282022-06-20 15:10:58 +0530930
931# Telephony wrappers
932PRODUCT_PACKAGES += \
933 qti-telephony-hidl-wrapper \
934 qti_telephony_hidl_wrapper.xml \
935 qti-telephony-utils \
936 qti_telephony_utils.xml
Bharath756d7dd2021-08-07 23:53:55 +0530937
938
939# Thermal
940PRODUCT_PACKAGES += \
941 android.hardware.thermal@1.0-impl \
942 android.hardware.thermal@1.0-service
943
944
945# Tinyxml
946PRODUCT_PACKAGES += \
947 libtinyxml
948
949# USB
950PRODUCT_PACKAGES += \
951 android.hardware.usb@1.0-service
952
953-include vendor/qcom/opensource/usb/vendor_product.mk
954
955
956# Vendor move
957PRODUCT_VENDOR_MOVE_ENABLED := true
958
959
960# Vibrator
961PRODUCT_PACKAGES += \
962 android.hardware.vibrator@1.0-impl \
Bharath12163282022-06-20 15:10:58 +0530963 android.hardware.vibrator@1.0-service \
964 vendor.qti.hardware.vibrator.service
965
966PRODUCT_COPY_FILES += \
967 vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml
Bharath756d7dd2021-08-07 23:53:55 +0530968
969
Bharathed255712021-08-14 20:37:05 +0530970# WiFi
971# WLAN drivers
972PRODUCT_COPY_FILES += \
973 $(FP_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
974 $(FP_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_wlan_dictionary.dat \
975 $(FP_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin # From Android 10
976
977# Flag to check if wcnss_service is built from source
978TARGET_USE_WCNSS_HAL := false
979
980# If building from source then drop proprietary dependency
981ifeq ($(TARGET_USE_WCNSS_HAL),true)
982TARGET_USES_QCOM_WCNSS_QMI := false
Bharath70cf2ae2022-02-14 12:13:50 +0530983
984PRODUCT_PACKAGES += \
985 libwcnss_qmi \
986 wcnss_service
Bharathed255712021-08-14 20:37:05 +0530987endif
988
989# WiFi HAL
990PRODUCT_PACKAGES += \
991 android.hardware.wifi@1.0-service
992
Bharath12163282022-06-20 15:10:58 +0530993# WLAN DLKM
994PRODUCT_PACKAGES += \
995 pronto_wlan.ko
996
Bharathed255712021-08-14 20:37:05 +0530997# WiFi Components
998PRODUCT_PACKAGES += \
999 hostapd \
1000 hostapd.accept \
1001 hostapd.deny \
1002 hostapd_cli \
1003 hostapd_default.conf \
1004 libnl \
1005 libqsap_sdk \
Bharathed255712021-08-14 20:37:05 +05301006 libwifi-hal-qcom \
1007 libwpa_client \
1008 p2p_supplicant_overlay.conf \
1009 vendor.qti.hardware.wifi.supplicant@1.0.vendor \
Bharathed255712021-08-14 20:37:05 +05301010 wificond \
1011 wpa_cli \
1012 wpa_supplicant.conf \
1013 wpa_supplicant \
1014 wpa_supplicant_overlay.conf \
1015 WifiOverlay \
1016 TetheringConfigOverlay
1017
1018
Bharath12163282022-06-20 15:10:58 +05301019# Zlib
1020PRODUCT_HOST_PACKAGES += minigzip
1021
1022
1023#soong namespace for qssi vs vendor differentiation
1024SOONG_CONFIG_NAMESPACES += qssi_vs_vendor
1025SOONG_CONFIG_qssi_vs_vendor += qssi_or_vendor
1026SOONG_CONFIG_qssi_vs_vendor_qssi_or_vendor := vendor
1027
1028SOONG_CONFIG_NAMESPACES += aosp_vs_qva
1029SOONG_CONFIG_aosp_vs_qva += aosp_or_qva
1030ifeq ($(TARGET_FWK_SUPPORTS_FULL_VALUEADDS),true)
1031SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := qva
1032else
1033SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := aosp
1034endif
1035
1036SOONG_CONFIG_NAMESPACES += qtidisplaycommonsys
1037# Soong Keys
1038SOONG_CONFIG_qtidisplaycommonsys := displayconfig_enabled
1039# Soong Values
1040SOONG_CONFIG_qtidisplaycommonsys_displayconfig_enabled := true
1041
1042
Bharath756d7dd2021-08-07 23:53:55 +05301043# Call the proprietary setup
Bharatha3a85a72022-05-23 17:50:24 +05301044FP3_PROPRIETARY_PATH := device/fairphone/fp3-proprietary
Bharatha3a85a72022-05-23 17:50:24 +05301045
Karsten Tauscheff99b112022-09-19 12:04:31 +02001046DEVICE_BLOB_VERSION := 4.A.0017.2
Francesco Salvatore03117482019-02-28 16:39:11 +01001047
1048GET_BLOBS_CMD = vendor/fairphone/tools/bin/get_blobs.py --device FP3 --build-id $(DEVICE_BLOB_VERSION) --blobs-dir $(FP3_PROPRIETARY_PATH)
1049
1050# Check the presence of proprietary blobs
1051ifeq ("$(wildcard $(FP3_PROPRIETARY_PATH)/device-vendor.mk)","")
1052define BLOBS_INSTRUCTION
1053Cannot find FP3 binary blobs.
1054Please run
1055 $(GET_BLOBS_CMD)
1056and accept the terms of agreement.
1057endef
1058$(error $(BLOBS_INSTRUCTION))
1059endif
1060
Bharath756d7dd2021-08-07 23:53:55 +05301061# Call this in the end so that flags if required can be utilized.
Bharatha3a85a72022-05-23 17:50:24 +05301062$(call inherit-product, $(FP3_PROPRIETARY_PATH)/device-vendor.mk)
1063
Bharath12163282022-06-20 15:10:58 +05301064# Build some more display components to vendor
1065$(call inherit-product, vendor/qcom/opensource/commonsys-intf/display/config/display-interfaces-product.mk)
Bharath756d7dd2021-08-07 23:53:55 +05301066###################################################################################