This module attends to avoid losing bluetooth pairings after reboot or airplane mode switch on rooted samsung devices.
It patches on the fly the bluetooth library and should support most of samsung devices on android Nougat, Oreo, Pie, 10, 11, 12, 13 and 14.
This patch is NOT applicable with an aosp rom, only samsung stock/based.
Due to limitations in Magisk, a manual step is required to fix pairing issues with Galaxy Watch devices. After installing the Magisk module, use a command line (like Terminal Emulator or Termux) to run the following commands, then reboot:
*Beware! /!\ Starting from the S21 serie you can not use these commands (or you have to be SURE your vendor partition isn't read only or full) and must instead use the zip bellow to flash using TWRP. The commands below could brick your device /!*
$ 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
Alternatively with Android 12L and below, instead of installing the Magisk module and running the commands, flash the zip file from this Github repo releases (BluetoothLibraryPatcher_twrp_X.X.X.zip) meant for TWRP recovery.
Another new and easier alternative is to use Magisk Delta fork. With this version of magisk no additional steps are required. Just install the module and enjoy.
- @topjohnwu for magisk
- @afaneh92 for the partition resizing script
- Use embedded busybox
- Fix latest magisk canary versions
- Fix Kitsune/Alpha
- Add support for android 14 arm
- Fix support for S24
- Fix Magisk Delta/Kitsune
- Fix Magisk Alpha
- Add A14 support
- Fix some issue with S23
- Add A137F support & fix regressions
- TWRP zip: Apply gear watch fix first
- Add support for arm devices on A13
- Process 7z only on A13
- Fix OTA survival script on Android 13
- Adding back support for Android 13
- Add support for arm devices on A12
- Bring back support for Android 12L (API 32)
- Drop support for Android 13 (API 33) and above
- Optimize hex sequences
- Fix support for some old mediatek devices
- Revert adding support for Android 13, module not needed anymore
- Fix qcom detection logic
- Add gear watch patch support for Magisk Delta fork
- Fix twrp patch
- Add support to Android 13
- Optimize debug stuff
- Fix broken qcom patch
- Update for Magisk v24.0
- Misc updates
- Fix qcoms on Android 12
- Add A105F on Android 11
- Android 12 support
- Handle few specific devices
- Handle library changes from latest A505FN firmware and possibly others devices
- Fix OTA survival script
- Misc fixes
- Large rewrite
- Detect now OTAs and reapply the patch if needed
- Divers Android 11 fixes
- Android 11 support
- Android Nougat support
- Misc optimizations
- Support more devices
- Misc optimizations
- Support more arm devices
- Auto create tar with needed files in internal storage to fix unsupported devices
- Add support for A6, A10, A80, some S10e and N10 variants
- Apply the only known qcom fix to all of them
- Add some checks to avoid false negatives
- Add support for chinese/global snapdragon on Pie
- Add support for chinese/global S/N9 snapdragon on Q & simplify the hexpatch
- Fix brand and model detection for magisk manager and recovery installation
- Check we try to apply the patch on a Samsung device & add missing chinese Note10+ 5G variant
- Add support for chinese variants
- Modify hexpatch (more safer patch)
- Add recovery installation support
- Add verification point, to know if we successfully hexpatch
- Initial release