blob: a4de61661824e9425683adb0dd197774d7b85f45 [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 \
368 libjni_burstpmk \
369 libjni_imageutil \
370 libjni_snapcammosaic \
371 libjni_snapcamtinyplanet \
372 libmm-qcamera \
373 libmmcamera_interface \
374 libmmjpeg_interface \
375 libmmlib2d_interface \
376 libqomx_core \
377 libxml2 \
378 mm-qcamera-app \
379 vendor.qti.hardware.camera.device@1.0 \
380 vendor.qti.hardware.camera.device@1.0.vendor
381
382# Fairphone Camera
383PRODUCT_PACKAGES += \
384 FairphoneCamera
385
386# Arcsoft camera libraries
387PRODUCT_PACKAGES += \
388 libarcimageprocess \
389 libarcsoft_aiscenedetection \
390 libarcsoft_hdr_detection \
391 libarcsoft_high_dynamic_range \
392 libarcsoft_low_light_hdr \
393 libarcsoft_low_light_shot \
394 libarcsoft_object_tracking \
395 libarcsoft_panorama_burstcapture \
396 libarcsoft_singlecam_bokeh \
397 libarcsoft_videoautozoom \
398 libarcsoft_videostabs \
399 libmpbase \
400 libmpbase.vendor
401
402# Feature flags for camera
403PRODUCT_COPY_FILES += \
404 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
405 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
406 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
407 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 +0530408
409
410# Component overrides
Bharathe025dac2022-08-02 15:02:41 +0530411PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530412 $(FP_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
413
414
Bharath12163282022-06-20 15:10:58 +0530415# Charger
416PRODUCT_PACKAGES += \
417 charger \
418 charger_res_images
419
420
421# Chromium
422PRODUCT_PACKAGES += \
423 libwebviewchromium_loader \
424 libwebviewchromium_plat_support
425
426
427# Curl
428PRODUCT_PACKAGES += \
429 curl \
430 libcurl
431
432
433# Data/rmnetctrl
434PRODUCT_PACKAGES += \
435 librmnetctl
436
leolee75d66582020-10-21 15:26:49 +0800437# IPV4
Bharathdec76372022-10-10 20:15:42 +0530438PRODUCT_VENDOR_PROPERTIES += \
leolee75d66582020-10-21 15:26:49 +0800439 persist.vendor.data.profile_update=true
440
Bharathdec76372022-10-10 20:15:42 +0530441PRODUCT_VENDOR_PROPERTIES += ro.telephony.iwlan_operation_mode=legacy
Bharatha701c6b2022-07-25 17:26:28 +0530442
Bharath12163282022-06-20 15:10:58 +0530443
Jiakai Zhange915cae2022-05-20 14:56:44 +0100444# Preopt SystemUI
445PRODUCT_DEXPREOPT_SPEED_APPS += SystemUI # For AOSP
446
447
Bharath756d7dd2021-08-07 23:53:55 +0530448# Display
449PRODUCT_PACKAGES += \
450 android.hardware.graphics.allocator@2.0-impl \
451 android.hardware.graphics.allocator@2.0-service \
452 android.hardware.graphics.composer@2.1-service \
453 android.hardware.graphics.mapper@2.0-impl-2.1 \
454 android.hardware.memtrack@1.0-impl \
455 android.hardware.memtrack@1.0-service \
456 gralloc.default \
457 gralloc.msm8953 \
458 hwcomposer.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530459 libdisplayconfig \
Bharath12163282022-06-20 15:10:58 +0530460 libdisplayconfig.qti \
461 libdrm \
462 libgralloc.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530463 libqdMetaData \
Bharath12163282022-06-20 15:10:58 +0530464 libqdutils \
Bharath756d7dd2021-08-07 23:53:55 +0530465 libvulkan \
Bharath12163282022-06-20 15:10:58 +0530466 memtrack.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530467 vendor.qti.hardware.display.composer@3.0
468
469
470# Vendor Display
471# Disable skip validate
Bharathdec76372022-10-10 20:15:42 +0530472PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530473 vendor.display.disable_skip_validate=1
474
Bharathdec76372022-10-10 20:15:42 +0530475PRODUCT_VENDOR_PROPERTIES += ro.hardware.vulkan=adreno
476PRODUCT_VENDOR_PROPERTIES += ro.hardware.egl=adreno
Bharatha701c6b2022-07-25 17:26:28 +0530477
Bharath756d7dd2021-08-07 23:53:55 +0530478
479# Display Properties
480PRODUCT_AAPT_CONFIG := normal
481PRODUCT_AAPT_PREF_CONFIG := xxhdpi
482
483
484# DRM
485PRODUCT_PACKAGES += \
Edwin Wong8de56c72021-03-25 00:19:58 -0700486 android.hardware.drm@1.4-service.clearkey
Bharath756d7dd2021-08-07 23:53:55 +0530487
488
Pradeep Chenthatib4c3c102021-10-19 20:07:52 +0530489# Elabel
490PRODUCT_PACKAGES += \
491 eLabel.html.gz \
492 eLabel1.png \
493 eLabel2.png \
494 FAIRPHONE.html.gz \
495 FAIRPHONE.png
496
497
Bharath756d7dd2021-08-07 23:53:55 +0530498# Enable vndk-sp Libraries
499PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
500TARGET_USES_MKE2FS := true
501
502PRODUCT_PACKAGES += \
503 vndk_package
504
505
506# Encryption
Bharathdec76372022-10-10 20:15:42 +0530507PRODUCT_VENDOR_PROPERTIES += ro.crypto.allow_encrypt_override=true
508PRODUCT_VENDOR_PROPERTIES += ro.crypto.volume.filenames_mode=aes-256-cts
Bharath756d7dd2021-08-07 23:53:55 +0530509
510
Bharath12163282022-06-20 15:10:58 +0530511# E2fsck
512PRODUCT_PACKAGES += \
513 e2fsck
514
Bharath44ee36f2022-05-02 15:37:19 +0530515
Bharathe341d1d2022-04-06 09:49:27 +0530516# Fastbootd
517PRODUCT_PACKAGES += fastbootd
518
519
Bharath756d7dd2021-08-07 23:53:55 +0530520# FBE support
521PRODUCT_COPY_FILES += \
522 $(FP_PATH)/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh
523
524
Bharath1710e062021-08-20 11:30:47 +0530525# Feature flags and permissions
526PRODUCT_COPY_FILES += \
527 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
528 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
529 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
530 frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
531 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
532 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
533 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
534 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
535 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 +0530536 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 +0530537 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
538 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
539 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 +0530540 frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
541 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
542 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 +0800543 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 +0530544 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 +0530545 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
546
Bharath1dcb6512021-08-20 00:41:08 +0530547# Fingerprint
548PRODUCT_PACKAGES += \
549 android.hardware.biometrics.fingerprint@2.1 \
550 android.hardware.biometrics.fingerprint@2.1-service \
551 elan_device.rc \
552 fingerprint.default
553
554# Fingerprint files
555include $(FP_PATH)/elan_lib/fingerprint/elan_lib.mk
556
557# Fingerprint feature flag
558PRODUCT_COPY_FILES += \
Luca Weiss9656b9c2022-03-03 11:15:21 +0100559 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.fingerprint.xml
Bharath1dcb6512021-08-20 00:41:08 +0530560
561
Bharath756d7dd2021-08-07 23:53:55 +0530562# Framework Detect
563PRODUCT_PACKAGES += \
564 libqti_vndfwk_detect \
565 libqti_vndfwk_detect.vendor \
566 libvndfwk_detect_jni.qti \
567 libvndfwk_detect_jni.qti.vendor \
568 vndservicemanager
569
Bharath12163282022-06-20 15:10:58 +0530570# FRP
Bharathdec76372022-10-10 20:15:42 +0530571PRODUCT_VENDOR_PROPERTIES += ro.frp.pst=/dev/block/bootdevice/by-name/config
Bharath12163282022-06-20 15:10:58 +0530572
Bharath756d7dd2021-08-07 23:53:55 +0530573
574# HIDL
575PRODUCT_PACKAGES += \
576 android.hidl.base@1.0 \
577 libhidltransport \
578 libhidltransport.vendor \
579 libhwbinder \
580 libhwbinder.vendor
581
582
Bharath1710e062021-08-20 11:30:47 +0530583# GPS
584BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
Luca Weissa8a60262022-02-28 15:00:31 +0100585LOC_HIDL_VERSION := 4.0
Bharath1710e062021-08-20 11:30:47 +0530586
587PRODUCT_PACKAGES += \
Bharath70cf2ae2022-02-14 12:13:50 +0530588 android.hardware.gnss@2.1-impl-qti \
Bharath1710e062021-08-20 11:30:47 +0530589 android.hardware.gnss@2.1-service-qti \
590 libbatching \
591 libgeofencing \
592 libgnss \
593 libjson \
594 libwifi-hal-ctrl \
595 libgps.utils
596
597PRODUCT_PACKAGES += \
598 flp.conf \
599 gps.conf
600
601# gps/location secuity configuration file
602PRODUCT_COPY_FILES += \
603 $(FP_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
604
605# Permissions
606PRODUCT_COPY_FILES += \
607 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
608
Bharathdec76372022-10-10 20:15:42 +0530609PRODUCT_VENDOR_PROPERTIES += \
Bharath12163282022-06-20 15:10:58 +0530610 persist.backup.ntpServer=0.pool.ntp.org
611
Bharath1710e062021-08-20 11:30:47 +0530612
Bharath756d7dd2021-08-07 23:53:55 +0530613# Health
614PRODUCT_PACKAGES += \
615 android.hardware.health@2.1-impl \
616 android.hardware.health@2.1-impl.recovery \
617 android.hardware.health@2.1-service
618
619# IMS
620PRODUCT_PACKAGES += \
621 ims-ext-common \
622 ims_ext_common.xml \
623 ConfURIDialer
624
Bharath12163282022-06-20 15:10:58 +0530625
626# Init
627PRODUCT_PACKAGES += \
628 fstab.qcom \
629 init.class_main.sh \
630 init.crda.sh \
Karsten Tauschee270bad2022-08-22 15:41:19 +0200631 init.legacy_prop.rc \
Bharath12163282022-06-20 15:10:58 +0530632 init.mdm.sh \
633 init.qcom.class_core.sh \
Bharath12163282022-06-20 15:10:58 +0530634 init.qcom.early_boot.sh \
Bharath12163282022-06-20 15:10:58 +0530635 init.qcom.factory.rc \
636 init.qcom.post_boot.sh \
637 init.qcom.rc \
Bharath12163282022-06-20 15:10:58 +0530638 init.qcom.sensors.sh \
639 init.qcom.sh \
640 init.qcom.usb.rc \
641 init.qcom.usb.sh \
642 init.recovery.qcom.rc \
643 init.target.rc \
644 init.veth_ipa_config.sh \
Bharath12163282022-06-20 15:10:58 +0530645 ueventd.qcom.rc \
646 vold.fstab
647
648#intialise PRODUCT_PACKAGES_DEBUG list for debug modules
Bharath12163282022-06-20 15:10:58 +0530649#Add init.qcom.test.rc to PRODUCT_PACKAGES_DEBUG list
Bharath12163282022-06-20 15:10:58 +0530650PRODUCT_PACKAGES_DEBUG += \
Karsten Tauschece117af2022-11-28 12:46:06 +0100651 init.qcom.test.rc \
652 init.qcom.debug.sh
Bharath12163282022-06-20 15:10:58 +0530653
654
655# IP and iptables
656PRODUCT_PACKAGES += \
657 ip \
658 libiprouteutil \
659 iptables \
660 ip-up-vpn \
661 libext
662
663
Bharath756d7dd2021-08-07 23:53:55 +0530664# IPACM
665PRODUCT_PACKAGES += \
666 ipacm \
667 IPACM_cfg.xml \
668 libipanat \
669 liboffloadhal \
670 libqsap_sdk
671
672# IRQ
673PRODUCT_COPY_FILES += \
674 $(FP_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
675 $(FP_PATH)/configs/msm_irqbalance_little_big.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance_little_big.conf
676
677
678# Kernel modules
679# Kernel modules install path
680KERNEL_MODULES_INSTALL := dlkm
681KERNEL_MODULES_OUT := out/target/product/$(PRODUCT_NAME)/$(KERNEL_MODULES_INSTALL)/lib/modules
Bharath12163282022-06-20 15:10:58 +0530682KERNEL_TO_BUILD_ROOT_OFFSET := ../../
683
684
685# Key layouts
686PRODUCT_PACKAGES += \
687 ft5x06_ts.kl \
688 gpio-keys.kl \
689 synaptics_dsx.kl \
690 synaptics_dsxv26.kl \
691 synaptics_rmi4_i2c.kl
Bharath756d7dd2021-08-07 23:53:55 +0530692
693
Bharatha701c6b2022-07-25 17:26:28 +0530694# Keystore
Bharathdec76372022-10-10 20:15:42 +0530695PRODUCT_VENDOR_PROPERTIES += ro.hardware.keystore_desede=true
Bharatha701c6b2022-07-25 17:26:28 +0530696
697
Bharath756d7dd2021-08-07 23:53:55 +0530698# LED packages
699PRODUCT_PACKAGES += \
700 android.hardware.light@2.0-impl \
701 android.hardware.light@2.0-service \
702 lights.msm8953
703
704
705# Media / StagefrightCodec 2.0
Bharathdec76372022-10-10 20:15:42 +0530706PRODUCT_VENDOR_PROPERTIES += debug.stagefright.omx_default_rank=0
Bharath756d7dd2021-08-07 23:53:55 +0530707
Bharathe3615be2021-08-18 22:25:42 +0530708# Enable features in video HAL that can compile only on this platform
Bharath12163282022-06-20 15:10:58 +0530709MSM_VIDC_TARGET_LIST := msm8953
Bharathe3615be2021-08-18 22:25:42 +0530710TARGET_USES_MEDIA_EXTENSIONS := true
711
712
Bharath4c762882022-10-10 20:15:40 +0530713#
714# media profiles and media codecs xmls
715#
716# We select non-default xmls in system partition with the properties.
717PRODUCT_SYSTEM_PROPERTIES += \
Karsten Tauscheda4fb3f2022-11-23 18:43:11 +0100718 ro.media.xml_variant.codecs=_vendor
Bharath4c762882022-10-10 20:15:40 +0530719
720PRODUCT_COPY_FILES += \
721 $(FP_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
722 $(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 +0100723 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml
Bharath4c762882022-10-10 20:15:40 +0530724
725# media files for GSI - using default paths
Bharathe3615be2021-08-18 22:25:42 +0530726PRODUCT_COPY_FILES += \
Bharathe3615be2021-08-18 22:25:42 +0530727 $(FP_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
Bharathe3615be2021-08-18 22:25:42 +0530728 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
Bharath4c762882022-10-10 20:15:40 +0530729 $(FP_PATH)/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
Bharath12163282022-06-20 15:10:58 +0530730
731PRODUCT_COPY_FILES += \
732 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
733 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
734 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
735 frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml \
736 frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \
737 frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
738 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 +0530739
Bharath756d7dd2021-08-07 23:53:55 +0530740
Bharath8d5d3992022-10-10 20:15:30 +0530741# Disable media transcoding
742PRODUCT_VENDOR_PROPERTIES += \
743 persist.sys.fuse.transcode_user_control=true \
744 persist.sys.fuse.transcode_enabled=false
745
746
Bharath756d7dd2021-08-07 23:53:55 +0530747# NFC
Bharath1710e062021-08-20 11:30:47 +0530748PRODUCT_PACKAGES += \
Bharath4c28e932022-10-10 20:23:25 +0530749 NfcNci \
Bharath1710e062021-08-20 11:30:47 +0530750 Tag \
751 com.android.nfc_extras \
752 com.nxp.nfc.nq \
753 com.nxp.nfc.nq.xml \
754 libnqnfc-nci \
755 libnqnfc_nci_jni \
756 nfc_nci.nqx.default.hw \
757 vendor.nxp.hardware.nfc@2.0-service
758
759# Permissions
760PRODUCT_COPY_FILES += \
761 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
762 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
763 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
764 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
765 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
766 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
767 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
768 vendor/nxp/opensource/halimpl/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
769 vendor/nxp/opensource/halimpl/SN100x/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci_SN100.conf
Bharath756d7dd2021-08-07 23:53:55 +0530770
771
772# OMX
773PRODUCT_PACKAGES += \
774 libavservices_minijail.vendor \
775 libc2dcolorconvert \
776 libOmxAacEnc \
777 libOmxAmrEnc \
778 libOmxCore \
779 libOmxEvrcEnc \
780 libOmxQcelp13Enc \
781 libOmxVdec \
782 libOmxVenc \
783 libqomx_core \
784 libaacwrapper \
785 libmm-omxcore \
786 libstagefrighthw \
787 libstagefright_softomx.vendor
788
789
790#
791# system prop for opengles version
792#
793# 196608 is decimal for 0x30000 to report major/minor versions as 3/0
794# 196609 is decimal for 0x30001 to report major/minor versions as 3/1
795# 196610 is decimal for 0x30002 to report major/minor versions as 3/2
Bharathdec76372022-10-10 20:15:42 +0530796PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530797 ro.opengles.version=196610
798
799
Bharath12163282022-06-20 15:10:58 +0530800# AOSP Packages
801PRODUCT_PACKAGES += \
802 DeskClock \
803 Calendar \
804 CalendarProvider \
805 Camera2 \
806 CertInstaller \
807 Gallery2 \
808 LatinIME \
809 Launcher3 \
810 LiveWallpapersPicker \
811 Music \
812 netutils-wrapper-1.0 \
813 Provision \
814 Protips \
815 QuickSearchBox \
816 Settings \
817 Stk \
818 SystemUI \
819
820
Bharath756d7dd2021-08-07 23:53:55 +0530821# Perf
822PRODUCT_COPY_FILES += \
823 $(FP_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
824
Bharathdec76372022-10-10 20:15:42 +0530825PRODUCT_VENDOR_PROPERTIES += \
Bharath12163282022-06-20 15:10:58 +0530826 persist.vendor.qcomsysd.enabled=1 \
827 ro.vendor.extension_library=libqti-perfd-client.so \
828 sys.vendor.shutdown.waittime=500
829
Bharath756d7dd2021-08-07 23:53:55 +0530830
831# Power
832PRODUCT_PACKAGES += \
833 android.hardware.power@1.0-impl \
834 android.hardware.power@1.0-service \
835 power.qcom
836
837
Bharath756d7dd2021-08-07 23:53:55 +0530838# privapp-permissions whitelisting
Bharathdec76372022-10-10 20:15:42 +0530839PRODUCT_VENDOR_PROPERTIES += ro.control_privapp_permissions=enforce
Bharath756d7dd2021-08-07 23:53:55 +0530840
841
842# Protobuf
843PRODUCT_PACKAGES += \
844 libprotobuf-cpp-full \
845 libprotobuf-cpp-full-vendorcompat \
846 libprotobuf-cpp-lite-vendorcompat
847
848
Bharath12163282022-06-20 15:10:58 +0530849# include additional QCOM build utilities
Bharath8e773362022-10-05 09:42:57 +0530850include $(FP_PATH)/utils.mk
Bharath12163282022-06-20 15:10:58 +0530851
Bharath756d7dd2021-08-07 23:53:55 +0530852# RIL properties
Bharathdec76372022-10-10 20:15:42 +0530853PRODUCT_VENDOR_PROPERTIES += vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
Bharath756d7dd2021-08-07 23:53:55 +0530854#vendor prop to disable advanced network scanning
Bharathdec76372022-10-10 20:15:42 +0530855PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530856 persist.vendor.radio.enableadvancedscan=false
857
Bharath12163282022-06-20 15:10:58 +0530858# Enable Dual SIM by default
Bharathdec76372022-10-10 20:15:42 +0530859PRODUCT_VENDOR_PROPERTIES += persist.radio.multisim.config=dsds
Bharath12163282022-06-20 15:10:58 +0530860
Bharathdec76372022-10-10 20:15:42 +0530861PRODUCT_VENDOR_PROPERTIES += \
Bharath12163282022-06-20 15:10:58 +0530862 persist.vendor.radio.apm_sim_not_pwdn=1 \
863 persist.vendor.radio.sib16_support=1 \
864 persist.vendor.radio.custom_ecc=1 \
865 persist.vendor.radio.rat_on=combine \
866 persist.vendor.radio.procedure_bytes=SKIP
867
Bharath756d7dd2021-08-07 23:53:55 +0530868
869# RenderScript
870PRODUCT_PACKAGES += \
871 android.hardware.renderscript@1.0-impl
872
873
874# SDCard
875# default is nosdcard, S/W button enabled in resource
876PRODUCT_CHARACTERISTICS := nosdcard
877
878
879# Seccomp
880PRODUCT_COPY_FILES += \
881 $(FP_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
882 $(FP_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
883
884
Bharath1710e062021-08-20 11:30:47 +0530885# Secure Element
886PRODUCT_PACKAGES += \
887 android.hardware.secure_element@1.2
888
889
Bharathca82a242022-08-18 19:48:51 +0530890# Sound Recorder
891PRODUCT_PACKAGES += \
892 QtiSoundRecorder
893
894
Bharath756d7dd2021-08-07 23:53:55 +0530895# System helper
896PRODUCT_PACKAGES += \
897 vendor.qti.hardware.systemhelper@1.0
898
899
900# Service tracker
901PRODUCT_PACKAGES += \
902 vendor.qti.hardware.servicetracker@1.2.vendor
903
904
Bharatha60665d2021-08-19 09:37:22 +0530905# Sensors
906PRODUCT_PACKAGES += \
907 sensors.FP3 \
908 android.hardware.sensors@1.0-impl \
909 android.hardware.sensors@1.0-service \
910 libsensorndkbridge
911
912# Sensor HAL conf file
913PRODUCT_COPY_FILES += \
914 $(FP_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
915
916# Feature definition files for msm8953
917PRODUCT_COPY_FILES += \
918 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
919 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
920 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
921 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
922 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
923 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
924 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
925
926
Bharath756d7dd2021-08-07 23:53:55 +0530927# Telephony Permissions
Bharath12163282022-06-20 15:10:58 +0530928# whitelisted app
929PRODUCT_COPY_FILES += \
Bharath8e773362022-10-05 09:42:57 +0530930 $(FP_PATH)/configs/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml
Bharath12163282022-06-20 15:10:58 +0530931
932PRODUCT_COPY_FILES += \
Bharath8e773362022-10-05 09:42:57 +0530933 $(FP_PATH)/configs/privapp-permissions-qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-qti.xml
Bharath12163282022-06-20 15:10:58 +0530934
935# Telephony wrappers
936PRODUCT_PACKAGES += \
937 qti-telephony-hidl-wrapper \
938 qti_telephony_hidl_wrapper.xml \
939 qti-telephony-utils \
940 qti_telephony_utils.xml
Bharath756d7dd2021-08-07 23:53:55 +0530941
942
943# Thermal
944PRODUCT_PACKAGES += \
945 android.hardware.thermal@1.0-impl \
946 android.hardware.thermal@1.0-service
947
948
949# Tinyxml
950PRODUCT_PACKAGES += \
951 libtinyxml
952
953# USB
954PRODUCT_PACKAGES += \
955 android.hardware.usb@1.0-service
956
957-include vendor/qcom/opensource/usb/vendor_product.mk
958
959
960# Vendor move
961PRODUCT_VENDOR_MOVE_ENABLED := true
962
963
964# Vibrator
965PRODUCT_PACKAGES += \
966 android.hardware.vibrator@1.0-impl \
Bharath12163282022-06-20 15:10:58 +0530967 android.hardware.vibrator@1.0-service \
968 vendor.qti.hardware.vibrator.service
969
970PRODUCT_COPY_FILES += \
971 vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml
Bharath756d7dd2021-08-07 23:53:55 +0530972
973
Bharathed255712021-08-14 20:37:05 +0530974# WiFi
975# WLAN drivers
976PRODUCT_COPY_FILES += \
977 $(FP_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
978 $(FP_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_wlan_dictionary.dat \
979 $(FP_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin # From Android 10
980
981# Flag to check if wcnss_service is built from source
982TARGET_USE_WCNSS_HAL := false
983
984# If building from source then drop proprietary dependency
985ifeq ($(TARGET_USE_WCNSS_HAL),true)
986TARGET_USES_QCOM_WCNSS_QMI := false
Bharath70cf2ae2022-02-14 12:13:50 +0530987
988PRODUCT_PACKAGES += \
989 libwcnss_qmi \
990 wcnss_service
Bharathed255712021-08-14 20:37:05 +0530991endif
992
993# WiFi HAL
994PRODUCT_PACKAGES += \
995 android.hardware.wifi@1.0-service
996
Bharath12163282022-06-20 15:10:58 +0530997# WLAN DLKM
998PRODUCT_PACKAGES += \
999 pronto_wlan.ko
1000
Bharathed255712021-08-14 20:37:05 +05301001# WiFi Components
1002PRODUCT_PACKAGES += \
1003 hostapd \
1004 hostapd.accept \
1005 hostapd.deny \
1006 hostapd_cli \
1007 hostapd_default.conf \
1008 libnl \
1009 libqsap_sdk \
Bharathed255712021-08-14 20:37:05 +05301010 libwifi-hal-qcom \
1011 libwpa_client \
1012 p2p_supplicant_overlay.conf \
1013 vendor.qti.hardware.wifi.supplicant@1.0.vendor \
Bharathed255712021-08-14 20:37:05 +05301014 wificond \
1015 wpa_cli \
1016 wpa_supplicant.conf \
1017 wpa_supplicant \
1018 wpa_supplicant_overlay.conf \
1019 WifiOverlay \
1020 TetheringConfigOverlay
1021
1022
Bharath12163282022-06-20 15:10:58 +05301023# Zlib
1024PRODUCT_HOST_PACKAGES += minigzip
1025
1026
Bharath83dcc442022-10-10 20:16:21 +05301027# Enable zygote critical window.
1028PRODUCT_VENDOR_OVERRIDES += \
1029 zygote.critical_window.minute=10
1030
1031
Bharath12163282022-06-20 15:10:58 +05301032#soong namespace for qssi vs vendor differentiation
1033SOONG_CONFIG_NAMESPACES += qssi_vs_vendor
1034SOONG_CONFIG_qssi_vs_vendor += qssi_or_vendor
1035SOONG_CONFIG_qssi_vs_vendor_qssi_or_vendor := vendor
1036
1037SOONG_CONFIG_NAMESPACES += aosp_vs_qva
1038SOONG_CONFIG_aosp_vs_qva += aosp_or_qva
1039ifeq ($(TARGET_FWK_SUPPORTS_FULL_VALUEADDS),true)
1040SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := qva
1041else
1042SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := aosp
1043endif
1044
1045SOONG_CONFIG_NAMESPACES += qtidisplaycommonsys
1046# Soong Keys
1047SOONG_CONFIG_qtidisplaycommonsys := displayconfig_enabled
1048# Soong Values
1049SOONG_CONFIG_qtidisplaycommonsys_displayconfig_enabled := true
1050
1051
Bharath756d7dd2021-08-07 23:53:55 +05301052# Call the proprietary setup
Bharatha3a85a72022-05-23 17:50:24 +05301053FP3_PROPRIETARY_PATH := device/fairphone/fp3-proprietary
Bharatha3a85a72022-05-23 17:50:24 +05301054
Karsten Tauschef5d939c2022-11-23 14:31:09 +01001055DEVICE_BLOB_VERSION := 4.A.0019.1
Francesco Salvatore03117482019-02-28 16:39:11 +01001056
1057GET_BLOBS_CMD = vendor/fairphone/tools/bin/get_blobs.py --device FP3 --build-id $(DEVICE_BLOB_VERSION) --blobs-dir $(FP3_PROPRIETARY_PATH)
1058
1059# Check the presence of proprietary blobs
1060ifeq ("$(wildcard $(FP3_PROPRIETARY_PATH)/device-vendor.mk)","")
1061define BLOBS_INSTRUCTION
1062Cannot find FP3 binary blobs.
1063Please run
1064 $(GET_BLOBS_CMD)
1065and accept the terms of agreement.
1066endef
1067$(error $(BLOBS_INSTRUCTION))
1068endif
1069
Bharath756d7dd2021-08-07 23:53:55 +05301070# Call this in the end so that flags if required can be utilized.
Bharatha3a85a72022-05-23 17:50:24 +05301071$(call inherit-product, $(FP3_PROPRIETARY_PATH)/device-vendor.mk)
1072
Bharath12163282022-06-20 15:10:58 +05301073# Build some more display components to vendor
1074$(call inherit-product, vendor/qcom/opensource/commonsys-intf/display/config/display-interfaces-product.mk)
Bharath756d7dd2021-08-07 23:53:55 +05301075###################################################################################