mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-04-24 23:55:52 +03:00
[GH-ISSUE #229] L2CAP Connection Fails on Pixel 7a with Both Xposed and Magisk Methods #105
Labels
No labels
android
bug
documentation
enhancement
good first issue
help wanted
linux
pull-request
reverse-engineering
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librepods#105
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MaizeShark on GitHub (Oct 14, 2025).
Original GitHub issue: https://github.com/kavishdevar/librepods/issues/229
Device Information:
Describe the bug:
The LibrePods app is unable to establish an L2CAP connection to my AirPods Pro 2 on my Pixel 7a, despite trying both the recommended Xposed and Magisk module methods. The symptoms are slightly different depending on the method used.
I do have to say that own AirReps but that shouldn't be the issue here, it works fine on my Ubuntu 24.04 Maschine. And the "Pro 2 V5.2 TB" are also compatible with IOS so...
Steps to Reproduce & Troubleshooting Journey:
Initial State (No Fix):
java.lang.SecurityException: ... has no android.permission.BLUETOOTH_PRIVILEGEDandandroid.bluetooth.BluetoothSocketException.Method 1: Xposed Hook (Recommended):
BLUETOOTH_PRIVILEGEDsecurity exception is gone.I AirPodsHook: l2c_fcr_chk_chan_modes hooked, returning true.No PSM availableorBLUETOOTH_PRIVILEGEDerror in the logs. This indicates the initial check is bypassed, but a deeper part of the stack is dropping the connection.Method 2:
btl2capfixMagisk Module:btl2capfix(from you comment) Magisk module instead.BLUETOOTH_PRIVILEGEDerror is also resolved with this method. However, the connection now fails immediately with the errorandroid.bluetooth.BluetoothSocketException: No PSM available.SELinux:
Permissive(setenforce 0), and it did not solve the issue in either case.latest_log.txt
Thank you for your work on this project! Please let me know if there is any further information I can provide.
@kavishdevar commented on GitHub (Oct 15, 2025):
what is your setup when you collected the logs?
@MaizeShark commented on GitHub (Oct 15, 2025):
the log is with the btl2capfix Magisk module (https://github.com/kavishdevar/librepods/issues/67#issuecomment-2842353549) if that is what you ment
@kavishdevar commented on GitHub (Oct 19, 2025):
I am not really sure what's going on, but I can see neither of the two:
L2CAP Registered service classic PSM: 0x1001(0x1001 is the PSM that is used for controlling AirPods).So, I doubt if my app is active and trying to connect. I doubt that your AirPods being fake matters, because I can't even see logs like
Received Bluetooth connection broadcast. Could you try a clean install of the app, without the A16 module, and skip the onboarding (setting up hooks part). And, run the log collection?@shailantani commented on GitHub (Oct 19, 2025):
I had a similar crash as well, this is the log I collected from your app:
_data_user_0_me.kavishdevar.librepods_files_logs_airpods_log_20251019_202438.txt
Could you check it out once? Im using airpods 4 on pixel 7a (A16)
Also, I do get an error that the app isnt 16KB compatible. this is the screenshot:
Also I did get a notification with error that said, failed to establish connection: read failed, socket might closed or timeout, read ret: -1
Please let me know if you need any other logs! Thanks a lot for the hardwork!
@kavishdevar
@kavishdevar commented on GitHub (Oct 19, 2025):
@shailantani you don't have the xposed hook active? There are no logs from the xposed module.
@kavishdevar commented on GitHub (Oct 19, 2025):
And, that 16KB alignment: i'll fix it. thanks for pointing it out! I don't run A16, and had dismissed the warning on Android Studio a long time ago.
@shailantani commented on GitHub (Oct 19, 2025):
I do have it enabled:
I can send logs from lsposed if that helps?
@shailantani commented on GitHub (Oct 19, 2025):
haha no worries atall! :)
@shailantani commented on GitHub (Oct 19, 2025):
sorry, for the spam, i just opened the app and it randomly connected haha! I'll try to work out what I did. And let you know if I face a similar bug again :))
@kavishdevar commented on GitHub (Oct 19, 2025):
It's alright! You probably restarted your Bluetooth :) Anyway, enjoy!
@mint1246 commented on GitHub (Nov 18, 2025):
I have this issue too, no PSM available, also 5.2 TB reps.
_data_user_0_me.kavishdevar.librepods_files_logs_airpods_log_20251118_182702.txt
@Xpl0itU commented on GitHub (Nov 18, 2025):
_data_user_0_me.kavishdevar.librepods_files_logs_airpods_log_20251118_182702.txt
Same here, 5.4 Huilian reps, on LSPosed, it consistently complains about "MAC address must be 6 bytes"
@kavishdevar commented on GitHub (Nov 18, 2025):
@Xpl0itU please try https://github.com/kavishdevar/librepods/actions/runs/19412004970
@Xpl0itU commented on GitHub (Nov 18, 2025):
Same notification, but app sometimes crashes when connecting to the airpods
LSPosed_2025-11-18T20_14_08.059414.zip
(Same error, just scrolling horizontally)
@Xpl0itU commented on GitHub (Nov 19, 2025):
Using LineageOS 23.0-20251114-NIGHTLY-lynx on a Pixel 7a btw, not stock OS
@ImAleeexx commented on GitHub (Dec 19, 2025):
Are there any news on this issue, im facing the same using my airreps. Error when connecting and showing L2CAP connection errors