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