Your AirPods are connected via Bluetooth, but LibrePods couldn't connect to AirPods using L2CAP
Seems my Airpods 4 w/ANC wont connect. I'm guessing its because something weird is happening with the Xposed module on my Sony Xperia but definitely not my expertise.
Full error message: Your AirPods are connected via Bluetooth, but LibrePods couldn't connect to AirPods using L2CAP. Error: Failed to establish connection: read failed, socket might closed or timeout, read ret: -1
Phone: Sony Xperia 1 IV Airpods: 4 ANC Logs: airpods_log_1754442367279.txt
Tried setting back up, reinstalling, re-pairing, and restarting my phone. Any ideas? :)
It might be because your phone uses a proprietary bluetooth library or the hook not working properly (either onboarding didn't work, or the bluetooth process wasnt restarted), try installing the root module. If this shows an error, or doesn't work, unfortunately there's no workaround that I know of.
Yeah, it tells me QTI bluetooth libraries aren't supported. Darn. Install_2025-08-06T03_05_54.323464.log
Although with quick research so correct me if i'm wrong it looks open source? so is it possible to make compatible?
Even if it's open source, it uses some older version of the AOSP stack. And, for older versions, the simple "bypass" that I use for a check doesn't seem to work. Well, that's my guess at least based on the reports on older android versions and qti libraries. I have looked through the older versions and haven't been able to point the exact cause.
wait this happens to me too on pixel 8 pro, the first and second method do not work
edit: this comment (with the custom magisk module) worked for me! https://github.com/kavishdevar/librepods/issues/67#issuecomment-2827073784
hrmm still doesn't work for me, same error(s)
wait this happens to me too on pixel 8 pro, the first and second method do not work
Do you have any root hiding modules installed, or "Unmount all modules" enabled? If so, disable unmount modules for com,(. google).android.bluetooth and/or give root permissions to it as well, this would probably make xposed work.
edit: this comment (with the custom magisk module) worked for me! #67 (comment)
I believe you're on Android 16?
No i am on A15
It might be because your phone uses a proprietary bluetooth library or the hook not working properly (either onboarding didn't work, or the bluetooth process wasnt restarted), try installing the root module. If this shows an error, or doesn't work, unfortunately there's no workaround that I know of.
I’m experiencing the same issue.
Tested on:
Pixel 4a
Android 13 (Stock)
Android 15 (LineageOS 22)
Error:
Failed to establish connection: A Bluetooth Socket failure occurred
Tried solutions:
Used the Xposed/LSPosed method → same error.
Flashed the root module btl2capfix.zip via Magisk (Method 2) → rebooted and re-paired the AirPods → issue still persists.
So far, neither method fixes the L2CAP connection problem on my setup.
@ltstereo do you have any root hiding modules installed?
@ltstereo do you have any root hiding modules installed?
Yes, I have ReZygisk, Play Integrity Fix, TrickyStore, and also NoHello installed.
Edit: I tested again after disabling all root hiding and extra Zygisk modules (ReZygisk, Play Integrity Fix, NoHello, Tricky Store,). Only the btl2capfix.zip root module was left enabled.
The issue still persists.
Edit2:
Device: Pixel 4a (sunfish)
OS: Android 15 (LineageOS 22)
Output of su -c lsof | grep libbluetooth: /system/lib64/libbluetooth_jni.so
When I go to Troubleshooting in the LibrePods app, I only see a loading spinner that never ends. No logs are displayed.
Here are some logs for the error
Sometimes on my pixel 8pro Bluetooth crashes constantly and refuses to connect. Hopefully these logs are usefull
seems not to be the same, but maybe related...
where can i find this btl2capfix.zip file?
where can i find this btl2capfix.zip file?
https://github.com/user-attachments/files/18931021/btl2capfix.zip
@MahfuzReh, where did you get this? It's not the module.
I get the same error message with the module in https://github.com/kavishdevar/librepods/issues/67#issuecomment-2842353549 (installed with Magisk). Bluetooth works and the airpods can connect. I have tried both the stable and nightly releases.
I have no other modules loaded (hosts aka Systemless Hosts is disabled):
➜ adb shell su -c 'ls /data/adb/modules'
btl2capfix
hosts
Phone: Pixel 6 OS: GrapheneOS (Android 16) Device: Airpods 2 Pro Troubleshooting log: airpods_log_1758722998187.txt
➜ adb shell su -c 'lsof | grep libbluetooth'
binder:890_2 890 audioserve mem REG 254,8 106040 2334 /vendor/lib64/libbluetooth_audio_session.so
binder:890_2 890 audioserve mem REG 254,8 413184 2335 /vendor/lib64/libbluetooth_audio_session_aidl.so
droid.bluetooth 15582 bluetooth mem REG 7,320 14194696 43 /apex/com.android.bt/lib64/libbluetooth_jni.so
where can i find this btl2capfix.zip file?
https://github.com/user-attachments/files/18931021/btl2capfix.zip
@MahfuzReh, where did you get this? It's not the module.
the original zip link was not working, so searched on google