1 2# 3# Copyright (C) 2022 The Android Open-Source Project 4# 5# Licensed under the Apache License, Version 2.0 (the "License"); 6# you may not use this file except in compliance with the License. 7# You may obtain a copy of the License at 8# 9# http://www.apache.org/licenses/LICENSE-2.0 10# 11# Unless required by applicable law or agreed to in writing, software 12# distributed under the License is distributed on an "AS IS" BASIS, 13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14# See the License for the specific language governing permissions and 15# limitations under the License. 16# 17 18# Override BQR mask to enable LE Audio Choppy report 19ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) 20PRODUCT_PRODUCT_PROPERTIES += \ 21 persist.bluetooth.bqr.event_mask=262238 22else 23PRODUCT_PRODUCT_PROPERTIES += \ 24 persist.bluetooth.bqr.event_mask=94 25endif 26 27# Not support LE Audio dual mic SWB call based on the current launch strategy 28PRODUCT_PRODUCT_PROPERTIES += \ 29 bluetooth.leaudio.dual_bidirection_swb.supported=false 30 31# Bluetooth Super Wide Band 32PRODUCT_PRODUCT_PROPERTIES += \ 33 bluetooth.hfp.swb.supported=false 34 35# Bluetooth LE Audio 36PRODUCT_PRODUCT_PROPERTIES += \ 37 ro.bluetooth.leaudio_switcher.supported=true \ 38 bluetooth.profile.bap.unicast.client.enabled?=true \ 39 bluetooth.profile.csip.set_coordinator.enabled?=true \ 40 bluetooth.profile.hap.client.enabled?=true \ 41 bluetooth.profile.mcp.server.enabled?=true \ 42 bluetooth.profile.ccp.server.enabled?=true \ 43 bluetooth.profile.vcp.controller.enabled?=true \ 44 45# LE Audio Lunch Config for Phase 1 (LE audio toggle hidden by default) 46PRODUCT_PRODUCT_PROPERTIES += \ 47 persist.bluetooth.leaudio.toggle_visible=false 48 49# LE Audio use classic connection by default 50PRODUCT_PRODUCT_PROPERTIES += \ 51 ro.bluetooth.leaudio.le_audio_connection_by_default=false 52 53# Bluetooth HAL and Pixel extension 54DEVICE_MANIFEST_FILE += \ 55 device/google/tangorpro/bluetooth/manifest_bluetooth.xml 56DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/tangorpro/bluetooth/device_framework_matrix_product.xml 57BOARD_SEPOLICY_DIRS += device/google/tangorpro-sepolicy/bluetooth 58PRODUCT_PACKAGES += android.hardware.bluetooth@1.1-service.synabtlinux \ 59 android.hardware.bluetooth.prebuilt.xml \ 60 android.hardware.bluetooth_le.prebuilt.xml 61 62# Bluetooth SAR test tools 63PRODUCT_PACKAGES_DEBUG += bt_sar_test 64 65# Bluetooth Tx power caps 66PRODUCT_COPY_FILES += \ 67 device/google/tangorpro/bluetooth/bluetooth_power_limits_tangorpro.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits.csv \ 68 device/google/tangorpro/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_CA.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GTU8P_CA.csv \ 69 device/google/tangorpro/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GTU8P_EU.csv \ 70 device/google/tangorpro/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_JP.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GTU8P_JP.csv \ 71 device/google/tangorpro/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GTU8P_US.csv \ 72 73# default BDADDR for EVB only 74PRODUCT_PROPERTY_OVERRIDES += \ 75 ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55" 76PRODUCT_PROPERTY_OVERRIDES += \ 77 ro.bluetooth.a2dp_offload.supported=true \ 78 persist.bluetooth.a2dp_offload.disabled=false \ 79 persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac-opus 80PRODUCT_PRODUCT_PROPERTIES += \ 81 persist.bluetooth.firmware.selection="BTFW.hcd" 82 83# Disable MAP, PBAP and SAP profiles 84PRODUCT_PRODUCT_PROPERTIES += \ 85 bluetooth.profile.map.server.enabled=false \ 86 bluetooth.profile.pbap.server.enabled=false \ 87 bluetooth.profile.sap.server.enabled=false \ 88 89BLUETOOTH_UART_PORT = /dev/ttySAC18 90 91# Inject soong bluetooth configurations 92$(call soong_config_set,bluetooth,bluetooth_uart_port,$(BLUETOOTH_UART_PORT)) 93