[Android Software/Hacking General [Developers Only]] keyap:
Have I done this right?

Firstly a big thanks to the Op for making this possible :good:

As the option to request a patched bluetooth_default.so file has passed, I thought I'd have a go at doing this myself and was hoping somebody could check the Bluetooth logs below to see if I've got it right?

Phone is a Moto E XT1524 running LineageOS 14.1 and I'm connecting to a set of Jaybird Vista wireless buds. First log is the Vista's capabilities and the second is the configuration that was set, which I think is ~617kbps:-

No. Time Source Destination Protocol Length Info
368 4.432401 c0:28:8d:be:25:cd (Jaybird Vista) b4:ef:30:69:51:eb () AVDTP 25 Rcvd ResponseAccept - GetCapabilities - Audio SBC

Frame 368: 25 bytes on wire (200 bits), 25 bytes captured (200 bits)
Bluetooth HCI H4
Bluetooth HCI ACL Packet
Bluetooth L2CAP Protocol
Bluetooth AVDTP Protocol
Signal: GetCapabilities (ResponseAccept)
Capabilities
Service: Media Transport
Service Category: Media Transport (0x01)
Length of Service Category: 0x00
Service: Media Codec - Audio SBC
Service Category: Media Codec (0x07)
Length of Service Category: 0x06
0000 .... = Media Type: Audio (0x00)
.... 0000 = RFA: 0x00
Media Codec Audio Type: SBC (0x00)
0... .... = Sampling Frequency 16000 Hz: False
.0.. .... = Sampling Frequency 32000 Hz: False
..1. .... = Sampling Frequency 44100 Hz: True
...1 .... = Sampling Frequency 48000 Hz: True
.... 1... = Channel Mode Mono: True
.... .1.. = Channel Mode Dual Channel: True
.... ..1. = Channel Mode Stereo: True
.... ...1 = Channel Mode Joint Stereo: True
1... .... = Block Length 4: True
.1.. .... = Block Length 8: True
..1. .... = Block Length 12: True
...1 .... = Block Length 16: True
.... 1... = Subbands 4: True
.... .1.. = Subbands 8: True
.... ..1. = Allocation Method SNR: True
.... ...1 = Allocation Method Loudness: True
Minumum Bitpool: 2
Maximum Bitpool: 53

No. Time Source Destination Protocol Length Info
371 4.433423 b4:ef:30:69:51:eb () c0:28:8d:be:25:cd (Jaybird Vista) AVDTP 23 Sent Command - SetConfiguration - ACP SEID [1 - Audio Sink] - INT SEID [1 - Audio Sink] - Audio SBC

Frame 371: 23 bytes on wire (184 bits), 23 bytes captured (184 bits)
Bluetooth HCI H4
Bluetooth HCI ACL Packet
Bluetooth L2CAP Protocol
Bluetooth AVDTP Protocol
Signal: SetConfiguration (Command)
ACP SEID [1 - Audio Sink]
INT SEID [1 - Audio Sink]
Capabilities
Service: Media Transport
Service Category: Media Transport (0x01)
Length of Service Category: 0x00
Service: Media Codec - Audio SBC
Service Category: Media Codec (0x07)
Length of Service Category: 0x06
0000 .... = Media Type: Audio (0x00)
.... 0000 = RFA: 0x00
Media Codec Audio Type: SBC (0x00)
0... .... = Sampling Frequency 16000 Hz: False
.0.. .... = Sampling Frequency 32000 Hz: False
..1. .... = Sampling Frequency 44100 Hz: True
...0 .... = Sampling Frequency 48000 Hz: False
.... 0... = Channel Mode Mono: False
.... .1.. = Channel Mode Dual Channel: True
.... ..0. = Channel Mode Stereo: False
.... ...0 = Channel Mode Joint Stereo: False
0... .... = Block Length 4: False
.0.. .... = Block Length 8: False
..0. .... = Block Length 12: False
...1 .... = Block Length 16: True
.... 0... = Subbands 4: False
.... .1.. = Subbands 8: True
.... ..0. = Allocation Method SNR: False
.... ...1 = Allocation Method Loudness: True
Minumum Bitpool: 2
Maximum Bitpool: 53

Music plays with no issues and although I'm no audio expert and the Vista's EQ settings mean some of the original limitations can be sort of compensated for, I think it sounds a little cleaner with a crisper top end.

Thanks