Closed PeterKnecht93 closed 1 month ago
Logs?
We may need to update our Bluetooth HAL and A2DP stuff again:
F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
F DEBUG : Build fingerprint: 'samsung/r11sxeea/r11s:14/UP1A.231005.007/S711BXXS5DXI3:user/release-keys'
F DEBUG : Revision: '7'
F DEBUG : ABI: 'arm64'
F DEBUG : Processor: '1'
F DEBUG : Timestamp: 2024-10-25 13:44:20.316141678+0200
F DEBUG : Process uptime: 0s
F DEBUG : Cmdline: com.android.bluetooth
F DEBUG : pid: 19670, tid: 19919, name: bt_a2dp_source_ >>> com.android.bluetooth <<<
F DEBUG : uid: 1002
F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
F DEBUG : Abort message: '[FATAL:btif_a2dp_audio_interface.cc(291)] Check failed: btAudio != nullptr.
F DEBUG : #00 0x00000079578a1f57 /system/lib64/libbluetooth_jni.so+0x0000000000c6ff57
F DEBUG : #01 0x000000795720d8fb /system/lib64/libbluetooth_jni.so+0x00000000005db8fb
F DEBUG : #02 0x0000007957210ec7 /system/lib64/libbluetooth_jni.so+0x00000000005deec7
F DEBUG : #03 0x000000795721793f /system/lib64/libbluetooth_jni.so+0x00000000005e593f
F DEBUG : #04 0x00000079578aa573 /system/lib64/libbluetooth_jni.so+0x0000000000c78573
F DEBUG : #05 0x00000079578a9873 /system/lib64/libbluetooth_jni.so+0x0000000000c77873
F DEBUG : #06 0x00000079578a9c37 /system/lib64/libbluetooth_jni.so+0x0000000000c77c37
F DEBUG : #07 0x00000079578aca47 /system/lib64/libbluetooth_jni.so+0x0000000000c7aa47
F DEBUG : #08 0x00000079578d3893 /system/lib64/libbluetooth_jni.so+0x0000000000ca1893
F DEBUG : #09 0x00000079573b8edb /system/lib64/libbluetooth_jni.so+0x0000000000786edb
F DEBUG : #10 0x00000079573b89f3 /system/lib64/libbluetooth_jni.so+0x00000000007869f3
F DEBUG : #11 0x00000079573b946b /system/lib64/libbluetooth_jni.so+0x000000000078746b
F DEBUG : #12 0x0000007cc96e3a6b /apex/com.android.runtime/lib64/bionic/libc.so+0x00000000000bea6b
F DEBUG : #13 0x0000007cc96803f3 /apex/com.android.runtime/lib64/bionic/libc.so+0x000000000005b3f3'
F DEBUG : x0 0000000000000000 x1 0000000000004dcf x2 0000000000000006 x3 00000079b8b3ade0
F DEBUG : x4 646260657164736d x5 646260657164736d x6 646260657164736d x7 7f7f7f7f7f7f7f7f
F DEBUG : x8 00000000000000f0 x9 0000007cc96471e8 x10 0000000000000001 x11 0000007cc968d388
F DEBUG : x12 00000079b8b3ae58 x13 00000079b8b3ae4e x14 0000007956e5ab57 x15 0000000000000054
F DEBUG : x16 0000007cc96f1d08 x17 0000007cc96cf250 x18 000000794f144068 x19 0000000000004cd6
F DEBUG : x20 0000000000004dcf x21 00000000ffffffff x22 00000079b8b3b3d0 x23 0000007cc96f3f58
F DEBUG : x24 000000795796e000 x25 00000079b8b3aec9 x26 00000079b8b3c000 x27 00000000000fc000
F DEBUG : x28 00000000000fe000 x29 00000079b8b3ae60
F DEBUG : lr 0000007cc967eb8c sp 00000079b8b3adc0 pc 0000007cc967ebb8 pst 0000000000000000
F DEBUG : 16 total frames
F DEBUG : backtrace:
F DEBUG : #00 pc 0000000000059bb8 /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: 49cb7a80ae15469833252934b0d99e6c)
F DEBUG : #01 pc 0000000000c70bb4 /system/lib64/libbluetooth_jni.so (base::debug::BreakDebugger()+48) (BuildId: 27f2339f2b17db03a7a5764f13f017a6)
F DEBUG : #02 pc 0000000000c70264 /system/lib64/libbluetooth_jni.so (logging::LogMessage::~LogMessage()+1008) (BuildId: 27f2339f2b17db03a7a5764f13f017a6)
F DEBUG : #03 pc 00000000005db8f8 /system/lib64/libbluetooth_jni.so (btif_a2dp_audio_interface_start_session()+508) (BuildId: 27f2339f2b17db03a7a5764f13f017a6)
F DEBUG : #04 pc 00000000005deec4 /system/lib64/libbluetooth_jni.so (btif_a2dp_source_start_session_delayed(RawAddress const&, std::__1::promise<void>)+664) (BuildId: 27f2339f2b17db03a7a5764f13f017a6)
F DEBUG : #05 pc 00000000005e593c /system/lib64/libbluetooth_jni.so (base::internal::Invoker<base::internal::BindState<void (*)(RawAddress const&, std::__1::promise<void>), RawAddress, std::__1::promise<void> >, void ()>::RunOnce(base::internal::BindStateBase*)+60) (BuildId: 27f2339f2b17db03a7a5764f13f017a6)
F DEBUG : #06 pc 0000000000c78570 /system/lib64/libbluetooth_jni.so (base::debug::TaskAnnotator::RunTask(char const*, base::PendingTask*)+196) (BuildId: 27f2339f2b17db03a7a5764f13f017a6)
F DEBUG : #07 pc 0000000000c77870 /system/lib64/libbluetooth_jni.so (base::MessageLoop::RunTask(base::PendingTask*)+352) (BuildId: 27f2339f2b17db03a7a5764f13f017a6)
F DEBUG : #08 pc 0000000000c77c34 /system/lib64/libbluetooth_jni.so (base::MessageLoop::DoWork()+452) (BuildId: 27f2339f2b17db03a7a5764f13f017a6)
F DEBUG : #09 pc 0000000000c7aa44 /system/lib64/libbluetooth_jni.so (base::MessagePumpDefault::Run(base::MessagePump::Delegate*)+100) (BuildId: 27f2339f2b17db03a7a5764f13f017a6)
F DEBUG : #10 pc 0000000000ca1890 /system/lib64/libbluetooth_jni.so (base::RunLoop::Run()+64) (BuildId: 27f2339f2b17db03a7a5764f13f017a6)
F DEBUG : #11 pc 0000000000786ed8 /system/lib64/libbluetooth_jni.so (bluetooth::common::MessageLoopThread::Run(std::__1::promise<void>)+328) (BuildId: 27f2339f2b17db03a7a5764f13f017a6)
F DEBUG : #12 pc 00000000007869f0 /system/lib64/libbluetooth_jni.so (bluetooth::common::MessageLoopThread::RunThread(bluetooth::common::MessageLoopThread*, std::__1::promise<void>)+48) (BuildId: 27f2339f2b17db03a7a5764f13f017a6)
F DEBUG : #13 pc 0000000000787468 /system/lib64/libbluetooth_jni.so (void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(bluetooth::common::MessageLoopThread*, std::__1::promise<void>), bluetooth::common::MessageLoopThread*, std::__1::promise<void> > >(void*)+84) (BuildId: 27f2339f2b17db03a7a5764f13f017a6)
F DEBUG : #14 pc 00000000000bea68 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: 49cb7a80ae15469833252934b0d99e6c)
F DEBUG : #15 pc 000000000005b3f0 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 49cb7a80ae15469833252934b0d99e6c)
Bluetooth is pretty much dying all the time after enabling it. bt.log
Fixed by porting A2DP from the S23 FE's vendor.
The device can find and remember connections, but it immediately disconnects.