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 17# Bluetooth Services sysprop for A2DP AAC VBR and A2DP offloading 18PRODUCT_PRODUCT_PROPERTIES += \ 19 persist.bluetooth.a2dp_aac.vbr_supported=true \ 20 ro.bluetooth.a2dp_offload.supported=true \ 21 persist.bluetooth.a2dp_offload.disabled=false \ 22 persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac 23 24# Bluetooth LE Audio 25PRODUCT_PRODUCT_PROPERTIES += \ 26 ro.bluetooth.leaudio_switcher.supported=false \ 27 bluetooth.profile.bap.unicast.client.enabled?=false \ 28 bluetooth.profile.csip.set_coordinator.enabled?=false \ 29 bluetooth.profile.hap.client.enabled?=false \ 30 bluetooth.profile.mcp.server.enabled?=false \ 31 bluetooth.profile.ccp.server.enabled?=false \ 32 bluetooth.profile.vcp.controller.enabled?=false \ 33 34# Bluetotoh Auto On feature 35PRODUCT_PRODUCT_PROPERTIES += \ 36 bluetooth.server.automatic_turn_on=true 37 38# Bluetooth HAL and Pixel extension 39DEVICE_MANIFEST_FILE += \ 40 device/google/lynx/bluetooth/manifest_bluetooth.xml 41DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/lynx/bluetooth/device_framework_matrix_product.xml 42 43BOARD_SEPOLICY_DIRS += device/google/lynx-sepolicy/bluetooth 44 45BOARD_HAVE_BLUETOOTH_QCOM = true 46BOARD_USES_COMMON_BLUETOOTH_HAL = true 47QCOM_BLUETOOTH_USING_DIAG = false 48TARGET_BLUETOOTH_HCI_V1_1 = true 49TARGET_BLUETOOTH_UART_DEVICE = "/dev/ttySAC18" 50UART_USE_TERMIOS_AFC = true 51TARGET_USE_QTI_BT_IBS = false 52TARGET_USE_QTI_BT_OBS = true 53TARGET_USE_QTI_BT_SAR_V1_1 = true 54TARGET_USE_QTI_BT_CHANNEL_AVOIDANCE = true 55TARGET_DROP_BYTES_BEFORE_SSR_DUMP = true 56 57# IBluetoothHci @1.1 / @1.0 58ifeq ($(TARGET_BLUETOOTH_HCI_V1_1),true) 59 PRODUCT_PACKAGES += android.hardware.bluetooth@1.1-impl-qti 60else 61 PRODUCT_PACKAGES += android.hardware.bluetooth@1.0-impl-qti 62endif 63# IBluetoothSar @1.1 / @1.0 64ifeq ($(TARGET_USE_QTI_BT_SAR_V1_1),true) 65 PRODUCT_PACKAGES += hardware.google.bluetooth.sar@1.1-impl 66else ifeq ($(TARGET_USE_QTI_BT_SAR),true) 67 PRODUCT_PACKAGES += hardware.google.bluetooth.sar@1.0-impl 68endif 69PRODUCT_PACKAGES += \ 70 android.hardware.bluetooth@1.0-service-qti \ 71 hardware.google.bluetooth.bt_channel_avoidance@1.0-impl \ 72 android.hardware.bluetooth.prebuilt.xml \ 73 android.hardware.bluetooth_le.prebuilt.xml 74 75# Bluetooth SAR Tx power caps 76PRODUCT_COPY_FILES += \ 77 device/google/lynx/bluetooth/bluetooth_power_limits_Lynx.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits.csv \ 78 device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_G0DZQ_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G0DZQ_EU.csv \ 79 device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_GHL1X_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GHL1X_EU.csv \ 80 device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_G0DZQ_CA.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G0DZQ_CA.csv \ 81 device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_G0DZQ_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G0DZQ_US.csv \ 82 device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_GWKK3_CA.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GWKK3_cA.csv \ 83 device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_GWKK3_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GWKK3_US.csv \ 84 device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_G0DZQ_JP.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G0DZQ_JP.csv \ 85 device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_G82U8_JP.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G82U8_JP.csv 86 87# Bluetooth SAR test tools 88ifneq (,$(filter true, $(TARGET_USE_QTI_BT_SAR_V1_1) $(TARGET_USE_QTI_BT_SAR))) 89 PRODUCT_PACKAGES_DEBUG += bluetooth_sar_test 90endif 91 92# Bluetooth (Vendor) SoC, BDA in device tree, and WiPower 93PRODUCT_PROPERTY_OVERRIDES += \ 94 vendor.qcom.bluetooth.soc=hastings \ 95 ro.vendor.bt.bdaddr_path=/proc/device-tree/chosen/config/bt_addr \ 96 ro.vendor.bluetooth.emb_wp_mode=false \ 97 ro.vendor.bluetooth.wipower=false 98 99ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) 100PRODUCT_PROPERTY_OVERRIDES += \ 101 persist.vendor.service.bdroid.soclog=true \ 102 persist.vendor.service.bdroid.fwsnoop=true 103else 104PRODUCT_PROPERTY_OVERRIDES += \ 105 persist.vendor.service.bdroid.soclog=false \ 106 persist.vendor.service.bdroid.fwsnoop=false 107endif 108