mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-04-25 08:05:56 +03:00
[GH-ISSUE #67] Module fails to install on Android 16 (different appid, because Google.) #30
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#30
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 @JCionx on GitHub (Feb 22, 2025).
Original GitHub issue: https://github.com/kavishdevar/librepods/issues/67
I'm running the latest Android 16 beta version and when attempting to install the module on Magisk, I get this log:
@kavishdevar commented on GitHub (Feb 22, 2025):
Weird! Could you send me the output of
lsof | grep libbluetoothwith Bluetooth turned on? Run this as root.@JCionx commented on GitHub (Feb 22, 2025):
Ran the command after running
suin ADB. I'm not sure if that's how I run as root.This is the output:
@kavishdevar commented on GitHub (Feb 22, 2025):
ah, i see. it's under
com.android.btinstead ofcom.android.btservies... gonna fix it soon and share it with you for testing.that's the correct way to run as root :)
@kavishdevar commented on GitHub (Feb 22, 2025):
meanwhile, could you try running
in case you're wondering: this tests for overlayfs (this is important to patch libs located under
/apex.lmk if it throws an error or doesn't print anything and just exits.
@JCionx commented on GitHub (Feb 22, 2025):
Just ran it under root and got no output. If I run
echo $?to print the return code of the last ran thing, I get 0, which usually means success.@kavishdevar commented on GitHub (Feb 22, 2025):
yup! overlayfs's supported - great! here's something you can test
btl2capfix.zip
@JCionx commented on GitHub (Feb 22, 2025):
I think I got the same log:
@JCionx commented on GitHub (Feb 22, 2025):
Btw, I installed the Magical Overlayfs module with the read/write mode, but had the same log when I didn't have it installed.
@kavishdevar commented on GitHub (Feb 22, 2025):
ugh, shared the wrong zip - sorry! the updated one should be there in the nightly release shortly!
@JCionx commented on GitHub (Feb 22, 2025):
Just tried that out and got a different error
@kavishdevar commented on GitHub (Feb 23, 2025):
huh, disabled that overlayfs check for now. here:
btl2capfix.zip
@JCionx commented on GitHub (Feb 23, 2025):
It installed successfully, but the AirPods keep disconnecting. The app shows the AirPods sometimes, with 0% battery and none of the controls work.l:

This is the installation log if you need it:
@kavishdevar commented on GitHub (Feb 23, 2025):
which phone are you using?
@JCionx commented on GitHub (Feb 23, 2025):
It's a Pixel 7a
@kavishdevar commented on GitHub (Feb 23, 2025):
ah, pixel... don't know why, but every (except one or two) pixel user reports the same problem. I could try and build the library from source (when I have time), but I still can't not guarantee it'll work for you.
@JCionx commented on GitHub (Feb 23, 2025):
Thanks for all the support! I'll be happy to test it.
@kavishdevar commented on GitHub (Mar 20, 2025):
Hi, got some time to set up the a16 sources. here is the module. also, this time i'm not including any overlays for apex. it turned out that android uses the lib in
/system/lib64/(if present) over the one in/apex/com.android.bt(services)/lib64. you may install this without uninstalling the old one. After rebooting, verify if the new lib is being used bylsof | grep libbluetooth_jni.so. It should show/system/lib64/libbluetooth_jni.soinstead of/apex. The library should work now because I've built it from source and not patched. lmk how it goes :)btl2capfix-a16-main.zip
@JCionx commented on GitHub (Mar 22, 2025):
The latest automatic beta update removed root from my device, so I'll root it again and try out what you sent.
@JCionx commented on GitHub (Mar 22, 2025):
I just rooted my device again, and installed the provided module and rebooted. After entering a root shell (adb shell, su), I ran the command, and I got no output. I still tried to install the app and go on, but when I tried to connect my AirPods, I realized that I couldn't turn on Bluetooth anymore. After disabling the module and restarting, Bluetooth was working again.
@kavishdevar commented on GitHub (Mar 23, 2025):
I had built from the
mainbranch, which apparently has something different from the beta 3.1. And, I can't find a way to build specifically A16 betas like I can build certain QPRs or revisions of stable releases. I guess you'd have to wait for an xposed module, or I/O '25 when google releases A16 - sorry!@JCionx commented on GitHub (Mar 23, 2025):
Understandable. They keep changing things in these automatic beta updates that it gets hard to keep track of changes. Waiting for the official release is the best move here anyway.
@kavishdevar commented on GitHub (Mar 23, 2025):
i made an xposed module. but someone on telegram reported that it doesn't work (a16). so... ¯\_(ツ)_/¯
@kavishdevar commented on GitHub (Mar 27, 2025):
hey! might have a possible fix - i wrote a small xposed module that hooks onto the library instead of forcing the system to use a patched one.
delete the root module, install/update the app from the latest nightly, give it root permissions, open the app and follow the instructions on screen, and then enable the xposed module and then turn off bluetooth and turn it on again.
you might have to clear the app data if it doesn't prompt you for additional setup. now, the logs which i'd need would be
adb logcat -s AirPodsHook -s RadareOffsetFinder. run this before you open the app. and, thenadb logcat --pid=$(adb shell pidof me.kavishdevar.aln)or justlogcat --pid=$(pidof me.kavishdevar.aln)if you're running from termux/local shell.@kavishdevar commented on GitHub (Apr 24, 2025):
@JCionx see #61. I think that was the main problem, here. Try this module that I shared earlier with the latest nightly.
@JCionx commented on GitHub (Apr 26, 2025):
I'd be happy to help with testing, but I'm done with Google pushing mandatory beta updates to the Android 16 beta. Those updates install automatically and cannot be disabled, and they always wipe root from my device. I might be able to help with testing once we get the stable release of Android 16.
@kavishdevar commented on GitHub (Apr 30, 2025):
Two users reported this working. Apparently Google changed the app id of the Bluetooth app from
com.android.bluetoothtocom.google.android.bluetooth. Should work now 🤞