You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **You must have a rooted device to use LibrePods on Android.** This is due to a [bug in the Android Bluetooth stack](https://issuetracker.google.com/issues/371713238). Please upvote the issue by clicking the '+1' icon on the IssueTracker page.
81
+
> **You must have a rooted device with Xposed to use LibrePods on Android.** This is due to a [bug in the Android Bluetooth stack](https://issuetracker.google.com/issues/371713238). Please upvote the issue by clicking the '+1' icon on the IssueTracker page.
82
82
>
83
83
> There are **no exceptions** to the root requirement until Google merges the fix.
84
84
85
+
Until then, you must xposed. I used to provide a non-xposed method too, where the module used overlayfs to replace the bluetooth library with a locally patched one, but that was broken due to how various devices handled overlayfs and a patched library. With xposed, you can also enable the DID hook enabling a few extra features.
86
+
85
87
## Bluetooth DID (Device Identification) Hook
86
88
87
89
Turns out, if you change the manufacturerid to that of Apple, you get access to several special features!
@@ -94,48 +96,13 @@ Upto two devices can be simultaneously connected to AirPods, for audio and contr
94
96
95
97
Accessibility settings like customizing transparency mode (amplification, balance, tone, conversation boost, and ambient noise reduction), and loud sound reduction can be configured.
96
98
97
-
The hearing aid feature can now also be used. Currently it can only be used to adjust the settings, not actually take a hearing test because it requires much more precision. It is much better to use an already available audiogram result.
98
-
99
-
>[!NOTE]
100
-
> To enable these features, enable App Settings -> `act as Apple Device`.
101
-
> This only works if you use the Xposed method or patch the library yourself. The root module method does not support this feature currently.
102
-
103
-
#### Installation Methods
104
-
105
-
##### Method 1: Xposed Module (Recommended)
106
-
This method is less intrusive and should be tried first:
107
-
108
-
1. Install LSPosed, or another Xposed provider on your rooted device
109
-
2. Download the LibrePods app from the releases section, and install it.
110
-
3. Enable the Xposed module for the bluetooth app in your Xposed manager.
111
-
4. Disable unmount modules for the Bluetooth app if enabled.
112
-
5. Follow the instructions in the app to set up the module.
113
-
6. Open the app and connect your AirPods
114
-
115
-
##### Method 2: Root Module (Backup Option)
116
-
If the Xposed method doesn't work for you:
117
-
118
-
1. Download the `btl2capfix.zip` module from the releases section
119
-
2. Install it using your preferred root manager (KernelSU, Apatch, or Magisk).
120
-
3. Disable Unmount modules for the Bluetooth aop if enabled.
121
-
4. Reboot your device
122
-
5. Connect your AirPods
123
-
124
-
##### Method 3: Patching it yourself
125
-
If you prefer to patch the Bluetooth stack yourself, follow these steps:
126
-
127
-
1. Look for the library in use by running `lsof | grep libbluetooth`
128
-
2. Find the library path (e.g., `/system/lib64/libbluetooth_jni.so`)
129
-
3. Find the `l2c_fcr_chk_chan_modes` function in the library
130
-
4. Patch the function to always return `1` (true)
131
-
5. Repack the library and push it back to the device. You can do this by creating a root module yourself.
132
-
6. Reboot your device
99
+
All hearing aid customizations can be done from Android, including setting the audiogram result. The app doesn't provide a way to take a hearing test because it requires much more precision. It is much better to use an already available audiogram result.
133
100
134
-
If you're unfamiliar with these steps, search for tutorials online or ask in Android rooting communities.
101
+
To enable these features, enable App Settings -> `act as Apple Device`.
135
102
136
103
#### A few notes
137
104
138
-
- Due to recent AirPods' firmware upgrades, you must enable `Off listening mode` to switch to `Off`. This is because in this mode, louds sounds are not reduced!
105
+
- Due to recent AirPods' firmware upgrades, you must enable `Off listening mode` to switch to `Off`. This is because in this mode, louds sounds are not reduced.
139
106
140
107
- If you have take both AirPods out, the app will automatically switch to the phone speaker. But, Android might keep on trying to connect to the AirPods because the phone is still connected to them, just the A2DP profile is not connected. The app tries to disconnect the A2DP profile as soon as it detects that Android has connected again if they're not in the ear.
0 commit comments