[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] LSS4181:
Bluetooth headset seems to connect here as I can hear the word "Connected" on my Sennheiser CX Sport just that it keeps showing "connecting" for a while longer.

It seems I can't make Media audio go through the headset (it still goes to the speaker). Phone audio works as I correctly hear phone calls on my bluetooth headset.

I disabled RazerAuraBluetoothRes.apk by creating a dummy in the Magisk audio module I use (which is the latest AINUR SAURON MK III).

Do I need to also disable another overlay, as I saw someone mentioned "two overlays"... but it seems I'm not the only person having this issue here.

EDIT: The other overlay in question is BluetoothResCommon.apk. Deleting that overlay will prevent Bluetooth from turning on... Also, it seems AINUR SAURON is not enough for aptX as it doesn't really have the codec...

10-01 13:13:44.908 1875 2023 D BluetoothManagerService: MESSAGE_BLUETOOTH_STATE_CHANGE: TURNING_OFF > BLE_ON
10-01 13:13:44.908 1875 2023 D BluetoothManagerService: Intermediate off, back to LE only mode
10-01 13:13:44.908 1875 2023 D BluetoothManagerService: Sending BLE State Change: TURNING_OFF > BLE_ON
10-01 13:13:44.908 1875 2023 D BluetoothManagerService: Broadcasting onBluetoothStateChange(false) to 11 receivers.
10-01 13:13:44.909 1875 2023 D BluetoothHeadset: onBluetoothStateChange: up=false
10-01 13:13:44.909 10781 11027 D BluetoothHidDevice: onBluetoothStateChange: up=false
10-01 13:13:44.910 10781 11027 D BluetoothHidDevice: Unbinding service...
10-01 13:13:44.910 10781 11027 E BluetoothHidDevice: Unable to unbind HidDevService
10-01 13:13:44.910 10781 11027 E BluetoothHidDevice: java.lang.IllegalArgumentException: Service not registered: android.bluetooth.BluetoothHidDevice$2@dfbbacc
10-01 13:13:44.910 10781 11027 E BluetoothHidDevice:	at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1562)
10-01 13:13:44.910 10781 11027 E BluetoothHidDevice:	at android.app.ContextImpl.unbindService(ContextImpl.java:1692)
10-01 13:13:44.910 10781 11027 E BluetoothHidDevice:	at android.content.ContextWrapper.unbindService(ContextWrapper.java:717)
10-01 13:13:44.910 10781 11027 E BluetoothHidDevice:	at android.bluetooth.BluetoothHidDevice.doUnbind(BluetoothHidDevice.java:468)
10-01 13:13:44.910 10781 11027 E BluetoothHidDevice:	at android.bluetooth.BluetoothHidDevice$1.onBluetoothStateChange(BluetoothHidDevice.java:409)
10-01 13:13:44.910 10781 11027 E BluetoothHidDevice:	at android.bluetooth.IBluetoothStateChangeCallback$Stub.onTransact(IBluetoothStateChangeCallback.java:56)
10-01 13:13:44.910 10781 11027 E BluetoothHidDevice:	at android.os.Binder.execTransact(Binder.java:731)
10-01 13:13:44.910 10781 14509 D BluetoothMap: onBluetoothStateChange: up=false
10-01 13:13:44.911 10781 14509 E BluetoothMap:
10-01 13:13:44.911 10781 14509 E BluetoothMap: java.lang.IllegalArgumentException: Service not registered: android.bluetooth.BluetoothMap$2@8f2c086
10-01 13:13:44.911 10781 14509 E BluetoothMap:	at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1562)
10-01 13:13:44.911 10781 14509 E BluetoothMap:	at android.app.ContextImpl.unbindService(ContextImpl.java:1692)
10-01 13:13:44.911 10781 14509 E BluetoothMap:	at android.content.ContextWrapper.unbindService(ContextWrapper.java:717)
10-01 13:13:44.911 10781 14509 E BluetoothMap:	at android.bluetooth.BluetoothMap$1.onBluetoothStateChange(BluetoothMap.java:68)
10-01 13:13:44.911 10781 14509 E BluetoothMap:	at android.bluetooth.IBluetoothStateChangeCallback$Stub.onTransact(IBluetoothStateChangeCallback.java:56)
10-01 13:13:44.911 10781 14509 E BluetoothMap:	at android.os.Binder.execTransact(Binder.java:731)
10-01 13:13:44.912 1875 2023 D BluetoothA2dp: onBluetoothStateChange: up=false
10-01 13:13:44.912 10781 14509 D BluetoothHidHost: onBluetoothStateChange: up=false
10-01 13:13:44.912 1875 2023 E BluetoothA2dp:
10-01 13:13:44.912 1875 2023 E BluetoothA2dp: java.lang.IllegalArgumentException: Service not registered: android.bluetooth.BluetoothA2dp$2@4ef3aee
10-01 13:13:44.912 1875 2023 E BluetoothA2dp:	at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1562)
10-01 13:13:44.912 1875 2023 E BluetoothA2dp:	at android.app.ContextImpl.unbindService(ContextImpl.java:1692)
10-01 13:13:44.912 1875 2023 E BluetoothA2dp:	at android.bluetooth.BluetoothA2dp$1.onBluetoothStateChange(BluetoothA2dp.java:218)
10-01 13:13:44.912 1875 2023 E BluetoothA2dp:	at com.android.server.BluetoothManagerService.sendBluetoothStateCallback(BluetoothManagerService.java:1358)
10-01 13:13:44.912 1875 2023 E BluetoothA2dp:	at com.android.server.BluetoothManagerService.bluetoothStateChangeHandler(BluetoothManagerService.java:2131)
10-01 13:13:44.912 1875 2023 E BluetoothA2dp:	at com.android.server.BluetoothManagerService.access$4100(BluetoothManagerService.java:88)
10-01 13:13:44.912 1875 2023 E BluetoothA2dp:	at com.android.server.BluetoothManagerService$BluetoothHandler.handleMessage(BluetoothManagerService.java:1755)
10-01 13:13:44.912 1875 2023 E BluetoothA2dp:	at android.os.Handler.dispatchMessage(Handler.java:106)
10-01 13:13:44.912 1875 2023 E BluetoothA2dp:	at android.os.Looper.loop(Looper.java:193)
10-01 13:13:44.912 1875 2023 E BluetoothA2dp:	at android.os.HandlerThread.run(HandlerThread.java:65)
10-01 13:13:44.912 1875 2023 E BluetoothA2dp:	at com.android.server.ServiceThread.run(ServiceThread.java:44)
10-01 13:13:44.912 1875 2023 E BluetoothHearingAid:
10-01 13:13:44.912 1875 2023 E BluetoothHearingAid: java.lang.IllegalArgumentException: Service not registered: android.bluetooth.BluetoothHearingAid$2@9a59a25
10-01 13:13:44.912 1875 2023 E BluetoothHearingAid:	at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1562)
10-01 13:13:44.912 1875 2023 E BluetoothHearingAid:	at android.app.ContextImpl.unbindService(ContextImpl.java:1692)
10-01 13:13:44.912 1875 2023 E BluetoothHearingAid:	at android.bluetooth.BluetoothHearingAid$1.onBluetoothStateChange(BluetoothHearingAid.java:159)
10-01 13:13:44.912 1875 2023 E BluetoothHearingAid:	at com.android.server.BluetoothManagerService.sendBluetoothStateCallback(BluetoothManagerService.java:1358)
10-01 13:13:44.912 1875 2023 E BluetoothHearingAid:	at com.android.server.BluetoothManagerService.bluetoothStateChangeHandler(BluetoothManagerService.java:2131)
10-01 13:13:44.912 1875 2023 E BluetoothHearingAid:	at com.android.server.BluetoothManagerService.access$4100(BluetoothManagerService.java:88)
10-01 13:13:44.912 1875 2023 E BluetoothHearingAid:	at com.android.server.BluetoothManagerService$BluetoothHandler.handleMessage(BluetoothManagerService.java:1755)
10-01 13:13:44.912 1875 2023 E BluetoothHearingAid:	at android.os.Handler.dispatchMessage(Handler.java:106)
10-01 13:13:44.912 1875 2023 E BluetoothHearingAid:	at android.os.Looper.loop(Looper.java:193)
10-01 13:13:44.912 1875 2023 E BluetoothHearingAid:	at android.os.HandlerThread.run(HandlerThread.java:65)
10-01 13:13:44.912 1875 2023 E BluetoothHearingAid:	at com.android.server.ServiceThread.run(ServiceThread.java:44)
10-01 13:13:44.912 1875 2023 D BluetoothHeadset: onBluetoothStateChange: up=false
10-01 13:13:44.912 1875 2023 D BluetoothHeadset: onBluetoothStateChange: up=false
10-01 13:13:44.912 10781 14509 E BluetoothHidHost:
10-01 13:13:44.912 10781 14509 E BluetoothHidHost: java.lang.IllegalArgumentException: Service not registered: android.bluetooth.BluetoothHidHost$2@c8cc8c8
10-01 13:13:44.912 10781 14509 E BluetoothHidHost:	at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1562)
10-01 13:13:44.912 10781 14509 E BluetoothHidHost:	at android.app.ContextImpl.unbindService(ContextImpl.java:1692)
10-01 13:13:44.912 10781 14509 E BluetoothHidHost:	at android.content.ContextWrapper.unbindService(ContextWrapper.java:717)
10-01 13:13:44.912 10781 14509 E BluetoothHidHost:	at android.bluetooth.BluetoothHidHost$1.onBluetoothStateChange(BluetoothHidHost.java:236)
10-01 13:13:44.912 10781 14509 E BluetoothHidHost:	at android.bluetooth.IBluetoothStateChangeCallback$Stub.onTransact(IBluetoothStateChangeCallback.java:56)
10-01 13:13:44.912 10781 14509 E BluetoothHidHost:	at android.os.Binder.execTransact(Binder.java:731)
10-01 13:13:44.913 1875 2023 D BluetoothManagerService: Calling sendBrEdrDownCallback callbacks
10-01 13:13:44.913 1875 2023 D BluetoothManagerService: isBleAppPresent() count: 0
10-01 13:13:44.913 11121 11415 D BluetoothHeadset: onBluetoothStateChange: up=false
10-01 13:13:44.915 10781 14509 D BluetoothPan: onBluetoothStateChange on: false
10-01 13:13:44.916 10781 14509 E BluetoothPan:
10-01 13:13:44.916 10781 14509 E BluetoothPan: java.lang.IllegalArgumentException: Service not registered: android.bluetooth.BluetoothPan$2@fce9d61
10-01 13:13:44.916 10781 14509 E BluetoothPan:	at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1562)
10-01 13:13:44.916 10781 14509 E BluetoothPan:	at android.app.ContextImpl.unbindService(ContextImpl.java:1692)
10-01 13:13:44.916 10781 14509 E BluetoothPan:	at android.content.ContextWrapper.unbindService(ContextWrapper.java:717)
10-01 13:13:44.916 10781 14509 E BluetoothPan:	at android.bluetooth.BluetoothPan$1.onBluetoothStateChange(BluetoothPan.java:213)
10-01 13:13:44.916 10781 14509 E BluetoothPan:	at android.bluetooth.IBluetoothStateChangeCallback$Stub.onTransact(IBluetoothStateChangeCallback.java:56)
10-01 13:13:44.916 10781 14509 E BluetoothPan:	at android.os.Binder.execTransact(Binder.java:731)
10-01 13:13:44.916 1875 2023 D BluetoothManagerService: MESSAGE_BLUETOOTH_STATE_CHANGE: BLE_ON > BLE_TURNING_OFF
10-01 13:13:44.916 1875 2023 D BluetoothManagerService: Sending BLE State Change: BLE_ON > BLE_TURNING_OFF
10-01 13:13:44.916 1875 1875 I AudioService: setBtScoActiveDevice: null -> null
10-01 13:13:44.917 10781 11027 E BluetoothPbap:
10-01 13:13:44.917 10781 11027 E BluetoothPbap: java.lang.IllegalArgumentException: Service not registered: android.bluetooth.BluetoothPbap$2@3a8fd47
10-01 13:13:44.917 10781 11027 E BluetoothPbap:	at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1562)
10-01 13:13:44.917 10781 11027 E BluetoothPbap:	at android.app.ContextImpl.unbindService(ContextImpl.java:1692)
10-01 13:13:44.917 10781 11027 E BluetoothPbap:	at android.content.ContextWrapper.unbindService(ContextWrapper.java:717)
10-01 13:13:44.917 10781 11027 E BluetoothPbap:	at android.bluetooth.BluetoothPbap$1.onBluetoothStateChange(BluetoothPbap.java:123)
10-01 13:13:44.917 10781 11027 E BluetoothPbap:	at android.bluetooth.IBluetoothStateChangeCallback$Stub.onTransact(IBluetoothStateChangeCallback.java:56)
10-01 13:13:44.917 10781 11027 E BluetoothPbap:	at android.os.Binder.execTransact(Binder.java:731)
10-01 13:13:44.919 15142 15239 I chatty : uid=1002(bluetooth) expire 5 lines
10-01 13:13:44.920 1875 2023 D BluetoothManagerService: MESSAGE_BLUETOOTH_STATE_CHANGE: BLE_TURNING_OFF > OFF
10-01 13:13:44.920 1875 2023 D BluetoothManagerService: Bluetooth is complete send Service Down
10-01 13:13:44.920 1875 2023 D BluetoothManagerService: Broadcasting onBluetoothServiceDown() to 7 receivers.
10-01 13:13:44.920 11466 14947 D BluetoothAdapter: onBluetoothServiceDown: android.bluetooth.IBluetooth$Stub$Proxy@41c7d88
10-01 13:13:44.920 15142 15903 I chatty : uid=1002(bluetooth) expire 1 line
10-01 13:13:44.921 15142 15889 I chatty : uid=1002(bluetooth) expire 1 line
10-01 13:13:44.921 1875 2023 D BluetoothAdapter: onBluetoothServiceDown: android.bluetooth.IBluetooth$Stub$Proxy@66e2d99
10-01 13:13:44.921 14520 14556 D BluetoothAdapter: onBluetoothServiceDown: android.bluetooth.IBluetooth$Stub$Proxy@2cdbc21
10-01 13:13:44.921 1875 2023 D BluetoothManagerService: unbindAndFinish(): android.bluetooth.IBluetooth$Stub$Proxy@66e2d99 mBinding = false mUnbinding = false
10-01 13:13:44.923 14884 16237 D BluetoothAdapter: onBluetoothServiceDown: android.bluetooth.IBluetooth$Stub$Proxy@ea65068
10-01 13:13:44.924 11121 11415 D BluetoothAdapter: onBluetoothServiceDown: android.bluetooth.IBluetooth$Stub$Proxy@d878108
10-01 13:13:44.925 10781 14509 D BluetoothAdapter: onBluetoothServiceDown: android.bluetooth.IBluetooth$Stub$Proxy@604e868
10-01 13:13:44.926 1875 1919 I PackageManager: Adding preferred activity ohi.andre.consolelauncher/.LauncherActivity for user 0:
10-01 13:13:44.926 1875 1919 I PackageManager: Action: "android.intent.action.MAIN"
10-01 13:13:44.926 1875 1919 I PackageManager: Category: "android.intent.category.HOME"
10-01 13:13:44.926 1875 1919 I PackageManager: Category: "android.intent.category.DEFAULT"
10-01 13:13:44.928 1875 2023 D BluetoothManagerService: Sending BLE State Change: BLE_TURNING_OFF > OFF
10-01 13:13:44.928 1875 2023 D BluetoothManagerService: Entering STATE_OFF but mEnabled is true; restarting.
10-01 13:13:44.928 1875 2023 E BluetoothManagerService: waitForOnOff time out
10-01 13:13:44.929 16002 16002 W VLC/VLCApplication: onTrimMemory, level: 80
10-01 13:13:44.932 1875 1919 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x13000100 cmp=ohi.andre.consolelauncher/.LauncherActivity} from uid 0
10-01 13:13:44.948 1875 2477 W System : ClassLoader referenced unknown path:
10-01 13:13:44.952 15187 15592 I GoLog : Not Using Prepared: tcp,104.237.157.170:29811
10-01 13:13:44.954 15187 15634 I GoLog : udp:127.0.0.1:39528 accepted udp:216.239.35.0:123
10-01 13:13:44.959 1875 2477 I ViewRootImpl: CPU Rendering VSync enable = true

EDIT 2: I decided to use Bluetooth stack audio bitrate changer for SBC + aptX & aptX-HD enabler Module instead, aptx appeared to have been loaded according to logcat, but it media audio still fails. I added these prop values according to this post.

#
# Addon
#
persist.vendor.btstack.enable.twsplus=true
# This is not from code.
persist.vendor.btstack.connect.peer_earbud=true
persist.vendor.btstack.enable.splita2dp=true
persist.vendor.service.bt.bca=true
persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac

10-01 13:30:39.063 5748 6895 D A2dpStateMachine: handleMessage: E msg.what=201
10-01 13:30:39.064 5748 6895 D A2dpStateMachine: processMsg: Connecting
10-01 13:30:39.064 5748 6895 D A2dpStateMachine: Connecting process message(00:1B:66:8D:8E:D8): CONNECT_TIMEOUT
10-01 13:30:39.064 5748 6895 W A2dpStateMachine: Connecting connection timeout: 00:1B:66:8D:8E:D8
10-01 13:30:39.064 5748 6895 I BluetoothA2dpServiceJni: disconnectA2dpNative: sBluetoothA2dpInterface: 0x75961a04c0
10-01 13:30:39.064 5748 6895 I btif_av : src_disconnect_sink: Peer 00:1b:66:8d:8e:d8
10-01 13:30:39.065 5748 6805 I bt_bta_av: BTA_AvClose: handle:0x41
10-01 13:30:39.065 5748 6805 I btif_av : btif_report_connection_state: peer_address=00:1b:66:8d:8e:d8 state=0
10-01 13:30:39.065 5748 6805 W bt_btif : btif_av_get_peer_sep: No active peer found
10-01 13:30:39.065 5748 6805 I bt_btif_a2dp: btif_a2dp_on_idle: ## ON A2DP IDLE ## peer_sep = 1
10-01 13:30:39.065 5748 6805 W bt_btif : btif_av_get_peer_sep: No active peer found
10-01 13:30:39.065 5748 6805 I bt_btif_a2dp_source: btif_a2dp_source_on_idle: state=STATE_OFF
10-01 13:30:39.065 5748 6895 D A2dpStateMachine: handleMessage: X
10-01 13:30:39.065 5748 6805 D a2dp_codec: init
10-01 13:30:39.065 5748 6805 D a2dp_codec: createCodec: codec SBC
10-01 13:30:39.065 5748 6805 D a2dp_codec: createCodec: codec AAC
10-01 13:30:39.065 5748 6895 D A2dpStateMachine: handleMessage: E msg.what=101
10-01 13:30:39.065 5748 6805 D a2dp_codec: createCodec: codec aptX
10-01 13:30:39.065 5748 6805 D a2dp_codec: createCodec: codec aptX-HD
10-01 13:30:39.065 5748 6895 D A2dpStateMachine: processMsg: Connecting
10-01 13:30:39.065 5748 6805 D a2dp_codec: createCodec: codec LDAC
10-01 13:30:39.065 5748 6805 D a2dp_codec: createCodec: codec SBC SINK
10-01 13:30:39.065 5748 6805 D a2dp_codec: createCodec: codec AAC SINK
10-01 13:30:39.065 5748 6895 D A2dpStateMachine: Connecting process message(00:1B:66:8D:8E:D8): STACK_EVENT
10-01 13:30:39.065 5748 6805 I a2dp_codec: init: initialized Source codec LDAC
10-01 13:30:39.065 5748 6805 I a2dp_codec: init: initialized Source codec aptX-HD
10-01 13:30:39.065 5748 6805 I a2dp_codec: init: initialized Source codec aptX
10-01 13:30:39.065 5748 6805 I a2dp_codec: init: initialized Source codec AAC
10-01 13:30:39.065 5748 6805 I a2dp_codec: init: initialized Source codec SBC
10-01 13:30:39.065 5748 6805 I a2dp_codec: init: initialized Sink codec AAC SINK
10-01 13:30:39.065 5748 6805 I a2dp_codec: init: initialized Sink codec SBC(Sink)
10-01 13:30:39.065 5748 6805 W bt_btif : bta_av_disconnect_req: conn_lcb: 0x1 peer_addr: 00:1b:66:8d:8e:d8
10-01 13:30:39.065 5748 6805 W bt_avp : AVDT_DisconnectReq: address=00:1b:66:8d:8e:d8
10-01 13:30:39.065 5748 6805 I btif_av : DeleteIdlePeers: Deleting idle peer: 00:1b:66:8d:8e:d8 bta_handle=0x41
10-01 13:30:39.065 5748 5904 I BluetoothA2dpServiceJni: bta2dp_connection_state_callback
10-01 13:30:39.066 5748 6895 D A2dpStateMachine: Connecting: stack event: A2dpStackEvent {type:EVENT_TYPE_CONNECTION_STATE_CHANGED, device:00:1B:66:8D:8E:D8, value1:DISCONNECTED}
10-01 13:30:39.066 919 919 D vendor.qti.bluetooth@1.0-ibs_handler: SerialClockVote: vote for UART CLK ON
10-01 13:30:39.066 5748 6895 W A2dpStateMachine: Connecting device disconnected: 00:1B:66:8D:8E:D8
10-01 13:30:39.066 5748 6895 D A2dpStateMachine: transitionTo: destState=Disconnected
10-01 13:30:39.066 5748 6895 D A2dpStateMachine: handleMessage: new destination call exit/enter
10-01 13:30:39.066 5748 6895 D A2dpStateMachine: setupTempStateStackWithStatesToEnter: X mTempStateStackCount=1,curStateInfo: null
10-01 13:30:39.066 5748 6895 D A2dpStateMachine: invokeExitMethods: Connecting
10-01 13:30:39.066 5748 6895 D A2dpStateMachine: Exit Connecting(00:1B:66:8D:8E:D8): STACK_EVENT
10-01 13:30:39.066 5748 6895 D A2dpStateMachine: moveTempStackToStateStack: i=0,j=0
10-01 13:30:39.067 5748 6895 D A2dpStateMachine: moveTempStackToStateStack: X mStateStackTop=0,startingIndex=0,Top=Disconnected
10-01 13:30:39.067 5748 6895 D A2dpStateMachine: invokeEnterMethods: Disconnected
10-01 13:30:39.067 5748 6895 I A2dpStateMachine: Enter Disconnected(00:1B:66:8D:8E:D8): STACK_EVENT
10-01 13:30:39.067 5748 6895 D A2dpStateMachine: Connection state 00:1B:66:8D:8E:D8: CONNECTING->DISCONNECTED
10-01 13:30:39.067 5748 5904 D A2dpNativeInterface: onConnectionStateChanged: A2dpStackEvent {type:EVENT_TYPE_CONNECTION_STATE_CHANGED, device:00:1B:66:8D:8E:D8, value1:DISCONNECTED}
10-01 13:30:39.068 5748 5904 I bt_btif_queue: queue_int_advance: removing connection request: address=00:1b:66:8d:8e:d8 UUID=110A busy=true
10-01 13:30:39.068 919 919 D vendor.qti.bluetooth@1.0-wake_lock: Acquire wakelock is acquired
10-01 13:30:39.068 919 919 I vendor.qti.bluetooth@1.0-ibs_handler: DeviceWakeUp: Writing IBS_WAKE_IND
10-01 13:30:39.068 5748 6895 D A2dpStateMachine: handleMessage: X
10-01 13:30:39.068 5748 6895 D A2dpStateMachine: handleMessage: E msg.what=101
10-01 13:30:39.068 5748 6895 D A2dpStateMachine: processMsg: Disconnected
10-01 13:30:39.068 5748 6895 D A2dpStateMachine: Disconnected process message(00:1B:66:8D:8E:D8): STACK_EVENT
10-01 13:30:39.068 5748 6895 D A2dpStateMachine: Disconnected: stack event: A2dpStackEvent {type:EVENT_TYPE_CONNECTION_STATE_CHANGED, device:00:1B:66:8D:8E:D8, value1:DISCONNECTED}
10-01 13:30:39.068 5748 6895 W A2dpStateMachine: Ignore A2DP DISCONNECTED event: 00:1B:66:8D:8E:D8
10-01 13:30:39.068 5748 6895 D A2dpStateMachine: handleMessage: X
10-01 13:30:39.068 919 6802 I vendor.qti.bluetooth@1.0-ibs_handler: ProcessIbsCmd: Received IBS_WAKE_ACK: 0xFC
10-01 13:30:39.069 5748 5748 D AdapterProperties: PROFILE_CONNECTION_STATE_CHANGE: profile=2, device=00:1B:66:8D:8E:D8, 1 -> 0
10-01 13:30:39.069 5927 6250 I LocalBluetoothProfileManager: Failed to connect A2DP device
10-01 13:30:39.070 5927 6250 D CachedBluetoothDevice: onProfileStateChanged: profile A2DP, device=00:1B:66:8D:8E:D8, newProfileState 0
10-01 13:30:39.070 5748 5748 I BluetoothPhonePolicy: processProfileStateChanged, device=00:1B:66:8D:8E:D8, profile=2, 1 -> 0
10-01 13:30:39.071 5748 5748 I BluetoothPhonePolicy: processProfileStateChanged, device=00:1B:66:8D:8E:D8, a2dpDisconnected=true, hsDisconnected=false
10-01 13:30:39.070 6349 6349 I LocalBluetoothProfileManager: Failed to connect A2DP device
10-01 13:30:39.072 6349 6349 D CachedBluetoothDevice: onProfileStateChanged: profile A2DP, device=00:1B:66:8D:8E:D8, newProfileState 0
10-01 13:30:39.096 919 6802 I vendor.qti.bluetooth@1.0-ibs_handler: ProcessIbsCmd: Received IBS_WAKE_IND: 0xFD
10-01 13:30:39.096 919 6802 I vendor.qti.bluetooth@1.0-ibs_handler: ProcessIbsCmd: Writing IBS_WAKE_ACK
10-01 13:30:39.099 5748 6805 I bt_bta_av: bta_av_conn_cback: conn_cback bd_addr: 00:1b:66:8d:8e:d8
10-01 13:30:39.099 5748 6805 I bt_stack: [INFO:connection_handler.cc(296)] void bluetooth::avrcp::ConnectionHandler::AcceptorControlCb(uint8_t, uint8_t, uint16_t, const RawAddress *): handle=0000 result=000000 addr=00:1b:66:8d:8e:d8
10-01 13:30:39.099 5748 6805 I bt_stack: [INFO:connection_handler.cc(346)] void bluetooth::avrcp::ConnectionHandler::AcceptorControlCb(uint8_t, uint8_t, uint16_t, const RawAddress *): Connection Closed Event
10-01 13:30:39.100 5748 6805 I bt_stack: [INFO:device.cc(1270)] 00:1b:66:8d:8e:d8 : Device was disconnected
10-01 13:30:39.100 5748 6805 W bt_btif : bta_av_str_closed: peer 00:1b:66:8d:8e:d8 handle:65 open_status:0 chnl:64 co_started:0
10-01 13:30:39.100 5748 6805 D a2dp_codec: init
10-01 13:30:39.100 5748 6805 D a2dp_codec: createCodec: codec SBC
10-01 13:30:39.100 5748 6805 D a2dp_codec: createCodec: codec AAC
10-01 13:30:39.100 5748 6805 D a2dp_codec: createCodec: codec aptX
10-01 13:30:39.100 5748 6805 D a2dp_codec: createCodec: codec aptX-HD
10-01 13:30:39.100 5748 5904 D NewAvrcpTargetJni: volumeDeviceDisconnected
10-01 13:30:39.100 5748 6805 D a2dp_codec: createCodec: codec LDAC
10-01 13:30:39.100 5748 6805 D a2dp_codec: createCodec: codec SBC SINK
10-01 13:30:39.100 5748 6805 D a2dp_codec: createCodec: codec AAC SINK
10-01 13:30:39.100 5748 6805 I a2dp_codec: init: initialized Source codec LDAC
10-01 13:30:39.100 5748 6805 I a2dp_codec: init: initialized Source codec aptX-HD
10-01 13:30:39.100 5748 6805 I a2dp_codec: init: initialized Source codec aptX
10-01 13:30:39.100 5748 6805 I a2dp_codec: init: initialized Source codec AAC
10-01 13:30:39.100 5748 6805 I a2dp_codec: init: initialized Source codec SBC
10-01 13:30:39.100 5748 6805 I a2dp_codec: init: initialized Sink codec AAC SINK
10-01 13:30:39.100 5748 6805 I a2dp_codec: init: initialized Sink codec SBC(Sink)
10-01 13:30:39.100 5748 6805 W bt_btif : bta_dm_rm_cback:0, status:1
10-01 13:30:39.100 5748 6805 W bt_btif : bta_dm_act no entry for connected service cbs
10-01 13:30:39.100 5748 6805 I bt_bta_av: bta_av_cleanup peer 00:1b:66:8d:8e:d8
10-01 13:30:39.100 5748 6805 D bt_bta_av: SetAvdtpVersion: AVDTP version for 00:1b:66:8d:8e:d8 set to 0x0
10-01 13:30:39.100 5748 6805 D bt_bta_av: SetAvdtpVersion: AVDTP version for 00:00:00:00:00:00 set to 0x0
10-01 13:30:39.100 5748 6805 W bt_btif : bta_av_rc_create: Skipping RC creation for the old AVRCP profile
10-01 13:30:39.100 5748 6805 I bt_btif_a2dp: btif_a2dp_on_stopped: ## ON A2DP STOPPED ## p_av_suspend=0x0
10-01 13:30:39.100 5748 6805 W bt_btif : btif_av_get_peer_sep: No active peer found
10-01 13:30:39.100 5748 6805 I bt_btif_a2dp_source: btif_a2dp_source_on_stopped: state=STATE_OFF
10-01 13:30:39.100 5748 6805 I btif_av : btif_report_connection_state: peer_address=00:1b:66:8d:8e:d8 state=0
10-01 13:30:39.100 5748 6805 W bt_btif : btif_av_get_peer_sep: No active peer found
10-01 13:30:39.100 5748 6805 I bt_btif_a2dp: btif_a2dp_on_idle: ## ON A2DP IDLE ## peer_sep = 1
10-01 13:30:39.100 5748 6805 W bt_btif : btif_av_get_peer_sep: No active peer found
10-01 13:30:39.100 5748 6805 I bt_btif_a2dp_source: btif_a2dp_source_on_idle: state=STATE_OFF
10-01 13:30:39.100 5748 6805 I btif_av : DeleteIdlePeers: Deleting idle peer: 00:1b:66:8d:8e:d8 bta_handle=0x41
10-01 13:30:39.100 5748 5904 D NewAvrcpNativeInterface: deviceDisconnected: device=00:1B:66:8D:8E:D8
10-01 13:30:39.100 5748 5904 I NewAvrcpTargetService: deviceDisconnected: device=00:1B:66:8D:8E:D8
10-01 13:30:39.100 5748 5904 D NewAvrcpVolumeManager: deviceDisconnected: device=00:1B:66:8D:8E:D8
10-01 13:30:39.100 5748 5904 I BluetoothA2dpServiceJni: bta2dp_connection_state_callback
10-01 13:30:39.101 5748 5904 D A2dpNativeInterface: onConnectionStateChanged: A2dpStackEvent {type:EVENT_TYPE_CONNECTION_STATE_CHANGED, device:00:1B:66:8D:8E:D8, value1:DISCONNECTED}
10-01 13:30:39.102 5748 6895 D A2dpStateMachine: handleMessage: E msg.what=101
10-01 13:30:39.102 5748 6895 D A2dpStateMachine: processMsg: Disconnected
10-01 13:30:39.102 5748 6895 D A2dpStateMachine: Disconnected process message(00:1B:66:8D:8E:D8): STACK_EVENT
10-01 13:30:39.103 5748 6895 D A2dpStateMachine: Disconnected: stack event: A2dpStackEvent {type:EVENT_TYPE_CONNECTION_STATE_CHANGED, device:00:1B:66:8D:8E:D8, value1:DISCONNECTED}
10-01 13:30:39.103 5748 6895 W A2dpStateMachine: Ignore A2DP DISCONNECTED event: 00:1B:66:8D:8E:D8
10-01 13:30:39.103 5748 6895 D A2dpStateMachine: handleMessage: X

And it appears to be getting null when obtaining codecs...

10-01 13:31:20.848 6349 6349 D BluetoothA2dp: Proxy object connected
10-01 13:31:20.848 6349 6349 D BluetoothA2dp: getCodecStatus(null)
10-01 13:31:20.850 5748 6879 D A2dpService: getCodecStatus(null)
10-01 13:31:20.851 6349 6349 D BluetoothA2dp: getCodecStatus(null)
10-01 13:31:20.852 5748 6879 D A2dpService: getCodecStatus(null)
10-01 13:31:20.852 6349 6349 D BluetoothA2dp: getCodecStatus(null)
10-01 13:31:20.852 5748 6879 D A2dpService: getCodecStatus(null)
10-01 13:31:20.853 6349 6349 D BluetoothA2dp: getCodecStatus(null)
10-01 13:31:20.853 5748 6879 D A2dpService: getCodecStatus(null)
10-01 13:31:20.853 6349 6349 D BluetoothA2dp: getCodecStatus(null)
10-01 13:31:20.854 5748 6879 D A2dpService: getCodecStatus(null)

EDIT 3: In Developer options, "Disable Bluetooth A2DP Hardware Offload" is set to on and greyed out. Is it normal?