Overview
Maintained under librepods-org/librepods, LibrePods is an open-source implementation of Apple’s proprietary accessory communication protocol for AirPods on Android.
While AirPods work as generic Bluetooth A2DP headphones on any Android device, hardware-level features—such as switching between Active Noise Cancellation (ANC) and Transparency modes, optical in-ear detection, conversational awareness, and accurate per-bud/case battery readouts—rely on Apple’s private vendor protocol. The v2 rewrite (me.kavishdevar.librepods) packages the full Android client, Quick Settings tile service, widgets, and LSPosed Bluetooth stack hooks into a single FOSS APK (LibrePods-FOSS-v2.0.0-alpha.4-200000004-release.apk).
Technical Architecture & How It Works
Unified App + libxposed API 101 Architecture
Inspecting the me.kavishdevar.librepods APK reveals how the v2 rewrite coordinates app services with system Bluetooth hooking:
- Core Services (
LibrePodsService&AirPodsQSService):me.kavishdevar.librepods.services.LibrePodsServiceruns as aconnectedDeviceforeground service (FOREGROUND_SERVICE_CONNECTED_DEVICE), maintaining the bidirectional AirPods control session, battery state parsing, and audio routing triggers.me.kavishdevar.librepods.services.AirPodsQSServiceimplements Android’sTileService(BIND_QUICK_SETTINGS_TILE), allowing one-tap switching of ANC, Transparency, and Off modes directly from the notification shade.me.kavishdevar.librepods.services.LibrePodsAccessibilityServiceassists with media/system interaction hooks when configured.
- libxposed API 101 Integration (
XposedService&KotlinModule):- The APK declares
minApiVersion=101andtargetApiVersion=101withstaticScope=trueinMETA-INF/xposed/module.prop, exposingio.github.libxposed.service.XposedProviderandme.kavishdevar.librepods.XposedService. me.kavishdevar.librepods.utils.KotlinModuleinitializes Java-side hooks alongsidelibfluoride_hooks.so(META-INF/xposed/native_init.list) andlibhiddenapi.soacrossarm64-v8a,armeabi-v7a,x86, andx86_64.
- The APK declares
- Bluetooth Stack Scope:
META-INF/xposed/scope.listtargetscom.android.bluetooth,com.android.settings, andcom.google.android.settingsso the Fluoride stack bypasses strict SDP filtering and allows Apple VendorID packet exchange.
Installation & Setup
1. Prerequisites Check
- Ensure your device is rooted with Magisk, KernelSU, or APatch.
- Install an LSPosed build supporting libxposed API 101.
2. Install and Enable LibrePods
- Download
LibrePods-FOSS-v2.0.0-alpha.4-200000004-release.apkfrom the officiallibrepods-org/librepodsrelease. - Install the APK normally on your device (
adb install LibrePods-FOSS-v2.0.0-alpha.4-200000004-release.apkor via your package installer). - Open LSPosed Manager -> Modules, enable LibrePods, and verify that
com.android.bluetooth(and Settings if prompted) is checked in the Scope list. - Reboot your device so the native
libfluoride_hooks.sohook loads cleanly into the Bluetooth process.
Configuration & Usage
- Pairing & Permissions: Pair your AirPods through Android Bluetooth settings, then open LibrePods (
MainActivity) to grant nearby device (BLUETOOTH_CONNECT/BLUETOOTH_SCAN), notification, and optional root/accessibility permissions. - Quick Settings & Widgets: Add the AirPods Quick Settings tile backed by
AirPodsQSService, or placeBatteryWidgetandNoiseControlWidgeton your home screen. - Listening Modes & Ear Detection: Toggle ANC/Transparency modes, configure stem press actions, and enable automatic pause/resume on ear removal.
Troubleshooting & Common Issues
- AirPods features fail to connect: Confirm LibrePods is enabled in LSPosed and that
com.android.bluetoothis selected in Scope. If you use root-hiding tools (such as Shamiko or DenyList enforcement), verify thatcom.android.bluetoothis not excluded from Zygisk/LSPosed injection. - Upgrading from older v1 builds: Uninstall legacy v1 systemless zip modules or conflicting Play Store packages before installing the v2 rewrite APK to avoid signature mismatches.
Frequently Asked Questions
Why does LibrePods require LSPosed on current Android versions?
Due to Apple's non-standard Bluetooth implementation and a bug in Android's Fluoride Bluetooth stack, standard third-party apps cannot establish the custom L2CAP/RFCOMM control channel required by AirPods. LibrePods bundles a libxposed API 101 module (me.kavishdevar.librepods.XposedService) and libfluoride_hooks.so to patch com.android.bluetooth at runtime until the upstream fix lands in Android 17.
What changed in the LibrePods v2 rewrite APK?
Instead of shipping only a systemless flashable zip, the v2 rewrite distributes LibrePods-FOSS-v2.0.0-alpha.4-200000004-release.apk (me.kavishdevar.librepods) as a unified standalone app and embedded libxposed module, complete with AirPodsQSService, LibrePodsService, and native widgets (BatteryWidget, NoiseControlWidget).