TrebleDroid/treble_experimentations

Bluetooth Audio Pairing Issue (MT6895Z)

Yejia995 opened this issue · 10 comments

Current Behavior:

  • The device is not able to pair bluetooth audio devices (audio devices only)

Describe the bug

  • Cannot pair with bluetooth audio devices in A13/A14 GSI builds, but is able to pair with other types of BT devices

To Reproduce

  1. Install A13/A14 GSI builds
  2. Go to bluetooth settings
  3. Pair with an audio device

Expected behavior

  • The bluetooth audio device should be paired and connected

Smartphone:

  • Device: Redmi K50 (rubens)
  • Build Flavor: system-td-arm64-ab-vanilla.img.xz
  • Version: android_14.0.0_r14 and android_13.0.0_r73

Additional context

  • When clicking "Doze features", Phh Treble Settings exited
  • Tried with "Use System Wide BT HAL", and all "Bluetooth Workarounds"
  • Any other types of bluetooth devices are able to be paired and connected
  • Bluetooth audio works fine in Android 12 GSI builds with "Force-disable A2DP offload"

What happens when you try?
Got logs in that case?

Here's a GIF, there's a pop-up window saying "Bluetooth keeps stopping".
86voeu

Logs would be helpful. GIFs not so much...

Full log is here if needed. Error logs are here, bluetooth crashes and restarts when connecting headphones.
Is LDAC causing the problem? There seems to be no LDAC problem on the device that is not MTK.

Disable "Use System Wide BT HAL" toggle, reboot and try again.
If not ok, send logs again please.

Error logs with HAL disabled: here.

Can you please apply the following commands and test again after reboot?

adb shell
su
setprop persist.sys.bt.unsupported.commands 27
reboot

Error logs with HAL enabled: here.
Error logs with HAL disabled: here.

Send me a message on telegram and I'll send you a test build with a potential fix for your issue. No need for these props even.

Problem fixed with this commit. Thank you so much for helping!