2021-09-15 04:57:36 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2021 The Android Open-Source Project
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
|
2022-06-17 05:42:07 +02:00
|
|
|
# Bluetooth Services sysprop for A2DP AAC VBR and A2DP offloading
|
|
|
|
PRODUCT_PRODUCT_PROPERTIES += \
|
|
|
|
persist.bluetooth.a2dp_aac.vbr_supported=true \
|
|
|
|
ro.bluetooth.a2dp_offload.supported=true \
|
2022-05-12 11:37:14 +02:00
|
|
|
persist.bluetooth.a2dp_offload.disabled=false \
|
2022-06-17 05:42:07 +02:00
|
|
|
persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac
|
|
|
|
|
2022-05-12 11:37:14 +02:00
|
|
|
# Bluetooth LE Audio
|
|
|
|
PRODUCT_PRODUCT_PROPERTIES += \
|
|
|
|
ro.bluetooth.leaudio_switcher.supported=true \
|
2022-10-25 13:35:29 +02:00
|
|
|
ro.bluetooth.leaudio_broadcast_switcher.supported=true \
|
2022-05-12 11:37:14 +02:00
|
|
|
ro.bluetooth.leaudio_offload.supported=true \
|
|
|
|
persist.bluetooth.leaudio_offload.disabled=false \
|
2022-10-25 13:35:29 +02:00
|
|
|
ro.vendor.audio_hal.ble_use_stream_id=true \
|
2022-05-12 11:37:14 +02:00
|
|
|
|
2022-09-27 11:58:53 +02:00
|
|
|
# Bluetooth LE Audio CIS handover to SCO
|
|
|
|
# Set the property only if the controller doesn't support CIS and SCO
|
|
|
|
# simultaneously. More details in b/242908683.
|
|
|
|
PRODUCT_PRODUCT_PROPERTIES += \
|
|
|
|
persist.bluetooth.leaudio.notify.idle.during.call=true
|
|
|
|
|
2022-07-25 06:26:27 +02:00
|
|
|
# LE Auido Offload Capabilities setting
|
|
|
|
PRODUCT_COPY_FILES += \
|
2022-09-22 08:30:22 +02:00
|
|
|
device/google/lynx/bluetooth/le_audio_codec_capabilities.xml:$(TARGET_COPY_OUT_VENDOR)/etc/le_audio_codec_capabilities.xml
|
2022-07-25 06:26:27 +02:00
|
|
|
|
2021-09-15 04:57:36 +02:00
|
|
|
# Bluetooth HAL and Pixel extension
|
|
|
|
DEVICE_MANIFEST_FILE += \
|
|
|
|
device/google/lynx/bluetooth/manifest_bluetooth.xml
|
|
|
|
|
2021-12-13 03:12:11 +01:00
|
|
|
BOARD_SEPOLICY_DIRS += device/google/lynx-sepolicy/bluetooth
|
|
|
|
|
2021-09-15 04:57:36 +02:00
|
|
|
BOARD_HAVE_BLUETOOTH_QCOM = true
|
|
|
|
BOARD_USES_COMMON_BLUETOOTH_HAL = true
|
|
|
|
QCOM_BLUETOOTH_USING_DIAG = false
|
2022-01-07 10:09:33 +01:00
|
|
|
TARGET_BLUETOOTH_HCI_V1_1 = true
|
2021-09-15 04:57:36 +02:00
|
|
|
TARGET_BLUETOOTH_UART_DEVICE = "/dev/ttySAC18"
|
|
|
|
UART_USE_TERMIOS_AFC = true
|
2022-01-19 13:02:42 +01:00
|
|
|
TARGET_USE_QTI_BT_IBS = false
|
2022-08-10 12:29:43 +02:00
|
|
|
TARGET_USE_QTI_BT_OBS = true
|
2022-06-12 20:07:19 +02:00
|
|
|
TARGET_USE_QTI_BT_SAR_V1_1 = true
|
2021-09-15 04:57:36 +02:00
|
|
|
TARGET_USE_QTI_BT_CHANNEL_AVOIDANCE = true
|
2022-12-29 10:50:42 +01:00
|
|
|
TARGET_DROP_BYTES_BEFORE_SSR_DUMP = true
|
2022-06-12 20:07:19 +02:00
|
|
|
|
|
|
|
# IBluetoothHci @1.1 / @1.0
|
2022-01-07 10:09:33 +01:00
|
|
|
ifeq ($(TARGET_BLUETOOTH_HCI_V1_1),true)
|
|
|
|
PRODUCT_PACKAGES += android.hardware.bluetooth@1.1-impl-qti
|
|
|
|
else
|
|
|
|
PRODUCT_PACKAGES += android.hardware.bluetooth@1.0-impl-qti
|
|
|
|
endif
|
2022-06-12 20:07:19 +02:00
|
|
|
# IBluetoothSar @1.1 / @1.0
|
|
|
|
ifeq ($(TARGET_USE_QTI_BT_SAR_V1_1),true)
|
|
|
|
PRODUCT_PACKAGES += hardware.google.bluetooth.sar@1.1-impl
|
|
|
|
else ifeq ($(TARGET_USE_QTI_BT_SAR),true)
|
|
|
|
PRODUCT_PACKAGES += hardware.google.bluetooth.sar@1.0-impl
|
|
|
|
endif
|
2021-09-15 04:57:36 +02:00
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.bluetooth@1.0-service-qti \
|
|
|
|
hardware.google.bluetooth.bt_channel_avoidance@1.0-impl
|
|
|
|
|
2022-07-22 09:22:24 +02:00
|
|
|
# Bluetooth SAR Tx power caps
|
|
|
|
PRODUCT_COPY_FILES += \
|
2022-11-29 04:57:02 +01:00
|
|
|
device/google/lynx/bluetooth/bluetooth_power_limits_Lynx.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits.csv \
|
|
|
|
device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_G0DZQ_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G0DZQ_EU.csv \
|
|
|
|
device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_GHL1X_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GHL1X_EU.csv \
|
|
|
|
device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_G0DZQ_CA.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G0DZQ_CA.csv \
|
|
|
|
device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_G0DZQ_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G0DZQ_US.csv \
|
|
|
|
device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_GWKK3_CA.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GWKK3_cA.csv \
|
|
|
|
device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_GWKK3_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GWKK3_US.csv \
|
|
|
|
device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_G0DZQ_JP.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G0DZQ_JP.csv \
|
|
|
|
device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_G82U8_JP.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G82U8_JP.csv
|
2022-07-22 09:22:24 +02:00
|
|
|
|
2021-09-15 04:57:36 +02:00
|
|
|
# Bluetooth SAR test tools
|
2022-09-16 10:06:19 +02:00
|
|
|
ifneq (,$(filter true, $(TARGET_USE_QTI_BT_SAR_V1_1) $(TARGET_USE_QTI_BT_SAR)))
|
2022-06-12 20:07:19 +02:00
|
|
|
PRODUCT_PACKAGES_DEBUG += bluetooth_sar_test
|
|
|
|
endif
|
2021-09-15 04:57:36 +02:00
|
|
|
|
2022-06-12 20:07:19 +02:00
|
|
|
# Bluetooth (Vendor) SoC, BDA in device tree, and WiPower
|
2021-09-15 04:57:36 +02:00
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
vendor.qcom.bluetooth.soc=hastings \
|
|
|
|
ro.vendor.bt.bdaddr_path=/proc/device-tree/chosen/config/bt_addr \
|
|
|
|
ro.vendor.bluetooth.emb_wp_mode=false \
|
|
|
|
ro.vendor.bluetooth.wipower=false
|
2022-01-06 12:16:21 +01:00
|
|
|
|
2022-04-15 14:57:36 +02:00
|
|
|
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
persist.vendor.service.bdroid.soclog=true \
|
|
|
|
persist.vendor.service.bdroid.fwsnoop=true
|
|
|
|
else
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
persist.vendor.service.bdroid.soclog=false \
|
|
|
|
persist.vendor.service.bdroid.fwsnoop=false
|
|
|
|
endif
|