3arthur6 / BluetoothLibraryPatcher

106 stars 10 forks source link

Bluetooth Library Patcher

Description

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.

Galaxy Watch devices support

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.

Credits

Source code

Github

Support

XDA

Changelog

v2.7.0

v2.6.9

v2.6.8

v2.6.7

v2.6.6

v2.6.4

v2.6.3

v2.6.2

v2.6.1

v2.6

v2.5.1

v2.5

v2.4.4

v2.4.3

v2.4.2

v2.4.1

v2.4.0

v2.3.1

v2.3

v2.2.3

v2.2.2

v2.2.1

v2.2

v2.1.1

v2.1

v2.0

v1.9

v1.8

v1.7

v1.6

v1.5

v1.4

v1.3

v1.2

v1.1

v1.0