blob: 2a9a8088be13d4ff48af49182b33ab8c023d9dd6 [file] [log] [blame]
merothh54856102021-11-04 12:07:41 +05301#
Michael Bestas4e1ba2f2024-05-12 06:38:39 +03002# SPDX-FileCopyrightText: 2021-2024 The LineageOS Project
merothh54856102021-11-04 12:07:41 +05303# SPDX-License-Identifier: Apache-2.0
4#
5
Bruno Martinsd40ad792024-06-23 12:29:15 +01006# Add common definitions for Qualcomm
7$(call inherit-product, hardware/qcom-caf/common/common.mk)
8
merothh54856102021-11-04 12:07:41 +05309# A/B
Michael Bestas99a5c712023-08-30 21:12:04 +030010$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk)
merothh54856102021-11-04 12:07:41 +053011
12AB_OTA_POSTINSTALL_CONFIG += \
13 RUN_POSTINSTALL_system=true \
14 POSTINSTALL_PATH_system=system/bin/otapreopt_script \
15 FILESYSTEM_TYPE_system=ext4 \
16 POSTINSTALL_OPTIONAL_system=true
17
18AB_OTA_POSTINSTALL_CONFIG += \
19 RUN_POSTINSTALL_vendor=true \
20 POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
21 FILESYSTEM_TYPE_vendor=ext4 \
22 POSTINSTALL_OPTIONAL_vendor=true
23
24PRODUCT_PACKAGES += \
25 checkpoint_gc \
26 otapreopt_script
27
Michael Bestasebc23d02024-05-12 08:53:48 +030028# ANT+
29PRODUCT_PACKAGES += \
Cosmin Tanislav547d9de2024-08-17 04:59:30 +030030 AntHalService-Soong
Michael Bestasebc23d02024-05-12 08:53:48 +030031
Michael Bestas9d8a5f62024-05-12 08:50:28 +030032# Audio
merothh750fa002022-01-02 19:42:51 +053033PRODUCT_PACKAGES += \
34 android.hardware.audio@6.0-impl \
35 android.hardware.audio.effect@6.0-impl \
36 android.hardware.audio.service \
Josh Wud049c482022-01-24 22:56:14 -080037 android.hardware.bluetooth.audio-impl \
Michael Bestas9d8a5f62024-05-12 08:50:28 +030038 android.hardware.soundtrigger@2.3-impl \
39 audio.bluetooth.default \
Michael Bestas7daa2d42023-08-29 20:12:57 +030040 audio.primary.lahaina \
merothh750fa002022-01-02 19:42:51 +053041 audio.r_submix.default \
Michael Bestas9d8a5f62024-05-12 08:50:28 +030042 audio.usb.default \
Michael Bestas8fad4612023-08-30 03:25:06 +030043 audioadsprpcd \
merothh750fa002022-01-02 19:42:51 +053044 liba2dpoffload \
45 libbatterylistener \
Michael Bestas8fad4612023-08-30 03:25:06 +030046 libcirrusspkrprot \
merothh750fa002022-01-02 19:42:51 +053047 libcomprcapture \
48 libexthwplugin \
49 libhdmiedid \
50 libhfp \
merothh750fa002022-01-02 19:42:51 +053051 libqcompostprocbundle \
52 libqcomvisualizer \
53 libqcomvoiceprocessing \
Michael Bestas9d8a5f62024-05-12 08:50:28 +030054 libsndmonitor \
55 libspkrprot \
Michael Bestas8fad4612023-08-30 03:25:06 +030056 libvolumelistener \
57 sound_trigger.primary.lahaina
merothh750fa002022-01-02 19:42:51 +053058
merothhd7649fd2022-01-02 20:05:19 +053059PRODUCT_COPY_FILES += \
60 $(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
Michael Bestas418f9e42023-08-30 04:50:56 +030061 $(LOCAL_PATH)/audio/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_yupik/audio_io_policy.conf \
62 $(LOCAL_PATH)/audio/audio_platform_info_yupikidp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_yupik/audio_platform_info_yupikidp.xml \
merothhd7649fd2022-01-02 20:05:19 +053063 $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
Michael Bestasbbdf1532022-03-28 20:22:52 +030064 $(LOCAL_PATH)/audio/audio_policy_configuration_a2dp_offload_disabled.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_a2dp_offload_disabled.xml \
Michael Bestas418f9e42023-08-30 04:50:56 +030065 $(LOCAL_PATH)/audio/audio_policy_configuration_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml \
66 $(LOCAL_PATH)/audio/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
Michael Bestasbbdf1532022-03-28 20:22:52 +030067 $(LOCAL_PATH)/audio/bluetooth_hearing_aid_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_hearing_aid_audio_policy_configuration.xml \
Michael Bestas418f9e42023-08-30 04:50:56 +030068 $(LOCAL_PATH)/audio/mixer_paths_yupikidp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_yupik/mixer_paths_yupikidp.xml \
69 $(LOCAL_PATH)/audio/sound_trigger_mixer_paths_yupikidp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_yupik/sound_trigger_mixer_paths_yupikidp.xml \
70 $(LOCAL_PATH)/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_yupik/sound_trigger_platform_info.xml
merothhd7649fd2022-01-02 20:05:19 +053071
72PRODUCT_COPY_FILES += \
merothhd7649fd2022-01-02 20:05:19 +053073 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
74 frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
75 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
Michael Bestas418f9e42023-08-30 04:50:56 +030076 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml
merothhd7649fd2022-01-02 20:05:19 +053077
Michael Bestas9d8a5f62024-05-12 08:50:28 +030078PRODUCT_COPY_FILES += \
79 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \
80 frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
81 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml
merothh2e0e5682022-01-02 20:25:57 +053082
merothh750fa002022-01-02 19:42:51 +053083# Bluetooth
Michael Bestas9d8a5f62024-05-12 08:50:28 +030084PRODUCT_COPY_FILES += \
85 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
86 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
87
SGCMarkusc3293742022-10-31 18:07:07 +010088# Board API level
Chirayu Desai2b6c5452024-06-13 21:10:42 +053089BOARD_SHIPPING_API_LEVEL := 30
SGCMarkusc3293742022-10-31 18:07:07 +010090
Michael Bestas9d8a5f62024-05-12 08:50:28 +030091# Boot control
92PRODUCT_PACKAGES += \
93 android.hardware.boot@1.1-impl-qti \
94 android.hardware.boot@1.1-impl-qti.recovery \
95 android.hardware.boot@1.1-service
96
merothha507a0f2022-01-02 20:11:36 +053097# Camera
98PRODUCT_PACKAGES += \
99 android.hardware.camera.provider@2.4-impl \
Cosmin Tanislav547d9de2024-08-17 04:59:30 +0300100 android.hardware.camera.provider@2.4-service_64
merothha507a0f2022-01-02 20:11:36 +0530101
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300102PRODUCT_COPY_FILES += \
103 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
104 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
105 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
106 frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml
107
108# Dalvik
109$(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
110
111# DebugFS
112PRODUCT_SET_DEBUGFS_RESTRICTIONS := true
113
Michael Bestasb35c3d72024-05-29 01:22:20 +0300114# Device ID attestation
115PRODUCT_COPY_FILES += \
116 frameworks/native/data/etc/android.software.device_id_attestation.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_id_attestation.xml
117
merothh7af51cb2022-01-02 20:14:21 +0530118# Display
119PRODUCT_PACKAGES += \
120 android.hardware.graphics.mapper@3.0-impl-qti-display \
121 android.hardware.graphics.mapper@4.0-impl-qti-display \
merothh7af51cb2022-01-02 20:14:21 +0530122 android.hardware.renderscript@1.0-impl \
Michael Bestasbcba0502023-08-29 22:43:01 +0300123 init.qti.display_boot.rc \
Rohit R Sekhar260f7c12022-11-17 21:27:27 +0530124 init.qti.display_boot.sh \
merothh7af51cb2022-01-02 20:14:21 +0530125 vendor.qti.hardware.display.allocator-service \
Michael Bestas8059f982024-08-27 02:04:54 +0300126 vendor.qti.hardware.display.composer-service.rc \
127 vendor.qti.hardware.display.composer-service.xml \
Yumi Yukimura8e5ec5a2024-07-13 23:22:02 +0530128 vendor.qti.hardware.memtrack-service
merothh7af51cb2022-01-02 20:14:21 +0530129
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300130PRODUCT_COPY_FILES += \
131 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml
Hridya Valsarajuacf54302021-04-02 11:33:45 -0700132
Sebastiano Barezzi2789dea2021-02-10 22:01:11 +0100133# DRM
134PRODUCT_PACKAGES += \
Bruno Martins09cfb262022-09-14 14:51:15 +0100135 android.hardware.drm-service.clearkey
Sebastiano Barezzi2789dea2021-02-10 22:01:11 +0100136
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300137# e-SIM
merothh2b9692d2022-01-14 00:55:59 +0530138PRODUCT_COPY_FILES += \
Michael Bestasd7bd73f2024-08-31 03:27:54 +0300139 $(LOCAL_PATH)/configs/default-permissions_com.google.android.euicc.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/default-permissions/default-permissions_com.google.android.euicc.xml \
140 $(LOCAL_PATH)/configs/privapp_allowlist_com.google.android.euicc.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp_allowlist_com.google.android.euicc.xml
merothh2b9692d2022-01-14 00:55:59 +0530141
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300142PRODUCT_COPY_FILES += \
143 frameworks/native/data/etc/android.hardware.telephony.euicc.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.telephony.euicc.xml
144
merothh54856102021-11-04 12:07:41 +0530145# fastbootd
146PRODUCT_PACKAGES += \
147 fastbootd
148
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300149# Fingerprint
150PRODUCT_PACKAGES += \
Alexander Martinz02a5ea92024-09-02 12:00:42 +0200151 android.hardware.biometrics.fingerprint@2.3-service.otter
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300152
153PRODUCT_COPY_FILES += \
154 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
155
LuK133737154bf2021-12-14 11:42:44 +0100156# GPS
157PRODUCT_PACKAGES += \
Michael Bestas6cf15042024-05-09 01:13:02 +0300158 android.hardware.gnss@2.1-impl-qti:64 \
Michael Bestasd870a482023-05-04 01:19:43 +0300159 android.hardware.gnss@2.1-service-qti \
160 gnss@2.0-base.policy \
161 gnss@2.0-xtra-daemon.policy \
Michael Bestas6cf15042024-05-09 01:13:02 +0300162 libbatching:64 \
163 libgeofencing:64 \
164 libgnss:64 \
165 libloc_socket:64
LuK133737154bf2021-12-14 11:42:44 +0100166
Michael Bestas097b8902023-05-12 16:24:16 +0300167PRODUCT_PACKAGES += \
168 flp.conf \
Michael Bestasdd911262024-05-09 01:36:21 +0300169 gnss_antenna_info.conf \
Michael Bestas097b8902023-05-12 16:24:16 +0300170 gps.conf \
171 izat.conf
172
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300173PRODUCT_COPY_FILES += \
174 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
175
176# Graphics
177PRODUCT_COPY_FILES += \
178 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
179 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
180 frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level-1.xml \
181 frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version-1_1.xml \
linjoey2a0ff282021-06-16 21:29:00 +0800182 frameworks/native/data/etc/android.software.opengles.deqp.level-2020-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.opengles.deqp.level.xml \
183 frameworks/native/data/etc/android.software.vulkan.deqp.level-2020-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300184
Sebastiano Barezzif97d62a2021-02-10 22:01:44 +0100185# Health
186PRODUCT_PACKAGES += \
Michael Bestas99a5c712023-08-30 21:12:04 +0300187 android.hardware.health-service.qti
Sebastiano Barezzif97d62a2021-02-10 22:01:44 +0100188
Michael Bestasd4923512024-05-10 02:57:20 +0300189# Init
190PRODUCT_PACKAGES += \
Michael Bestas9bb5a142024-05-29 00:19:57 +0300191 fstab.qcom \
192 fstab.qcom.vendor_ramdisk \
Michael Bestasd4923512024-05-10 02:57:20 +0300193 init.class_main.sh \
194 init.qcom.early_boot.sh \
195 init.qcom.post_boot.sh \
196 init.qcom.rc \
197 init.qcom.recovery.rc \
198 init.qcom.sh \
199 init.qcom.usb.rc \
200 init.qcom.usb.sh \
Michael Bestasd4923512024-05-10 02:57:20 +0300201 init.target.rc \
202 ueventd.qcom.rc
203
Sebastiano Barezzi7e8029e2021-02-10 22:02:37 +0100204# IPACM
205PRODUCT_PACKAGES += \
206 ipacm \
Michael Bestas6cf15042024-05-09 01:13:02 +0300207 IPACM_cfg.xml
Sebastiano Barezzi7e8029e2021-02-10 22:02:37 +0100208
Chirayu Desaif03c7692024-06-13 22:02:20 +0530209# Kernel
210PRODUCT_ENABLE_UFFD_GC := false
211
LuK133737154bf2021-12-14 11:42:44 +0100212# Keymaster
213PRODUCT_PACKAGES += \
Cosmin Tanislav547d9de2024-08-17 04:59:30 +0300214 android.hardware.hardware_keystore.km41.xml
LuK133737154bf2021-12-14 11:42:44 +0100215
merothh431b69d2022-01-03 01:32:52 +0530216# Media
merothhf25a4a72022-01-02 21:45:42 +0530217PRODUCT_COPY_FILES += \
Michael Bestas25358082023-08-30 13:19:27 +0300218 $(LOCAL_PATH)/media/media_codecs_performance_yupik_iot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_yupik_iot.xml \
Michael Bestas25358082023-08-30 13:19:27 +0300219 $(LOCAL_PATH)/media/media_codecs_yupik_iot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_yupik_iot.xml \
220 $(LOCAL_PATH)/media/media_profiles_yupik_iot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml
merothhf25a4a72022-01-02 21:45:42 +0530221
Andrew Hexena9aed252020-09-26 11:51:58 -0700222# NFC
223PRODUCT_PACKAGES += \
Andrew Hexena9aed252020-09-26 11:51:58 -0700224 com.android.nfc_extras \
Andrew Hexena9aed252020-09-26 11:51:58 -0700225 Tag
226
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300227PRODUCT_COPY_FILES += \
228 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
229 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
230 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
231 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
232 frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
233 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
Michael Bestas9c04f292024-05-12 12:11:50 +0300234 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300235
Sebastiano Barezzied138322021-02-10 22:04:15 +0100236# OMX
237PRODUCT_PACKAGES += \
Michael Bestas738f5792024-08-31 22:03:42 +0300238 android.hardware.media.omx@1.0-service \
Sebastiano Barezzied138322021-02-10 22:04:15 +0100239 libOmxAacEnc \
240 libOmxAmrEnc \
241 libOmxCore \
242 libOmxEvrcEnc \
243 libOmxG711Enc \
244 libOmxQcelp13Enc \
Sebastiano Barezzied138322021-02-10 22:04:15 +0100245 libstagefrighthw
246
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300247# Overlays
248DEVICE_PACKAGE_OVERLAYS += \
249 $(LOCAL_PATH)/overlay-lineage
250
251PRODUCT_ENFORCE_RRO_TARGETS := *
252PRODUCT_PACKAGES += \
253 CarrierConfigResCommon \
254 FrameworksResCommon \
255 FrameworksResTarget \
256 SettingsProviderResCommon \
257 SettingsResCommon \
258 SystemUIResCommon \
259 SystemUIResTarget \
260 TelephonyResCommon \
Rohit Sekhar56135612023-08-03 22:18:31 +0530261 WifiResCommon \
262 WifiResTarget
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300263
264# Partitions
265PRODUCT_USE_DYNAMIC_PARTITIONS := true
266
Sebastiano Barezziff0754a2021-02-10 22:05:37 +0100267# Power
268PRODUCT_PACKAGES += \
Cosmin Tanislav547d9de2024-08-17 04:59:30 +0300269 android.hardware.power-service-qti
Sebastiano Barezziff0754a2021-02-10 22:05:37 +0100270
merothh00be0602022-01-02 23:00:09 +0530271# Public libraries
272PRODUCT_COPY_FILES += \
273 $(LOCAL_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
274
Sebastiano Barezzi17434b22021-02-10 22:06:22 +0100275# QTI fwk-detect
276PRODUCT_PACKAGES += \
Cosmin Tanislav547d9de2024-08-17 04:59:30 +0300277 libvndfwk_detect_jni.qti.vendor # Needed by CNE app
Sebastiano Barezzi0441dfa2021-02-10 22:06:43 +0100278
Andrew Hexen3929a452021-02-15 06:33:18 -0800279# Sensors
280PRODUCT_PACKAGES += \
281 android.hardware.sensors@2.0-service.multihal
282
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300283PRODUCT_COPY_FILES += \
284 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
Michael Bestasb35c3d72024-05-29 01:22:20 +0300285 frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.barometer.xml \
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300286 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
287 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
Michael Bestasb35c3d72024-05-29 01:22:20 +0300288 frameworks/native/data/etc/android.hardware.sensor.hifi_sensors.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.hifi_sensors.xml \
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300289 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
290 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
291 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
292 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
293
294# Shipping API
Michael Bestasb16c8bb2024-05-29 02:00:36 +0300295PRODUCT_SHIPPING_API_LEVEL := 34
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300296
297# Soong namespaces
merothh54856102021-11-04 12:07:41 +0530298PRODUCT_SOONG_NAMESPACES += \
299 $(LOCAL_PATH)
300
Michael Bestas40301cc2023-08-31 20:48:36 +0300301# Storage
302$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
303
Sebastiano Barezzid70ce292021-02-10 22:08:35 +0100304# Telephony
305PRODUCT_PACKAGES += \
Michael Bestasb603e382023-02-02 17:41:45 +0200306 extphonelib \
307 extphonelib-product \
308 extphonelib.xml \
309 extphonelib_product.xml \
Sebastiano Barezzid70ce292021-02-10 22:08:35 +0100310 ims-ext-common \
311 ims_ext_common.xml \
312 qti-telephony-hidl-wrapper \
Michael Bestasb603e382023-02-02 17:41:45 +0200313 qti-telephony-hidl-wrapper-prd \
Sebastiano Barezzid70ce292021-02-10 22:08:35 +0100314 qti_telephony_hidl_wrapper.xml \
Michael Bestasb603e382023-02-02 17:41:45 +0200315 qti_telephony_hidl_wrapper_prd.xml \
Sebastiano Barezzid70ce292021-02-10 22:08:35 +0100316 qti-telephony-utils \
Michael Bestasb603e382023-02-02 17:41:45 +0200317 qti-telephony-utils-prd \
Sebastiano Barezzid70ce292021-02-10 22:08:35 +0100318 qti_telephony_utils.xml \
Michael Bestasb603e382023-02-02 17:41:45 +0200319 qti_telephony_utils_prd.xml \
Sebastiano Barezzid70ce292021-02-10 22:08:35 +0100320 telephony-ext
321
322PRODUCT_BOOT_JARS += \
323 telephony-ext
324
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300325PRODUCT_COPY_FILES += \
326 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
327 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
Dhina1729fccc22023-07-04 12:38:01 +0530328 frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300329
Sebastiano Barezzia488c662021-02-17 17:21:17 +0100330# Thermal
331PRODUCT_PACKAGES += \
332 android.hardware.thermal@2.0-service.qti
333
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300334# Update engine
335PRODUCT_PACKAGES += \
336 update_engine \
337 update_engine_sideload \
338 update_verifier
339
340PRODUCT_PACKAGES_DEBUG += \
341 update_engine_client
342
Sebastiano Barezzi64068f12021-02-10 22:09:03 +0100343# USB
344PRODUCT_PACKAGES += \
Albert Wang0dcdbc92021-03-25 00:03:02 +0800345 android.hardware.usb@1.3-service-qti
Roger Liaodcb2e032020-04-10 04:46:38 +0800346
Alexander Koskoviche62c05c2022-04-12 05:00:05 -0700347PRODUCT_SOONG_NAMESPACES += \
348 vendor/qcom/opensource/usb/etc
349
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300350PRODUCT_COPY_FILES += \
351 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
352 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml
353
354# Vendor service manager
Roger Liaodcb2e032020-04-10 04:46:38 +0800355PRODUCT_PACKAGES += \
356 vndservicemanager
merothh66682a52021-11-13 19:20:17 +0530357
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300358# Verified Boot
359PRODUCT_COPY_FILES += \
360 frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.verified_boot.xml
361
merothh66682a52021-11-13 19:20:17 +0530362# Vibrator
363PRODUCT_PACKAGES += \
Michael Bestas9e3d0d62024-05-28 03:47:26 +0300364 vendor.qti.hardware.vibrator.service.otter
Bruno Martins33165842021-06-19 12:54:58 +0100365
366PRODUCT_COPY_FILES += \
Rohit Sekharffae9e42023-08-23 15:30:52 +0530367 $(LOCAL_PATH)/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml
Sebastiano Barezzifd6e1f82021-02-10 22:10:19 +0100368
369# WiFi
370PRODUCT_PACKAGES += \
Gabriel Birend6c1ff32023-03-27 22:33:41 +0000371 android.hardware.wifi-service \
Sebastiano Barezzifd6e1f82021-02-10 22:10:19 +0100372 hostapd \
373 libwpa_client \
374 libwifi-hal-ctrl \
375 libwifi-hal-qcom \
Sebastiano Barezzifd6e1f82021-02-10 22:10:19 +0100376 wpa_supplicant \
377 wpa_supplicant.conf
378
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300379PRODUCT_COPY_FILES += \
Michael Bestas069d86e2023-08-30 17:55:01 +0300380 frameworks/native/data/etc/android.hardware.wifi.aware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.aware.xml \
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300381 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
382 frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml \
Michael Bestas069d86e2023-08-30 17:55:01 +0300383 frameworks/native/data/etc/android.hardware.wifi.rtt.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.rtt.xml \
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300384 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
385 frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml
386
Bruno Martins1051d042024-06-23 21:58:49 +0100387# WiFi firmware symlink
388PRODUCT_PACKAGES += \
389 firmware_WCNSS_qcom_cfg.ini_symlink
390
Sebastiano Barezzi6262fdd2021-02-10 22:10:39 +0100391# WiFi Display
Sebastiano Barezzi6262fdd2021-02-10 22:10:39 +0100392PRODUCT_BOOT_JARS += \
393 WfdCommon
Michael Bestas9d8a5f62024-05-12 08:50:28 +0300394
395# Inherit from the proprietary files makefile.
Michael Bestas9e3d0d62024-05-28 03:47:26 +0300396$(call inherit-product, vendor/shift/otter/otter-vendor.mk)