librepods-org / librepods-org/librepods

Unknown Error[3a] name: sec_state:BTM_SEC_STATE_GETTING_NAME

Open
#270 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
29.9k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

I am running android 13 stock of Pixel 4 XL with magisk and lsposed. I tried the old verison with magisk module and now i am using the new apk with the old magisk module.

I use Airpods pro and when i connect them i get that "Your AirPods are connected via Bluetooth, but LibrePods Couldn't connect to AirPods using L2CAP. Error: Failed to establish the connection : read failed, socket might closed or tiemout, read ret: -1".

I have viperfx installed and thought that could be a problem, but i installed audio modification library (didn't help)
Also i have Play integrity next inject, tricky store, ACC, module for my custom kernel (AK3 Helper module), module to enable soli radar for pixels and zygisk - lsposed

I looked trough the logs and what i noticed is that sec_state error:
`=============
11-19 00:27:59.098 9651 10383 D AirPodsService: LogCollector:Start Connecting to socket

11-19 00:27:59.161 16038 16728 I BluetoothAdapterService: getActiveDevices: A2dp device: null
11-19 00:27:59.165 16038 16728 I BluetoothAdapterService: getActiveDevices: Headset device: 54:2F:04:A0:7D:14
11-19 00:27:59.166 16038 16728 D HearingAidService: getActiveDevices
11-19 00:27:59.166 16038 16728 I BluetoothAdapterService: getActiveDevices: Hearing Aid devices: Left[null] - Right[null]
11-19 00:27:59.167 16038 16164 I bluetooth: packages/modules/Bluetooth/system/main/shim/acl.cc:525 OnReadClockOffsetComplete: UNIMPLEMENTED
11-19 00:27:59.175 9651 10383 W devar.librepods: Unsupported class loader: java.lang.Class<org.lsposed.hiddenapibypass.CoreOjClassLoader>
11-19 00:27:59.230 16038 16290 W bta_ag_at: packages/modules/Bluetooth/system/bta/ag/bta_ag_at.cc:162 bta_ag_process_at: Unmatched command index 28
11-19 00:27:59.234 9651 10383 W devar.librepods: Unsupported class loader: java.lang.Class<org.lsposed.hiddenapibypass.CoreOjClassLoader>
11-19 00:27:59.239 9651 10383 D AirPodsService: BluetoothSocket has 4 constructors:
11-19 00:27:59.241 16038 16057 V BluetoothDatabase: setCustomMeta: metadata not changed.
11-19 00:27:59.249 16038 16057 V BluetoothDatabase: setCustomMeta: metadata not changed.
11-19 00:27:59.251 9651 10383 D AirPodsService: Constructor 0: (int, int, boolean, boolean, BluetoothDevice, int, ParcelUuid)
11-19 00:27:59.251 9651 10383 D AirPodsService: Constructor 1: (int, int, boolean, boolean, BluetoothDevice, int, ParcelUuid, boolean, boolean)
11-19 00:27:59.252 9651 10383 D AirPodsService: Constructor 2: (int, int, boolean, boolean, String, int)
11-19 00:27:59.252 9651 10383 D AirPodsService: Constructor 3: (BluetoothSocket)
11-19 00:27:59.252 9651 10383 D AirPodsService: Trying constructor signature #1
11-19 00:27:59.252 9651 10383 E AirPodsService: Constructor signature #1 failed: Cannot find matching constructor
11-19 00:27:59.252 9651 10383 D AirPodsService: Trying constructor signature #2
11-19 00:27:59.252 9651 10383 E AirPodsService: Constructor signature #2 failed: Cannot find matching constructor
11-19 00:27:59.252 9651 10383 D AirPodsService: Trying constructor signature #3
11-19 00:27:59.254 16038 16164 I bluetooth: packages/modules/Bluetooth/system/gd/hci/hci_layer.cc:113 drop: Dropping event MAX_SLOTS_CHANGE
11-19 00:27:59.255 16038 16728 V BluetoothDatabase: setCustomMeta: metadata not changed.
11-19 00:27:59.258 16038 16728 V BluetoothDatabase: setCustomMeta: metadata not changed.
11-19 00:27:59.260 16038 16057 V BluetoothDatabase: setCustomMeta: metadata not changed.
11-19 00:27:59.264 16038 16057 V BluetoothDatabase: setCustomMeta: metadata not changed.
11-19 00:27:59.266 16038 16057 V BluetoothDatabase: setCustomMeta: metadata not changed.
11-19 00:27:59.267 16038 16057 V BluetoothDatabase: setCustomMeta: metadata not changed.
11-19 00:27:59.268 16038 16728 V BluetoothDatabase: setCustomMeta: metadata not changed.
11-19 00:27:59.269 16038 16420 V BluetoothDatabase: setCustomMeta: metadata not changed.
11-19 00:27:59.270 16038 16420 V BluetoothDatabase: setCustomMeta: metadata not changed.
11-19 00:27:59.271 9651 9651 D AirPodsService: Metadata set: true
11-19 00:27:59.279 16038 16164 E bluetooth: packages/modules/Bluetooth/system/gd/hci/hci_layer.cc:156 on_command_status: Received UNEXPECTED command status:CONTROLLER_BUSY opcode:0x419 (REMOTE_NAME_REQUEST)
11-19 00:27:59.279 16038 16290 W bt_btm_sec: packages/modules/Bluetooth/system/stack/btm/btm_sec.cc:2239 btm_sec_rmt_name_request_complete: Remote read request complete with no underlying link connection
11-19 00:27:59.279 16038 16290 I bt_btm_sec: packages/modules/Bluetooth/system/stack/btm/btm_sec.cc:2250 btm_sec_rmt_name_request_complete: Remote read request complete with no address so searching device database
11-19 00:27:59.279 16038 16290 W bt_btm_sec: packages/modules/Bluetooth/system/stack/btm/btm_sec.cc:2281 btm_sec_rmt_name_request_complete: Remote read request failed for known device pairing_state:IDLE status:Unknown Error[3a] name: sec_state:BTM_SEC_STATE_GETTING_NAME
11-19 00:27:59.294 16038 16057 I bluetooth: packages/modules/Bluetooth/system/btif/src/btif_sock_l2cap.cc:321 btsock_l2cap_alloc_l: Allocated l2cap socket structure socket_id:4
11-19 00:27:59.294 16038 16290 I bt_l2cap: packages/modules/Bluetooth/system/stack/l2cap/l2c_api.cc:139 L2CA_Register: L2CAP Registered service classic PSM: 0x1001
11-19 00:27:59.295 16038 16164 E bluetooth: packages/modules/Bluetooth/system/gd/hci/hci_layer.cc:156 on_command_status: Received UNEXPECTED command status:CONTROLLER_BUSY opcode:0x419 (REMOTE_NAME_REQUEST)
11-19 00:27:59.296 16038 16290 W bt_btm_sec: packages/modules/Bluetooth/system/stack/btm/btm_sec.cc:2239 btm_sec_rmt_name_request_complete: Remote read request complete with no underlying link connection
11-19 00:27:59.296 16038 16290 I bt_btm_sec: packages/modules/Bluetooth/system/stack/btm/btm_sec.cc:2250 btm_sec_rmt_name_request_complete: Remote read request complete with no address so searching device database
11-19 00:27:59.296 16038 16290 W bt_btm_sec: packages/modules/Bluetooth/system/stack/btm/btm_sec.cc:2281 btm_sec_rmt_name_request_complete: Remote read request failed for known device pairing_state:IDLE status:Unknown Error[3a] name: sec_state:BTM_SEC_STATE_GETTING_NAME
11-19 00:27:59.296 16038 16290 I bluetooth: packages/modules/Bluetooth/system/btif/src/btif_sock_l2cap.cc:230 btsock_l2cap_free_l: Application has already closed l2cap socket socket_id:4

=============
11-19 00:27:59.296 9651 10383 D AirPodsService: LogCollector:Complete:Failed Socket not connected

`

The only thing that comes into my mind is that if the issue could be caused by the fact that my airpods show up with russian characters. I connected to a friend of mine so they got the name from him but i didn't bother to change it. Hope it helps and thanks!

airpods_log_20251119_002752.txt

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin with the attached log and the AirPodsService messages around BluetoothSocket constructor selection, L2CAP socket creation, and the Android Bluetooth stack entries in btif_sock_l2cap.cc and btm_sec.cc. Reproduce on the stated Pixel 4 XL and Android 13 setup, then define a specific reproducible connection failure and expected fix; the report does not currently provide a code-level done condition.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
audio-video-rtc, mobile-dev
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.