• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2021 The Android Open-Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17ifdef RELEASE_GOOGLE_RIPCURRENT24_RADIO_DIR
18RELEASE_GOOGLE_PRODUCT_RADIO_DIR := $(RELEASE_GOOGLE_RIPCURRENT24_RADIO_DIR)
19endif
20ifdef RELEASE_GOOGLE_RIPCURRENT24_RADIOCFG_DIR
21RELEASE_GOOGLE_PRODUCT_RADIOCFG_DIR := $(RELEASE_GOOGLE_RIPCURRENT24_RADIOCFG_DIR)
22endif
23RELEASE_GOOGLE_BOOTLOADER_RIPCURRENT24_DIR ?= 24D1# Keep this for pdk TODO: b/327119000
24RELEASE_GOOGLE_PRODUCT_BOOTLOADER_DIR := bootloader/$(RELEASE_GOOGLE_BOOTLOADER_RIPCURRENT24_DIR)
25$(call soong_config_set,caimito_bootloader,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_RIPCURRENT24_DIR))
26
27ifdef RELEASE_KERNEL_RIPCURRENT24_DIR
28TARGET_KERNEL_DIR ?= $(RELEASE_KERNEL_RIPCURRENT24_DIR)
29TARGET_BOARD_KERNEL_HEADERS ?= $(RELEASE_KERNEL_RIPCURRENT24_DIR)/kernel-headers
30else
31TARGET_KERNEL_DIR ?= device/google/caimito-kernels/6.1/24D1
32TARGET_BOARD_KERNEL_HEADERS ?= device/google/caimito-kernels/6.1/24D1/kernel-headers
33endif
34
35$(call inherit-product-if-exists, vendor/google_devices/caimito/prebuilts/device-vendor-ripcurrent24.mk)
36$(call inherit-product-if-exists, vendor/google_devices/zumapro/prebuilts/device-vendor.mk)
37$(call inherit-product-if-exists, vendor/google_devices/zumapro/proprietary/device-vendor.mk)
38$(call inherit-product-if-exists, vendor/google_devices/caimito/proprietary/ripcurrent24/device-vendor-ripcurrent24.mk)
39$(call inherit-product-if-exists, vendor/qorvo/uwb/qm35-hal/Device.mk)
40
41include device/google/caimito/audio/ripcurrent24/audio-tables.mk
42include device/google/zumapro/device-shipping-common.mk
43include hardware/google/pixel/vibrator/cs40l26/device-stereo.mk
44include device/google/gs-common/bcmbt/bluetooth.mk
45include device/google/gs-common/touch/stm/stm20.mk
46include device/google/caimito/fingerprint/ultrasonic_udfps.mk
47
48# go/lyric-soong-variables
49# Set to 'ripcurrent' as ripcurrent camera service is compatible with ripcurrent24.
50$(call soong_config_set,lyric,camera_hardware,ripcurrent)
51# Set to 'ripcurrent24' to use proper tuning settings
52$(call soong_config_set,lyric,tuning_product,ripcurrent24)
53$(call soong_config_set,google3a_config,target_device,ripcurrent)
54
55# display
56DEVICE_PACKAGE_OVERLAYS += device/google/caimito/ripcurrent24/overlay
57
58# Init files
59PRODUCT_COPY_FILES += \
60	device/google/caimito/conf/init.ripcurrent24.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.ripcurrent24.rc
61
62# Recovery files
63PRODUCT_COPY_FILES += \
64        device/google/caimito/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.ripcurrent24.rc
65
66# NFC
67PRODUCT_COPY_FILES += \
68	frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
69	frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
70	frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
71	frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
72	frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
73	device/google/caimito/nfc/libnfc-hal-st-disable.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \
74	device/google/caimito/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st-enable.conf \
75	device/google/caimito/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
76
77PRODUCT_PACKAGES += \
78	$(RELEASE_PACKAGE_NFC_STACK) \
79	Tag \
80	android.hardware.nfc-service.st
81
82# SecureElement
83PRODUCT_PACKAGES += \
84	android.hardware.secure_element-service.thales
85
86PRODUCT_COPY_FILES += \
87	frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
88	frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
89	device/google/caimito/nfc/libse-gto-hal-disable.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf
90
91# Bluetooth HAL
92PRODUCT_COPY_FILES += \
93	device/google/caimito/bluetooth/bt_vendor_overlay_ripcurrent24.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf
94PRODUCT_PROPERTY_OVERRIDES += \
95    ro.bluetooth.a2dp_offload.supported=true \
96    persist.bluetooth.a2dp_offload.disabled=false \
97    persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac-opus
98
99# POF
100PRODUCT_PRODUCT_PROPERTIES += \
101    ro.bluetooth.finder.supported=true
102
103# Spatial Audio
104PRODUCT_PACKAGES += \
105	libspatialaudio
106
107# declare use of spatial audio
108PRODUCT_PROPERTY_OVERRIDES += \
109       ro.audio.spatializer_enabled=true
110
111# declare use of stereo spatialization
112PRODUCT_PROPERTY_OVERRIDES += \
113    ro.audio.stereo_spatialization_enabled=true
114
115# Bluetooth hci_inject test tool
116PRODUCT_PACKAGES_DEBUG += \
117    hci_inject
118
119# Bluetooth OPUS codec
120PRODUCT_PRODUCT_PROPERTIES += \
121    persist.bluetooth.opus.enabled=true
122
123# Bluetooth SAR test tool
124PRODUCT_PACKAGES_DEBUG += \
125    sar_test
126
127# Bluetooth EWP test tool
128PRODUCT_PACKAGES_DEBUG += \
129    ewp_tool
130
131# Bluetooth AAC VBR
132PRODUCT_PRODUCT_PROPERTIES += \
133    persist.bluetooth.a2dp_aac.vbr_supported=true
134
135# Override BQR mask to enable LE Audio Choppy report, remove BTRT logging
136ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
137PRODUCT_PRODUCT_PROPERTIES += \
138    persist.bluetooth.bqr.event_mask=262238
139else
140PRODUCT_PRODUCT_PROPERTIES += \
141    persist.bluetooth.bqr.event_mask=94
142endif
143
144# default BDADDR for EVB only
145PRODUCT_PROPERTY_OVERRIDES += \
146	ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55"
147
148# Spatial Audio
149PRODUCT_PACKAGES += \
150	libspatialaudio \
151	librondo
152
153# Bluetooth LE Audio
154PRODUCT_PRODUCT_PROPERTIES += \
155	ro.bluetooth.leaudio_switcher.supported=true \
156	bluetooth.profile.bap.unicast.client.enabled=true \
157	bluetooth.profile.csip.set_coordinator.enabled=true \
158	bluetooth.profile.hap.client.enabled=true \
159	bluetooth.profile.mcp.server.enabled=true \
160	bluetooth.profile.ccp.server.enabled=true \
161	bluetooth.profile.vcp.controller.enabled=true
162
163ifeq ($(RELEASE_PIXEL_BROADCAST_ENABLED), true)
164PRODUCT_PRODUCT_PROPERTIES += \
165	bluetooth.profile.bap.broadcast.assist.enabled=true \
166	bluetooth.profile.bap.broadcast.source.enabled=true
167endif
168
169# Bluetooth LE Audio enable hardware offloading
170PRODUCT_PRODUCT_PROPERTIES += \
171	ro.bluetooth.leaudio_offload.supported=true \
172	persist.bluetooth.leaudio_offload.disabled=false \
173
174# Bluetooth LE Auido offload capabilities setting
175PRODUCT_COPY_FILES += \
176	device/google/caimito/bluetooth/le_audio_codec_capabilities.xml:$(TARGET_COPY_OUT_VENDOR)/etc/le_audio_codec_capabilities.xml
177
178# Keymaster HAL
179#LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= android.hardware.keymaster@4.1-service
180
181# Gatekeeper HAL
182#LOCAL_GATEKEEPER_PRODUCT_PACKAGE ?= android.hardware.gatekeeper@1.0-service.software
183
184
185# Gatekeeper
186# PRODUCT_PACKAGES += \
187# 	android.hardware.gatekeeper@1.0-service.software
188
189# Keymint replaces Keymaster
190# PRODUCT_PACKAGES += \
191# 	android.hardware.security.keymint-service
192
193# Keymaster
194#PRODUCT_PACKAGES += \
195#	android.hardware.keymaster@4.0-impl \
196#	android.hardware.keymaster@4.0-service
197
198#PRODUCT_PACKAGES += android.hardware.keymaster@4.0-service.remote
199#PRODUCT_PACKAGES += android.hardware.keymaster@4.1-service.remote
200#LOCAL_KEYMASTER_PRODUCT_PACKAGE := android.hardware.keymaster@4.1-service
201#LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= android.hardware.keymaster@4.1-service
202
203# PRODUCT_PROPERTY_OVERRIDES += \
204# 	ro.hardware.keystore_desede=true \
205# 	ro.hardware.keystore=software \
206# 	ro.hardware.gatekeeper=software
207
208# PowerStats HAL
209PRODUCT_SOONG_NAMESPACES += \
210    device/google/caimito/powerstats/ripcurrent24
211
212# WiFi Overlay
213PRODUCT_PACKAGES += \
214    WifiOverlay2024
215
216# Trusty liboemcrypto.so
217PRODUCT_SOONG_NAMESPACES += vendor/google_devices/caimito/prebuilts
218
219# Location
220PRODUCT_SOONG_NAMESPACES += device/google/caimito/location/ripcurrent24
221$(call soong_config_set, gpssdk, buildtype, $(TARGET_BUILD_VARIANT))
222PRODUCT_PACKAGES += gps.cfg
223# For GPS property
224PRODUCT_VENDOR_PROPERTIES += ro.vendor.gps.pps.enabled=true
225
226PRODUCT_VENDOR_PROPERTIES += \
227	vendor.disable.thermal.control=1 \
228	persist.device_config.configuration.disable_rescue_party=true
229
230PRODUCT_VENDOR_PROPERTIES += \
231    persist.vendor.udfps.als_feed_forward_supported=true \
232    persist.vendor.udfps.lhbm_controlled_in_hal_supported=true
233
234# Vibrator HAL
235$(call soong_config_set,haptics,kernel_ver,v$(subst .,_,$(TARGET_LINUX_KERNEL_VERSION)))
236ACTUATOR_MODEL := luxshare_ict_081545
237PRODUCT_VENDOR_PROPERTIES += \
238    ro.vendor.vibrator.hal.chirp.enabled=1 \
239    ro.vendor.vibrator.hal.device.mass=0.222 \
240    ro.vendor.vibrator.hal.loc.coeff=2.8
241
242# PKVM Memory Reclaim
243PRODUCT_VENDOR_PROPERTIES += \
244    hypervisor.memory_reclaim.supported=1
245