BT: update bt system property and overlay config
Bug: 331884942 Test: build and check system property and config file at device Change-Id: I81b51823df591a3ff0a72b538d0e45cd904c7592
This commit is contained in:
parent
9fb19253e9
commit
d40f1b4814
4 changed files with 93 additions and 39 deletions
27
bluetooth/Android.bp
Normal file
27
bluetooth/Android.bp
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
//
|
||||||
|
// Copyright (C) 2024 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.
|
||||||
|
|
||||||
|
soong_namespace {
|
||||||
|
}
|
||||||
|
|
||||||
|
package {
|
||||||
|
default_applicable_licenses: ["device_google_tegu_license"],
|
||||||
|
}
|
||||||
|
|
||||||
|
prebuilt_etc {
|
||||||
|
name: "le_audio_codec_capabilities.xml",
|
||||||
|
vendor: true,
|
||||||
|
src: "le_audio_codec_capabilities.xml",
|
||||||
|
}
|
|
@ -3,20 +3,22 @@
|
||||||
# Uart port name
|
# Uart port name
|
||||||
UartPort = /dev/ttySAC18
|
UartPort = /dev/ttySAC18
|
||||||
|
|
||||||
# Userial type
|
# Priority of uart type
|
||||||
# UserialType = 2
|
# HciUartSocket = 0
|
||||||
|
# SerialUartPort = 1
|
||||||
|
# SerialAocUartPort = 2
|
||||||
|
# UserialInvalid = 3
|
||||||
|
UserialTypePriority = 1
|
||||||
|
|
||||||
# <boolean> Enable check whether let aoc controls power pin
|
# <string> The hardware support which offload capability
|
||||||
AocPowerPinCtrlCheckEnable = true
|
BtOffloadCap = AOC
|
||||||
|
|
||||||
|
# <string> The BT Offload Trunk Flag Group Name
|
||||||
|
BtOffloadTrunkGroup = 25M_AOC
|
||||||
|
|
||||||
# Sar backOff high resolution support
|
# Sar backOff high resolution support
|
||||||
SarBackOffHighResolution = true
|
SarBackOffHighResolution = true
|
||||||
|
|
||||||
# Update BQR Event Mask property value
|
|
||||||
BqrEventMaskValueUpdate = 262238
|
|
||||||
|
|
||||||
BtA2dpOffloadCap = sbc-aac-aptx-aptxhd-ldac-opus
|
|
||||||
|
|
||||||
BtOpusEnabled = true
|
|
||||||
|
|
||||||
AccelBtDisable = false
|
AccelBtDisable = false
|
||||||
|
|
||||||
|
BtHalRecoveryByRestart = true
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
# This is BTBCM HAL overlay configuration file.
|
|
||||||
|
|
||||||
# Uart port name
|
|
||||||
UartPort = /dev/ttySAC18
|
|
||||||
|
|
||||||
# Userial type
|
|
||||||
# UserialType = 2
|
|
||||||
|
|
||||||
# Sar backOff high resolution support
|
|
||||||
SarBackOffHighResolution = true
|
|
||||||
|
|
||||||
AccelBtDisable = false
|
|
|
@ -84,12 +84,16 @@ PRODUCT_COPY_FILES += \
|
||||||
|
|
||||||
# Bluetooth HAL
|
# Bluetooth HAL
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
device/google/tegu/bluetooth/bt_vendor_overlay_tegu.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf
|
device/google/tegu/bluetooth/bt_vendor_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf
|
||||||
PRODUCT_PROPERTY_OVERRIDES += \
|
PRODUCT_PROPERTY_OVERRIDES += \
|
||||||
ro.bluetooth.a2dp_offload.supported=true \
|
ro.bluetooth.a2dp_offload.supported=true \
|
||||||
persist.bluetooth.a2dp_offload.disabled=false \
|
persist.bluetooth.a2dp_offload.disabled=false \
|
||||||
persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac
|
persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac
|
||||||
|
|
||||||
|
# POF
|
||||||
|
PRODUCT_PRODUCT_PROPERTIES += \
|
||||||
|
ro.bluetooth.finder.supported=true
|
||||||
|
|
||||||
# Bluetooth hci_inject test tool
|
# Bluetooth hci_inject test tool
|
||||||
PRODUCT_PACKAGES_DEBUG += \
|
PRODUCT_PACKAGES_DEBUG += \
|
||||||
hci_inject
|
hci_inject
|
||||||
|
@ -106,20 +110,9 @@ PRODUCT_PACKAGES_DEBUG += \
|
||||||
PRODUCT_PRODUCT_PROPERTIES += \
|
PRODUCT_PRODUCT_PROPERTIES += \
|
||||||
persist.bluetooth.a2dp_aac.vbr_supported=true
|
persist.bluetooth.a2dp_aac.vbr_supported=true
|
||||||
|
|
||||||
# Override BQR mask to enable LE Audio Choppy report, remove BTRT logging
|
# Bluetooth Super Wide Band
|
||||||
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
|
||||||
PRODUCT_PRODUCT_PROPERTIES += \
|
PRODUCT_PRODUCT_PROPERTIES += \
|
||||||
persist.bluetooth.bqr.event_mask=295006 \
|
bluetooth.hfp.swb.supported=true
|
||||||
persist.bluetooth.bqr.vnd_quality_mask=29 \
|
|
||||||
persist.bluetooth.bqr.vnd_trace_mask=0 \
|
|
||||||
persist.bluetooth.vendor.btsnoop=true
|
|
||||||
else
|
|
||||||
PRODUCT_PRODUCT_PROPERTIES += \
|
|
||||||
persist.bluetooth.bqr.event_mask=295006 \
|
|
||||||
persist.bluetooth.bqr.vnd_quality_mask=16 \
|
|
||||||
persist.bluetooth.bqr.vnd_trace_mask=0 \
|
|
||||||
persist.bluetooth.vendor.btsnoop=false
|
|
||||||
endif
|
|
||||||
|
|
||||||
# default BDADDR for EVB only
|
# default BDADDR for EVB only
|
||||||
PRODUCT_PROPERTY_OVERRIDES += \
|
PRODUCT_PROPERTY_OVERRIDES += \
|
||||||
|
@ -150,9 +143,53 @@ PRODUCT_PRODUCT_PROPERTIES += \
|
||||||
ro.bluetooth.leaudio_offload.supported=true \
|
ro.bluetooth.leaudio_offload.supported=true \
|
||||||
persist.bluetooth.leaudio_offload.disabled=false \
|
persist.bluetooth.leaudio_offload.disabled=false \
|
||||||
|
|
||||||
|
# Include Bluetooth soong namespace
|
||||||
|
PRODUCT_SOONG_NAMESPACES += \
|
||||||
|
device/google/tegu/bluetooth
|
||||||
|
|
||||||
# Bluetooth LE Auido offload capabilities setting
|
# Bluetooth LE Auido offload capabilities setting
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_PACKAGES += \
|
||||||
device/google/tegu/bluetooth/le_audio_codec_capabilities.xml:$(TARGET_COPY_OUT_VENDOR)/etc/le_audio_codec_capabilities.xml
|
le_audio_codec_capabilities.xml
|
||||||
|
|
||||||
|
# LE Audio Lunch Config for Phase 1 (LE audio toggle hidden by default)
|
||||||
|
PRODUCT_PRODUCT_PROPERTIES += \
|
||||||
|
persist.bluetooth.leaudio.toggle_visible=false
|
||||||
|
|
||||||
|
# LE Audio use classic connection by default
|
||||||
|
PRODUCT_PRODUCT_PROPERTIES += \
|
||||||
|
ro.bluetooth.leaudio.le_audio_connection_by_default=false
|
||||||
|
|
||||||
|
# Bluetooth LE Audio CIS handover to SCO
|
||||||
|
# Set the property only for the controller couldn't support CIS/SCO simultaneously. More detailed in b/242908683.
|
||||||
|
PRODUCT_PRODUCT_PROPERTIES += \
|
||||||
|
persist.bluetooth.leaudio.notify.idle.during.call=true
|
||||||
|
|
||||||
|
# Bluetooth LE Audio enable dual mic SWB call
|
||||||
|
PRODUCT_PRODUCT_PROPERTIES += \
|
||||||
|
bluetooth.leaudio.dual_bidirection_swb.supported=true
|
||||||
|
|
||||||
|
# LE Audio Unicast Allowlist
|
||||||
|
PRODUCT_PRODUCT_PROPERTIES += \
|
||||||
|
persist.bluetooth.leaudio.allow_list=SM-R510
|
||||||
|
|
||||||
|
# Override BQR mask to enable LE Audio Choppy report, remove BTRT logging
|
||||||
|
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
||||||
|
PRODUCT_PRODUCT_PROPERTIES += \
|
||||||
|
persist.bluetooth.bqr.event_mask=295006 \
|
||||||
|
persist.bluetooth.bqr.vnd_quality_mask=29 \
|
||||||
|
persist.bluetooth.bqr.vnd_trace_mask=0 \
|
||||||
|
persist.bluetooth.vendor.btsnoop=true
|
||||||
|
else
|
||||||
|
PRODUCT_PRODUCT_PROPERTIES += \
|
||||||
|
persist.bluetooth.bqr.event_mask=295006 \
|
||||||
|
persist.bluetooth.bqr.vnd_quality_mask=16 \
|
||||||
|
persist.bluetooth.bqr.vnd_trace_mask=0 \
|
||||||
|
persist.bluetooth.vendor.btsnoop=false
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Enable Bluetooth AutoOn feature
|
||||||
|
PRODUCT_PRODUCT_PROPERTIES += \
|
||||||
|
bluetooth.server.automatic_turn_on=true
|
||||||
|
|
||||||
# Keymaster HAL
|
# Keymaster HAL
|
||||||
#LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= android.hardware.keymaster@4.1-service
|
#LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= android.hardware.keymaster@4.1-service
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue