Bluetooth Library Patcher
This module fixes a problem that has been bothering users of rooted Samsung devices for a long time: Bluetooth pairings that are lost after a reboot or when Airplane Mode is turned on. This problem happens a lot with Samsung’s stock (OneUI) firmware because of certain security features that reset pairing keys.
The Bluetooth Library Patcher is a strong, systemless fix that works by intercepting and changing the Bluetooth libraries it needs (specifically libbluetooth.so and libbluetooth_jni.so) on the fly as the device boots up. The module keeps your headphones, speakers, car stereos, and other peripherals connected without having to re-pair them every time by patching these core parts.
It works with a lot of different Samsung devices that run stock-based ROMs, from Android 7 (Nougat) to Android 14. Because the patch is “on-the-fly,” it doesn’t change your system files permanently. This makes it safer and generally works with system (OTA) updates, but the module may need to re-apply its patch after an update.
Important Note: This patch only works with Samsung stock firmware (OneUI) or custom ROMs that are based on it. You shouldn’t use it on AOSP (stock Android) ROMs because they don’t have the specific Samsung changes that this module is meant to work with.
Galaxy Watch Devices Support
To fix pairing problems that keep happening with Galaxy Watch devices, you often need to do something else by hand. This is because standard Magisk has trouble with system partitions. You need to run the following commands in a terminal app (like Termux) with root (superuser) access after you install the module with your root manager. Then, restart your phone:
*Be careful! /!\ Do NOT use these commands on devices in the S21 series and newer (or any device with a read-only or full vendor partition). This warning is very important. * Trying these mount operations on a device that isn’t compatible could fail or, in the worst case, brick your device. For these newer phones, you need to use the TWRP-flashable zip alternative that is listed below.
For older compatible devices, run:
$ su
$ mount -o remount,rw /vendor
$ for i in `grep -lr 'security.wsm' /vendor/etc/vintf`; do [ ! -z $i ] && sed -i "$((`awk '/security.wsm/ {print FNR}' $i`-1)),/<\/hal>/d" $i; done
$ mount -o remount,ro /vendor
Alternative Fixes
*If your device runs Android 12L or lower, you can skip the Magisk module and the terminal commands altogether. Instead, use a custom recovery like TWRP to flash the specialized ZIP file (for example, BluetoothLibraryPatcher_twrp_X.X.X.zip) from this Github repo releases directly.
*The Magisk Delta fork is a much newer and easier way to do things. Magisk Delta can make the changes it needs to automatically because it can mount partitions in a more advanced way. There are no extra steps needed with this fork. Simply install the module and restart your Galaxy Watch. It should work fine.
Credits
*This module is based on the work of @topjohnwu for Magisk.
It also includes a script for resizing partitions that was first made by @afaneh92.
Source Code
Support
Download Link
Module Info
- Module By
- Root SupportMagisk KernelSU APatch
- Latest Update
- Word Counter 514
- Character Counter 5153
Bluetooth Library Patcher is a Module that supports installation on Magisk, KernelSU, APATCH, KSUNext