yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Updated patch/module for Pie and doubtless Oreo support
[Samsung Galaxy Note 9 Themes, Apps, and Mods] tomatolei:
Samsung Galaxy S10+ G9750 CHN system, can not work.

TWRP flash it, Stay in Backuping libbluetooth.so to .bak

View attachment 4920305

this is official file

View attachment 4920307
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Did you allow system modification with twrp?

I mean is your system partition r/w mounted?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] tomatolei:
Yes, allow system modification

snapdragon modify ，I've tested it. I can do it

00 00 36 F6 03 1F 2A F7 03 1F to 00 00 37 F6 03 1F 2A F7 03 1F
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Could you try this one?

BluetoothLibraryPatcher_v1.4.zip
[Samsung Galaxy Note 9 Themes, Apps, and Mods] jamesfitzes:
do you know if this module will work on note 10+ snapdragon version?

I tried another similar module from magisk and got the message that my device is running BTA1 firmware and it couldn't patch libbluetooth.so
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
The latest update should yep.

Give it a try, if issue occur I will give support.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
I updated the tool, your phone is now supported :good:
[Samsung Galaxy Note 9 Themes, Apps, and Mods] jamesfitzes:
Chinese snapdragon note 10 +. It's not working
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Can you upload your /system/lib64/libbluetooth.so file and your /systel/build.prop

I will try to solve it
[Samsung Galaxy Note 9 Themes, Apps, and Mods] kramer04:
[MENTION=4259991]3arthur6[/MENTION]

Just try last v1.5 module with magisk

Can't install it.

Says "Only for Samsung devices"

I've Note9 + Android 10

Just take quickly a look in your customize.sh

In my build.prop I've

ro.product.system.brand=samsung

Not ro.build.vendor.brand
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Sorry I fixed my craps :silly:

It should be fine now
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
This can only work on samsung stock based roms as it disables an additional samsung security stuff, not present on aosp.

But what kind of bluetooth issue did you face with aosp?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] nicesoni_ash:
Apologies. I stupidly didn't read the description properly and thought that along with fixing pairing issues, this also keeps your bluetooth on even when switching airplane mode like in android 11. I reread it again once you asked me what issues I have and realized my mistake. ?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] elesbb:
Not working due to syntax error:

- Copying zip to temp directory
- Installing Bluetooth_Library_Patcher-v2.0(20).zip
- Device is system-as-root
Archive: /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
inflating: module.prop
***************************
Bluetooth Library Patcher
***************************
*******************
Powered by Magisk
*******************
Archive: /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
inflating: customize.sh
- Extracting module files
Archive: /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
inflating: README.md
inflating: customize.sh
inflating: module.prop
update-binary: /data/adb/modules_update/BluetoothLibraryPatcher/customize.sh: line 109: syntax error: unexpected "else" (expecting "}")
! Installation failed

Looks like you closed the "if" block too soon and have an additional else statement. Easy to fix. Someone was up too late working on it probably :P

Line 108 has the end if statement that breaks the chain of else ifs, remove that and it works.

Attached a working version.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
:silly: lmao thanks!
[Samsung Galaxy Note 9 Themes, Apps, and Mods] eco999:
Legendary,my main issue with having my Note 9 rooted was that my Buds and Watch would keep disconnecting. It's now fixed. Thanks so much!
[Samsung Galaxy Note 9 Themes, Apps, and Mods] alexcheveau:
Hi, my device get stuck in "Exctracting tools" on TWRP

S9+ Snapdragon version
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Hey

Could you attach a recovery log here?

Without it will be complicated to debug.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] alexcheveau:
For sure. But there's a catch: because the phone stuck in this part i need to hard reset by pressing vol+power, maybe the log will be lost
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Plug it to your computer when it stuck and this adb command should do the trick

adb pull /tmp/recovery.log
[Samsung Galaxy Note 9 Themes, Apps, and Mods] colorzpe:
library not support with my Galaxy s10 Snapdragron (SM-G9730)

My BluetoothLibPatcher-files.tar
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Your rom seems already system-ly patched.

Not sure why it didn't say you that during the module installation but you don't need the magisk module.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] luigge:
does it work with exynos 7870 phones? I have a galaxy j7 2016 with h-rom A7 2018 v5 port android Q, xiaomi mi band does not connect. can I use this?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Yes it should.

Not sure how the script will work on a ported rom.

But I m pretty sure this rom is already patched for this issue. You can check by installing the magisk module.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] noviardi1379:
Hi [MENTION=4259991]3arthur6[/MENTION],

I'm newbie here, I have entered the commands, then I restart my phone. The result my Bluetooth not functioning at all. Please help.

I'm using note 10+, android 10, root stock rom by magisk
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Hey

Executing

su
mount -o remount,rw /vendor
mv -f /vendor/etc/vintf/manifest.xml.bak /vendor/etc/vintf/manifest.xml
mount -o remount,ro /vendor

then reboot should be enough

Btw could you attach your /vendor/etc/vintf/manifest.xml file here?

I will be able to find what is going wrong.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] noviardi1379:
Thanks for your fast response. Before I receive your reply, I did entering the command for 2nd time. It cause unlimited bootloader. I have no choice, I reflashed my device and tried input the command again. Finally, it works. Now my galaxy watch can be paired to my note 10+. Thanks again, bro...:D

Note for my friends :" if you run the command firstly not functioning as what expected, Do not try to re-enter the command for second time. The risk would cause bootloop. It is recommended asking the developer asisstance."
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Anyway sorry you need to reflash..

This command is pretty ugly and could doubtless be simplified but before you I never faced issue with it

Nice to hear it finally worked
[Samsung Galaxy Note 9 Themes, Apps, and Mods] oniamigt:
Hi, I have a Samsung Tab S4 T830 Android 9 and tried to patch it via TWRP with the BluetoothLibraryPatcher.zip from the first page of the thread.

I get an error that, seems my divice is not supported, can someone please help me out with a Patch for my device.

Thanks in advance.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Don't expect a fix without more informations..

Exact error message or screenshot, BluetoothLibPatcher-files.tar file if applicable(read first page)
[Samsung Galaxy Note 9 Themes, Apps, and Mods] oniamigt:
Nm, I managed to fix it with the Magisk Module Bluetooth fix. Thank you anyway.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] trantinvan:
Library not support for samsung galaxy a70

(A705f).( twrp zip)

Magisk module works( just flash it and no error) but i want to also fix smart watch pairing issues.

---------- Post added at 08:26 AM ---------- Previous post was at 08:13 AM ----------

Library not working for my samsung galayx a70 ( a705F) ( flashable zip)

Magisk modules work but i want to fix galaxy wearable issues.

https://drive.google.com/file/d/1n92pihiuy9eSL1he-caeOjprjCnaYPY4/view?usp=sharing

https://drive.google.com/file/d/1ZffhwvZ7PfsVr9WHMCPxvDO6_Ldr9794/view?usp=sharing
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Hey

I updated the twrp zip. Download the new one which should be ok.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] A.creature:
For any one who wants to install previous version, I upload 2.1 version. It's works for me without any errors. S20 Ultra

https://dr.acreature.us/d/f/588533244287300942

For author, if I try to install latest version from Magick manager, I receive error and no debug file i found in internal storage.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Hey

As it's not the first time I push some bull**** I can understand but please don't provide older release it will not help.

I just fixed 2.2
[Samsung Galaxy Note 9 Themes, Apps, and Mods] ZonalRipper:
Hey @3arthur6

I downloaded your patcher and tried running this on the S20U running Android 11.

It failed to run at first because on the mounting options, you have it trying to mount using $ANDROID_ROOT which tries to use /system, however TWRP is mounting system as/system_root

I amended these in the update-binary and the hex script and it then run succesfully however i then get a incompatible library error.

Seems in Android 11 they have change the hex values compared previous versions which has been the same for years.

I have attached the BluetoothLibPatcher-Files.tar, hoping that you could take a look and update the patcher to work with S20 & Android 11

If you need anything else then please let me know

ZonalRipper
[Samsung Galaxy Note 9 Themes, Apps, and Mods] avpariy:
Please add support for my Bluetooth library.

Sorry I am not beginner, but my account disabled in migration, now I am working to restore it.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Vuska:
Hi... i install this module from Magisk....

but why i see that the mod still has new update ? (i install newest release v2.2

My device : S10+ Snapdragon stock Rom TD1, android 10.

Thank you
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Vuska:
Hi sir, @3arthur6 .... can you please see this for me ?

because after i installed magisk module.. bluetooth device still need to re pair after restart / flight mode. 🙏

attach of my libbluetooth.so and buildprop include in zip..

thank you...
[Samsung Galaxy Note 9 Themes, Apps, and Mods] sonic997:
Excuse me, I have a galaxy S10+, snapdragon version.

May I have a .tar version of patch? This is because my phone dont have a work 3th party recovery. I want it to patch in Odin.

Thank you very much

Update: Magisk patch found, patched and work ! Problem solved with many thanks~
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Vuska:
may i know what series of s10+ ?

9750 (HK / China) or other from us canada ?

because not work for me with 9750 HK (TGY) with CTD1 release rom
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Custom Rom Factory:
awesome work friend
[Samsung Galaxy Note 9 Themes, Apps, and Mods] GabrielLaw:
Hi, @3arthur6

I have used your patcher, everything works fine with my Bluetooth headphone. But after using the patch, my Galaxy Fit always loses connection after rebooting or toggling aeroplane mode.

I have tried the shell command and the TWRP zip file but they both don't work.

My device model is Samsung Galaxy Note10+ (SM-N9750) and the Fit model is SM-R370.

The attaching files are my libluetooth.so and build.prop. Looking forward to your reply!
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Dr.itech2016:
Thanks but not working on my Galaxy S20 Ultra in android 11 ..

I used Magisk version & TWRP in thread with latest version but doesnot connect with my Galaxy watch at all ..

I hope you can fix it soon so i can use my Galaxy watch again, this is my BluetoothLibPatcher-files as you requested ..
[Samsung Galaxy Note 9 Themes, Apps, and Mods] ianmacd:
Devices launched on Android 10 or 11 don't need the Bluetooth library to be patched. It's enough to disable the wsm service in /vendor/etc/vintf/manifest.xml or /vendor/etc/vintf/manifest/vaultkeeper_manifest.xml. This is one of the things the Multidisabler does, but it's easy enough to do it manually.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] bavmouse:
hello, I have a note 9 with drketan rom and installed it via magisk module. unfortunately it does not work for me as it should. is there anything else I need to consider? thank you.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Dr.itech2016:
Thanks, its work when i delete that lines related with wsm service as you said ..

By the way I'm using multidisabler you create and thanks for that, but when android 11 release in my device i used that version 2.6 and after i install it, i forgot to use prefix bluetooth you provided because i didn't notice that note ..

May be next time when i update android into next verison, i will use newest version you provide ..

Thanks again

Regards ..
[Samsung Galaxy Note 9 Themes, Apps, and Mods] ianmacd:
Yes, v2.6 of the multidisabler had no Android 11 support yet. This was added in v3.0.

Glad you got everything working now.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] vnbonda:
With my crooked hands I deleted this manifest.xml file, cleaned it, it is empty, now the phone is in an endless reboot, how to cure it? help me please.

Samsung Note 10 LDU phone unlocked to see the SIM with the assigned IMEI
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Vuska:
can i do this with my 9750 ? snapdragon....

i already check there is a wsm related
[Samsung Galaxy Note 9 Themes, Apps, and Mods] @casper:
Thanks for this project.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] sonic997:
This is from 9750 (HK, TGY). I dont have any 3th party recovery and do so by Magisk Manager

Thanks for telling me not working with CTD1 release from. I tend to not update my phone...
[Samsung Galaxy Note 9 Themes, Apps, and Mods] JuanGS:
Dont work for me
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Zotyoo:
Hi! I want to ask for your help! Given a Samsung s10 (973F), system root with Magisk, no TWRP. Given a Samsung watch active 2 LTE version. The phone has a factory fw, rooted. As long as there is no rooted fw provided, the clock will be connected to the Galaxy Wearable app. After the rooted version, it will no longer connect to Wearable. Pairing begins, in progress, but is not connected at the end. It appears in the list of paired devices, so at least all you can do is make a phone call via Bluetooth. The others, of course, obviously don’t, and they don’t sync with Samsung Health either. This device has the latest version of Android 10 (marked XEH). Even when rooted with Android 9, it paired seamlessly with the Wearable app. If I read it well, this module would make it possible. I don't know why it doesn't work, but I can't pair it with Wearable. In build.prop, the value of ro.config.tima has been set to 0 for Samsung Health to work. The device is of the Exynos type. What can you suggest to pair your smartphone with Wearable? The module was successfully installed, rebooted. Thanks!
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Hosch0815:
The patch no longer works on my Galaxy A50 since the A505FN_A505FNXXU6BUA1. In the attachment the files from the lib64 folder. Thanks in advance.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
For almost all snapdragon device user reporting issue with twrp zip. Your library could already be systemly patched. Try the latest 2.2.2 version and report again if problem persists

For Galaxy watch issues, try the latest twrp zip or the updated terminal command from first post

damn such a big change in the library thanks samsung..

could you try this one : BluetoothLibraryPatcher_magisk_beta.zip

install it from local storage in magisk
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Hosch0815:
The patch doesn't work either. Took a screenshot
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
humm..

Could you upload the tar plz?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Thanks!

Sorry my bad, first beta couldn't work

Try this

BluetoothLibraryPatcher_magisk_beta2.zip
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Hosch0815:
This patch works perfectly. you are the greatest
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
:LOL: thanks dude

relieved, I was afraid it will be complicated
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Zotyoo:
Dear Developer! I would like to ask if this patch will not be suitable for pairing galaxy wearable app (Samsung S10 Android 10, Exynos, fw: G973FXXS9DTK9, magisk root) and Samsung Galaxy Watch Active 2 (SM-R825F)? Did I misunderstand the essence of the module? I installed version 2.2.3, the installation was still fine, there was a reboot, but the two devices are still not connected. The process goes, but it stops. Couldn't this module solve this? Should the Galaxy Wearable and wath active 2 plugins be enabled in the Magisk Hide option? Or don't you have to work on an Exynos model? The screenshot shows that it flashes at the end of the pairing, but never ends. Here I would have to come up with a text to enable this and that, if the watch was paired with another device, then reset it and it is already doing its thing. Am I doing something wrong or does this Magisk Module (Bluetoth Library Patcher) not solve this problem?

Edit: I'm reading it now:

"To fix Galaxy Wearable pairing issue, as the modifcations aren't applicable through Magisk :

Either go to twrp flashable zip

Or you can directly execute these commands from a terminal app"

Unfortunately, I was unable to install TWRP on this version. Odin is constantly ejected when I press the start button, loading the twrp recovery file modified by the Magisk patch into the AP. My previous version went smoothly, so I suck. All the same. Stay in the Terminal app. Which one do you suggest? There are terminal emulators for the device. Is it enough to copy the command line to it, or do you have to copy it from a computer? Don’t get mad at the question, but I’m not a Linux professor, would you describe that in a little more detail? If it is enough for an application, please specify which one to install because it is well characterized and worse. TWRP would be easier, I really miss you. I don’t know why I can’t put it on this stupid version.

Thanks for the reply!
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Magisk module couldn't fix it.

You should be able to install twrp, but it's not the right place to ask for help about this.

If you can't install it.

Install Termux app from playstore, and execute the commands from the first page, copy/paste line after line.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Zotyoo:
It's done. He threw an "Invalid" message at him. Maybe you can write it with the adb command? Something wrong was written, he doesn't like it.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
As specified, execute line after line.

Copy/paste first, press enter, copy/paste second, press enter, ... etc
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Zotyoo:
Yes it was! The screenshot shows the command and what it prints on it. What I took out of the command line is that a /vendor/etc/vintf folder contains one 'security.wsm' file. Maybe you make some changes to this before backing it up. Nah, I don't have a file like that! In the screenshot I send what is. In my previous post, the screenshot shows that I could handle the command line. At first, the space was left out, so he obviously wrote that there was no such directory, or something, when the copy was good, then came enter, and then he wrote out Magisk's commands. I don't have su, but Magisk. He didn't like something. I'll send you what's in the directory where something should be done. In the modular version of Magisk, the vendor wants to back up the manifest.xml file in the / etc / vintf / manifest directory, then make some changes to it and save it as manifest.xml. If I can see clearly from the lines. However, there is no plain manifect.xml file in the manifect folder. The following is the last screenshot. There is a plain manifect.xml file in the system / vendor folder.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
No dude it was not. And your termux screenshot just confirm it.

So type "su" in Termux then press enter, copy/paste 2nd command line then press enter, etc with the last two command lines.

You misunderstood the use of grep command here, actually it searches for a file containing "security.wsm".
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Zotyoo:
You have thrown out a line after the su command, but no panatncs need to be entered here. I think so. There is no such file in the file finder. The truth is, I trust you and the terminal command. Nimcs is in the mood to hit TWRP once again. It came together on every device, too, but this ****ing late November 2020 version sucked. TWRP doesn't go for it. And even if you do come together, you can start with a hard reset again and restore everything again. incan would miss another twrp phase.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Still not sure you executed it right....

I can't understood half of your messages so I will stop now. All I gave was on the first page since beginning.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Zotyoo:
Can you help which file to back up .bak? I think you're making some changes to this file. I can save this file with Root Explorer. and attach it to you. You type what the command line would do, and I put it in its old place. Reboot and you're done. If you want to modify an xml file, you can do so without any problems. It is not used continuously by the operating system, it only reads data from it on reboot. You know for sure which file, what text you are looking for, and what action you are taking on it. I'll come to you with a beer minimum! Please solve it! You know for sure what needs to change and where. If I know that, I'll fix it. Thanks!

Edit: You wrote to type "su" first, then enter, then the other commands, and enter again. The su command, followed by enter, typed this text:

:data/data/command.termux/filmes/home #

So I could only copy the second command after that. I don't think so.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Zotyoo:
Oh man! I do not know what found the phone! He figured out this morning that he was connected to the clock. And it hasn't been restarted since I wrote it. Maybe the operation still took place? I do not know! Now he's mated for some reason. Thank you so much for dealing with this so much! I'm coming for a beer! Thanks! You are cool!
[Samsung Galaxy Note 9 Themes, Apps, and Mods] JakunTech1010:
I'm using OneUI 2.5 on Samsung A70

I have a Galaxy Fit e

I've flashed Bluetooth Library Flasher through TWRP. It said it sucessfully flashed

But when I turn on airplane mode or reboot, it still lost

My Fit e then reset

I tried using terminal, but got this:

a70q:/ $ su

a70q:/ # mount -o remount,rw /vendor

/vendor/etc/vintf` && [ ! -z $i ] && cp --preserve=all $i $i.bak && sed -i '/<.*security.wsm.*/,/<hal format="hidl">/d' $i

mount -o remount,ro /vendora70q:/ # i=`grep -lr 'security.wsm' /vendor/etc/vintf` && [ ! -z $i ] && cp --preserve=all $i--preserve=all $i $i.bak && sed -i '/<.*security.wsm.*/,/<hal format="hidl">/d' $i <

cp: /vendor/etc/vintf/manifest.xml.bak.bak.bak setxattr(security.selinux=u:object_r:vendor_configs_file:s0): Bad file descriptor

cp: /vendor/etc/vintf/manifest.xml.bak.bak.bak: Bad file descriptor

1|a70q:/ # mount -o remount,ro /vendor

a70q:/ #

Please help, what did I done wrong?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] aymeric106:
Thank you so much ... been fighting for days to get my Gear S3 watch to connect after updating my S20 to OneUI 3.0.

I found your module by mystake in Magisk.

Aymeric
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Muantemama:
Thank you so much...problem solved
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Zotyoo:
It has been working fine ever since! I wonder what will make us (root partisans) impossible?