blob: 7b7e093bf8027872412d317201e5a7bbf64b800e [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
Bharathdec76372022-10-10 20:15:42 +053019PRODUCT_VENDOR_PROPERTIES += \
lindaguo(103996)47226c12020-06-22 17:27:43 +080020 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
Jiakai Zhange4fa5b32022-05-11 16:49:38 +010063# Compile SystemUI on device with `speed`.
64PRODUCT_VENDOR_PROPERTIES += \
65 dalvik.vm.systemuicompilerfilter=speed
66
67
Wilson Sung54b067e2021-03-03 18:08:45 +080068# Set system properties identifying the chipset
69PRODUCT_VENDOR_PROPERTIES += ro.soc.manufacturer=QTI
70PRODUCT_VENDOR_PROPERTIES += ro.soc.model=SDM450
71
72
Bharath756d7dd2021-08-07 23:53:55 +053073# We don't have the calibration data as this sort of
74# data can only be generated at the factory so don't generate persist.img
75FP3_SKIP_PERSIST_IMG := true
76
Bharath80ba1872021-08-21 11:53:57 +053077
78# Operator specific overlays
79DEVICE_PACKAGE_OVERLAYS += \
80 $(LOCAL_PATH)/overlay-operators
81
Bharath756d7dd2021-08-07 23:53:55 +053082# Overlays
83DEVICE_PACKAGE_OVERLAYS += \
84 $(LOCAL_PATH)/overlay
85
86
87# A/B related defines
88AB_OTA_UPDATER := true
Luca Weissd6c3ca12022-07-13 16:24:08 +020089AB_OTA_PARTITIONS := \
90 aboot \
91 cmnlib64 \
92 cmnlib \
93 devcfg \
94 dsp \
Bharath756d7dd2021-08-07 23:53:55 +053095 dtbo \
Luca Weissd6c3ca12022-07-13 16:24:08 +020096 keymaster \
97 lksecapp \
98 mdtp \
99 modem \
100 rpm \
101 sbl1 \
102 tz \
Bharath756d7dd2021-08-07 23:53:55 +0530103 vbmeta \
Luca Weissd6c3ca12022-07-13 16:24:08 +0200104 boot \
105 system \
Bharath756d7dd2021-08-07 23:53:55 +0530106 vendor
107
108
Bharath756d7dd2021-08-07 23:53:55 +0530109PRODUCT_PACKAGES += \
Bharath756d7dd2021-08-07 23:53:55 +0530110 update_engine_sideload
111
Bharath776a9712022-03-18 00:00:41 +0530112# Dynamic Partition
113# Enable retrofit dynamic partitions for FP3
114PRODUCT_USE_DYNAMIC_PARTITIONS := true
115PRODUCT_RETROFIT_DYNAMIC_PARTITIONS := true
116
117# Additional OTA partitions
118ifeq ($(PRODUCT_USE_DYNAMIC_PARTITIONS), true)
119AB_OTA_PARTITIONS += \
120 odm \
121 product \
122 system_ext
123
Bharath776a9712022-03-18 00:00:41 +0530124# Ramdisk fstab file
125PRODUCT_PACKAGES += fstab_ramdisk.qcom
126
Bharath776a9712022-03-18 00:00:41 +0530127endif
Bharath756d7dd2021-08-07 23:53:55 +0530128
Bharath2307d3b2022-01-06 22:23:25 +0530129# APN
130PRODUCT_COPY_FILES += \
131 $(LOCAL_PATH)/apns-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
132
133
Bharath756d7dd2021-08-07 23:53:55 +0530134# AVB
135BOARD_AVB_ENABLE := true
136
137
138# Additional native libraries
139PRODUCT_COPY_FILES += \
140 $(FP_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
141
142
Bharath12163282022-06-20 15:10:58 +0530143# OEM Unlock reporting
Bharathdec76372022-10-10 20:15:42 +0530144PRODUCT_VENDOR_PROPERTIES += \
Bharath12163282022-06-20 15:10:58 +0530145 ro.oem_unlock_supported=1
146
147
Bharath756d7dd2021-08-07 23:53:55 +0530148# Atrace HAL
149PRODUCT_PACKAGES += \
150 android.hardware.atrace@1.0-service
151
152
153# Audio
Bharath756d7dd2021-08-07 23:53:55 +0530154PRODUCT_PACKAGES += \
Mikhail Naganovb0f62432021-02-17 02:16:06 +0000155 android.hardware.audio@7.0 \
156 android.hardware.audio.common@7.0 \
157 android.hardware.audio.common@7.0-util \
158 android.hardware.audio@7.0-impl \
159 android.hardware.audio.effect@7.0 \
160 android.hardware.audio.effect@7.0-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530161 android.hardware.audio.service \
162 android.hardware.soundtrigger@2.1-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530163 audio.primary.msm8953 \
164 audio.r_submix.default \
165 audio.usb.default \
166 libaacwrapper \
167 libaudio-resampler \
Bharath756d7dd2021-08-07 23:53:55 +0530168 libqcompostprocbundle \
169 libqcomvisualizer \
170 libqcomvoiceprocessing \
171 libvolumelistener \
172 tinymix
173
174
Bharathf96fea32022-10-05 09:43:16 +0530175AUDIO_HAL_PATH := hardware/qcom/audio
Bharath756d7dd2021-08-07 23:53:55 +0530176
177# Audio files
178PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530179 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
180 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
181 $(AUDIO_HAL_PATH)/configs/msm8953/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
182 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
183 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku3_tasha.xml \
184 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku4.xml \
185 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tasha.xml \
186 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tashalite.xml \
187 $(AUDIO_HAL_PATH)/configs/msm8953/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
188 $(AUDIO_HAL_PATH)/configs/msm8953/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
189 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
190 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
191 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku3_tasha.xml \
192 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku4.xml \
193 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
194 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \
195 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
196 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9306.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9306.xml \
197 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9330.xml \
198 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \
199 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
200
201
202# Audio config files
203PRODUCT_COPY_FILES += \
Mikhail Naganovb0f62432021-02-17 02:16:06 +0000204 frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration_7_0.xml \
Bharath756d7dd2021-08-07 23:53:55 +0530205 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
Mikhail Naganovb0f62432021-02-17 02:16:06 +0000206 frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration_7_0.xml \
Bharath756d7dd2021-08-07 23:53:55 +0530207 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
208 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
209 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
210
211# Custom config files
212PRODUCT_COPY_FILES += \
213 $(FP_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
214
215
216# Audio firmware files
217PRODUCT_COPY_FILES += \
218 $(FP_PATH)/aw/aw8898_cfg.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/aw8898_cfg.bin \
219 $(FP_PATH)/tas2557_fw/OBO_0617_music.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557_uCDSP.bin \
220 $(FP_PATH)/tas2557_fw/tas2557evm_OBO_0617.ftcfg:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557evm_aacspk_a.ftcfg
221
222
223# Audio Specific device overlays
224DEVICE_PACKAGE_OVERLAYS += $(AUDIO_HAL_PATH)/configs/common/overlay
225
226
227# Audio Specific properties
228# Properties
229-include $(LOCAL_PATH)/audio_properties.mk
230
231
232# Audio Kernel modules
233AUDIO_DLKM := audio_apr.ko
234AUDIO_DLKM += audio_q6_notifier.ko
235AUDIO_DLKM += audio_adsp_loader.ko
236AUDIO_DLKM += audio_q6.ko
237AUDIO_DLKM += audio_usf.ko
238AUDIO_DLKM += audio_pinctrl_wcd.ko
239AUDIO_DLKM += audio_swr.ko
240AUDIO_DLKM += audio_wcd_core.ko
241AUDIO_DLKM += audio_swr_ctrl.ko
242AUDIO_DLKM += audio_wsa881x.ko
243AUDIO_DLKM += audio_wsa881x_analog.ko
244AUDIO_DLKM += audio_platform.ko
245AUDIO_DLKM += audio_cpe_lsm.ko
246AUDIO_DLKM += audio_hdmi.ko
247AUDIO_DLKM += audio_stub.ko
248AUDIO_DLKM += audio_wcd9xxx.ko
249AUDIO_DLKM += audio_mbhc.ko
250AUDIO_DLKM += audio_wcd9335.ko
251AUDIO_DLKM += audio_wcd_cpe.ko
252AUDIO_DLKM += audio_digital_cdc.ko
253AUDIO_DLKM += audio_analog_cdc.ko
254AUDIO_DLKM += audio_native.ko
255AUDIO_DLKM += audio_machine_sdm450.ko
256AUDIO_DLKM += audio_machine_ext_sdm450.ko
257PRODUCT_PACKAGES += $(AUDIO_DLKM)
258
259
Bharath9cdcce22021-12-08 15:43:43 +0530260# Automation/ATS
261PRODUCT_PACKAGES += \
262 automation_setup \
263 automation_adb_setup
264
265
Bharathfe661fb2021-08-16 18:56:32 +0530266# ANT
267PRODUCT_PACKAGES += \
268 AntHalService \
269 antradio_app \
270 com.dsi.ant@1.0 \
Bharath70cf2ae2022-02-14 12:13:50 +0530271 com.dsi.ant@1.0.vendor \
Bharathfe661fb2021-08-16 18:56:32 +0530272 libantradio
273
Bharath756d7dd2021-08-07 23:53:55 +0530274# Bluetooth
Bharathfe661fb2021-08-16 18:56:32 +0530275PRODUCT_PACKAGES += \
Bharathfe661fb2021-08-16 18:56:32 +0530276 audio.bluetooth.default \
277 android.hardware.bluetooth.audio@2.0-impl \
278 android.hardware.bluetooth@1.0 \
279 vendor.qti.hardware.bluetooth_audio@2.0 \
Bharath19ec3492022-03-14 10:22:26 +0530280 vendor.qti.hardware.bluetooth_audio@2.1.vendor
Bharathfe661fb2021-08-16 18:56:32 +0530281
282# Bluetooth Permissions
283PRODUCT_COPY_FILES += \
284 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
285 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 +0530286
Etienne Ruffieux8ac2cec2022-01-20 21:27:18 +0000287# Bluetooth Properties
Sal Savage776e8102022-02-04 09:40:38 -0800288# Set supported Bluetooth profiles to enabled
Etienne Ruffieux8ac2cec2022-01-20 21:27:18 +0000289PRODUCT_PRODUCT_PROPERTIES += \
Bharath107ddb12022-11-24 16:05:11 +0530290 bluetooth.profile.asha.central.enabled?=false \
Sal Savage590b8d92022-04-27 13:13:03 -0700291 bluetooth.profile.a2dp.source.enabled?=true \
292 bluetooth.profile.avrcp.target.enabled?=true \
Sal Savage590b8d92022-04-27 13:13:03 -0700293 bluetooth.profile.bas.client.enabled?=true \
Sal Savage590b8d92022-04-27 13:13:03 -0700294 bluetooth.profile.gatt.enabled?=true \
Sal Savage590b8d92022-04-27 13:13:03 -0700295 bluetooth.profile.hfp.ag.enabled?=true \
296 bluetooth.profile.hid.device.enabled?=true \
297 bluetooth.profile.hid.host.enabled?=true \
298 bluetooth.profile.map.server.enabled?=true \
Sal Savage590b8d92022-04-27 13:13:03 -0700299 bluetooth.profile.opp.enabled?=true \
300 bluetooth.profile.pan.nap.enabled?=true \
301 bluetooth.profile.pan.panu.enabled?=true \
302 bluetooth.profile.pbap.server.enabled?=true \
Bharath4baf2322022-10-10 20:19:45 +0530303 bluetooth.profile.sap.server.enabled?=true
Etienne Ruffieux8ac2cec2022-01-20 21:27:18 +0000304
Sal Savagede026932022-04-25 16:42:15 -0700305# Set the Bluetooth Class of Device
306# Service Field: 0x5A -> 90
307# Bit 17: Networking
308# Bit 19: Capturing
309# Bit 20: Object Transfer
310# Bit 22: Telephony
311# MAJOR_CLASS: 0x02 -> 2 (Phone)
312# MINOR_CLASS: 0x0C -> 12 (Smart Phone)
313PRODUCT_PRODUCT_PROPERTIES += \
314 bluetooth.device.class_of_device=90,2,12
315
Bharath756d7dd2021-08-07 23:53:55 +0530316
Bharath12163282022-06-20 15:10:58 +0530317# Board platforms lists to be used for
318# TARGET_BOARD_PLATFORM specific featurization
319QCOM_BOARD_PLATFORMS += msm8953
320
321
Bharath756d7dd2021-08-07 23:53:55 +0530322# Boot
323PRODUCT_PACKAGES += \
324 android.hardware.boot@1.0-impl \
325 android.hardware.boot@1.0-impl.recovery \
326 android.hardware.boot@1.0-service \
327 bootctrl.msm8953 \
Bharathe341d1d2022-04-06 09:49:27 +0530328 bootctrl.msm8953.recovery \
Bharath756d7dd2021-08-07 23:53:55 +0530329 update_engine \
330 update_engine_client \
331 update_engine_sideload \
332 update_verifier
333
Bharath12163282022-06-20 15:10:58 +0530334# MSM updater library
335PRODUCT_PACKAGES += librecovery_updater_msm
336
337
338# Skip boot jars check
339SKIP_BOOT_JARS_CHECK := true
340
Bharath756d7dd2021-08-07 23:53:55 +0530341
342# Boot animation
343TARGET_SCREEN_HEIGHT := 2160
344TARGET_SCREEN_WIDTH := 1080
345
346
347PRODUCT_COPY_FILES += \
348 vendor/fairphone/media/bootanimation/bootanimation.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip
349
350
351# Camera
Bharathcbfb0a92021-08-19 21:13:50 +0530352PRODUCT_PACKAGES += \
353 android.frameworks.displayservice@1.0.vendor \
354 android.hidl.base@1.0.vendor \
355 android.hardware.camera.device@3.5 \
356 android.hardware.camera.provider@2.4 \
357 android.hardware.camera.provider@2.4-external \
358 android.hardware.camera.provider@2.4-impl \
359 android.hardware.camera.provider@2.4-legacy \
360 android.hardware.camera.provider@2.4-service \
361 android.hardware.camera.provider@2.6 \
362 camera.device@1.0-impl \
363 camera.device@3.5-impl \
364 camera.device@3.6-external-impl \
365 camera.msm8953 \
Bharathcbfb0a92021-08-19 21:13:50 +0530366 libcamera2ndk_vendor \
367 libhal_dbg \
Bharathcbfb0a92021-08-19 21:13:50 +0530368 libmm-qcamera \
369 libmmcamera_interface \
370 libmmjpeg_interface \
371 libmmlib2d_interface \
372 libqomx_core \
373 libxml2 \
374 mm-qcamera-app \
375 vendor.qti.hardware.camera.device@1.0 \
376 vendor.qti.hardware.camera.device@1.0.vendor
377
378# Fairphone Camera
379PRODUCT_PACKAGES += \
380 FairphoneCamera
381
382# Arcsoft camera libraries
383PRODUCT_PACKAGES += \
384 libarcimageprocess \
385 libarcsoft_aiscenedetection \
386 libarcsoft_hdr_detection \
387 libarcsoft_high_dynamic_range \
388 libarcsoft_low_light_hdr \
389 libarcsoft_low_light_shot \
390 libarcsoft_object_tracking \
391 libarcsoft_panorama_burstcapture \
392 libarcsoft_singlecam_bokeh \
393 libarcsoft_videoautozoom \
Karsten Tausche5406ee32023-01-31 16:50:48 +0100394 libarcsoft_videostabs \
Bharathdfba02c2023-02-14 13:56:48 +0530395 libmpbase
Bharathcbfb0a92021-08-19 21:13:50 +0530396
397# Feature flags for camera
398PRODUCT_COPY_FILES += \
399 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
400 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
401 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
402 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 +0530403
404
405# Component overrides
Bharathe025dac2022-08-02 15:02:41 +0530406PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530407 $(FP_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
408
409
Bharath12163282022-06-20 15:10:58 +0530410# Charger
411PRODUCT_PACKAGES += \
412 charger \
413 charger_res_images
414
415
416# Chromium
417PRODUCT_PACKAGES += \
418 libwebviewchromium_loader \
419 libwebviewchromium_plat_support
420
421
422# Curl
423PRODUCT_PACKAGES += \
424 curl \
425 libcurl
426
427
428# Data/rmnetctrl
429PRODUCT_PACKAGES += \
430 librmnetctl
431
leolee75d66582020-10-21 15:26:49 +0800432# IPV4
Bharathdec76372022-10-10 20:15:42 +0530433PRODUCT_VENDOR_PROPERTIES += \
leolee75d66582020-10-21 15:26:49 +0800434 persist.vendor.data.profile_update=true
435
Bharathdec76372022-10-10 20:15:42 +0530436PRODUCT_VENDOR_PROPERTIES += ro.telephony.iwlan_operation_mode=legacy
Bharatha701c6b2022-07-25 17:26:28 +0530437
Bharath12163282022-06-20 15:10:58 +0530438
Jiakai Zhange915cae2022-05-20 14:56:44 +0100439# Preopt SystemUI
440PRODUCT_DEXPREOPT_SPEED_APPS += SystemUI # For AOSP
441
442
Bharath756d7dd2021-08-07 23:53:55 +0530443# Display
444PRODUCT_PACKAGES += \
445 android.hardware.graphics.allocator@2.0-impl \
446 android.hardware.graphics.allocator@2.0-service \
447 android.hardware.graphics.composer@2.1-service \
448 android.hardware.graphics.mapper@2.0-impl-2.1 \
449 android.hardware.memtrack@1.0-impl \
450 android.hardware.memtrack@1.0-service \
451 gralloc.default \
452 gralloc.msm8953 \
453 hwcomposer.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530454 libdisplayconfig \
Bharath12163282022-06-20 15:10:58 +0530455 libdisplayconfig.qti \
456 libdrm \
457 libgralloc.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530458 libqdMetaData \
Bharath12163282022-06-20 15:10:58 +0530459 libqdutils \
Bharath756d7dd2021-08-07 23:53:55 +0530460 libvulkan \
Bharath12163282022-06-20 15:10:58 +0530461 memtrack.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530462 vendor.qti.hardware.display.composer@3.0
463
464
465# Vendor Display
466# Disable skip validate
Bharathdec76372022-10-10 20:15:42 +0530467PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530468 vendor.display.disable_skip_validate=1
469
Bharathdec76372022-10-10 20:15:42 +0530470PRODUCT_VENDOR_PROPERTIES += ro.hardware.vulkan=adreno
471PRODUCT_VENDOR_PROPERTIES += ro.hardware.egl=adreno
Bharatha701c6b2022-07-25 17:26:28 +0530472
Bharath756d7dd2021-08-07 23:53:55 +0530473
474# Display Properties
475PRODUCT_AAPT_CONFIG := normal
476PRODUCT_AAPT_PREF_CONFIG := xxhdpi
477
478
479# DRM
480PRODUCT_PACKAGES += \
Edwin Wong8de56c72021-03-25 00:19:58 -0700481 android.hardware.drm@1.4-service.clearkey
Bharath756d7dd2021-08-07 23:53:55 +0530482
483
Pradeep Chenthatib4c3c102021-10-19 20:07:52 +0530484# Elabel
485PRODUCT_PACKAGES += \
486 eLabel.html.gz \
487 eLabel1.png \
488 eLabel2.png \
489 FAIRPHONE.html.gz \
490 FAIRPHONE.png
491
492
Bharath756d7dd2021-08-07 23:53:55 +0530493# Enable vndk-sp Libraries
494PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
495TARGET_USES_MKE2FS := true
496
497PRODUCT_PACKAGES += \
498 vndk_package
499
500
501# Encryption
Bharathdec76372022-10-10 20:15:42 +0530502PRODUCT_VENDOR_PROPERTIES += ro.crypto.allow_encrypt_override=true
503PRODUCT_VENDOR_PROPERTIES += ro.crypto.volume.filenames_mode=aes-256-cts
Bharath756d7dd2021-08-07 23:53:55 +0530504
505
Bharath12163282022-06-20 15:10:58 +0530506# E2fsck
507PRODUCT_PACKAGES += \
508 e2fsck
509
Bharath44ee36f2022-05-02 15:37:19 +0530510
Bharathe341d1d2022-04-06 09:49:27 +0530511# Fastbootd
512PRODUCT_PACKAGES += fastbootd
513
514
Bharath756d7dd2021-08-07 23:53:55 +0530515# FBE support
516PRODUCT_COPY_FILES += \
517 $(FP_PATH)/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh
518
519
Bharath1710e062021-08-20 11:30:47 +0530520# Feature flags and permissions
521PRODUCT_COPY_FILES += \
522 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
523 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
524 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
525 frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
526 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
527 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
528 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
529 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
530 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 +0530531 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 +0530532 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
533 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
534 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 +0530535 frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
536 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
537 frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
Gillian Lin59f821d2021-06-15 22:33:15 +0800538 frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.verified_boot.xml \
Bharathdf89a7d2022-06-27 20:12:06 +0530539 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 +0530540 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
541
Bharath1dcb6512021-08-20 00:41:08 +0530542# Fingerprint
543PRODUCT_PACKAGES += \
544 android.hardware.biometrics.fingerprint@2.1 \
545 android.hardware.biometrics.fingerprint@2.1-service \
546 elan_device.rc \
547 fingerprint.default
548
549# Fingerprint files
550include $(FP_PATH)/elan_lib/fingerprint/elan_lib.mk
551
552# Fingerprint feature flag
553PRODUCT_COPY_FILES += \
Luca Weiss9656b9c2022-03-03 11:15:21 +0100554 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.fingerprint.xml
Bharath1dcb6512021-08-20 00:41:08 +0530555
556
Bharath756d7dd2021-08-07 23:53:55 +0530557# Framework Detect
558PRODUCT_PACKAGES += \
559 libqti_vndfwk_detect \
560 libqti_vndfwk_detect.vendor \
561 libvndfwk_detect_jni.qti \
562 libvndfwk_detect_jni.qti.vendor \
563 vndservicemanager
564
Bharath12163282022-06-20 15:10:58 +0530565# FRP
Bharathdec76372022-10-10 20:15:42 +0530566PRODUCT_VENDOR_PROPERTIES += ro.frp.pst=/dev/block/bootdevice/by-name/config
Bharath12163282022-06-20 15:10:58 +0530567
Bharath756d7dd2021-08-07 23:53:55 +0530568
569# HIDL
570PRODUCT_PACKAGES += \
571 android.hidl.base@1.0 \
572 libhidltransport \
573 libhidltransport.vendor \
574 libhwbinder \
575 libhwbinder.vendor
576
577
Bharath1710e062021-08-20 11:30:47 +0530578# GPS
579BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
Luca Weissa8a60262022-02-28 15:00:31 +0100580LOC_HIDL_VERSION := 4.0
Bharath1710e062021-08-20 11:30:47 +0530581
582PRODUCT_PACKAGES += \
Bharath70cf2ae2022-02-14 12:13:50 +0530583 android.hardware.gnss@2.1-impl-qti \
Bharath1710e062021-08-20 11:30:47 +0530584 android.hardware.gnss@2.1-service-qti \
585 libbatching \
586 libgeofencing \
587 libgnss \
588 libjson \
589 libwifi-hal-ctrl \
590 libgps.utils
591
592PRODUCT_PACKAGES += \
593 flp.conf \
594 gps.conf
595
596# gps/location secuity configuration file
597PRODUCT_COPY_FILES += \
598 $(FP_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
599
600# Permissions
601PRODUCT_COPY_FILES += \
602 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
603
Bharathdec76372022-10-10 20:15:42 +0530604PRODUCT_VENDOR_PROPERTIES += \
Bharath12163282022-06-20 15:10:58 +0530605 persist.backup.ntpServer=0.pool.ntp.org
606
Bharath1710e062021-08-20 11:30:47 +0530607
Bharath756d7dd2021-08-07 23:53:55 +0530608# Health
609PRODUCT_PACKAGES += \
610 android.hardware.health@2.1-impl \
611 android.hardware.health@2.1-impl.recovery \
612 android.hardware.health@2.1-service
613
614# IMS
615PRODUCT_PACKAGES += \
616 ims-ext-common \
617 ims_ext_common.xml \
618 ConfURIDialer
619
Bharath12163282022-06-20 15:10:58 +0530620
621# Init
622PRODUCT_PACKAGES += \
623 fstab.qcom \
624 init.class_main.sh \
625 init.crda.sh \
Karsten Tauschee270bad2022-08-22 15:41:19 +0200626 init.legacy_prop.rc \
Bharath12163282022-06-20 15:10:58 +0530627 init.mdm.sh \
628 init.qcom.class_core.sh \
Bharath12163282022-06-20 15:10:58 +0530629 init.qcom.early_boot.sh \
Bharath12163282022-06-20 15:10:58 +0530630 init.qcom.factory.rc \
631 init.qcom.post_boot.sh \
632 init.qcom.rc \
Bharath12163282022-06-20 15:10:58 +0530633 init.qcom.sensors.sh \
634 init.qcom.sh \
635 init.qcom.usb.rc \
636 init.qcom.usb.sh \
637 init.recovery.qcom.rc \
638 init.target.rc \
639 init.veth_ipa_config.sh \
Bharath12163282022-06-20 15:10:58 +0530640 ueventd.qcom.rc \
641 vold.fstab
642
643#intialise PRODUCT_PACKAGES_DEBUG list for debug modules
Bharath12163282022-06-20 15:10:58 +0530644#Add init.qcom.test.rc to PRODUCT_PACKAGES_DEBUG list
Bharath12163282022-06-20 15:10:58 +0530645PRODUCT_PACKAGES_DEBUG += \
Karsten Tauschece117af2022-11-28 12:46:06 +0100646 init.qcom.test.rc \
647 init.qcom.debug.sh
Bharath12163282022-06-20 15:10:58 +0530648
649
650# IP and iptables
651PRODUCT_PACKAGES += \
652 ip \
653 libiprouteutil \
654 iptables \
655 ip-up-vpn \
656 libext
657
658
Bharath756d7dd2021-08-07 23:53:55 +0530659# IPACM
660PRODUCT_PACKAGES += \
661 ipacm \
662 IPACM_cfg.xml \
663 libipanat \
664 liboffloadhal \
665 libqsap_sdk
666
667# IRQ
668PRODUCT_COPY_FILES += \
669 $(FP_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
670 $(FP_PATH)/configs/msm_irqbalance_little_big.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance_little_big.conf
671
672
673# Kernel modules
674# Kernel modules install path
675KERNEL_MODULES_INSTALL := dlkm
676KERNEL_MODULES_OUT := out/target/product/$(PRODUCT_NAME)/$(KERNEL_MODULES_INSTALL)/lib/modules
Bharath12163282022-06-20 15:10:58 +0530677KERNEL_TO_BUILD_ROOT_OFFSET := ../../
678
679
680# Key layouts
681PRODUCT_PACKAGES += \
682 ft5x06_ts.kl \
683 gpio-keys.kl \
684 synaptics_dsx.kl \
685 synaptics_dsxv26.kl \
686 synaptics_rmi4_i2c.kl
Bharath756d7dd2021-08-07 23:53:55 +0530687
688
Bharatha701c6b2022-07-25 17:26:28 +0530689# Keystore
Bharathdec76372022-10-10 20:15:42 +0530690PRODUCT_VENDOR_PROPERTIES += ro.hardware.keystore_desede=true
Bharatha701c6b2022-07-25 17:26:28 +0530691
692
Bharath756d7dd2021-08-07 23:53:55 +0530693# LED packages
694PRODUCT_PACKAGES += \
695 android.hardware.light@2.0-impl \
696 android.hardware.light@2.0-service \
697 lights.msm8953
698
699
700# Media / StagefrightCodec 2.0
Bharathdec76372022-10-10 20:15:42 +0530701PRODUCT_VENDOR_PROPERTIES += debug.stagefright.omx_default_rank=0
Bharath756d7dd2021-08-07 23:53:55 +0530702
Bharathe3615be2021-08-18 22:25:42 +0530703# Enable features in video HAL that can compile only on this platform
Bharath12163282022-06-20 15:10:58 +0530704MSM_VIDC_TARGET_LIST := msm8953
Bharathe3615be2021-08-18 22:25:42 +0530705TARGET_USES_MEDIA_EXTENSIONS := true
706
707
Bharath4c762882022-10-10 20:15:40 +0530708#
709# media profiles and media codecs xmls
710#
711# We select non-default xmls in system partition with the properties.
712PRODUCT_SYSTEM_PROPERTIES += \
Karsten Tauscheda4fb3f2022-11-23 18:43:11 +0100713 ro.media.xml_variant.codecs=_vendor
Bharath4c762882022-10-10 20:15:40 +0530714
715PRODUCT_COPY_FILES += \
716 $(FP_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
717 $(FP_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
Karsten Tauscheda4fb3f2022-11-23 18:43:11 +0100718 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml
Bharath4c762882022-10-10 20:15:40 +0530719
720# media files for GSI - using default paths
Bharathe3615be2021-08-18 22:25:42 +0530721PRODUCT_COPY_FILES += \
Bharathe3615be2021-08-18 22:25:42 +0530722 $(FP_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
Bharathe3615be2021-08-18 22:25:42 +0530723 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
Bharath4c762882022-10-10 20:15:40 +0530724 $(FP_PATH)/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
Bharath12163282022-06-20 15:10:58 +0530725
726PRODUCT_COPY_FILES += \
727 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
728 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
729 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
730 frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml \
731 frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \
732 frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
733 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 +0530734
Bharath756d7dd2021-08-07 23:53:55 +0530735
Bharath8d5d3992022-10-10 20:15:30 +0530736# Disable media transcoding
737PRODUCT_VENDOR_PROPERTIES += \
738 persist.sys.fuse.transcode_user_control=true \
739 persist.sys.fuse.transcode_enabled=false
740
741
Bharath756d7dd2021-08-07 23:53:55 +0530742# NFC
Bharath1710e062021-08-20 11:30:47 +0530743PRODUCT_PACKAGES += \
Bharath4c28e932022-10-10 20:23:25 +0530744 NfcNci \
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 \
Bharath1710e062021-08-20 11:30:47 +0530750 nfc_nci.nqx.default.hw \
751 vendor.nxp.hardware.nfc@2.0-service
752
753# Permissions
754PRODUCT_COPY_FILES += \
755 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
756 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
757 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
758 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
759 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
760 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
761 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
762 vendor/nxp/opensource/halimpl/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
763 vendor/nxp/opensource/halimpl/SN100x/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci_SN100.conf
Bharath756d7dd2021-08-07 23:53:55 +0530764
765
766# OMX
767PRODUCT_PACKAGES += \
768 libavservices_minijail.vendor \
769 libc2dcolorconvert \
770 libOmxAacEnc \
771 libOmxAmrEnc \
772 libOmxCore \
773 libOmxEvrcEnc \
774 libOmxQcelp13Enc \
775 libOmxVdec \
776 libOmxVenc \
777 libqomx_core \
778 libaacwrapper \
779 libmm-omxcore \
780 libstagefrighthw \
781 libstagefright_softomx.vendor
782
783
784#
785# system prop for opengles version
786#
787# 196608 is decimal for 0x30000 to report major/minor versions as 3/0
788# 196609 is decimal for 0x30001 to report major/minor versions as 3/1
789# 196610 is decimal for 0x30002 to report major/minor versions as 3/2
Bharathdec76372022-10-10 20:15:42 +0530790PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530791 ro.opengles.version=196610
792
793
Bharath12163282022-06-20 15:10:58 +0530794# AOSP Packages
795PRODUCT_PACKAGES += \
796 DeskClock \
797 Calendar \
798 CalendarProvider \
799 Camera2 \
800 CertInstaller \
801 Gallery2 \
802 LatinIME \
803 Launcher3 \
804 LiveWallpapersPicker \
805 Music \
806 netutils-wrapper-1.0 \
807 Provision \
808 Protips \
809 QuickSearchBox \
810 Settings \
811 Stk \
812 SystemUI \
813
814
Jason Changa2f3d762020-04-28 06:58:32 +0800815# Set support one-handed mode
816PRODUCT_PRODUCT_PROPERTIES += \
817 ro.support_one_handed_mode=true
818
819
Bharath756d7dd2021-08-07 23:53:55 +0530820# Perf
821PRODUCT_COPY_FILES += \
822 $(FP_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
823
Bharathdec76372022-10-10 20:15:42 +0530824PRODUCT_VENDOR_PROPERTIES += \
Bharath12163282022-06-20 15:10:58 +0530825 persist.vendor.qcomsysd.enabled=1 \
826 ro.vendor.extension_library=libqti-perfd-client.so \
827 sys.vendor.shutdown.waittime=500
828
Bharath756d7dd2021-08-07 23:53:55 +0530829
830# Power
831PRODUCT_PACKAGES += \
832 android.hardware.power@1.0-impl \
833 android.hardware.power@1.0-service \
834 power.qcom
835
836
Bharath756d7dd2021-08-07 23:53:55 +0530837# privapp-permissions whitelisting
Bharathdec76372022-10-10 20:15:42 +0530838PRODUCT_VENDOR_PROPERTIES += ro.control_privapp_permissions=enforce
Bharath756d7dd2021-08-07 23:53:55 +0530839
840
841# Protobuf
842PRODUCT_PACKAGES += \
843 libprotobuf-cpp-full \
844 libprotobuf-cpp-full-vendorcompat \
845 libprotobuf-cpp-lite-vendorcompat
846
847
Bharath12163282022-06-20 15:10:58 +0530848# include additional QCOM build utilities
Bharath8e773362022-10-05 09:42:57 +0530849include $(FP_PATH)/utils.mk
Bharath12163282022-06-20 15:10:58 +0530850
Bharath756d7dd2021-08-07 23:53:55 +0530851# RIL properties
Bharathdec76372022-10-10 20:15:42 +0530852PRODUCT_VENDOR_PROPERTIES += vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
Bharath756d7dd2021-08-07 23:53:55 +0530853#vendor prop to disable advanced network scanning
Bharathdec76372022-10-10 20:15:42 +0530854PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530855 persist.vendor.radio.enableadvancedscan=false
856
Bharath12163282022-06-20 15:10:58 +0530857# Enable Dual SIM by default
Bharathdec76372022-10-10 20:15:42 +0530858PRODUCT_VENDOR_PROPERTIES += persist.radio.multisim.config=dsds
Bharath12163282022-06-20 15:10:58 +0530859
Bharathdec76372022-10-10 20:15:42 +0530860PRODUCT_VENDOR_PROPERTIES += \
Bharath12163282022-06-20 15:10:58 +0530861 persist.vendor.radio.apm_sim_not_pwdn=1 \
862 persist.vendor.radio.sib16_support=1 \
863 persist.vendor.radio.custom_ecc=1 \
864 persist.vendor.radio.rat_on=combine \
865 persist.vendor.radio.procedure_bytes=SKIP
866
Bharath756d7dd2021-08-07 23:53:55 +0530867
868# RenderScript
869PRODUCT_PACKAGES += \
870 android.hardware.renderscript@1.0-impl
871
872
873# SDCard
874# default is nosdcard, S/W button enabled in resource
875PRODUCT_CHARACTERISTICS := nosdcard
876
877
878# Seccomp
879PRODUCT_COPY_FILES += \
880 $(FP_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
881 $(FP_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
882
883
Bharath1710e062021-08-20 11:30:47 +0530884# Secure Element
885PRODUCT_PACKAGES += \
886 android.hardware.secure_element@1.2
887
888
Bharathca82a242022-08-18 19:48:51 +0530889# Sound Recorder
890PRODUCT_PACKAGES += \
891 QtiSoundRecorder
892
893
Bharath756d7dd2021-08-07 23:53:55 +0530894# System helper
895PRODUCT_PACKAGES += \
896 vendor.qti.hardware.systemhelper@1.0
897
898
899# Service tracker
900PRODUCT_PACKAGES += \
901 vendor.qti.hardware.servicetracker@1.2.vendor
902
903
Bharatha60665d2021-08-19 09:37:22 +0530904# Sensors
905PRODUCT_PACKAGES += \
906 sensors.FP3 \
907 android.hardware.sensors@1.0-impl \
908 android.hardware.sensors@1.0-service \
909 libsensorndkbridge
910
911# Sensor HAL conf file
912PRODUCT_COPY_FILES += \
913 $(FP_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
914
915# Feature definition files for msm8953
916PRODUCT_COPY_FILES += \
917 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
918 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
919 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
920 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
921 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
922 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
923 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
924
925
Bharath756d7dd2021-08-07 23:53:55 +0530926# Telephony Permissions
Bharath12163282022-06-20 15:10:58 +0530927# whitelisted app
928PRODUCT_COPY_FILES += \
Bharath8e773362022-10-05 09:42:57 +0530929 $(FP_PATH)/configs/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml
Bharath12163282022-06-20 15:10:58 +0530930
931PRODUCT_COPY_FILES += \
Bharath8e773362022-10-05 09:42:57 +0530932 $(FP_PATH)/configs/privapp-permissions-qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-qti.xml
Bharath12163282022-06-20 15:10:58 +0530933
934# Telephony wrappers
935PRODUCT_PACKAGES += \
936 qti-telephony-hidl-wrapper \
937 qti_telephony_hidl_wrapper.xml \
938 qti-telephony-utils \
939 qti_telephony_utils.xml
Bharath756d7dd2021-08-07 23:53:55 +0530940
941
942# Thermal
943PRODUCT_PACKAGES += \
944 android.hardware.thermal@1.0-impl \
945 android.hardware.thermal@1.0-service
946
947
948# Tinyxml
949PRODUCT_PACKAGES += \
950 libtinyxml
951
952# USB
953PRODUCT_PACKAGES += \
954 android.hardware.usb@1.0-service
955
956-include vendor/qcom/opensource/usb/vendor_product.mk
957
958
959# Vendor move
960PRODUCT_VENDOR_MOVE_ENABLED := true
961
962
963# Vibrator
964PRODUCT_PACKAGES += \
965 android.hardware.vibrator@1.0-impl \
Bharath12163282022-06-20 15:10:58 +0530966 android.hardware.vibrator@1.0-service \
967 vendor.qti.hardware.vibrator.service
968
969PRODUCT_COPY_FILES += \
970 vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml
Bharath756d7dd2021-08-07 23:53:55 +0530971
972
Bharathed255712021-08-14 20:37:05 +0530973# WiFi
974# WLAN drivers
975PRODUCT_COPY_FILES += \
976 $(FP_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
977 $(FP_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_wlan_dictionary.dat \
978 $(FP_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin # From Android 10
979
980# Flag to check if wcnss_service is built from source
981TARGET_USE_WCNSS_HAL := false
982
983# If building from source then drop proprietary dependency
984ifeq ($(TARGET_USE_WCNSS_HAL),true)
985TARGET_USES_QCOM_WCNSS_QMI := false
Bharath70cf2ae2022-02-14 12:13:50 +0530986
987PRODUCT_PACKAGES += \
988 libwcnss_qmi \
989 wcnss_service
Bharathed255712021-08-14 20:37:05 +0530990endif
991
992# WiFi HAL
993PRODUCT_PACKAGES += \
994 android.hardware.wifi@1.0-service
995
Bharath12163282022-06-20 15:10:58 +0530996# WLAN DLKM
997PRODUCT_PACKAGES += \
998 pronto_wlan.ko
999
Bharathed255712021-08-14 20:37:05 +05301000# WiFi Components
1001PRODUCT_PACKAGES += \
1002 hostapd \
1003 hostapd.accept \
1004 hostapd.deny \
1005 hostapd_cli \
1006 hostapd_default.conf \
1007 libnl \
1008 libqsap_sdk \
Bharathed255712021-08-14 20:37:05 +05301009 libwifi-hal-qcom \
1010 libwpa_client \
1011 p2p_supplicant_overlay.conf \
1012 vendor.qti.hardware.wifi.supplicant@1.0.vendor \
Bharathed255712021-08-14 20:37:05 +05301013 wificond \
1014 wpa_cli \
1015 wpa_supplicant.conf \
1016 wpa_supplicant \
1017 wpa_supplicant_overlay.conf \
1018 WifiOverlay \
1019 TetheringConfigOverlay
1020
Karsten Tausche234d0742022-12-09 16:59:29 +01001021# Configure legacy Qualcomm wpa_supplicant_8_lib path for CFI
1022PRODUCT_CFI_INCLUDE_PATHS += \
1023 hardware/qcom/wlan/qcwcn/wpa_supplicant_8_lib
Bharathed255712021-08-14 20:37:05 +05301024
Bharath12163282022-06-20 15:10:58 +05301025# Zlib
1026PRODUCT_HOST_PACKAGES += minigzip
1027
1028
Bharath83dcc442022-10-10 20:16:21 +05301029# Enable zygote critical window.
1030PRODUCT_VENDOR_OVERRIDES += \
1031 zygote.critical_window.minute=10
1032
1033
Bharath756d7dd2021-08-07 23:53:55 +05301034# Call the proprietary setup
Bharatha3a85a72022-05-23 17:50:24 +05301035FP3_PROPRIETARY_PATH := device/fairphone/fp3-proprietary
Bharatha3a85a72022-05-23 17:50:24 +05301036
Karsten Tausche98fd90f2022-12-22 15:03:44 +01001037DEVICE_BLOB_VERSION := 4.A.0020.0
Francesco Salvatore03117482019-02-28 16:39:11 +01001038
1039GET_BLOBS_CMD = vendor/fairphone/tools/bin/get_blobs.py --device FP3 --build-id $(DEVICE_BLOB_VERSION) --blobs-dir $(FP3_PROPRIETARY_PATH)
1040
1041# Check the presence of proprietary blobs
1042ifeq ("$(wildcard $(FP3_PROPRIETARY_PATH)/device-vendor.mk)","")
1043define BLOBS_INSTRUCTION
1044Cannot find FP3 binary blobs.
1045Please run
1046 $(GET_BLOBS_CMD)
1047and accept the terms of agreement.
1048endef
1049$(error $(BLOBS_INSTRUCTION))
1050endif
1051
Bharath756d7dd2021-08-07 23:53:55 +05301052# Call this in the end so that flags if required can be utilized.
Bharatha3a85a72022-05-23 17:50:24 +05301053$(call inherit-product, $(FP3_PROPRIETARY_PATH)/device-vendor.mk)
1054
Bharath12163282022-06-20 15:10:58 +05301055# Build some more display components to vendor
1056$(call inherit-product, vendor/qcom/opensource/commonsys-intf/display/config/display-interfaces-product.mk)
Bharath756d7dd2021-08-07 23:53:55 +05301057###################################################################################