BluetoothLibraryPatcher - Fix bluetooth pairings loss [Android 14/13/12/11/10/Pie/Oreo/Nougat]

Search This thread

labello29

Senior Member
Aug 7, 2014
636
123
italia
Hello everyone how's it going? I hope you're fine, so I have problem with (smart watch 4 wear os) it doesn't connect with my note 8 with
Deluxe Rom 32 final "Android9 pie'. The module magisk bluetooth library 2.5.1 going good without error, but when I flash the zip on recovery I receive error (system/vendor).I hope someone could help me.. I have also buds pro and they working always good , thank you in advance! Ps sorry for my not perfect English
 
Last edited:

labello29

Senior Member
Aug 7, 2014
636
123
italia
Hello everyone how's it going? I hope you're fine, so I have problem with (smart watch 4 wear os) it doesn't connect with my note 8 with
Deluxe Rom 32 final "Android9 pie'. The module magisk bluetooth library 2.5.1 going good without error, but when I flash the zip on recovery I receive error (system/vendor).I hope someone could help me.. I have also buds pro and they working always good , thank you in advance! Ps sorry for my not perfect English
Hi guys I found the problem in my case it was not about connection bluetooth (I'm wasn't right) well I founded the problem and it was on (Google processing services) when I wasn't without smartwatch I taken all of it off for improved the battery drain on my phone....Anyway now everything works thank you to taking Alive this forum!! Se you next time 👋👍
 

mohammadi1223

New member
Dec 24, 2020
3
0
S20 5G_ G981B
Android 12 - stock
Does not work
Bluetooth does not turn ON after flash.....
 

Attachments

  • BluetoothLibPatcher-files.tar
    1.9 MB · Views: 43

mrjoy

Senior Member
Aug 24, 2012
2,575
171
The Heaven Of Punjab
Sure you need this module?































































Are you facing bluetooth parings loss?































































In any case just remove/disable the module to fix FC.















Sure you need this module?







Are you facing bluetooth parings loss?







In any case just remove/disable the module to fix FC.

Sure you need this module?
Are you facing bluetooth parings loss?
In any case just remove/disable the module to fix FC.
yes i need it urgently. I loss my watch connectivity after restart.
Yes i have disabled it due fc but how i can fix the pairing issue if i keep it disabled?
 

mrjoy

Senior Member
Aug 24, 2012
2,575
171
The Heaven Of Punjab
You can try this one but it should not be enough, read first post and search for Galaxy Watch devices support.

BluetoothLibraryPatcher_magisk_2.6_test_w8_1.zipI have

You can try this one but it should not be enough, read first post and search for Galaxy Watch devices support.
BluetoothLibraryPatcher_magisk_2.6_test_w8_1.zip
I have tested this file also & still same FC & Bluetooth icon has been disabled. For better solution I want to tell you that I'm using samsung s22 ultra with android 13 custom rom.
 

edmondt

Senior Member
Mar 21, 2006
698
295
Toronto
Installed the TWRP version of 2.6.2 on my S22 Ultra SM-S9080, but still kept loosing Watch 5 Pro pairing after reboot. Tried running the command and various other things. This is on the latest December update.
 

ercanziyanak

Senior Member
Mar 20, 2021
67
1
Samsung Galaxy Note 10+


Bluetooth Library Patcher



Description :

This patch 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 and 13.

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 full or read only) and must instead use the zip (see bellow) to flash using TWRP. The commands below could brick your device /!\*


Code:
$ 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 Github releases (BluetoothLibraryPatcher_twrp_X.X.X.zip) meant for TWRP.


Links :


- Bluetooth Library Patcher module from Magisk Manager


Credits :

- @topjohnwu for magisk
- @afaneh92 for the partition resizing script


Source & changelogs : Github BluetoothLibraryPatcher

I have a samsung galaxy note 10 plus device and I will install android 12 soon. I don't understand this command line. Is there a video about it, it says steps, but I am very amateur about it.
 

DemotionFR

Member
Feb 8, 2021
33
7
Thank you for this fix, it works perfectly on my S10+ under android 12. Thanks to your work, my galaxy watch 5 pro no longer asks to be reset.
 

Kadeson

New member
Feb 12, 2023
1
1
Hello, I have s 22 ultra with snapdragon and 12 android, BluetoothLibraryPatcher_magisk_2.6_test_w8_0.zip and commands in the terminal helped me before, but now for some reason it does not work, and all versions for twrp give an error 1. Can you please send me a working version twrp version? Thanks in advance.
P.S.Fixed
 
Last edited:
  • Like
Reactions: 3arthur6
Dec 2, 2022
14
3
Ok, tested right now bluetooth library patcher twrp version on my S10 (G973F) running Android 12 (G973FXXUGHVJ5), and it worked perfectly, and now everything is fine and working properly, after reboot no more bluetooth pairings loss 😉👍
 

mohzine

Member
Nov 20, 2009
13
1
i have a problem. following the update of my rom on Galaxy Note 9 (under Android 10), I cannot find my bluetooth connections and in particular that of my Galaxy watch 4. can someone help me ?
I have tried flashing the zip several times via magisk and twrp as well as the Terminal command but nothing works.
 

mohzine

Member
Nov 20, 2009
13
1
It's great to see that there is a patch available for Samsung devices to avoid losing Bluetooth pairings after a reboot or airplane mode switch. The fact that it supports most Samsung devices running on Android Nougat, Oreo, Pie, 10, 11, 12, and 13 is impressive. However, it's important to note that this patch is not applicable for AOSP ROM and can only be used with Samsung stock/based ROMs.

Regarding the support for Galaxy Watch devices, it's good to know that there is a manual step required to fix pairing issues with these devices. It's crucial to follow the instructions carefully to avoid any potential issues, especially with the S21 series, where the commands could potentially brick the device. The alternative option of flashing the zip file from Github releases is also helpful, especially for Android 12L and below.

Overall, it's great to have a solution like Bluetooth Library Patcher, and credit should be given to @topjohnwu for magisk and @afaneh92 for the partition resizing script. The source and changelogs on Github are also useful for keeping up with any updates or changes to the patch.
Yes that's what I did but nothing worked. that's what I'm saying and that's why I'm posting a help message here.
I even installed via TWRP but nothing helped, still no connection found and not even that of my Galaxy watch yet during the installation it tells me that the patch is not Necessary because already installed.
 

Attachments

  • BluetoothLibPatcher-files.tar
    4.5 MB · Views: 6

mohzine

Member
Nov 20, 2009
13
1
I add my build.prop file as well as the original libbluetooth.so file
If it can help someone to help me thank you
 

Attachments

  • build.prop+libbluetooth.so.zip
    2.2 MB · Views: 4

3arthur6

Senior Member
Sep 15, 2011
571
1,009
Yes that's what I did but nothing worked. that's what I'm saying and that's why I'm posting a help message here.
I even installed via TWRP but nothing helped, still no connection found and not even that of my Galaxy watch yet during the installation it tells me that the patch is not Necessary because already installed.
Hey,
I pushed an update for the twrp zip in github repo.
Flash it again and it will apply the gear patch.
And yes your bluetooth library is already patched so don't worry about it.
 

mohzine

Member
Nov 20, 2009
13
1
Hey,
I pushed an update for the twrp zip in github repo.
Flash it again and it will apply the gear patch.
And yes your bluetooth library is already patched so don't worry about it.
thank you for your reply.

I just tried the latest version you just updated (twrp version 2.6.3) but it still didn't work.

On magisk there is version 2.6.2 to display, I don't know if that causes the problem.

The twrp version I am using is the latest for Galaxy note 9 (3.7.0-9)

I'm lost 😭
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Maybe it's not right place for this. I've tried to use the patch with kernelSU but it gives error both when I try to flash it in kernelSU and in TWRP. In TWRP the message is: couldn't find library. I've S911B.
    kernelSU isn't supported yet sorry.
    But twrp zip should work. Could you flash it again then save the recovery log and upload it here?
    1
    Ok.
    So you need to make your system partition writable.
    There are some tools to achieve that though I couldn't recommend to use it on a S23.
    But I will consider to add KernelSU support in a near future.
  • 64


    Bluetooth Library Patcher



    Description :

    This patch 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 full or read only) and must instead use the zip (see bellow) to flash using TWRP. The commands below could brick your device /!\*


    Code:
    $ 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 Github releases (BluetoothLibraryPatcher_twrp_X.X.X.zip) meant for TWRP.


    Links :


    - Bluetooth Library Patcher module from Magisk Manager


    Credits :

    - @topjohnwu for magisk
    - @afaneh92 for the partition resizing script


    Source & changelogs : Github BluetoothLibraryPatcher
    6
    Libbluetooth patcher

    Thanks a ton for this, i'm gonna test it right away. You da mvp! :highfive:
    LE: Works as expected on BSKO and S10+, thanks again!!!!!
    6
    Just added a magisk module :good:
    It works flawlessly on my N9 and does the same stuff as the twrp zip. So should works with all others devices.
    4

    That module really only works for Pie and earlier. It does, however, currently contain a hack, based on byte strings found by the author of this module, that allows libluetooth.so to be patched for Android 10 on S10 and N10 series devices, but this was added to allow an easy transition to Android 10 for users of those devices and will be removed in the next version.

    Users of Android 10 should really use this module, as it is more comprehensive and supports many more models of device.
    3
    Hello! I trying to install this for my S10e (G970F), but getting a library not supported error. I've attached the libbluetooth.so and build.prop if it's any help. Thanks!

    Hey
    Give it a new try, it should be fixed