mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-04-24 23:55:52 +03:00
[GH-ISSUE #215] android: wrong path for su and can't get MAC #97
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#97
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 @NL-TCH on GitHub (Sep 30, 2025).
Original GitHub issue: https://github.com/kavishdevar/librepods/issues/215
Hi @kavishdevar thanks for the continuous development! But after installing the apk for the latest release and after clearing cache and storage the app immediately crashes.
@NL-TCH commented on GitHub (Sep 30, 2025):
Pixel 8 Pro
Android 16
@FrenchToucan commented on GitHub (Oct 1, 2025):
Same. Android 16 QPR 1 on a Pixel 10.
@NL-TCH commented on GitHub (Oct 1, 2025):
also happens when building and installing #202
@NL-TCH commented on GitHub (Oct 1, 2025):
crashlog of logcat:
@farinrav commented on GitHub (Oct 1, 2025):
Same on pixel 8 pro, android 16 qpr1, magisk a344ebf2-alpha (30100), lsposed 1.10.2 (7189).
@kavishdevar commented on GitHub (Oct 1, 2025):
I had a feeling this might happen. Could y'all please open termux/shell and run
which su? After giving root access to termux/shell of course.Sorry for the inconvenience!
@farinrav commented on GitHub (Oct 1, 2025):
@kavishdevar commented on GitHub (Oct 1, 2025):
@farinrav what about
su shell -c which su? (Run after giving com.android.shell root) Seems like termux got its own binary, not magisk’s.@farinrav commented on GitHub (Oct 1, 2025):
Termix not accepting argument for some reason but I got "/system_ext/bin/su" using local wireless debugging
@farinrav commented on GitHub (Oct 1, 2025):
Here it is

@kavishdevar commented on GitHub (Oct 1, 2025):
thanks, @farinrav. reverting to just calling
sufor now. I will figure out another way to detect the binary later. GitHub's security bot had a warning to not use relative paths, so I switched to/system/bin/subecause that's where it is in KernelSU.Anyway, updated the latest release with the fix. Please download again.
@farinrav commented on GitHub (Oct 1, 2025):
Now app loads successfully but crashes a second later if airpods are connected and sometimes disconnects my airpods on crash.
Lsposed module enabled for com.google.android.bluetooth and com.android.settings
Tried clean reinstall and reboot.
https://github.com/user-attachments/assets/f9b0c314-320d-4329-9e06-d89a72a79f94
@kavishdevar commented on GitHub (Oct 1, 2025):
Weird, could you please use
logcat -b crash(run as root if termux, or just shell)@farinrav commented on GitHub (Oct 1, 2025):
Running "logcat -b crash" in termux gave no output even after crashing librepods multiple times. So here's logcat from app "Logcat Reader" filtered by Package name: 'me.kavishdevar.librepods' after opening librepods with airpods connected
I have Airpods Pro 2 (type-c) btw
[removed log for privacy]
@farinrav commented on GitHub (Oct 1, 2025):
Here's errors from com.google.android.bluetooth after opening librepods. Idk if u need it
@NL-TCH commented on GitHub (Oct 1, 2025):
it does work for me now without any crashes.
@farinrav make sure librepods has root access as there is an error in your log stating
Neither user 10044 nor current process has android.permission.BLUETOOTH_PRIVILEGED.or install the rootmodule in magisk called
btl2capfix.zip@kavishdevar commented on GitHub (Oct 1, 2025):
@farinrav could you please give root access, it needs it to get the MAC address of your phone for the mutli-device features. Google thinks it’s not okay for apps to get the MAC of your phone, so the app gets it by using root (better solutions do exist, though). I'll remove the requirement soon.
@NL-TCH commented on GitHub (Oct 1, 2025):
in a few days the google bugtracker "celebrates" its first birthday 👎🏼
@farinrav commented on GitHub (Oct 1, 2025):
Librepods already has root granted in magisk. I also set magisk to automatically grand root access to all apps.
If I'm trying to install btl2capfix.zip I get this error.
I tried disabling Bluetooth and resetting hook though librepods settings but after reconnecting airpods, app starts crashing again... 😭
Librepods v0.1.0-rc.4 was working good using first installation method.
I have no idea what might be the problem....
@NL-TCH commented on GitHub (Oct 1, 2025):
@farinrav good catch i get the same error, i already have a working fix, please create a new issue for this so i can create the PR.
(i will close this issue then)
@kavishdevar commented on GitHub (Oct 1, 2025):
@farinrav you don't need that module if you had it working with xposed before.
fixed your crash here https://github.com/kavishdevar/librepods/actions/runs/18163661981
lemme know if it works now!
@farinrav commented on GitHub (Oct 1, 2025):
Just tried this version.
When I connect my airpods and open librepods either it crashes or my phone just freezes for 10 seconds and then librepods crashes, it's 50/50 😭😭😭
https://github.com/user-attachments/assets/400d7955-b235-480c-bc38-e1d8565a32bf
@kavishdevar commented on GitHub (Oct 1, 2025):
@farinrav oops, did the fix in a hurry last time, had to change a few similar issues at other places too. please give this a try.
https://github.com/kavishdevar/librepods/actions/runs/18165693852
@farinrav commented on GitHub (Oct 1, 2025):
It's workiiiing now les gooooo 🎉🎉🎉
Thank you sooo much ♥️.
I really got used to checking my airpods battery and switching anc modes from my phone)))
God level devs frfr
@kavishdevar commented on GitHub (Oct 1, 2025):
yay!
thanks! though, it's just me, a high school student here :D
could you nevertheless share the logs when you connect? the airpods multidevice features will not work because the app wasn't able to get the MAC address of your phone (the app needs it to introduce the phone to other apple device, kinda)
@farinrav commented on GitHub (Oct 1, 2025):
Connected airpods and then opened librepods
[removed log for privacy]
@farinrav commented on GitHub (Oct 1, 2025):
Here's another log cuz I think I fucked up the first one by cleaning logcat 😂
[removed log for privacy]
@kavishdevar commented on GitHub (Oct 1, 2025):
@farinrav #220, please.