blob: 6466d152410ca49b7a8996d03423ebd30cdc222f [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
18# Call the vendor setup
19$(call inherit-product-if-exists, vendor/fairphone/fp3-common/device-vendor.mk)
20
21$(call inherit-product, build/make/target/product/product_launched_with_p.mk)
22
23$(call inherit-product, frameworks/native/build/phone-xhdpi-4096-dalvik-heap.mk)
24
Bharath12163282022-06-20 15:10:58 +053025# Inherit generic AOSP content for telephony based 64-bit devices
26$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
27$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk)
Bharath756d7dd2021-08-07 23:53:55 +053028
29PRODUCT_NAME := FP3
30PRODUCT_DEVICE := FP3
31PRODUCT_MODEL := FP3
32PRODUCT_MANUFACTURER := Fairphone
33PRODUCT_BRAND := Fairphone
34
35
36# Allow using custom and expressive names for our Android flavors while in fact
37# targeting the same model with all of them.
Bharath6a7439e2022-02-21 17:35:49 +053038PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_MODEL=FP3 PRODUCT_NAME=FP3 TARGET_PRODUCT=FP3
Bharath756d7dd2021-08-07 23:53:55 +053039
Bharath756d7dd2021-08-07 23:53:55 +053040
Bharathdccdc592022-03-31 12:10:41 +053041TARGET_SYSTEM_PROP := $(FP_PATH)/system.prop
Bharath756d7dd2021-08-07 23:53:55 +053042
Borjan Tchakaloff17a5b5f2018-05-11 11:35:06 +020043# Define the build number based on the product flavour and on the build manifest
44# revision
45ifneq (,$(strip $(PRODUCT_FLAVOR)))
46 _BUILD_MANIFEST_REV := $(shell (git -C $(TOPDIR).repo/manifests rev-parse --short=8 HEAD))
47 BUILD_NUMBER := $(PRODUCT_FLAVOR)-$(_BUILD_MANIFEST_REV)
48 HAS_BUILD_NUMBER := true
49else
50 $(error PRODUCT_FLAVOR must be defined)
51endif
52$(warning Build defined as $(BUILD_ID) ($(BUILD_NUMBER)))
53
Bharath756d7dd2021-08-07 23:53:55 +053054
Luca Weisse7ef1c82022-07-13 13:13:20 +020055# Define SPL for boot & vendor
56BOOT_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
57VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
58
59
Bharath756d7dd2021-08-07 23:53:55 +053060# We don't have the calibration data as this sort of
61# data can only be generated at the factory so don't generate persist.img
62FP3_SKIP_PERSIST_IMG := true
63
Bharath80ba1872021-08-21 11:53:57 +053064
65# Operator specific overlays
66DEVICE_PACKAGE_OVERLAYS += \
67 $(LOCAL_PATH)/overlay-operators
68
Bharath756d7dd2021-08-07 23:53:55 +053069# Overlays
70DEVICE_PACKAGE_OVERLAYS += \
71 $(LOCAL_PATH)/overlay
72
73
74# A/B related defines
75AB_OTA_UPDATER := true
Luca Weissd6c3ca12022-07-13 16:24:08 +020076AB_OTA_PARTITIONS := \
77 aboot \
78 cmnlib64 \
79 cmnlib \
80 devcfg \
81 dsp \
Bharath756d7dd2021-08-07 23:53:55 +053082 dtbo \
Luca Weissd6c3ca12022-07-13 16:24:08 +020083 keymaster \
84 lksecapp \
85 mdtp \
86 modem \
87 rpm \
88 sbl1 \
89 tz \
Bharath756d7dd2021-08-07 23:53:55 +053090 vbmeta \
Luca Weissd6c3ca12022-07-13 16:24:08 +020091 boot \
92 system \
Bharath756d7dd2021-08-07 23:53:55 +053093 vendor
94
95
Bharath756d7dd2021-08-07 23:53:55 +053096PRODUCT_PACKAGES += \
Bharath756d7dd2021-08-07 23:53:55 +053097 update_engine_sideload
98
99
Bharath2307d3b2022-01-06 22:23:25 +0530100# APN
101PRODUCT_COPY_FILES += \
102 $(LOCAL_PATH)/apns-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
103
104
Bharath756d7dd2021-08-07 23:53:55 +0530105# AVB
106BOARD_AVB_ENABLE := true
107
108
109# Additional native libraries
110PRODUCT_COPY_FILES += \
111 $(FP_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
112
113
Bharath12163282022-06-20 15:10:58 +0530114# OEM Unlock reporting
115PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
116 ro.oem_unlock_supported=1
117
118
Bharath756d7dd2021-08-07 23:53:55 +0530119# Atrace HAL
120PRODUCT_PACKAGES += \
121 android.hardware.atrace@1.0-service
122
123
124# Audio
Bharath756d7dd2021-08-07 23:53:55 +0530125PRODUCT_PACKAGES += \
126 android.hardware.audio@6.0 \
127 android.hardware.audio.common@6.0 \
128 android.hardware.audio.common@6.0-util \
Bharath70cf2ae2022-02-14 12:13:50 +0530129 android.hardware.audio@6.0-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530130 android.hardware.audio.effect@6.0 \
Bharath70cf2ae2022-02-14 12:13:50 +0530131 android.hardware.audio.effect@6.0-impl \
Bharath756d7dd2021-08-07 23:53:55 +0530132 android.hardware.audio.service \
133 android.hardware.soundtrigger@2.1-impl \
134 audio.a2dp.default \
135 audio.primary.msm8953 \
136 audio.r_submix.default \
137 audio.usb.default \
138 libaacwrapper \
139 libaudio-resampler \
140 libautohal \
141 libqcompostprocbundle \
142 libqcomvisualizer \
143 libqcomvoiceprocessing \
144 libvolumelistener \
145 tinymix
146
147
148AUDIO_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal
149
150# Audio files
151PRODUCT_COPY_FILES += \
Bharath756d7dd2021-08-07 23:53:55 +0530152 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
153 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
154 $(AUDIO_HAL_PATH)/configs/msm8953/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
155 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
156 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku3_tasha.xml \
157 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku4.xml \
158 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tasha.xml \
159 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tashalite.xml \
160 $(AUDIO_HAL_PATH)/configs/msm8953/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
161 $(AUDIO_HAL_PATH)/configs/msm8953/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
162 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
163 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
164 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku3_tasha.xml \
165 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku4.xml \
166 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
167 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \
168 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
169 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9306.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9306.xml \
170 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9330.xml \
171 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \
172 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
173
174
175# Audio config files
176PRODUCT_COPY_FILES += \
177 frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
178 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
179 frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
180 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
181 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
182 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
183
184# Custom config files
185PRODUCT_COPY_FILES += \
186 $(FP_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
187
188
189# Audio firmware files
190PRODUCT_COPY_FILES += \
191 $(FP_PATH)/aw/aw8898_cfg.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/aw8898_cfg.bin \
192 $(FP_PATH)/tas2557_fw/OBO_0617_music.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557_uCDSP.bin \
193 $(FP_PATH)/tas2557_fw/tas2557evm_OBO_0617.ftcfg:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557evm_aacspk_a.ftcfg
194
195
196# Audio Specific device overlays
197DEVICE_PACKAGE_OVERLAYS += $(AUDIO_HAL_PATH)/configs/common/overlay
198
199
200# Audio Specific properties
201# Properties
202-include $(LOCAL_PATH)/audio_properties.mk
203
204
205# Audio Kernel modules
206AUDIO_DLKM := audio_apr.ko
207AUDIO_DLKM += audio_q6_notifier.ko
208AUDIO_DLKM += audio_adsp_loader.ko
209AUDIO_DLKM += audio_q6.ko
210AUDIO_DLKM += audio_usf.ko
211AUDIO_DLKM += audio_pinctrl_wcd.ko
212AUDIO_DLKM += audio_swr.ko
213AUDIO_DLKM += audio_wcd_core.ko
214AUDIO_DLKM += audio_swr_ctrl.ko
215AUDIO_DLKM += audio_wsa881x.ko
216AUDIO_DLKM += audio_wsa881x_analog.ko
217AUDIO_DLKM += audio_platform.ko
218AUDIO_DLKM += audio_cpe_lsm.ko
219AUDIO_DLKM += audio_hdmi.ko
220AUDIO_DLKM += audio_stub.ko
221AUDIO_DLKM += audio_wcd9xxx.ko
222AUDIO_DLKM += audio_mbhc.ko
223AUDIO_DLKM += audio_wcd9335.ko
224AUDIO_DLKM += audio_wcd_cpe.ko
225AUDIO_DLKM += audio_digital_cdc.ko
226AUDIO_DLKM += audio_analog_cdc.ko
227AUDIO_DLKM += audio_native.ko
228AUDIO_DLKM += audio_machine_sdm450.ko
229AUDIO_DLKM += audio_machine_ext_sdm450.ko
230PRODUCT_PACKAGES += $(AUDIO_DLKM)
231
232
Bharath9cdcce22021-12-08 15:43:43 +0530233# Automation/ATS
234PRODUCT_PACKAGES += \
235 automation_setup \
236 automation_adb_setup
237
238
Bharathfe661fb2021-08-16 18:56:32 +0530239# ANT
240PRODUCT_PACKAGES += \
241 AntHalService \
242 antradio_app \
243 com.dsi.ant@1.0 \
Bharath70cf2ae2022-02-14 12:13:50 +0530244 com.dsi.ant@1.0.vendor \
Bharathfe661fb2021-08-16 18:56:32 +0530245 libantradio
246
Bharath756d7dd2021-08-07 23:53:55 +0530247# Bluetooth
Bharathfe661fb2021-08-16 18:56:32 +0530248PRODUCT_PACKAGES += \
Bharathfe661fb2021-08-16 18:56:32 +0530249 audio.bluetooth.default \
250 android.hardware.bluetooth.audio@2.0-impl \
251 android.hardware.bluetooth@1.0 \
252 vendor.qti.hardware.bluetooth_audio@2.0 \
253 vendor.qti.hardware.bluetooth_audio@2.1.vendor \
254 vendor.qti.hardware.btconfigstore@1.0.vendor
255
256# Bluetooth Permissions
257PRODUCT_COPY_FILES += \
258 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
259 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 +0530260
261
Bharath12163282022-06-20 15:10:58 +0530262# Board platforms lists to be used for
263# TARGET_BOARD_PLATFORM specific featurization
264QCOM_BOARD_PLATFORMS += msm8953
265
266
Bharath756d7dd2021-08-07 23:53:55 +0530267# Boot
268PRODUCT_PACKAGES += \
269 android.hardware.boot@1.0-impl \
270 android.hardware.boot@1.0-impl.recovery \
271 android.hardware.boot@1.0-service \
272 bootctrl.msm8953 \
Bharathe341d1d2022-04-06 09:49:27 +0530273 bootctrl.msm8953.recovery \
Bharath756d7dd2021-08-07 23:53:55 +0530274 update_engine \
275 update_engine_client \
276 update_engine_sideload \
277 update_verifier
278
Bharath12163282022-06-20 15:10:58 +0530279# MSM updater library
280PRODUCT_PACKAGES += librecovery_updater_msm
281
282
283# Skip boot jars check
284SKIP_BOOT_JARS_CHECK := true
285
Bharath756d7dd2021-08-07 23:53:55 +0530286
287# Boot animation
288TARGET_SCREEN_HEIGHT := 2160
289TARGET_SCREEN_WIDTH := 1080
290
291
292PRODUCT_COPY_FILES += \
293 vendor/fairphone/media/bootanimation/bootanimation.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip
294
295
296# Camera
Bharathcbfb0a92021-08-19 21:13:50 +0530297PRODUCT_PACKAGES += \
298 android.frameworks.displayservice@1.0.vendor \
299 android.hidl.base@1.0.vendor \
300 android.hardware.camera.device@3.5 \
301 android.hardware.camera.provider@2.4 \
302 android.hardware.camera.provider@2.4-external \
303 android.hardware.camera.provider@2.4-impl \
304 android.hardware.camera.provider@2.4-legacy \
305 android.hardware.camera.provider@2.4-service \
306 android.hardware.camera.provider@2.6 \
307 camera.device@1.0-impl \
308 camera.device@3.5-impl \
309 camera.device@3.6-external-impl \
310 camera.msm8953 \
311 cameraconfig.txt \
312 libcamera2ndk_vendor \
313 libhal_dbg \
314 libjni_burstpmk \
315 libjni_imageutil \
316 libjni_snapcammosaic \
317 libjni_snapcamtinyplanet \
318 libmm-qcamera \
319 libmmcamera_interface \
320 libmmjpeg_interface \
321 libmmlib2d_interface \
322 libqomx_core \
323 libxml2 \
324 mm-qcamera-app \
325 vendor.qti.hardware.camera.device@1.0 \
326 vendor.qti.hardware.camera.device@1.0.vendor
327
328# Fairphone Camera
329PRODUCT_PACKAGES += \
330 FairphoneCamera
331
332# Arcsoft camera libraries
333PRODUCT_PACKAGES += \
334 libarcimageprocess \
335 libarcsoft_aiscenedetection \
336 libarcsoft_hdr_detection \
337 libarcsoft_high_dynamic_range \
338 libarcsoft_low_light_hdr \
339 libarcsoft_low_light_shot \
340 libarcsoft_object_tracking \
341 libarcsoft_panorama_burstcapture \
342 libarcsoft_singlecam_bokeh \
343 libarcsoft_videoautozoom \
344 libarcsoft_videostabs \
345 libmpbase \
346 libmpbase.vendor
347
348# Feature flags for camera
349PRODUCT_COPY_FILES += \
350 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
351 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
352 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
353 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 +0530354
355
356# Component overrides
357# TODO: Check if this is required.
358#PRODUCT_COPY_FILES += \
359 $(FP_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
360
361
Bharath12163282022-06-20 15:10:58 +0530362# Charger
363PRODUCT_PACKAGES += \
364 charger \
365 charger_res_images
366
367
368# Chromium
369PRODUCT_PACKAGES += \
370 libwebviewchromium_loader \
371 libwebviewchromium_plat_support
372
373
374# Curl
375PRODUCT_PACKAGES += \
376 curl \
377 libcurl
378
379
380# Data/rmnetctrl
381PRODUCT_PACKAGES += \
382 librmnetctl
383
leolee75d66582020-10-21 15:26:49 +0800384# IPV4
385PRODUCT_PROPERTY_OVERRIDES += \
386 persist.vendor.data.profile_update=true
387
Bharath12163282022-06-20 15:10:58 +0530388
Bharath756d7dd2021-08-07 23:53:55 +0530389# Display
390PRODUCT_PACKAGES += \
391 android.hardware.graphics.allocator@2.0-impl \
392 android.hardware.graphics.allocator@2.0-service \
393 android.hardware.graphics.composer@2.1-service \
394 android.hardware.graphics.mapper@2.0-impl-2.1 \
395 android.hardware.memtrack@1.0-impl \
396 android.hardware.memtrack@1.0-service \
397 gralloc.default \
398 gralloc.msm8953 \
399 hwcomposer.msm8953 \
Bharath12163282022-06-20 15:10:58 +0530400 libcomposerextn.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530401 libdisplayconfig \
Bharath12163282022-06-20 15:10:58 +0530402 libdisplayconfig.qti \
403 libdrm \
404 libgralloc.qti \
405 liblayerext.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530406 libqdMetaData \
Bharath12163282022-06-20 15:10:58 +0530407 libqdMetaData.system \
408 libqdutils \
409 libsmomo.qti \
410 libsmomoconfig.qti \
Bharath756d7dd2021-08-07 23:53:55 +0530411 libvulkan \
Bharath12163282022-06-20 15:10:58 +0530412 memtrack.msm8953 \
Bharath756d7dd2021-08-07 23:53:55 +0530413 vendor.qti.hardware.display.composer@3.0
414
415
416# Vendor Display
417# Disable skip validate
418PRODUCT_PROPERTY_OVERRIDES += \
419 vendor.display.disable_skip_validate=1
420
421
422# Display Properties
423PRODUCT_AAPT_CONFIG := normal
424PRODUCT_AAPT_PREF_CONFIG := xxhdpi
425
426
427# DRM
428PRODUCT_PACKAGES += \
429 android.hardware.drm@1.3-service.clearkey
430
431
Pradeep Chenthatib4c3c102021-10-19 20:07:52 +0530432# Elabel
433PRODUCT_PACKAGES += \
434 eLabel.html.gz \
435 eLabel1.png \
436 eLabel2.png \
437 FAIRPHONE.html.gz \
438 FAIRPHONE.png
439
440
Bharath756d7dd2021-08-07 23:53:55 +0530441# Enable vndk-sp Libraries
442PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
443TARGET_USES_MKE2FS := true
444
445PRODUCT_PACKAGES += \
446 vndk_package
447
448
449# Encryption
450PRODUCT_PROPERTY_OVERRIDES += ro.crypto.allow_encrypt_override=true
451PRODUCT_PROPERTY_OVERRIDES += ro.crypto.volume.filenames_mode=aes-256-cts
452
453
Bharath12163282022-06-20 15:10:58 +0530454# E2fsck
455PRODUCT_PACKAGES += \
456 e2fsck
457
Bharath44ee36f2022-05-02 15:37:19 +0530458# ExFAT binaries
459PRODUCT_COPY_FILES += \
460 $(FP_PATH)/tuxera/exfatck:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatck \
461 $(FP_PATH)/tuxera/exfatdebug:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatdebug \
462 $(FP_PATH)/tuxera/exfatlabel:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatlabel \
463 $(FP_PATH)/tuxera/exfatvsn:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatvsn \
464 $(FP_PATH)/tuxera/mkexfat:$(TARGET_COPY_OUT_SYSTEM)/bin/mkexfat
465
466
Bharathe341d1d2022-04-06 09:49:27 +0530467# Fastbootd
468PRODUCT_PACKAGES += fastbootd
469
470
Bharath756d7dd2021-08-07 23:53:55 +0530471# FBE support
472PRODUCT_COPY_FILES += \
473 $(FP_PATH)/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh
474
475
Bharath1710e062021-08-20 11:30:47 +0530476# Feature flags and permissions
477PRODUCT_COPY_FILES += \
478 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
479 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
480 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
481 frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
482 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
483 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
484 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
485 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
486 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 +0530487 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 +0530488 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
489 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
490 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 +0530491 frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
492 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
493 frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
494 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 +0530495 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 +0530496 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
497
Bharath1dcb6512021-08-20 00:41:08 +0530498# Fingerprint
499PRODUCT_PACKAGES += \
500 android.hardware.biometrics.fingerprint@2.1 \
501 android.hardware.biometrics.fingerprint@2.1-service \
502 elan_device.rc \
503 fingerprint.default
504
505# Fingerprint files
506include $(FP_PATH)/elan_lib/fingerprint/elan_lib.mk
507
508# Fingerprint feature flag
509PRODUCT_COPY_FILES += \
510 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
511
512
Bharath756d7dd2021-08-07 23:53:55 +0530513# Framework Detect
514PRODUCT_PACKAGES += \
515 libqti_vndfwk_detect \
516 libqti_vndfwk_detect.vendor \
517 libvndfwk_detect_jni.qti \
518 libvndfwk_detect_jni.qti.vendor \
519 vndservicemanager
520
Bharath12163282022-06-20 15:10:58 +0530521# FRP
522PRODUCT_PROPERTY_OVERRIDES += ro.frp.pst=/dev/block/bootdevice/by-name/config
523
Bharath756d7dd2021-08-07 23:53:55 +0530524
525# HIDL
526PRODUCT_PACKAGES += \
527 android.hidl.base@1.0 \
528 libhidltransport \
529 libhidltransport.vendor \
530 libhwbinder \
531 libhwbinder.vendor
532
533
Bharath1710e062021-08-20 11:30:47 +0530534# GPS
535BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
Luca Weissa8a60262022-02-28 15:00:31 +0100536LOC_HIDL_VERSION := 4.0
Bharath1710e062021-08-20 11:30:47 +0530537
538PRODUCT_PACKAGES += \
Bharath70cf2ae2022-02-14 12:13:50 +0530539 android.hardware.gnss@2.1-impl-qti \
Bharath1710e062021-08-20 11:30:47 +0530540 android.hardware.gnss@2.1-service-qti \
541 libbatching \
542 libgeofencing \
543 libgnss \
544 libjson \
545 libwifi-hal-ctrl \
546 libgps.utils
547
548PRODUCT_PACKAGES += \
549 flp.conf \
550 gps.conf
551
552# gps/location secuity configuration file
553PRODUCT_COPY_FILES += \
554 $(FP_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
555
556# Permissions
557PRODUCT_COPY_FILES += \
558 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
559
Bharath12163282022-06-20 15:10:58 +0530560PRODUCT_PROPERTY_OVERRIDES += \
561 persist.backup.ntpServer=0.pool.ntp.org
562
Bharath1710e062021-08-20 11:30:47 +0530563
Bharath756d7dd2021-08-07 23:53:55 +0530564# Health
565PRODUCT_PACKAGES += \
566 android.hardware.health@2.1-impl \
567 android.hardware.health@2.1-impl.recovery \
568 android.hardware.health@2.1-service
569
570# IMS
571PRODUCT_PACKAGES += \
572 ims-ext-common \
573 ims_ext_common.xml \
574 ConfURIDialer
575
Bharath12163282022-06-20 15:10:58 +0530576
577# Init
578PRODUCT_PACKAGES += \
579 fstab.qcom \
580 init.class_main.sh \
581 init.crda.sh \
582 init.mdm.sh \
583 init.qcom.class_core.sh \
584 init.qcom.coex.sh \
585 init.qcom.early_boot.sh \
586 init.qcom.efs.sync.sh \
587 init.qcom.factory.rc \
588 init.qcom.post_boot.sh \
589 init.qcom.rc \
590 init.qcom.sdio.sh \
591 init.qcom.sensors.sh \
592 init.qcom.sh \
593 init.qcom.usb.rc \
594 init.qcom.usb.sh \
595 init.recovery.qcom.rc \
596 init.target.rc \
597 init.veth_ipa_config.sh \
598 qca6234-service.sh \
599 ueventd.qcom.rc \
600 vold.fstab
601
602#intialise PRODUCT_PACKAGES_DEBUG list for debug modules
Luca Weiss2327bfb2022-07-13 09:47:07 +0200603PRODUCT_PACKAGES_DEBUG += init.qcom.testscripts.sh
Bharath12163282022-06-20 15:10:58 +0530604
605#Add init.qcom.test.rc to PRODUCT_PACKAGES_DEBUG list
606PRODUCT_PACKAGES_DEBUG += init.qcom.test.rc
607PRODUCT_PACKAGES_DEBUG += init.qcom.debug.sh
608
609ifneq ($(strip $(TARGET_BUILD_VARIANT)),user)
610PRODUCT_COPY_FILES += \
611 device/qcom/common/rootdir/etc/init.qcom.testscripts.sh:$(TARGET_COPY_OUT_PRODUCT)/etc/init.qcom.testscripts.sh
612endif
613
614PRODUCT_PACKAGES_DEBUG += \
615 init.qcom.debug.sh \
616 init.qcom.debug-sdm660.sh \
617 init.qcom.debug-sdm710.sh \
618 init.qti.debug-msmnile-apps.sh \
619 init.qti.debug-msmnile-modem.sh \
620 init.qti.debug-msmnile-slpi.sh \
621 init.qti.debug-talos.sh \
622 init.qti.debug-msmnile.sh \
623 init.qti.debug-kona.sh \
624 init.qti.debug-lito.sh \
625 init.qti.debug-trinket.sh \
626 init.qti.debug-atoll.sh \
627 init.qti.debug-lagoon.sh \
628 init.qti.debug-bengal.sh
629
630
631# IP and iptables
632PRODUCT_PACKAGES += \
633 ip \
634 libiprouteutil \
635 iptables \
636 ip-up-vpn \
637 libext
638
639
Bharath756d7dd2021-08-07 23:53:55 +0530640# IPACM
641PRODUCT_PACKAGES += \
642 ipacm \
643 IPACM_cfg.xml \
644 libipanat \
645 liboffloadhal \
646 libqsap_sdk
647
648# IRQ
649PRODUCT_COPY_FILES += \
650 $(FP_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
651 $(FP_PATH)/configs/msm_irqbalance_little_big.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance_little_big.conf
652
653
654# Kernel modules
655# Kernel modules install path
656KERNEL_MODULES_INSTALL := dlkm
657KERNEL_MODULES_OUT := out/target/product/$(PRODUCT_NAME)/$(KERNEL_MODULES_INSTALL)/lib/modules
Bharath12163282022-06-20 15:10:58 +0530658KERNEL_TO_BUILD_ROOT_OFFSET := ../../
659
660
661# Key layouts
662PRODUCT_PACKAGES += \
663 ft5x06_ts.kl \
664 gpio-keys.kl \
665 synaptics_dsx.kl \
666 synaptics_dsxv26.kl \
667 synaptics_rmi4_i2c.kl
Bharath756d7dd2021-08-07 23:53:55 +0530668
669
670# LED packages
671PRODUCT_PACKAGES += \
672 android.hardware.light@2.0-impl \
673 android.hardware.light@2.0-service \
674 lights.msm8953
675
676
677# Media / StagefrightCodec 2.0
678PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
679
Bharathe3615be2021-08-18 22:25:42 +0530680# Enable features in video HAL that can compile only on this platform
Bharath12163282022-06-20 15:10:58 +0530681MSM_VIDC_TARGET_LIST := msm8953
Bharathe3615be2021-08-18 22:25:42 +0530682TARGET_USES_MEDIA_EXTENSIONS := true
683
684
685# media_profiles and media_codecs xmls for msm8953
686PRODUCT_COPY_FILES += \
687 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles.xml \
688 $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \
689 $(FP_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
690 $(FP_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
691 $(FP_PATH)/media/media_codecs_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_8953.xml \
692 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
693 $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_8953.xml \
694 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles_8953_v1.xml \
695 $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_8953_v1.xml \
696 $(FP_PATH)/media/media_codecs_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v1.xml \
697 $(FP_PATH)/media/media_codecs_performance_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v1.xml \
698 $(FP_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
Bharath12163282022-06-20 15:10:58 +0530699 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
700 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml
701
702PRODUCT_COPY_FILES += \
703 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
704 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
705 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
706 frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml \
707 frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \
708 frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
709 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 +0530710
Bharath756d7dd2021-08-07 23:53:55 +0530711
712# NFC
Bharath1710e062021-08-20 11:30:47 +0530713PRODUCT_PACKAGES += \
714 NfcNci \
715 Tag \
716 com.android.nfc_extras \
717 com.nxp.nfc.nq \
718 com.nxp.nfc.nq.xml \
719 libnqnfc-nci \
720 libnqnfc_nci_jni \
721 nfc_nci.nqx.default.hw \
722 vendor.nxp.hardware.nfc@2.0-service
723
724# Permissions
725PRODUCT_COPY_FILES += \
726 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
727 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
728 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
729 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
730 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
731 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
732 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
733 vendor/nxp/opensource/halimpl/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
734 vendor/nxp/opensource/halimpl/SN100x/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci_SN100.conf
Bharath756d7dd2021-08-07 23:53:55 +0530735
736
737# OMX
738PRODUCT_PACKAGES += \
739 libavservices_minijail.vendor \
740 libc2dcolorconvert \
741 libOmxAacEnc \
742 libOmxAmrEnc \
743 libOmxCore \
744 libOmxEvrcEnc \
745 libOmxQcelp13Enc \
746 libOmxVdec \
747 libOmxVenc \
748 libqomx_core \
749 libaacwrapper \
750 libmm-omxcore \
751 libstagefrighthw \
752 libstagefright_softomx.vendor
753
754
755#
756# system prop for opengles version
757#
758# 196608 is decimal for 0x30000 to report major/minor versions as 3/0
759# 196609 is decimal for 0x30001 to report major/minor versions as 3/1
760# 196610 is decimal for 0x30002 to report major/minor versions as 3/2
761PRODUCT_PROPERTY_OVERRIDES += \
762 ro.opengles.version=196610
763
764
Bharath12163282022-06-20 15:10:58 +0530765# AOSP Packages
766PRODUCT_PACKAGES += \
767 DeskClock \
768 Calendar \
769 CalendarProvider \
770 Camera2 \
771 CertInstaller \
772 Gallery2 \
773 LatinIME \
774 Launcher3 \
775 LiveWallpapersPicker \
776 Music \
777 netutils-wrapper-1.0 \
778 Provision \
779 Protips \
780 QuickSearchBox \
781 Settings \
782 Stk \
783 SystemUI \
784
785
Bharath756d7dd2021-08-07 23:53:55 +0530786# Perf
787PRODUCT_COPY_FILES += \
788 $(FP_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
789
Bharath12163282022-06-20 15:10:58 +0530790PRODUCT_PROPERTY_OVERRIDES += \
791 persist.vendor.qcomsysd.enabled=1 \
792 ro.vendor.extension_library=libqti-perfd-client.so \
793 sys.vendor.shutdown.waittime=500
794
Bharath756d7dd2021-08-07 23:53:55 +0530795
796# Power
797PRODUCT_PACKAGES += \
798 android.hardware.power@1.0-impl \
799 android.hardware.power@1.0-service \
800 power.qcom
801
802
Bharath756d7dd2021-08-07 23:53:55 +0530803# privapp-permissions whitelisting
804PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
805
806
807# Protobuf
808PRODUCT_PACKAGES += \
809 libprotobuf-cpp-full \
810 libprotobuf-cpp-full-vendorcompat \
811 libprotobuf-cpp-lite-vendorcompat
812
813
Bharath12163282022-06-20 15:10:58 +0530814# include additional QCOM build utilities
815-include device/qcom/common/utils.mk
816
Bharath756d7dd2021-08-07 23:53:55 +0530817# RIL properties
818PRODUCT_PROPERTY_OVERRIDES += rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
819PRODUCT_PROPERTY_OVERRIDES += vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
820#vendor prop to disable advanced network scanning
821PRODUCT_PROPERTY_OVERRIDES += \
822 persist.vendor.radio.enableadvancedscan=false
823
Bharath12163282022-06-20 15:10:58 +0530824# Enable Dual SIM by default
825PRODUCT_PROPERTY_OVERRIDES += persist.radio.multisim.config=dsds
826
827PRODUCT_PROPERTY_OVERRIDES += \
828 persist.vendor.radio.apm_sim_not_pwdn=1 \
829 persist.vendor.radio.sib16_support=1 \
830 persist.vendor.radio.custom_ecc=1 \
831 persist.vendor.radio.rat_on=combine \
832 persist.vendor.radio.procedure_bytes=SKIP
833
Bharath756d7dd2021-08-07 23:53:55 +0530834
835# RenderScript
836PRODUCT_PACKAGES += \
837 android.hardware.renderscript@1.0-impl
838
839
840# SDCard
841# default is nosdcard, S/W button enabled in resource
842PRODUCT_CHARACTERISTICS := nosdcard
843
844
845# Seccomp
846PRODUCT_COPY_FILES += \
847 $(FP_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
848 $(FP_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
849
850
Bharath1710e062021-08-20 11:30:47 +0530851# Secure Element
852PRODUCT_PACKAGES += \
853 android.hardware.secure_element@1.2
854
855
Bharath756d7dd2021-08-07 23:53:55 +0530856# System helper
857PRODUCT_PACKAGES += \
858 vendor.qti.hardware.systemhelper@1.0
859
860
861# Service tracker
862PRODUCT_PACKAGES += \
863 vendor.qti.hardware.servicetracker@1.2.vendor
864
865
Bharatha60665d2021-08-19 09:37:22 +0530866# Sensors
867PRODUCT_PACKAGES += \
868 sensors.FP3 \
869 android.hardware.sensors@1.0-impl \
870 android.hardware.sensors@1.0-service \
871 libsensorndkbridge
872
873# Sensor HAL conf file
874PRODUCT_COPY_FILES += \
875 $(FP_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
876
877# Feature definition files for msm8953
878PRODUCT_COPY_FILES += \
879 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
880 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
881 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
882 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
883 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
884 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
885 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
886
887
Bharath756d7dd2021-08-07 23:53:55 +0530888# Telephony Permissions
Bharath12163282022-06-20 15:10:58 +0530889# whitelisted app
890PRODUCT_COPY_FILES += \
891 device/qcom/common/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml
892
893PRODUCT_COPY_FILES += \
894 device/qcom/common/privapp-permissions-qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-qti.xml
895
896# Telephony wrappers
897PRODUCT_PACKAGES += \
898 qti-telephony-hidl-wrapper \
899 qti_telephony_hidl_wrapper.xml \
900 qti-telephony-utils \
901 qti_telephony_utils.xml
Bharath756d7dd2021-08-07 23:53:55 +0530902
903
904# Thermal
905PRODUCT_PACKAGES += \
906 android.hardware.thermal@1.0-impl \
907 android.hardware.thermal@1.0-service
908
909
910# Tinyxml
911PRODUCT_PACKAGES += \
912 libtinyxml
913
914# USB
915PRODUCT_PACKAGES += \
916 android.hardware.usb@1.0-service
917
918-include vendor/qcom/opensource/usb/vendor_product.mk
919
920
921# Vendor move
922PRODUCT_VENDOR_MOVE_ENABLED := true
923
924
925# Vibrator
926PRODUCT_PACKAGES += \
927 android.hardware.vibrator@1.0-impl \
Bharath12163282022-06-20 15:10:58 +0530928 android.hardware.vibrator@1.0-service \
929 vendor.qti.hardware.vibrator.service
930
931PRODUCT_COPY_FILES += \
932 vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml
Bharath756d7dd2021-08-07 23:53:55 +0530933
934
Bharathed255712021-08-14 20:37:05 +0530935# WiFi
936# WLAN drivers
937PRODUCT_COPY_FILES += \
938 $(FP_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
939 $(FP_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_wlan_dictionary.dat \
940 $(FP_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin # From Android 10
941
942# Flag to check if wcnss_service is built from source
943TARGET_USE_WCNSS_HAL := false
944
945# If building from source then drop proprietary dependency
946ifeq ($(TARGET_USE_WCNSS_HAL),true)
947TARGET_USES_QCOM_WCNSS_QMI := false
Bharath70cf2ae2022-02-14 12:13:50 +0530948
949PRODUCT_PACKAGES += \
950 libwcnss_qmi \
951 wcnss_service
Bharathed255712021-08-14 20:37:05 +0530952endif
953
954# WiFi HAL
955PRODUCT_PACKAGES += \
956 android.hardware.wifi@1.0-service
957
Bharath12163282022-06-20 15:10:58 +0530958# WLAN DLKM
959PRODUCT_PACKAGES += \
960 pronto_wlan.ko
961
Bharathed255712021-08-14 20:37:05 +0530962# WiFi Components
963PRODUCT_PACKAGES += \
964 hostapd \
965 hostapd.accept \
966 hostapd.deny \
967 hostapd_cli \
968 hostapd_default.conf \
969 libnl \
970 libqsap_sdk \
Bharathed255712021-08-14 20:37:05 +0530971 libwifi-hal-qcom \
972 libwpa_client \
973 p2p_supplicant_overlay.conf \
974 vendor.qti.hardware.wifi.supplicant@1.0.vendor \
Bharathed255712021-08-14 20:37:05 +0530975 wificond \
976 wpa_cli \
977 wpa_supplicant.conf \
978 wpa_supplicant \
979 wpa_supplicant_overlay.conf \
980 WifiOverlay \
981 TetheringConfigOverlay
982
983
Bharath12163282022-06-20 15:10:58 +0530984# Zlib
985PRODUCT_HOST_PACKAGES += minigzip
986
987
988#soong namespace for qssi vs vendor differentiation
989SOONG_CONFIG_NAMESPACES += qssi_vs_vendor
990SOONG_CONFIG_qssi_vs_vendor += qssi_or_vendor
991SOONG_CONFIG_qssi_vs_vendor_qssi_or_vendor := vendor
992
993SOONG_CONFIG_NAMESPACES += aosp_vs_qva
994SOONG_CONFIG_aosp_vs_qva += aosp_or_qva
995ifeq ($(TARGET_FWK_SUPPORTS_FULL_VALUEADDS),true)
996SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := qva
997else
998SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := aosp
999endif
1000
1001SOONG_CONFIG_NAMESPACES += qtidisplaycommonsys
1002# Soong Keys
1003SOONG_CONFIG_qtidisplaycommonsys := displayconfig_enabled
1004# Soong Values
1005SOONG_CONFIG_qtidisplaycommonsys_displayconfig_enabled := true
1006
1007
Bharath756d7dd2021-08-07 23:53:55 +05301008# Call the proprietary setup
Bharatha3a85a72022-05-23 17:50:24 +05301009ifeq ($(FP3_PROPRIETARY_PATH),)
1010FP3_PROPRIETARY_PATH := device/fairphone/fp3-proprietary
1011$(warning Using default blobs path: $(FP3_PROPRIETARY_PATH).)
1012endif
1013
Francesco Salvatore03117482019-02-28 16:39:11 +01001014DEVICE_BLOB_VERSION := 4.A.0013.3
1015
1016GET_BLOBS_CMD = vendor/fairphone/tools/bin/get_blobs.py --device FP3 --build-id $(DEVICE_BLOB_VERSION) --blobs-dir $(FP3_PROPRIETARY_PATH)
1017
1018# Check the presence of proprietary blobs
1019ifeq ("$(wildcard $(FP3_PROPRIETARY_PATH)/device-vendor.mk)","")
1020define BLOBS_INSTRUCTION
1021Cannot find FP3 binary blobs.
1022Please run
1023 $(GET_BLOBS_CMD)
1024and accept the terms of agreement.
1025endef
1026$(error $(BLOBS_INSTRUCTION))
1027endif
1028
Bharath756d7dd2021-08-07 23:53:55 +05301029# Call this in the end so that flags if required can be utilized.
Bharatha3a85a72022-05-23 17:50:24 +05301030$(call inherit-product, $(FP3_PROPRIETARY_PATH)/device-vendor.mk)
1031
Bharath12163282022-06-20 15:10:58 +05301032# Build some more display components to vendor
1033$(call inherit-product, vendor/qcom/opensource/commonsys-intf/display/config/display-interfaces-product.mk)
Bharath756d7dd2021-08-07 23:53:55 +05301034###################################################################################