yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Watch 4] Shadamehr:
@Dante63

Yesterday morning I woke to find my watch had unbonded from my phone (Galaxy Watch 4 Classic, and a Pixel 7 Pro).

Additionally, Galaxy Wearable App on the phone was telling me there was a newer version, but then failing to find it when clicked on as the Play Store version is still the old version - only the Samsung Store has the new version.

This left me with no choice but to completely wipe and re-pair the watch again, and begin the day long process of customising it all over (as Backup and Restore hardly keeps much).

When I was finally all done last night, the last thing I did was install the Patched Samsung Health Monitor watch app, then calibrate my BP machine.

Wen this was done however, when I rebooted my watch later, it then told me it had again lost the connection with the phone.

I had to again wipe and set it all up for a third time.

Having done that this morning, all was fine. Until as the last step, I installed the patched SHM app to the watch.

I was then able to do an ECG check no problem, and use the watch for other stuff.

But as soon as I switched off my watch, when I next switched it back on, it had AGAIN, for the third tme in two days, lost is bond with the phone, and now wants me to wipe then re-pair and setup.

It is only anecdotal for now, but it seems that everytime I do the final part of adding the patched SHM to my watch, this causes it to lose the connection with the phone whenever the watch is next switched off and back on.

If this is the case, are you aware of anything Samsung have done in their phone Galaxy Wearable app that is now causing this behaviour, and preventing your patched apps and versions from now working on none-Samsung phones?
[Samsung Galaxy Watch 4] Dante63:
Here is the update for 31st August 2021:

So 2 Huawei users messaged me in regards connectivity issue with watch4, even after following the steps suggested on reddit for connecting through Samsung Health, Galaxy Wearables kept disconnecting...

I asked for logs and I traced the logs and found the problem by clearing the data of 4 applications and granting permissions all for both Galaxy Wearables and Watch4 Plugin and it worked...

I updated the Huawei section on my thread, please read it carefully and follow it to fix the disconnection issue...
[Samsung Galaxy Watch 4] Awake78:
If you want to thank Dante63, please consider subscribing to his Patreon Page❤️
[Samsung Galaxy Watch 4] mdy113:
Follwed the steps for the mod, worked very easily on my oneplus 8 pro phone. LTE connection and set up was very easy when configuring the phone out of the box.

one question if anyone has figured out how to set apps to have different vibration types? it seems like samsung only lets you change type if the app is a messaging type app, whatsapp, messenger, etc. but not for other apps.
[Samsung Galaxy Watch 4] Dante63:
For that question, better open a new thread with a title of that question, it will reach more people than asking here and I'm glad the installation worked for you smoothly...
[Samsung Galaxy Watch 4] maximus7maximus:
you can link to this instruction .. I can not find
[Samsung Galaxy Watch 4] hkbladelawhk:
Glad to see some development went out into getting access to BP monitoring. Samsung def needs to just release this everywhere so we don't have to do workarounds.
[Samsung Galaxy Watch 4] Dante63:
First page

Some companies want to have their own features but health features I'm against, health is for everyone
[Samsung Galaxy Watch 4] maximus7maximus:
thanks, didn’t notice
[Samsung Galaxy Watch 4] Dante63:
No problem, I hope it works, don't hesitate reaching me if you're struggling
[Samsung Galaxy Watch 4] Boom King:
Followed the mobile ADB method, works great! Big thanks!

Anyone know how to turn off the Developer Options from the watch settings?
[Samsung Galaxy Watch 4] Shawnifer:
Not sure exactly I think we are stuck with it. Try to reset but that didn't help. One thing you can do is untick everything thats listed in dev options.
[Samsung Galaxy Watch 4] Dante63:
Keep it on because you will need it whenever there is an update out for the watch4 SHM
[Samsung Galaxy Watch 4] Dephazz:
Hi Dante,

I followed all steps, but step 4 doesnt seem to work. When installing the mod i get the message 'device 'ip' not found' (see picture). Also tried installing from c:\adb, but getting the same message. Any ideas?
[Samsung Galaxy Watch 4] Dante63:
If I'm not mistaken, it can be done through adb but why turn it off if you will turn it on again for shm mod updates 🤷🏻‍♂️
[Samsung Galaxy Watch 4] Dante63:
You enter the watch IP address, not the word IP
[Samsung Galaxy Watch 4] Dephazz:
I am currently using the Poco F3 smartphone
[Samsung Galaxy Watch 4] Shawnifer:
Correct I misspoke I meant turning off adb debugging to prevent battery drain. Yes keep dev options but untick adb.
[Samsung Galaxy Watch 4] Boom King:
Fair point, it's on the wife's watch though and don't want her to accidentally go in there. It's easy enough to get back into it if needed later on. Oh well, guess for now there is no other option.
[Samsung Galaxy Watch 4] Shawnifer:
Tell her that section is dangerous and is for us geeks only 🤓
[Samsung Galaxy Watch 4] Dephazz:
Thank you man! You are gold. Will donate!
[Samsung Galaxy Watch 4] Dante63:
This have been discussed many times, Samsung Health is a core service, you can find mod and patches for it but you'll break cloud sync and other functionalities...

Samsung Health mod is not an advised solution...

That's quite odd, it could be one of Samsung's famous awful updates...

We already have seen the update that killed some watches and the galaxy wearable update that doesn't exist on playstore or anywhere...

Try using the watch without the mod for few days and observe what happens, then add the mod and see if it actually does something...
[Samsung Galaxy Watch 4] Daniel O.:
oh, I get it. thanks! Samsung really is not doing nice things.
[Samsung Galaxy Watch 4] blueyes:
I also have the W4C and the P7P and am too getting the update that doesn't exist in the play store. Once I am sent to the play store and hit open from there it's functional again. Until I close it and have to go back to the play store and open it from there again. I haven't, however, lost connection with my watch at any point. And certainly won't be going through the reset process especially since it didn't fix anything.

Edit Downloading the newest version of Galaxy Wearable from APK mirror fixed the update issue. Not sure about the disconnect issue as I haven't had it occur. I have the LTE model so we may be on different firmware versions which may explain the difference.

Galaxy Wearable (Samsung Gear) 2.2.53.22101061 (arm64-v8a + arm-v7a) (Android 4.3+) APK Download by Samsung Electronics Co., Ltd. - APKMirror

Galaxy Wearable (Samsung Gear) 2.2.53.22101061 (arm64-v8a + arm-v7a) (Android 4.3+) APK Download by Samsung Electronics Co., Ltd. - APKMirror Free and safe Android APK downloads

www.apkmirror.com
[Samsung Galaxy Watch 4] Shadamehr:
That's my very thoughts too - so this morning I rebuilt my watch but haven't yet added the modded SHM.

So far the watch and phone bond is holding, despite several reboots I have done myself deliberately.

My wife also has a Samsung W4c too, and the patched SHM, but she is away all week so I can't test with hers for a bit. For sure, if hers does do the same thing however, it's a fairly clear picture Samsung have gotten wise to something perhaps.

But for now I am running mine without the SHM modded file, and will see how that goes (but the last three times, it was immediate after installing the patched SHM that the bond with the device broke, and yet now, without it on, it's running for three hours no problem). I will also see if the same happens to the wife once she is back at the ned of the week mate too.

Thanks for the quick reply too.
[Samsung Galaxy Watch 4] Dante63:
Update is live, which should fix many things and you'd be able to do adb pull, can you please try and tell me if it's working fine now...?
[Samsung Galaxy Watch 4] Shadamehr:
So it seems it's my PHONE that is the issue - as it's now keep losing the connection (fully) to my car and other devices, losing the Bluetooth Token any time the phone is switched off, or rebooted.

Seems it's a known Pixel 7 problem alas...

https://piunikaweb.com/2022/11/15/google-pixel-7-7-pro-bluetooth-connectivity-issues-persist/

Grrrrr - but at least we know it's not your patched app now mate.
[Samsung Galaxy Watch 4] badabing2003:
Thanks,

adb pull worked.

Few observations, in no particular order.

It's interesting that without asking for permissions it managed to save the files in Download folder.

I would prefer if "Please turn off your phone Bluetooth" be advisory rather than forceful, mainly for two reasons.

Sometimes I turn off BT on the watch, why should I be forced to turn it off on the phone as well? perhaps I need the phone BT for other uses.

to be honest I used to turn off the watch BT at first when doing any remote adb through my PC, however lately I've been able to do every without the need to turn it off, yes it can cause issues, but it does not necessarily.

If I don't turn off BT after seeing the message, anything goes wrong is on me ;)

After disconnecting from the watch, I was prompted with the message "Would you like to turn back on the bluetooth again?", clicking on yes did NOT turn on bluetooth.

If the app is potentially capable of turning on BT, couldn't it have turn it off as well?

Although my eyes are not good anymore and I tend to use larger font on my phone, somehow I find the font used (perhaps it's just my eyes) being too large, judge it yourself.

I know this is a big ask, and I know very well about the technical challenges in the implementation details, but seeing an app name / icon is far more user friendly than figuring out from package names, (something similar to apk extractor) please don't take this as criticism.

Many thanks for this nice toolset.
[Samsung Galaxy Watch 4] badabing2003:
@Dante63

Thanks for the detailed explanation.

:) I know, damned if you do and damned if you don't.

Oh cool, didn't know, I guess seeing many apps asking for permissions just to save files in Downloads made me assume that this was required.

Thanks for the consideration.

I don't know much about what you can do with the companion app, but can't the watch companion app do the extraction of App names / icons locally, along with the package names / paths, and send the list to phone app?

Basically the phone app instead of doing adb shell pm packages list -f , it would talk to the watch app and get a response that includes the names / icons (base64 encoded)?

Again I'm speaking without knowing much what's possible and what's not between the watch app and the phone app, and what limitations the system / the watch imposes on you.

I suppose you would need to do something like what aapt does but on the watch side.

Thank you.
[Samsung Galaxy Watch 4] Dante63:
It's easier to request storage permission but all apps will stop working on android 13 and crash because of the storage permission being improperly handled, I just chose to do it from the start...

Besides, the less permissions, the better 😄...

As for icons and names,

I could do that but:

1. I need the app watch to be installed, otherwise, it wouldn't work...

2. Data transfered limited to 100kb... and I don't think names + icons are going to be small...

So most likely I'll need to split the data, doing so means any split lost will end up with receiving useless data...

Let's say it was a success, here are the consequences:

- Am I going to always request such data everytime I connect 🤔...?

- This transfer will drain battery, how to optimize the transfer without minimal drain...?
[Samsung Galaxy Watch 4] badabing2003:
You're absolutely right, these are all valid concerns and limitations / complications, that is exactly why I said

And I totally get it why it's done the way it is currently done.

Bottom line: Perhaps not the prettiest, but definitely functional, and fills as gap.

Thanks for everything.
[Samsung Galaxy Watch 4] Dante63:
I will definitely try to find ways to improve the WearOS manager, one thing I have added that others don't is activity log, I find that to be the most attractive thing in the app... alongside that would be having everything in one place, no ads, no limitations to how many commands you can save and finally, the ability to get the IP and ping it before doing adb connect 😊...
[Samsung Galaxy Watch 4] badabing2003:
I love the activity log, not only it is a good troubleshooting tool, it is also educational, seeing what is being done exactly at what point is easiest way to learn.
[Samsung Galaxy Watch 4] SteMada:
does it work between watch5pro and pixel7pro?

installed everything correctly without errors. Connection between phone and watch is not a problem.

if I open the application on the phone it works correctly until it sends me back to the one on the watch to perform an ECG.

the application on the watch opens but when I click on ECG it tells me that I need to download SHM on the phone ...

are there any solutions?

Thanks and sorry but I'm using google translate
[Samsung Galaxy Watch 4] tombase:
@73sydney and Samsung Health higher version 6.19.5.017 is not working?

Sincerely

Tomy
[Samsung Galaxy Watch 4] 73sydney:
That is old information now, please install the latest version of Samsung Health from the Play Store and try my magisk module from here:

GitHub - stylemessiah/SamsungHealthSecurityProps: Removes "sakv2" from ro.security.keystore.keytype to help make Samsung Health run on rooted Samsung devices

Removes "sakv2" from ro.security.keystore.keytype to help make Samsung Health run on rooted Samsung devices - GitHub - stylemessiah/SamsungHealthSecurityProps: Removes "sakv2" f...

github.com

...anything trying to work around Samsung Health is still ymmv...but this is currently the fix that works for me and most other folks
[Samsung Galaxy Watch 4] tombase:
@73sydney

so I have the Problem with Error 0x24 with latest version!

I use Shamiko Magisk Module an I installed Samsung.Health.Security.Props.v.1.1.zip but it seems not to work on custom Roms!? https://magiskzip.com/how-to-use-samsung-health-on-rooted-device/

I have Galaxy S20 + BeyondROM V4.8
[Samsung Galaxy Watch 4] 73sydney:
I developed it when using BeyondROM.....and tested it on stock as well - Beyond ROM is just a lightly debloated Stock ROM....so it would be weird it worked on BeyondROM and not on Stock, and vice versa....

look for and post/attach the shealthpropsinstall.log file on your sdcard

also check what you have installed, try clearing data for Samsung Health, and make sure you have rebooted
[Samsung Galaxy Watch 4] tombase:
@73sydney shame on me! I have installed Samsung.Health.Security.Props.v.1.1.zip with TWRP first. Now again with Magisk and it works!!!

Please forgive my mistake.

Sincerely

Tomy

search for build.prop in /vendor/

search for build.prop in /vendor/....FOUND

search for keytype line & sakv2 value in /vendor/build.prop

module install will ONLY proceed if both are present...

keytype line and sakv2 value BOTH found...

modifying /data/adb/modules_update/shealthsecurity/system.prop

modifying /data/adb/modules_update/shealthsecurity/system.prop

modifying /data/adb/modules_update/shealthsecurity/system.prop...COMPLETE

Module install complete, please REBOOT
[Samsung Galaxy Watch 4] 73sydney:
No one should be trying to install magisk modules via TWRP in 2022 (even if you find ones that say you can, you probably shouldnt - with the exception of ones used to remove modules if you bootloop)

I will NEVER release a module that has been designed or tested to be flashed via TWRP

Go and sit in the naughty corner..... :)

btw the logfile is 100% correct and what its supposed to say

also btw setting TIMA=0 has no effect on 12+
[Samsung Galaxy Watch 4] Dante63:
yes, the solution is to pay attention to the app you're opening on the watch. Open the MOD, it looks like M and if you're opening a widget tile, it has a ring on it, also, all hearts on the MOD hearts have M on them, avoid watchfaces as they are hardcoded to open stock and not mod...

The mod doesn't take you to the Galaxy store to download the phone app, it takes you to my google drive...

I advise you to remove the stock from your watch to avoid confusion...
[Samsung Galaxy Watch 4] SteMada:
thank you. I solved it by removing the stock version from the watch! thank you for your work and congratulations for the clear and simple instructions
[Samsung Galaxy Watch 4] 73sydney:
Later when i had to clear data on Google Play Services/Store to pass Integrity check i think you can guess what happened, yup Watch disconnected and cannot get it connected back

I stand by my comment the other day, Samsung is a loathsome entity that should disappear from this earth. Congrats i have an expensive watch i cant use again....

Thanks Samsung

==========

Slight update:

I seem to have gotten it to work (for now)...

* Flash ROM via ODIN (including my special AIO.zip to install TWRP, format data, decrypt data etc)

* Watch 4 WAS powered on and waiting to be detected when setup wizard looks for it towards end of setup - ignored/cancelled setup this time - going to do the root, USNF module and integrity check thing firsties

* Finish setup

* Reboot to TWRP recovery

* Root with Magisk via TWRP

* Reboot

* Install Magisk App to complete install

* Reboot

* Install USNF (Mod) and put device in airplane mode clear data on Google Play Store/Services to pass Integrity Check

* Reboot

* Take device off airplane mode....

* Open Google Play and confirm its certified (just needs to show version (Device Is Certified of course comes later - as along as it doesnt say Device Is Not Certified, all is well - just adding more expansive notes than before for anyone following)

* Watch 4 detected and setup commences

* Watch setup completes

Now how long till it breaks....no one knows....
[Samsung Galaxy Watch 4] SteMada:
will there be notifications if the modified application is updated? thank you
[Samsung Galaxy Watch 4] Dante63:
Shm mod Companion checks for updates...

Install it & set the check update preference
[Samsung Galaxy Watch 4] SteMada:
sorry I can't figure out how to install the companion on the watch. I don't understand how to download it, the phone automatically starts "package installation". I have successfully installed that on the phone but I stop them .... thanks
[Samsung Galaxy Watch 4] Dante63:
Copy link in browser...

But I'm working on major patch for the companion to fix many issues on it...
[Samsung Galaxy Watch 4] SteMada:
from the "Watch" section, I generate the link and copy it to the browser. I click on download but it automatically asks me if I open it with "package installation" and it stops them ...
[Samsung Galaxy Watch 4] Dante63:
Don't open it in Google drive app...

You download it then sideload it, just like you sideloaded the shm mod but I'd say don't do that yet because as I mentioned, I'm working on a big major change on shm mod companion
[Samsung Galaxy Watch 4] hutame:
@Dante63 adb could not loaded, my system win11
[Samsung Galaxy Watch 4] Dante63:
Suspecting Special characters detected in the path name, Windows can't handle it alone...

Devs should try to create a custom path to ensure no special characters are used...

If you want ADB, you can download ADB auto from my drive in the watch folder...
[Samsung Galaxy Watch 4] Dante63:
SHM MOD Companion - BETA TEST - 2.0.0

Companion Beta Testing - Google Drive

drive.google.com

please test and let me know about any bugs,

but you shouldn't face any...

Here is what you'd be expecting,

### Watch Section

1. Watch section now has the ability to sideload (but limited to sideloading only SHM companion and SHM mod, able to detect if you sideload the phone accidentally)...

2. one button to uninstall stock shm, and restore stock shm...

3.

(this works ONLY if you have the companion installed on the watch)

Get Watch IP, Check for updates that have been optimized...

### Other Sections

4. Drive links will now download. No more opening in the browser, I kept the copy link button there in case the download fails (rare) and if you want to share the link with someone...

5. What's new section now will have a Youtube player to show more details about what's new...

The watch app has been optimized as well...

Please test as much as you can, if I see no problems reported in a few days, I will roll it out...

Happy Testing...
[Samsung Galaxy Watch 4] hutame:
Your ADB do not work or i could not
[Samsung Galaxy Watch 4] Dante63:
Share a picture of the error please
[Samsung Galaxy Watch 4] hutame:
thanks for all.
[Samsung Galaxy Watch 4] Dante63:
You typed adb shell, you entered shell mode, you can't access anything except execute commands on target device... exist shell mode and everything would work again and uninstall said failure (not installed for 0)...

In other words, there is no original stock shm installed on your watch...
[Samsung Galaxy Watch 4] hutame:
thank you mate, everting done, completed, healt monitor works ! 1.1.0.221v do not worked but 209 worked.
[Samsung Galaxy Watch 4] Dante63:
Not sure what you mean because installation was successful according to the screenshots...

Maybe you skipped the note on thread saying restart phone and watch after installation if the app on phone shows no watch supported and the watch shm mod can open the phone shm mod app...
[Samsung Galaxy Watch 4] ubejd:
just wanted to say thanks @Dante63 for this great work.

used on my gw4 44mm and everything work great.

not rooted.

Phone.WearOS.SHM.MOD.1.1.1.221

Watch.SHM.MOD.1.1.0.221.
[Samsung Galaxy Watch 4] hutame:
thanks, blood pressure and ecg works
[Samsung Galaxy Watch 4] darzy88:
having trouble getting my watch 5 pro to pair with my vivo x fold china model i currently cant get past the initial setup point to enable any of the debugging options and such as the watch gives the phone not supported error during initial setup, any help would be greatly appreciated thanks
[Samsung Galaxy Watch 4] Dante63:
As I recall, when I was in a Chinese community before getting a ban (probably the name "XDADante")...

They would install WearOS by google, then pair with galaxy wearable (as my memory recalls)...

If that didn't help, then install coolapk and search the community there...
[Samsung Galaxy Watch 4] nudi1958:
Hello Dante63,

I also just wanted to say thanks for your great work.

used on my Google Pixel 7 and Samsung Galaxy Watch5, everything work great. When transferring software, you must enter exactly the string with port that is displayed before.

Software:

Phone.WearOS.SHM.MOD.1.1.1.221

Watch.SHM.MOD.1.1.0.221

Hardware:

Google Pixel 7

Samsung Galaxy Watch5 (40VV)
[Samsung Galaxy Watch 4] Fastest556:
Thank you @Dante63!

Tried the latest beta release, works perfect on Huawei P30 Pro with Galaxy Watch 4 Classic.

Just follow the exact steps from the SHM MOD Companion app, and the order then restart your phone and watch.
[Samsung Galaxy Watch 4] dctrbnsttr:
Yes, thank you very much for this mod.

I used the beta companion app to sideload the latest SHM Mod to my Galaxy watch 5. I then installed the phone SHM Mod app to my Galaxy S10 plus. After configuring things in the apps and the Galaxy Wearable app, it all seems to work well.

Thanks again!
[Samsung Galaxy Watch 4] JazonX:
Working perfectly on November One UI 5.0 Build

S22 Ultra - BVKB firmware + Watch 4

Phone.WearOS.SHM.MOD.1.1.1.221

Watch.SHM.MOD.1.1.0.221

Thanks Dante :)
[Samsung Galaxy Watch 4] paolovasilatos:
Hi, congratulations for your work ,i have a liite problem with sync health monitor with shealth,everything work perfect expect sync ,because in the last step when go to developer mod on health haven't options ,i have pixel 7 pro and watch 5 pro
[Samsung Galaxy Watch 4] Dante63:
Pay attention to the section of BP sync Enable (Inside the spoiler)... that screenshot of yours, I have put a very bold red cross on it saying wrong screen, because I went inside setfeatures...

Alternatively, install the shm mod companion and let it do the job for you...