blob: dde88cb110f2d533dc2abbd66fcbfccd1d165a7e [file] [log] [blame]
Bharath756d7dd2021-08-07 23:53:55 +05301# Copyright 2021-2022 Fairphone B.V.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16FP_PATH := device/fairphone/FP3
17
lindaguo(103996)47226c12020-06-22 17:27:43 +080018# Disable data roaming by default
19PRODUCT_PROPERTY_OVERRIDES += \
20 ro.com.android.dataroaming=false
21
Bharath756d7dd2021-08-07 23:53:55 +053022# Call the vendor setup
23$(call inherit-product-if-exists, vendor/fairphone/fp3-common/device-vendor.mk)
24
25$(call inherit-product, build/make/target/product/product_launched_with_p.mk)
26
27$(call inherit-product, frameworks/native/build/phone-xhdpi-4096-dalvik-heap.mk)
28
Bharath12163282022-06-20 15:10:58 +053029# Inherit generic AOSP content for telephony based 64-bit devices
30$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
31$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk)
Bharath756d7dd2021-08-07 23:53:55 +053032
33PRODUCT_NAME := FP3
34PRODUCT_DEVICE := FP3
35PRODUCT_MODEL := FP3
36PRODUCT_MANUFACTURER := Fairphone
37PRODUCT_BRAND := Fairphone
38
39
40# Allow using custom and expressive names for our Android flavors while in fact
41# targeting the same model with all of them.
Bharath6a7439e2022-02-21 17:35:49 +053042PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_MODEL=FP3 PRODUCT_NAME=FP3 TARGET_PRODUCT=FP3
Bharath756d7dd2021-08-07 23:53:55 +053043
Bharath756d7dd2021-08-07 23:53:55 +053044
Bharathdccdc592022-03-31 12:10:41 +053045TARGET_SYSTEM_PROP := $(FP_PATH)/system.prop
Bharath756d7dd2021-08-07 23:53:55 +053046
Borjan Tchakaloff17a5b5f2018-05-11 11:35:06 +020047# Define the build number based on the product flavour and on the build manifest
48# revision
49ifneq (,$(strip $(PRODUCT_FLAVOR)))
50 _BUILD_MANIFEST_REV := $(shell (git -C $(TOPDIR).repo/manifests rev-parse --short=8 HEAD))
51 BUILD_NUMBER := $(PRODUCT_FLAVOR)-$(_BUILD_MANIFEST_REV)
52 HAS_BUILD_NUMBER := true
53else
54 $(error PRODUCT_FLAVOR must be defined)
55endif
Borjan Tchakaloff17a5b5f2018-05-11 11:35:06 +020056
Bharath756d7dd2021-08-07 23:53:55 +053057
Luca Weisse7ef1c82022-07-13 13:13:20 +020058# Define SPL for boot & vendor
59BOOT_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
60VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
61
62
Bharath756d7dd2021-08-07 23:53:55 +053063# We don't have the calibration data as this sort of
64# data can only be generated at the factory so don't generate persist.img
65FP3_SKIP_PERSIST_IMG := true
66
Bharath80ba1872021-08-21 11:53:57 +053067
68# Operator specific overlays
69DEVICE_PACKAGE_OVERLAYS += \
70 $(LOCAL_PATH)/overlay-operators
71
Bharath756d7dd2021-08-07 23:53:55 +053072# Overlays
73DEVICE_PACKAGE_OVERLAYS += \
74 $(LOCAL_PATH)/overlay
75
76
77# A/B related defines
78AB_OTA_UPDATER := true
Luca Weissd6c3ca12022-07-13 16:24:08 +020079AB_OTA_PARTITIONS := \
80 aboot \
81 cmnlib64 \
82 cmnlib \
83 devcfg \
84 dsp \
Bharath756d7dd2021-08-07 23:53:55 +053085 dtbo \
Luca Weissd6c3ca12022-07-13 16:24:08 +020086 keymaster \
87 lksecapp \
88 mdtp \
89 modem \
90 rpm \
91 sbl1 \
92 tz \
Bharath756d7dd2021-08-07 23:53:55 +053093 vbmeta \
Luca Weissd6c3ca12022-07-13 16:24:08 +020094 boot \
95 system \
Bharath756d7dd2021-08-07 23:53:55 +053096 vendor
97
98
Bharath756d7dd2021-08-07 23:53:55 +053099PRODUCT_PACKAGES += \
Bharath756d7dd2021-08-07 23:53:55 +0530100 update_engine_sideload
101
102
Bharath2307d3b2022-01-06 22:23:25 +0530103# APN
104PRODUCT_COPY_FILES += \
105 $(LOCAL_PATH)/apns-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
106
107
Bharath756d7dd2021-08-07 23:53:55 +0530108# AVB
109BOARD_AVB_ENABLE := true
110
111
112# Additional native libraries
113PRODUCT_COPY_FILES += \
114 $(FP_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
115
116
Bharath12163282022-06-20 15:10:58 +0530117# OEM Unlock reporting
118PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
119 ro.oem_unlock_supported=1
120
121
Bharath756d7dd2021-08-07 23:53:55 +0530122# Atrace HAL
123PRODUCT_PACKAGES += \
124 android.hardware.atrace@1.0-service
125
126
127# Audio
Bharath756d7dd2021-08-07 23:53:55 +0530128PRODUCT_PACKAGES += \
129 android.hardware.audio@6.0 \
130 android.hardware.audio.common@6.0 \
131 android.hardware.audio.common@6.0-util \
Bharath70cf2ae2022-02-14 12:13:50 +0530132 android.hardware.audio@6.0-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530133 android.hardware.audio.effect@6.0 \
Bharath70cf2ae2022-02-14 12:13:50 +0530134 android.hardware.audio.effect@6.0-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530135 android.hardware.audio.service \
136 android.hardware.soundtrigger@2.1-impl \
137 audio.a2dp.default \
138 audio.primary.msm8953 \
139 audio.r_submix.default \
140 audio.usb.default \
141 libaacwrapper \
142 libaudio-resampler \
143 libautohal \
144 libqcompostprocbundle \
145 libqcomvisualizer \
146 libqcomvoiceprocessing \
147 libvolumelistener \
148 tinymix
149
150
151AUDIO_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal
152
153# Audio files
154PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530155 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
156 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
157 $(AUDIO_HAL_PATH)/configs/msm8953/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
158 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
159 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku3_tasha.xml \
160 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku4.xml \
161 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tasha.xml \
162 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tashalite.xml \
163 $(AUDIO_HAL_PATH)/configs/msm8953/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
164 $(AUDIO_HAL_PATH)/configs/msm8953/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
165 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
166 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
167 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku3_tasha.xml \
168 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku4.xml \
169 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
170 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \
171 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
172 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9306.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9306.xml \
173 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9330.xml \
174 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \
175 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
176
177
178# Audio config files
179PRODUCT_COPY_FILES += \
180 frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
181 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
182 frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
183 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
184 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
185 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
186
187# Custom config files
188PRODUCT_COPY_FILES += \
189 $(FP_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
190
191
192# Audio firmware files
193PRODUCT_COPY_FILES += \
194 $(FP_PATH)/aw/aw8898_cfg.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/aw8898_cfg.bin \
195 $(FP_PATH)/tas2557_fw/OBO_0617_music.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557_uCDSP.bin \
196 $(FP_PATH)/tas2557_fw/tas2557evm_OBO_0617.ftcfg:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557evm_aacspk_a.ftcfg
197
198
199# Audio Specific device overlays
200DEVICE_PACKAGE_OVERLAYS += $(AUDIO_HAL_PATH)/configs/common/overlay
201
202
203# Audio Specific properties
204# Properties
205-include $(LOCAL_PATH)/audio_properties.mk
206
207
208# Audio Kernel modules
209AUDIO_DLKM := audio_apr.ko
210AUDIO_DLKM += audio_q6_notifier.ko
211AUDIO_DLKM += audio_adsp_loader.ko
212AUDIO_DLKM += audio_q6.ko
213AUDIO_DLKM += audio_usf.ko
214AUDIO_DLKM += audio_pinctrl_wcd.ko
215AUDIO_DLKM += audio_swr.ko
216AUDIO_DLKM += audio_wcd_core.ko
217AUDIO_DLKM += audio_swr_ctrl.ko
218AUDIO_DLKM += audio_wsa881x.ko
219AUDIO_DLKM += audio_wsa881x_analog.ko
220AUDIO_DLKM += audio_platform.ko
221AUDIO_DLKM += audio_cpe_lsm.ko
222AUDIO_DLKM += audio_hdmi.ko
223AUDIO_DLKM += audio_stub.ko
224AUDIO_DLKM += audio_wcd9xxx.ko
225AUDIO_DLKM += audio_mbhc.ko
226AUDIO_DLKM += audio_wcd9335.ko
227AUDIO_DLKM += audio_wcd_cpe.ko
228AUDIO_DLKM += audio_digital_cdc.ko
229AUDIO_DLKM += audio_analog_cdc.ko
230AUDIO_DLKM += audio_native.ko
231AUDIO_DLKM += audio_machine_sdm450.ko
232AUDIO_DLKM += audio_machine_ext_sdm450.ko
233PRODUCT_PACKAGES += $(AUDIO_DLKM)
234
235
Bharath9cdcce22021-12-08 15:43:43 +0530236# Automation/ATS
237PRODUCT_PACKAGES += \
238 automation_setup \
239 automation_adb_setup
240
241
Bharathfe661fb2021-08-16 18:56:32 +0530242# ANT
243PRODUCT_PACKAGES += \
244 AntHalService \
245 antradio_app \
246 com.dsi.ant@1.0 \
Bharath70cf2ae2022-02-14 12:13:50 +0530247 com.dsi.ant@1.0.vendor \
Bharathfe661fb2021-08-16 18:56:32 +0530248 libantradio
249
Bharath756d7dd2021-08-07 23:53:55 +0530250# Bluetooth
Bharathfe661fb2021-08-16 18:56:32 +0530251PRODUCT_PACKAGES += \
Bharathfe661fb2021-08-16 18:56:32 +0530252 audio.bluetooth.default \
253 android.hardware.bluetooth.audio@2.0-impl \
254 android.hardware.bluetooth@1.0 \
255 vendor.qti.hardware.bluetooth_audio@2.0 \
256 vendor.qti.hardware.bluetooth_audio@2.1.vendor \
257 vendor.qti.hardware.btconfigstore@1.0.vendor
258
259# Bluetooth Permissions
260PRODUCT_COPY_FILES += \
261 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
262 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 +0530263
264
Bharath12163282022-06-20 15:10:58 +0530265# Board platforms lists to be used for
266# TARGET_BOARD_PLATFORM specific featurization
267QCOM_BOARD_PLATFORMS += msm8953
268
269
Bharath756d7dd2021-08-07 23:53:55 +0530270# Boot
271PRODUCT_PACKAGES += \
272 android.hardware.boot@1.0-impl \
273 android.hardware.boot@1.0-impl.recovery \
274 android.hardware.boot@1.0-service \
275 bootctrl.msm8953 \
Bharathe341d1d2022-04-06 09:49:27 +0530276 bootctrl.msm8953.recovery \
Bharath756d7dd2021-08-07 23:53:55 +0530277 update_engine \
278 update_engine_client \
279 update_engine_sideload \
280 update_verifier
281
Bharath12163282022-06-20 15:10:58 +0530282# MSM updater library
283PRODUCT_PACKAGES += librecovery_updater_msm
284
285
286# Skip boot jars check
287SKIP_BOOT_JARS_CHECK := true
288
Bharath756d7dd2021-08-07 23:53:55 +0530289
290# Boot animation
291TARGET_SCREEN_HEIGHT := 2160
292TARGET_SCREEN_WIDTH := 1080
293
294
295PRODUCT_COPY_FILES += \
296 vendor/fairphone/media/bootanimation/bootanimation.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip
297
298
299# Camera
Bharathcbfb0a92021-08-19 21:13:50 +0530300PRODUCT_PACKAGES += \
301 android.frameworks.displayservice@1.0.vendor \
302 android.hidl.base@1.0.vendor \
303 android.hardware.camera.device@3.5 \
304 android.hardware.camera.provider@2.4 \
305 android.hardware.camera.provider@2.4-external \
306 android.hardware.camera.provider@2.4-impl \
307 android.hardware.camera.provider@2.4-legacy \
308 android.hardware.camera.provider@2.4-service \
309 android.hardware.camera.provider@2.6 \
310 camera.device@1.0-impl \
311 camera.device@3.5-impl \
312 camera.device@3.6-external-impl \
313 camera.msm8953 \
314 cameraconfig.txt \
315 libcamera2ndk_vendor \
316 libhal_dbg \
317 libjni_burstpmk \
318 libjni_imageutil \
319 libjni_snapcammosaic \
320 libjni_snapcamtinyplanet \
321 libmm-qcamera \
322 libmmcamera_interface \
323 libmmjpeg_interface \
324 libmmlib2d_interface \
325 libqomx_core \
326 libxml2 \
327 mm-qcamera-app \
328 vendor.qti.hardware.camera.device@1.0 \
329 vendor.qti.hardware.camera.device@1.0.vendor
330
331# Fairphone Camera
332PRODUCT_PACKAGES += \
333 FairphoneCamera
334
335# Arcsoft camera libraries
336PRODUCT_PACKAGES += \
337 libarcimageprocess \
338 libarcsoft_aiscenedetection \
339 libarcsoft_hdr_detection \
340 libarcsoft_high_dynamic_range \
341 libarcsoft_low_light_hdr \
342 libarcsoft_low_light_shot \
343 libarcsoft_object_tracking \
344 libarcsoft_panorama_burstcapture \
345 libarcsoft_singlecam_bokeh \
346 libarcsoft_videoautozoom \
347 libarcsoft_videostabs \
348 libmpbase \
349 libmpbase.vendor
350
351# Feature flags for camera
352PRODUCT_COPY_FILES += \
353 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
354 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
355 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
356 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 +0530357
358
359# Component overrides
Bharathe025dac2022-08-02 15:02:41 +0530360PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530361 $(FP_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
362
363
Bharath12163282022-06-20 15:10:58 +0530364# Charger
365PRODUCT_PACKAGES += \
366 charger \
367 charger_res_images
368
369
370# Chromium
371PRODUCT_PACKAGES += \
372 libwebviewchromium_loader \
373 libwebviewchromium_plat_support
374
375
376# Curl
377PRODUCT_PACKAGES += \
378 curl \
379 libcurl
380
381
382# Data/rmnetctrl
383PRODUCT_PACKAGES += \
384 librmnetctl
385
leolee75d66582020-10-21 15:26:49 +0800386# IPV4
387PRODUCT_PROPERTY_OVERRIDES += \
388 persist.vendor.data.profile_update=true
389
Bharatha701c6b2022-07-25 17:26:28 +0530390PRODUCT_PROPERTY_OVERRIDES += ro.telephony.iwlan_operation_mode=legacy
391
Bharath12163282022-06-20 15:10:58 +0530392
Bharath756d7dd2021-08-07 23:53:55 +0530393# Display
394PRODUCT_PACKAGES += \
395 android.hardware.graphics.allocator@2.0-impl \
396 android.hardware.graphics.allocator@2.0-service \
397 android.hardware.graphics.composer@2.1-service \
398 android.hardware.graphics.mapper@2.0-impl-2.1 \
399 android.hardware.memtrack@1.0-impl \
400 android.hardware.memtrack@1.0-service \
401 gralloc.default \
402 gralloc.msm8953 \
403 hwcomposer.msm8953 \
Bharath12163282022-06-20 15:10:58 +0530404 libcomposerextn.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530405 libdisplayconfig \
Bharath12163282022-06-20 15:10:58 +0530406 libdisplayconfig.qti \
407 libdrm \
408 libgralloc.qti \
409 liblayerext.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530410 libqdMetaData \
Bharath12163282022-06-20 15:10:58 +0530411 libqdMetaData.system \
412 libqdutils \
413 libsmomo.qti \
414 libsmomoconfig.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530415 libvulkan \
Bharath12163282022-06-20 15:10:58 +0530416 memtrack.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530417 vendor.qti.hardware.display.composer@3.0
418
419
420# Vendor Display
421# Disable skip validate
422PRODUCT_PROPERTY_OVERRIDES += \
423 vendor.display.disable_skip_validate=1
424
Bharatha701c6b2022-07-25 17:26:28 +0530425PRODUCT_PROPERTY_OVERRIDES += ro.hardware.vulkan=adreno
426PRODUCT_PROPERTY_OVERRIDES += ro.hardware.egl=adreno
427
Bharath756d7dd2021-08-07 23:53:55 +0530428
429# Display Properties
430PRODUCT_AAPT_CONFIG := normal
431PRODUCT_AAPT_PREF_CONFIG := xxhdpi
432
433
434# DRM
435PRODUCT_PACKAGES += \
436 android.hardware.drm@1.3-service.clearkey
437
438
Pradeep Chenthatib4c3c102021-10-19 20:07:52 +0530439# Elabel
440PRODUCT_PACKAGES += \
441 eLabel.html.gz \
442 eLabel1.png \
443 eLabel2.png \
444 FAIRPHONE.html.gz \
445 FAIRPHONE.png
446
447
Bharath756d7dd2021-08-07 23:53:55 +0530448# Enable vndk-sp Libraries
449PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
450TARGET_USES_MKE2FS := true
451
452PRODUCT_PACKAGES += \
453 vndk_package
454
455
456# Encryption
457PRODUCT_PROPERTY_OVERRIDES += ro.crypto.allow_encrypt_override=true
458PRODUCT_PROPERTY_OVERRIDES += ro.crypto.volume.filenames_mode=aes-256-cts
459
460
Bharath12163282022-06-20 15:10:58 +0530461# E2fsck
462PRODUCT_PACKAGES += \
463 e2fsck
464
Bharath44ee36f2022-05-02 15:37:19 +0530465# ExFAT binaries
466PRODUCT_COPY_FILES += \
467 $(FP_PATH)/tuxera/exfatck:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatck \
468 $(FP_PATH)/tuxera/exfatdebug:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatdebug \
469 $(FP_PATH)/tuxera/exfatlabel:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatlabel \
470 $(FP_PATH)/tuxera/exfatvsn:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatvsn \
471 $(FP_PATH)/tuxera/mkexfat:$(TARGET_COPY_OUT_SYSTEM)/bin/mkexfat
472
473
Bharathe341d1d2022-04-06 09:49:27 +0530474# Fastbootd
475PRODUCT_PACKAGES += fastbootd
476
477
Bharath756d7dd2021-08-07 23:53:55 +0530478# FBE support
479PRODUCT_COPY_FILES += \
480 $(FP_PATH)/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh
481
482
Bharath1710e062021-08-20 11:30:47 +0530483# Feature flags and permissions
484PRODUCT_COPY_FILES += \
485 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
486 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
487 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
488 frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
489 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
490 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
491 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
492 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
493 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 +0530494 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 +0530495 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
496 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
497 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 +0530498 frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
499 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
500 frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
501 frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.software.verified_boot.xml \
Bharathdf89a7d2022-06-27 20:12:06 +0530502 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 +0530503 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
504
Bharath1dcb6512021-08-20 00:41:08 +0530505# Fingerprint
506PRODUCT_PACKAGES += \
507 android.hardware.biometrics.fingerprint@2.1 \
508 android.hardware.biometrics.fingerprint@2.1-service \
509 elan_device.rc \
510 fingerprint.default
511
512# Fingerprint files
513include $(FP_PATH)/elan_lib/fingerprint/elan_lib.mk
514
515# Fingerprint feature flag
516PRODUCT_COPY_FILES += \
517 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
518
519
Bharath756d7dd2021-08-07 23:53:55 +0530520# Framework Detect
521PRODUCT_PACKAGES += \
522 libqti_vndfwk_detect \
523 libqti_vndfwk_detect.vendor \
524 libvndfwk_detect_jni.qti \
525 libvndfwk_detect_jni.qti.vendor \
526 vndservicemanager
527
Bharath12163282022-06-20 15:10:58 +0530528# FRP
529PRODUCT_PROPERTY_OVERRIDES += ro.frp.pst=/dev/block/bootdevice/by-name/config
530
Bharath756d7dd2021-08-07 23:53:55 +0530531
532# HIDL
533PRODUCT_PACKAGES += \
534 android.hidl.base@1.0 \
535 libhidltransport \
536 libhidltransport.vendor \
537 libhwbinder \
538 libhwbinder.vendor
539
540
Bharath1710e062021-08-20 11:30:47 +0530541# GPS
542BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
Luca Weissa8a60262022-02-28 15:00:31 +0100543LOC_HIDL_VERSION := 4.0
Bharath1710e062021-08-20 11:30:47 +0530544
545PRODUCT_PACKAGES += \
Bharath70cf2ae2022-02-14 12:13:50 +0530546 android.hardware.gnss@2.1-impl-qti \
Bharath1710e062021-08-20 11:30:47 +0530547 android.hardware.gnss@2.1-service-qti \
548 libbatching \
549 libgeofencing \
550 libgnss \
551 libjson \
552 libwifi-hal-ctrl \
553 libgps.utils
554
555PRODUCT_PACKAGES += \
556 flp.conf \
557 gps.conf
558
559# gps/location secuity configuration file
560PRODUCT_COPY_FILES += \
561 $(FP_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
562
563# Permissions
564PRODUCT_COPY_FILES += \
565 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
566
Bharath12163282022-06-20 15:10:58 +0530567PRODUCT_PROPERTY_OVERRIDES += \
568 persist.backup.ntpServer=0.pool.ntp.org
569
Bharath1710e062021-08-20 11:30:47 +0530570
Bharath756d7dd2021-08-07 23:53:55 +0530571# Health
572PRODUCT_PACKAGES += \
573 android.hardware.health@2.1-impl \
574 android.hardware.health@2.1-impl.recovery \
575 android.hardware.health@2.1-service
576
577# IMS
578PRODUCT_PACKAGES += \
579 ims-ext-common \
580 ims_ext_common.xml \
581 ConfURIDialer
582
Bharath12163282022-06-20 15:10:58 +0530583
584# Init
585PRODUCT_PACKAGES += \
586 fstab.qcom \
587 init.class_main.sh \
588 init.crda.sh \
Karsten Tauschee270bad2022-08-22 15:41:19 +0200589 init.legacy_prop.rc \
Bharath12163282022-06-20 15:10:58 +0530590 init.mdm.sh \
591 init.qcom.class_core.sh \
592 init.qcom.coex.sh \
593 init.qcom.early_boot.sh \
594 init.qcom.efs.sync.sh \
595 init.qcom.factory.rc \
596 init.qcom.post_boot.sh \
597 init.qcom.rc \
598 init.qcom.sdio.sh \
599 init.qcom.sensors.sh \
600 init.qcom.sh \
601 init.qcom.usb.rc \
602 init.qcom.usb.sh \
603 init.recovery.qcom.rc \
604 init.target.rc \
605 init.veth_ipa_config.sh \
606 qca6234-service.sh \
607 ueventd.qcom.rc \
608 vold.fstab
609
610#intialise PRODUCT_PACKAGES_DEBUG list for debug modules
Luca Weiss2327bfb2022-07-13 09:47:07 +0200611PRODUCT_PACKAGES_DEBUG += init.qcom.testscripts.sh
Bharath12163282022-06-20 15:10:58 +0530612
613#Add init.qcom.test.rc to PRODUCT_PACKAGES_DEBUG list
614PRODUCT_PACKAGES_DEBUG += init.qcom.test.rc
615PRODUCT_PACKAGES_DEBUG += init.qcom.debug.sh
616
617ifneq ($(strip $(TARGET_BUILD_VARIANT)),user)
618PRODUCT_COPY_FILES += \
619 device/qcom/common/rootdir/etc/init.qcom.testscripts.sh:$(TARGET_COPY_OUT_PRODUCT)/etc/init.qcom.testscripts.sh
620endif
621
622PRODUCT_PACKAGES_DEBUG += \
623 init.qcom.debug.sh \
624 init.qcom.debug-sdm660.sh \
625 init.qcom.debug-sdm710.sh \
626 init.qti.debug-msmnile-apps.sh \
627 init.qti.debug-msmnile-modem.sh \
628 init.qti.debug-msmnile-slpi.sh \
629 init.qti.debug-talos.sh \
630 init.qti.debug-msmnile.sh \
631 init.qti.debug-kona.sh \
632 init.qti.debug-lito.sh \
633 init.qti.debug-trinket.sh \
634 init.qti.debug-atoll.sh \
635 init.qti.debug-lagoon.sh \
636 init.qti.debug-bengal.sh
637
638
639# IP and iptables
640PRODUCT_PACKAGES += \
641 ip \
642 libiprouteutil \
643 iptables \
644 ip-up-vpn \
645 libext
646
647
Bharath756d7dd2021-08-07 23:53:55 +0530648# IPACM
649PRODUCT_PACKAGES += \
650 ipacm \
651 IPACM_cfg.xml \
652 libipanat \
653 liboffloadhal \
654 libqsap_sdk
655
656# IRQ
657PRODUCT_COPY_FILES += \
658 $(FP_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
659 $(FP_PATH)/configs/msm_irqbalance_little_big.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance_little_big.conf
660
661
662# Kernel modules
663# Kernel modules install path
664KERNEL_MODULES_INSTALL := dlkm
665KERNEL_MODULES_OUT := out/target/product/$(PRODUCT_NAME)/$(KERNEL_MODULES_INSTALL)/lib/modules
Bharath12163282022-06-20 15:10:58 +0530666KERNEL_TO_BUILD_ROOT_OFFSET := ../../
667
668
669# Key layouts
670PRODUCT_PACKAGES += \
671 ft5x06_ts.kl \
672 gpio-keys.kl \
673 synaptics_dsx.kl \
674 synaptics_dsxv26.kl \
675 synaptics_rmi4_i2c.kl
Bharath756d7dd2021-08-07 23:53:55 +0530676
677
Bharatha701c6b2022-07-25 17:26:28 +0530678# Keystore
679PRODUCT_PROPERTY_OVERRIDES += ro.hardware.keystore_desede=true
680
681
Bharath756d7dd2021-08-07 23:53:55 +0530682# LED packages
683PRODUCT_PACKAGES += \
684 android.hardware.light@2.0-impl \
685 android.hardware.light@2.0-service \
686 lights.msm8953
687
688
689# Media / StagefrightCodec 2.0
690PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
691
Bharathe3615be2021-08-18 22:25:42 +0530692# Enable features in video HAL that can compile only on this platform
Bharath12163282022-06-20 15:10:58 +0530693MSM_VIDC_TARGET_LIST := msm8953
Bharathe3615be2021-08-18 22:25:42 +0530694TARGET_USES_MEDIA_EXTENSIONS := true
695
696
697# media_profiles and media_codecs xmls for msm8953
698PRODUCT_COPY_FILES += \
699 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles.xml \
700 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \
701 $(FP_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
702 $(FP_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
703 $(FP_PATH)/media/media_codecs_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_8953.xml \
704 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
705 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_8953.xml \
706 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles_8953_v1.xml \
707 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_8953_v1.xml \
708 $(FP_PATH)/media/media_codecs_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v1.xml \
709 $(FP_PATH)/media/media_codecs_performance_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v1.xml \
710 $(FP_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
Bharath12163282022-06-20 15:10:58 +0530711 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
712 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml
713
714PRODUCT_COPY_FILES += \
715 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
716 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
717 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
718 frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml \
719 frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \
720 frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
721 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 +0530722
Bharath756d7dd2021-08-07 23:53:55 +0530723
724# NFC
Bharath1710e062021-08-20 11:30:47 +0530725PRODUCT_PACKAGES += \
Bharathcaaa78e2022-09-06 10:18:06 +0530726 NQNfcNci \
Bharath1710e062021-08-20 11:30:47 +0530727 Tag \
728 com.android.nfc_extras \
729 com.nxp.nfc.nq \
730 com.nxp.nfc.nq.xml \
731 libnqnfc-nci \
732 libnqnfc_nci_jni \
733 nfc_nci.nqx.default.hw \
734 vendor.nxp.hardware.nfc@2.0-service
735
736# Permissions
737PRODUCT_COPY_FILES += \
738 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
739 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
740 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
741 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
742 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
743 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
744 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
745 vendor/nxp/opensource/halimpl/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
746 vendor/nxp/opensource/halimpl/SN100x/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci_SN100.conf
Bharath756d7dd2021-08-07 23:53:55 +0530747
748
749# OMX
750PRODUCT_PACKAGES += \
751 libavservices_minijail.vendor \
752 libc2dcolorconvert \
753 libOmxAacEnc \
754 libOmxAmrEnc \
755 libOmxCore \
756 libOmxEvrcEnc \
757 libOmxQcelp13Enc \
758 libOmxVdec \
759 libOmxVenc \
760 libqomx_core \
761 libaacwrapper \
762 libmm-omxcore \
763 libstagefrighthw \
764 libstagefright_softomx.vendor
765
766
767#
768# system prop for opengles version
769#
770# 196608 is decimal for 0x30000 to report major/minor versions as 3/0
771# 196609 is decimal for 0x30001 to report major/minor versions as 3/1
772# 196610 is decimal for 0x30002 to report major/minor versions as 3/2
773PRODUCT_PROPERTY_OVERRIDES += \
774 ro.opengles.version=196610
775
776
Bharath12163282022-06-20 15:10:58 +0530777# AOSP Packages
778PRODUCT_PACKAGES += \
779 DeskClock \
780 Calendar \
781 CalendarProvider \
782 Camera2 \
783 CertInstaller \
784 Gallery2 \
785 LatinIME \
786 Launcher3 \
787 LiveWallpapersPicker \
788 Music \
789 netutils-wrapper-1.0 \
790 Provision \
791 Protips \
792 QuickSearchBox \
793 Settings \
794 Stk \
795 SystemUI \
796
797
Bharath756d7dd2021-08-07 23:53:55 +0530798# Perf
799PRODUCT_COPY_FILES += \
800 $(FP_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
801
Bharath12163282022-06-20 15:10:58 +0530802PRODUCT_PROPERTY_OVERRIDES += \
803 persist.vendor.qcomsysd.enabled=1 \
804 ro.vendor.extension_library=libqti-perfd-client.so \
805 sys.vendor.shutdown.waittime=500
806
Bharath756d7dd2021-08-07 23:53:55 +0530807
808# Power
809PRODUCT_PACKAGES += \
810 android.hardware.power@1.0-impl \
811 android.hardware.power@1.0-service \
812 power.qcom
813
814
Bharath756d7dd2021-08-07 23:53:55 +0530815# privapp-permissions whitelisting
816PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
817
818
819# Protobuf
820PRODUCT_PACKAGES += \
821 libprotobuf-cpp-full \
822 libprotobuf-cpp-full-vendorcompat \
823 libprotobuf-cpp-lite-vendorcompat
824
825
Bharath12163282022-06-20 15:10:58 +0530826# include additional QCOM build utilities
827-include device/qcom/common/utils.mk
828
Bharath756d7dd2021-08-07 23:53:55 +0530829# RIL properties
830PRODUCT_PROPERTY_OVERRIDES += rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
831PRODUCT_PROPERTY_OVERRIDES += vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
832#vendor prop to disable advanced network scanning
833PRODUCT_PROPERTY_OVERRIDES += \
834 persist.vendor.radio.enableadvancedscan=false
835
Bharath12163282022-06-20 15:10:58 +0530836# Enable Dual SIM by default
837PRODUCT_PROPERTY_OVERRIDES += persist.radio.multisim.config=dsds
838
839PRODUCT_PROPERTY_OVERRIDES += \
840 persist.vendor.radio.apm_sim_not_pwdn=1 \
841 persist.vendor.radio.sib16_support=1 \
842 persist.vendor.radio.custom_ecc=1 \
843 persist.vendor.radio.rat_on=combine \
844 persist.vendor.radio.procedure_bytes=SKIP
845
Bharath756d7dd2021-08-07 23:53:55 +0530846
847# RenderScript
848PRODUCT_PACKAGES += \
849 android.hardware.renderscript@1.0-impl
850
851
852# SDCard
853# default is nosdcard, S/W button enabled in resource
854PRODUCT_CHARACTERISTICS := nosdcard
855
856
857# Seccomp
858PRODUCT_COPY_FILES += \
859 $(FP_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
860 $(FP_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
861
862
Bharath1710e062021-08-20 11:30:47 +0530863# Secure Element
864PRODUCT_PACKAGES += \
865 android.hardware.secure_element@1.2
866
867
Bharathca82a242022-08-18 19:48:51 +0530868# Sound Recorder
869PRODUCT_PACKAGES += \
870 QtiSoundRecorder
871
872
Bharath756d7dd2021-08-07 23:53:55 +0530873# System helper
874PRODUCT_PACKAGES += \
875 vendor.qti.hardware.systemhelper@1.0
876
877
878# Service tracker
879PRODUCT_PACKAGES += \
880 vendor.qti.hardware.servicetracker@1.2.vendor
881
882
Bharatha60665d2021-08-19 09:37:22 +0530883# Sensors
884PRODUCT_PACKAGES += \
885 sensors.FP3 \
886 android.hardware.sensors@1.0-impl \
887 android.hardware.sensors@1.0-service \
888 libsensorndkbridge
889
890# Sensor HAL conf file
891PRODUCT_COPY_FILES += \
892 $(FP_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
893
894# Feature definition files for msm8953
895PRODUCT_COPY_FILES += \
896 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
897 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
898 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
899 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
900 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
901 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
902 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
903
904
Bharath756d7dd2021-08-07 23:53:55 +0530905# Telephony Permissions
Bharath12163282022-06-20 15:10:58 +0530906# whitelisted app
907PRODUCT_COPY_FILES += \
908 device/qcom/common/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml
909
910PRODUCT_COPY_FILES += \
911 device/qcom/common/privapp-permissions-qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-qti.xml
912
913# Telephony wrappers
914PRODUCT_PACKAGES += \
915 qti-telephony-hidl-wrapper \
916 qti_telephony_hidl_wrapper.xml \
917 qti-telephony-utils \
918 qti_telephony_utils.xml
Bharath756d7dd2021-08-07 23:53:55 +0530919
920
921# Thermal
922PRODUCT_PACKAGES += \
923 android.hardware.thermal@1.0-impl \
924 android.hardware.thermal@1.0-service
925
926
927# Tinyxml
928PRODUCT_PACKAGES += \
929 libtinyxml
930
931# USB
932PRODUCT_PACKAGES += \
933 android.hardware.usb@1.0-service
934
935-include vendor/qcom/opensource/usb/vendor_product.mk
936
937
938# Vendor move
939PRODUCT_VENDOR_MOVE_ENABLED := true
940
941
942# Vibrator
943PRODUCT_PACKAGES += \
944 android.hardware.vibrator@1.0-impl \
Bharath12163282022-06-20 15:10:58 +0530945 android.hardware.vibrator@1.0-service \
946 vendor.qti.hardware.vibrator.service
947
948PRODUCT_COPY_FILES += \
949 vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml
Bharath756d7dd2021-08-07 23:53:55 +0530950
951
Bharathed255712021-08-14 20:37:05 +0530952# WiFi
953# WLAN drivers
954PRODUCT_COPY_FILES += \
955 $(FP_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
956 $(FP_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_wlan_dictionary.dat \
957 $(FP_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin # From Android 10
958
959# Flag to check if wcnss_service is built from source
960TARGET_USE_WCNSS_HAL := false
961
962# If building from source then drop proprietary dependency
963ifeq ($(TARGET_USE_WCNSS_HAL),true)
964TARGET_USES_QCOM_WCNSS_QMI := false
Bharath70cf2ae2022-02-14 12:13:50 +0530965
966PRODUCT_PACKAGES += \
967 libwcnss_qmi \
968 wcnss_service
Bharathed255712021-08-14 20:37:05 +0530969endif
970
971# WiFi HAL
972PRODUCT_PACKAGES += \
973 android.hardware.wifi@1.0-service
974
Bharath12163282022-06-20 15:10:58 +0530975# WLAN DLKM
976PRODUCT_PACKAGES += \
977 pronto_wlan.ko
978
Bharathed255712021-08-14 20:37:05 +0530979# WiFi Components
980PRODUCT_PACKAGES += \
981 hostapd \
982 hostapd.accept \
983 hostapd.deny \
984 hostapd_cli \
985 hostapd_default.conf \
986 libnl \
987 libqsap_sdk \
Bharathed255712021-08-14 20:37:05 +0530988 libwifi-hal-qcom \
989 libwpa_client \
990 p2p_supplicant_overlay.conf \
991 vendor.qti.hardware.wifi.supplicant@1.0.vendor \
Bharathed255712021-08-14 20:37:05 +0530992 wificond \
993 wpa_cli \
994 wpa_supplicant.conf \
995 wpa_supplicant \
996 wpa_supplicant_overlay.conf \
997 WifiOverlay \
998 TetheringConfigOverlay
999
1000
Bharath12163282022-06-20 15:10:58 +05301001# Zlib
1002PRODUCT_HOST_PACKAGES += minigzip
1003
1004
1005#soong namespace for qssi vs vendor differentiation
1006SOONG_CONFIG_NAMESPACES += qssi_vs_vendor
1007SOONG_CONFIG_qssi_vs_vendor += qssi_or_vendor
1008SOONG_CONFIG_qssi_vs_vendor_qssi_or_vendor := vendor
1009
1010SOONG_CONFIG_NAMESPACES += aosp_vs_qva
1011SOONG_CONFIG_aosp_vs_qva += aosp_or_qva
1012ifeq ($(TARGET_FWK_SUPPORTS_FULL_VALUEADDS),true)
1013SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := qva
1014else
1015SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := aosp
1016endif
1017
1018SOONG_CONFIG_NAMESPACES += qtidisplaycommonsys
1019# Soong Keys
1020SOONG_CONFIG_qtidisplaycommonsys := displayconfig_enabled
1021# Soong Values
1022SOONG_CONFIG_qtidisplaycommonsys_displayconfig_enabled := true
1023
1024
Bharath756d7dd2021-08-07 23:53:55 +05301025# Call the proprietary setup
Bharatha3a85a72022-05-23 17:50:24 +05301026FP3_PROPRIETARY_PATH := device/fairphone/fp3-proprietary
Bharatha3a85a72022-05-23 17:50:24 +05301027
Bharath8808e702022-08-04 14:48:24 +05301028DEVICE_BLOB_VERSION := 4.A.0016.2
Francesco Salvatore03117482019-02-28 16:39:11 +01001029
1030GET_BLOBS_CMD = vendor/fairphone/tools/bin/get_blobs.py --device FP3 --build-id $(DEVICE_BLOB_VERSION) --blobs-dir $(FP3_PROPRIETARY_PATH)
1031
1032# Check the presence of proprietary blobs
1033ifeq ("$(wildcard $(FP3_PROPRIETARY_PATH)/device-vendor.mk)","")
1034define BLOBS_INSTRUCTION
1035Cannot find FP3 binary blobs.
1036Please run
1037 $(GET_BLOBS_CMD)
1038and accept the terms of agreement.
1039endef
1040$(error $(BLOBS_INSTRUCTION))
1041endif
1042
Bharath756d7dd2021-08-07 23:53:55 +05301043# Call this in the end so that flags if required can be utilized.
Bharatha3a85a72022-05-23 17:50:24 +05301044$(call inherit-product, $(FP3_PROPRIETARY_PATH)/device-vendor.mk)
1045
Bharath12163282022-06-20 15:10:58 +05301046# Build some more display components to vendor
1047$(call inherit-product, vendor/qcom/opensource/commonsys-intf/display/config/display-interfaces-product.mk)
Bharath756d7dd2021-08-07 23:53:55 +05301048###################################################################################