yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Note 9 Themes, Apps, and Mods] himekifee:
It is not a system app. I tried to replace it under a directory like

/data/app/~~NYByrFC5TYjZTACAkP986g==/com.samsung.android.app.watchmanager-lu9PVvkFKLKIUnQVNjCJrQ==/

this and reboot. It just disappear. What's the proper way of replacing it? Also tried to install it directly, failed on both original app installed and not installed with message package not valid.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] himekifee:
Apparently, it is due to apk singing thing. I got the error

INSTALL_PARSE_FAILED_NO_CERTIFICATES
[Samsung Galaxy Note 9 Themes, Apps, and Mods] dr.ketan:
It seems you have updated system app

Uninstall updates, replace in system
[Samsung Galaxy Note 9 Themes, Apps, and Mods] himekifee:
In /system/priv-app?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] himekifee:
Tried to uninstall from google store and cannot find any related app in /system/priv-app. I remember there is a stub installer.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] dr.ketan:
Yes, uninstall from store

Put apk in priv-app folder and give permission 0644 (rw-r-r)

Reboot
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Yes delete the stub and replace it with this modded apk. Be careful with file permissions.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] himekifee:
I packaged the app into a magisk module. It shows on desktop, but when launching, a popup shows "This phone has been unauthorized modified" something, just like when I open Samsung pay. I got the logcat but don't want to post it here since it may include private data. May I dm you to send the logcat if it helps?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] himekifee:
Safetynet passed. App magisk hided.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Humm I could not reproduce this error.. By placing the apk in /system/app/GearManager/GearManager.apk I can start the app but haven't a watch to pair.

When did you get it? Right after starting?

A screnshot could help
[Samsung Galaxy Note 9 Themes, Apps, and Mods] dr.ketan:
SamsungPay on device will not work and always show this error. There is no workaround to use samsung pay on device.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] dr.ketan:
I still have doubt it is rather user error. I am using latest Watch manager (wearable) app on my N20 (A12) and there is no issue with S3gear

I don't believe samsung put restriction specifically to pair S4 and that also with device app. May be himekifee can you post manifets.xml from vendor/etc/vintf ?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] himekifee:
About manifets.xml from vendor/etc/vintf. Sorry I cannot post it right now because it is on my brother's phone and he is too busy now to give me the remote control to his computer but I'm 100% sure it has been modified so that wsm hal section has been completely deleted by cat it. There is also an backup file for that in the same directory so it should be already patched successfully.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
At this point I can't do more. There is something wrong elsewhere. And you don't need to spoof as Pixel phone.

Did you disabled tima?

What gives this command in a terminal?

getprop ro.config.tima
[Samsung Galaxy Note 9 Themes, Apps, and Mods] himekifee:
I apparently made a misassumption before. The watch is a UK version and the phone is a CN version which does not include GMS by default(I flashed gms manually). That seems to be the issue to me since some post tells me the watch must pair with a phone with GMS. In that case, is there a way to solve the issue?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] himekifee:
I've looked through the code and found out the app is just doing a basic google check based on package name. I do have gms installed, and probably need to investigate furthur.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] david_lev:
Hi, I just wanted to understand why i need to flash the BluetoothLibraryPatcher_twrp_XXX.zip in my S21 from twrp recovery?

Why is it not possible to create a simple module that will replace the file from vendor partition (/vendor/etc/vintf/security.wsm) with another file where the changes were made?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] zplit:
Is there anything like this for Google pixel 6 or 6pro? TIA
[Samsung Galaxy Note 9 Themes, Apps, and Mods] BChamp:
Post in thread '[RESOLVED] Pair Gear watch to rooted s20+ - failed' https://xdaforums.com/t/resolved-pair-gear-watch-to-rooted-s20-failed.4200677/post-85299205

S20 Ultra Koren Snapdragon: (SM-G988N)

Flashed Home CSC Snapdragon: (SM-G988U1 TMB)

Android 11

So I've been using the method provided for a while. But it stopped working for me after I did a recent OTA update through Odin. I used these commands below instead this time. They are a bit different but helped my issue:

$ su

$ mount -w -o remount /vendor

$ cp --preserve=all /vendor/etc/vintf/manifest.xml /vendor/etc/vintf/manifest.xml.bak

$ sed -i /`grep wsm /vendor/etc/vintf/manifest.xml|sed 's@/@\\\/@'|sed 's@>@\\>@g'|sed 's@<@\\<@g'|tr -d ' '`/,/'<hal format="hidl">'/d /vendor/etc/vintf/manifest.xml

$ mount -r -o remount /vendor

When I updated my phone, I could not redo this process with the Commands on GitHub like I always do. When putting in the command "mount -o, rw /vendor" Terminal says "mount not in /proc/mounts"

For some odd reason I wasn't able to to execute the command. So using the "mount -w -o remount /vendor" command worked. Restarted the phone after putting in the other commands and I had a successful pair automatically.

I'm sharing this if anyone runs into this issue after updating their phones.

P.S I did figure out what the command is doing if anyone did not know, thanks to the "backup manifest" command. If you want to possibly do this manually if the commands do not want to work at all:

1. First get a root explorer (I use "Root Browser" Has a black folder with a yellow lighting bolt on it as the apps icon)

2. In root explorer go to System/Vendor/Etc/vintf

3. Open "Manifest.xml" with a text editor (Make a backup just in case)

4. Delete these lines then save the xml after editing:

</hal>

<hal format="hidl">

<name>vendor.samsung.hardware.security.wsm</name> <transport>hwbinder</transport>

<version>1.0</version>

<interface>

<name> SehWsm</name>

<instance>default</instance>

</interface>

<fqname>@1.0::ISehWsm/default</fqname>

</hal>

<hal format="hidl">

<name>vendor.samsung.hardware.snap</name>

<transport>hwbinder</transport>

<version>1.2</version>

<interface>

<name> SehSnap</name>

<instance>default</instance>

</interface>

<fqname>@1.2::ISehSnap/default</fqname>

5. Restart phone

6. Attempt to connect to watch
[Samsung Galaxy Note 9 Themes, Apps, and Mods] BChamp:
I'm not sure what you use. But I can suggest to hide root from the galaxy app with magisk. If you have edxposed or something close to it then you have to hide it (Blacklist) it from those apps also. I'm not sure what you've done already but root has to be hidden. Make sure you have magisk hide on.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] BChamp:
I have a s20 Ultra. Since my Last phone S10 Plus I've been able to get SPay to work only on the watch. No matter what I do I can't get it to work on the phone itself. But I found a way to get it to work on the Watch only.

I have Edxposed and Magisk. I went into Magisk made sure MagisHide was on. Then I proceeded to Hide everything Galaxy Watch and SPay (Services)

I did same thing on Edxposed and blacklisted everything Galaxy Watch and SPay.

I restarted the phone and I was able to Only add my card through the Galaxy Wearable app.

The Watch itself has it's own SPay besides the app for the phone. For some reason it works only for the watch when hiding all services associated with SPay and the watch.

Services Hidden:

Galaxy Watch Plugin (com.samsung.android.geargplugin)

Galaxy Wearable (com.samsung.andoird.app.watchmanager)

Samsung Pay (com.samsung.android.spay)

Samsung Pay Framework (com.samsung.android.spayfw)

Samsung Checkout (com.sec.android.app.billing)

Every phone is different of course. May not have all those services named that way. But you want to look for services similar to it regarding Samsung and make sure they are hidden.

I am able to use SPay on the watch only. But it's better than nothing. It's still a tap of my watch like it would be with the cell phone. So more convenient anyways since it's on your wrist and you don't have to take the phone out to pay.

Hope this helps some.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] dr.ketan:
I said it won't work on device means on Phone. There was never trouble using on watch. I have used in watch with most of devices like N10/N20/S21

Also If I remember correctly only one app needed to hide in magisk
[Samsung Galaxy Note 9 Themes, Apps, and Mods] BChamp:
Oh okay. Well I hope my method could help someone who may have the trouble in that regard. Just trying to be helpful
[Samsung Galaxy Note 9 Themes, Apps, and Mods] ioneng:
Hi I have a HK Qualcomm version of Note10+. This module has been working ever since the very first version. But I recently purchased a Garmin instinct watch and Bluetooth has to be paired after every reboot. My phone has One UI 3.1, Android 11. Does anyone know a fix or maybe other causes of this problem?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] goingshares:
Thanks for the solution! I had this problem after root on my J6 (2018) for years, now I tested the method on S9+ (Exynos, stock Android 10) and works perfectly! The strange thing, I rooted my S8 (stock Android 9) also, but I haven't got the bluetooth problem on it.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] buzzsaw891:
Bluetooth Patcher don't work on my G985F S20+ Exynos BeyondRom 4.0 (OneUI 4.0)

All my paired bluetooth devices disappear as soon as I turn off my bluetooth or restart, I tested the Magisk patch and the TWRP patch, none of them work, any idea how to fix this?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Are the magisk module and/or twrp zip showing errors during installation?

And if you loose your paired devices just when you turn off bluetooth there is something wrong elsewhere.

You should loose them only after a restart or a airplane mode switch.

If so you could try to reset the network settings.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] dr.madmax:
Hello,

I have the following Problem with my S10+ (Exynos) and Android 12.

The BT Connections are not lost, but the Galaxy Watch doesn't connect, the BT Symbol comes and goes. I installed the Magisk Module 3.2.1 and used the Code in Termux. After Reboot Blackscreen. Then I used the fix for TWRP, Blackscreen. Any Idea how to solve the Problem with the Galaxy Watch?

Thx Bernd

Edit:

I Think i have found the Problem but i cannot solve it.

The Script deletes Parts in Vendor/etc/Vtinf/manifest.xml

The Problem is, my manifest.xml looks not like the one a few Posts back, so there will be parts deleted which are necessary.

So, what to do with it?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Hey

You right there is an issue and an update of the commands is needed whoops sorry..

For now you should be fine by removing(after a backup) this file:

/vendor/etc/vintf/manifest/wsm_manifest.xml

edit: Just updated commands and twrp zip
[Samsung Galaxy Note 9 Themes, Apps, and Mods] dr.madmax:
I renamed it to wsm_manifest.bak an restarted, no changes. Then I deleted it and now it works 😃 Thank you very much👍
[Samsung Galaxy Note 9 Themes, Apps, and Mods] dr.madmax:
Hi,

the TWRP zip doesn't work for me, it renames the file to bak and there was a second file xml.

I deleted both and then all was good. Is it possible that the system makes a backup?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
All seems fine. The backup is intended!

What do you mean by it doesn't work?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] dr.madmax:
After Reboot, the Watch doesn't connect, only if I delete the file BT works. If it works for you all is good, it looks that I have a special Problem, but your workaround deleting the file is a Solution for me. Thx👍

Edit: I have tested your Solution a second Time, it's driving me crazy😉

I installed the Magisk Modul, it works!

I used the Code in Termux, it didn't work.

There are two files in vtnif, the changed wsm_manifest.xml and the renamed old with the new Ending .bak

I don't understand why, I thought if you rename a file with the ending .bak it doesn't work, but it works!???

After deleting this backupfile and restart, the Galaxy watch directly connects with BT.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Liferer:
Hello. Is this possible what last version breaks network? Device SM-N9750, few times per day phone stop data exchange via wifi. Switching on/off wifi doesnt help but it fixes after time. Cant catch problem in logs.

UPD: not a patcher problem. It is firmware/hardware.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Cooljoet:
Does the galaxy watch 4 have the same problems? I know its got a different os but think it still uses wearable for setup. Am thinking about getting one but won't If I have to go trough all of this as I got an s21+
[Samsung Galaxy Note 9 Themes, Apps, and Mods] netmaniack:
I can confirm, that on S10+ you need to also delete that file (also .bak files if any), then wearable devices can connect.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] mag00r:
@3arthur6

Hi there, first of all - thank you for your effort - this issue is really annoying.

Would you be so kind to fix "Library not supported" for my two devices please?

BluetoothLibraryPatcher v2.4.0

S5e Wifi (SM-T720), stock Android 10, Magisk 24.1

S5e LTE (SM-T725), stock Android 10, Magisk 23.0

Many thanks in advance.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Thanks!

Just updated the command according to your feedbacks.

No more manifest backup.

Whoops sorry there was a regression in a previous update.

v2.4.1 fixes this
[Samsung Galaxy Note 9 Themes, Apps, and Mods] pwarhol:
hi, I have a galaxy s21 ultra 5G exynos SM-G998B, and I can't get the latest version of Bluetooth Library Patcher 2.4.1 to work, I try to install this version and it stays at 2.4.0. my galaxy watch 4 is not recognized after restarting the phone. any idea of solution?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Sorry yep the module version should be fixed now!

For the Galaxy Watch issue, as explained in first post, you need to flash the twrp zip or the command line fix but very risky on S21.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] mag00r:
Thanks lot for quick fix, version 2.4.1 is working on both devices.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] XterYT:
Hi @3arthur6 when installing this module in magisk, i get unsupported library error, here is my tar file(Phone - Galaxy A71, Android 11)

BluetoothLibPatcher-files

MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.

www.mediafire.com
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Kolyei:
Galaxy s20 FE 5G, on Android 10, us unlocked (sm-g781u1 variant). I'm unable to update your Magick module as the library is not supported for some reason. Would i need to update to Android 11 manually?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
I fixed this mess.

The zip files were updated.

Download it again.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Kolyei:
I downloaded the twrp zip. This was the message it received. Do I need to install the magisk module and type out the commands in terminal? For my galaxy watch 4.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Kolyei:
Magisk zip doesn't work either as "the library is already system(ly) patched "
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Hey

According to your screenshot it seems fine. Library is patched, gear fix already applied.

Does the Galaxy Watch 4 still have a problem staying paired?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Kolyei:
The day after I posted that reply, the watch 4 suddenly started pairing properly to my s20 fe. No idea what fixed it exactly. I'm glad it works again.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] ioneng:
Hi @3arthur6 I have a Garmin watch to use with my Note10+ N9750. It doesn't stay paired even with latest bluetooth patcher installed. My Fossil watch and Huawei watch don't have this problem. Could you tell me how to start diagnose this problem?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Hey

Sadly there are such reports with some random bluetooth devices..

For a proper diag, you could maybe try to delete the file /data/misc/bluedroiddump/mainBuffer.log then reboot, pair a known to work bluetooth device then the known to not work, switch airplane mode, then try to connect again these two devices and finally upload this log file here.

But without guarantee that we can find something..
[Samsung Galaxy Note 9 Themes, Apps, and Mods] RyanWoo:
Still not working, device s10 oneui4.0. It is connected normally in 3.1
[Samsung Galaxy Note 9 Themes, Apps, and Mods] ioneng:
Hi thanks for your reply. I followed your instructions but when I tried to toggle airplane mode, my watch can still connect to the phone. Only after the phone is rebooted the watch stopped connecting. This log file is copied after I rebooted and tried to connect my headphones and the watch.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] danbest82:
I'm very interested in this as my new Garmin Vivoactive 4 won't stay paired with my S10+ after reboot or Bluetooth off. The module says I'm already patched system-ly though.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] i2k13:
Any method of getting this to work on s21 ultra (exynos) on android 12? I am unable to get twrp. Just magisk
[Samsung Galaxy Note 9 Themes, Apps, and Mods] innit:
This is a magisk module so just flash it with magisk manager.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] aadeshiscool:
Are there any similar modules but for apps based roms?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] BBCCRX:
@3arthur6

Hi,

I got an unsupported bluetooth library, on my S9+ SM-G965F, I have the zip that gets created on my internal stotage.

Can you please fix this library @3arthur6 ?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Hi

It looks like a ported rom, right?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] BBCCRX:
Yes of course, @3arthur6 it is AlexisRom 3.1 for S9+ (sorry for late reply)

Can We patch these files @3arthur6 ?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
Sorry this patch is not designed for custom roms.

Contact the rom developer to be sure but you probably don't need this module.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] JazonX:
Does anyone have the modded Manifest file of S21 ?

I dont have TWRP, I want to patch it manually using root explorer...
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Ivan Fuentes Hagar:
Hi everyone! Got a Gear S3 Frontier on an A53, rooted stock rom. Tried to flash this, but unfortunately it seems like my vendor partition is read-only, and my phone does not yet support TWRP (not even sure I'd like to flash a custom recovery tbh). Any other way to do this? Been thinking on somehow making the partition writeable, but I shall not mess with powers I do not fully understand.

I also tried using modified gear/plugin/accessory APK's, but unfortunately, although they work,

the notifications on my Gear S3 behaved quite different... where I used to have the option to preview messages one by one, now I have only a single "x messages from x chats" notification, with only one option to check on phone instead of ungrouping, reading more, etc.

I have even unrooted/relocked bootloader just so I can get the apps from Samsung's store working... that's how badly I needed these notifications to run properly.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Sannannaseer:
I have s10 5g with andriod 12 and one ui 4.0 but i am getting this error when i try magisk module kindly help plz .i can not update magisk as it makes room boot loop i am using stock rom with autopatch for imei and root already installed on rom
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Sannannaseer:
Anyone please help
[Samsung Galaxy Note 9 Themes, Apps, and Mods] danbest82:
The error says to install Magisk 20+. I don't use Canary builds so have no idea what version you are using but that is probably the problem.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Armadauz:
Hello, I have the same problem. is there any solution? s10 5g with autopatch for imei. Maybe is there any way to change magisk?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] doggydog2:
also dead wifi here, what "firmware/hardware" means?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] dr.ketan:
3arthur6

Updated to A13 (S22 ultra), magisk module stuck at searching relevant pattern and found there is no more libbluetooth.so file there.

Good thing is that, just noticed no patch needed lol! No BT pairing loss on reboot.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] shayanbaig3:
@3arthur6

Hey,

I am using Note 10 Plus with android 12, I just downloaded Terminal Emulator and pasted the code that you provide, it asks for root permission in Magisk but theres nothing in the Modules, and in the Magisk LOGS it says "[com.samsun.android.app.watchmanager] is on the denylist.

please help and guide me, ive been stuck in this matter from a long time :-(
[Samsung Galaxy Note 9 Themes, Apps, and Mods] shayanbaig3:
it works for you or not ?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] MSHAHZAIB:
Please do anyone have a fix for this

Please add my device to fix my issue
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
The command will not install the module.

Download the latest release from this link and install it on magisk app.

Hey

Try latest version please. It should be ok.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] MSHAHZAIB:
Hey brother when i flash this my problem just solved but i got into a new trouble after installing this my sim cards stopped working could you please help
[Samsung Galaxy Note 9 Themes, Apps, and Mods] 3arthur6:
I will not give support for another magisk module sorry.

Try my latest 2.4.4 version and come back here if it fails again.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] DjLeleX:
Unable to install from twrp: ERROR CODE 2

I've just posted this issue on github as xda forums couldn't let me login because of server maintenance.

I'm unable to install v2.4.4 from twrp. I've already installed v2.4.3 from twrp.

Device is Galaxy S10+ (SM-G975F) on A11.

v2.4.3 is working fine with my galaxy watch 5 pro.

Screenshot attached below.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] shayanbaig3:
This is because maybe you're using a VIP PTA Patched Phone if I'm not wrong ?

If yes then you have to pta patch it again

Are you now able to connect your samsung watch with your phone ?
[Samsung Galaxy Note 9 Themes, Apps, and Mods] shayanbaig3:
Thanks @3arthur6 but do I have to run those commands again on Termux after downloading latest version or not ?

IveI've tried the last version on N10+ and rebooting it destroys the entire software and phone stuck on bootloop and even not able to go to RecoveryMode.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] MSHAHZAIB:
No i have a legal pta approved phone
[Samsung Galaxy Note 9 Themes, Apps, and Mods] shayanbaig3:
That's great

Try clearing Cache Partition or turning off the module from the magisk menu.

I've download module but still not able to connect watch
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Conan179:
Hello are the the tar file from my Fold4 sm-f936b

I can install version v2.4.3, but I can't use it to connect my Gear s2/Watch3 to my fold4.

I can't install version v2.4.4 via magisk, the install failed message comes up and the github page opens.
[Samsung Galaxy Note 9 Themes, Apps, and Mods] fixer.smith:
Hi, Uploading my files.tar

Error 1 on a N960F Exynos

Thanks!
[Samsung Galaxy Note 9 Themes, Apps, and Mods] Conan179:
fold4