yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Watch 4] xda-dvlprs:
Hi @Dante63 , thanks for this marvelous idea and effort.

I have poco f2 pro and stock miui 14.0.1 with galaxy watch 4 classic. Everthing is working except IHRN. I saw that you wrote this on changlog ;

"

As for Watch SHM 1.2.2.005, here is what I observed: ...

* IHRN on watch is heavily patched, hopefully it will stop IHRN suspending because the code looks promising now but I don't see any fix for the messages, vibrations and sounds...

....

I still had to apply same patches for IHRN in Watch SHM:

* Samsung IHRN auto-measurements were using wrong display messages (showing afib detected instead of auto measurement) and triggers sound + vibration notification every 10 minutes, I have fixed this by putting approprite message and set the notification as silent...

"

Even though I use the latest versions, the problem still seems to persist. is it true?
[Samsung Galaxy Watch 4] Dante63:
Ok folks, let's dive into the phone shm (1.2.4.003)

Stay tuned for updates all...

Your friendly neighborhood dev,

Dante
[Samsung Galaxy Watch 4] Dante63:
Sadly yes, my last IHRN is shown as 9th December, I haven't got the chance to add a service check trigger into my shm mod companion where it would check and try to restart the IHRN service if it's suspended...
[Samsung Galaxy Watch 4] xda-dvlprs:
It doesn't matter, thank you @Dante63 .

Maybe you'll have a chance to find the reason for the suspend IHRN or add this trigger for restart in the near future.
[Samsung Galaxy Watch 4] Dante63:
It's pretty much random, for me it worked a week before it stopped
[Samsung Galaxy Watch 4] stroemungsgleichrichtrr:
How do you find out IHRN service has stopped? Is there any notification?
[Samsung Galaxy Watch 4] xda-dvlprs:
By the way, I would like to point out that maybe it will help for IHRN problem; On SHM Mod phone apk after manually turning IHRN switch off and on, always it automatically takes at least one or more HR measurement about ten minutes later and then suspends.

If you confirm what I said, can't the IHRN switch in shm mod phone apk be automatically turned off and on after a certain minute with a trigger?
[Samsung Galaxy Watch 4] Dante63:
You check when was the last IHRN recorded on the app
[Samsung Galaxy Watch 4] Dante63:
As I said, I didn't get the chance to create a trigger and honestly, I was hoping Samsung would fix it, so it wouldn't be something I'd manage in every release, because it's a heavy fix and not a simple one...
[Samsung Galaxy Watch 4] badabing2003:
In the meantime, can something like tasker do the job?
[Samsung Galaxy Watch 4] Dante63:
If the service doesn't have any protection level and can be called directly, Tasker can do it, but as I recall, it has a signature protection i need to remove so any app can start or restart it...

I'll have to check, and I will do that while patching the new SHM MOD, I mean, who knows, while patching the SHM, I might find out they fixed it hopefully...
[Samsung Galaxy Watch 4] kalle1984:
I upgraded the Galaxy watch4 plugin and galaxy wearable to an older version, but I still see that the watch is not supported on this phone. I just can't get them paired anymore. Is there perhaps another option that I may have overlooked?
[Samsung Galaxy Watch 4] Dante63:
I'm assuming you paired using Samsung Health?
[Samsung Galaxy Watch 4] kalle1984:
Damn, anyone who can read has a clear advantage. I kept trying to pair with the SHM app instead of Samsung Health. The watch is now connected again. Thank you for your assistance.
[Samsung Galaxy Watch 4] Paulosp:
I have an issue with my watch 4 and huawei p40, s health is not getting information from the watch (ativities, etc) the watch is connected on galaxy wear, and SHM mod working perfect (ECG, BP) what I have to do?
[Samsung Galaxy Watch 4] xda-dvlprs:
Dear Friends,

* Yesterday, stock Samsung Health was updated again and recently its name was changed to Health, but it was changed back to Samsung Health :)

* I have been running small tests since yesterday for the IHRN suspend issue. My conclusions so far are as follows:

If you power off or reboot the watch, On SHM Mod phone apk you must turning IHRN switch off and on once by manually. Afterwards, IHRN works fine by measuring HR every 10 minutes without suspends.

* If the watch's Bluetooth connection is lost or even if the phone is rebooted, IHRN continues to work properly and there is no effect like power off the watch.

I hope it helps until the problem is solved.
[Samsung Galaxy Watch 4] Dante63:
Backup your Samsung Health data and clear it, sign into Samsung and restore data, your Samsung Health might be corrupted...

That's a great observation, so this means the watch is responsible for running IHRN, not the phone, from the phone, maybe I can schedule a runner every hour or so, it shouldn't cause any battery drain, it just restart it if it's not running

Thank you for the share
[Samsung Galaxy Watch 4] ThaNeeksta:
Did you manage to find a fix for this issue? I am in the same situation as you.
[Samsung Galaxy Watch 4] Paulosp:
I cleared all data from the watch and phone, and started again the process of pairing and restore, looks like galaxy wear is connected to the watch but s health dont. for ex im unable to see an activity on the phone
[Samsung Galaxy Watch 4] Dante63:
I am not sure what I can suggest, try Google searching about it, maybe someone already had the same issue and solved it...
[Samsung Galaxy Watch 4] DrPoldo:
Hi,

I'm having troubles pairing my Galaxy Watch 5 pro with a Huawei P20 PRO.

The app Galaxy Wearable return "This watch is not supported on this phone".

I know Huawei phones have problems pairing with galaxy watches, I've followed the faq at the beginning of this thread but without any success.

I've recorded a video with all the steps i've taken here .

In the video i've skipped the phone reboot but it has been done.

Maybe someone could help me find what i did wrong.

Wierd things:

- After deleting Google Play Store/Services data there was no issue and I din't have to re-insert google account credentials after reboot.

Thanks.
[Samsung Galaxy Watch 4] Dante63:
Ok, I watched the video, you used shm instead of Samsung Health (or Health) for pairing...

Also, I think using this method alone may not work and you need to follow the updated method which is installing older version of plugin to pair, then update it later...

You'll fine it in the same section at the end where I say "still facing issues"...
[Samsung Galaxy Watch 4] ChrisNoSkill:
Hi Dante! I love this tutorial, but I need help. I set up my Galaxy watch 5 pro using this tutorial on my Huawei mate 20x. I also installed shm (if it's relevant). this is the second time this happens. after a while, I get a notification on my watch saying I need to disconnect and reset to repair with my phone. I did that the first time, reinstalled everything I had, (including shm), and it worked fine for a couple of days. then I got today this notification again, and I can't connect to my phone in any way. if I enter in the Galaxy wearable app, it says searching for watch. when I press on mine, it says that the watch isn't connected to phone, and when I press connect, it's just stuck in the loading animation. I tried connecting first to Bluetooth via my phone's settings and then from the wearable app, but that didn't work either. I don't want to reset the watch, as it's a hassle. is there anything I could do? it's strange that my watch says its connected remotely to my phone, although I can't use the find my phone feature, (idk why I thought that would work), I don't get any notification, can't call, I can't do anything on the watch that's related to using the phone. (i think that these features can't be used when connected remotely, just thought u should know). it's like it's on standalone. could u help please? ty
[Samsung Galaxy Watch 4] ChrisNoSkill:
btw, this is actually the third time. it happened 1 or 2 days ago, when I got the notification on my phone that google play services data was erased, and I needed to redo everything. I couldn't even see my watch in the Bluetooth list of the wearable app. (the Bluetooth on the watch was turned on)
[Samsung Galaxy Watch 4] new2pixel:
Will this work for Pixel 8 Pro. I did it successfully on p7pro but just want to make sure. Thanks in advance! And thanks for making all this happen, Dante.
[Samsung Galaxy Watch 4] Paulosp:
Thanks, I solved my problem downgrading the S health for version 6.21.2.007
[Samsung Galaxy Watch 4] Dante63:
Are you connecting to the watch through phone Bluetooth settings when the watch doesn't connect or open galaxy wearable and connecting from there...?

Bluetooth settings will override the wearable configuration and break the connection forcing you to reset...

and if I'm not mistaken, find my phone is a samsung feature only because of smart things (i might be wrong)

It should, yes...

You'd probably want to upgrade later otherwise you'll miss any new features the watch recieves as an shealth update...
[Samsung Galaxy Watch 4] Kaos_Perfection:
No I did not... I also reached out to both Google Health Connect and Samsung Health developers about this and they just blamed one another!
[Samsung Galaxy Watch 4] ChrisNoSkill:
It auto connects (the phone to the watch). Should I disable this? Although I can't seem to find the setting to disable this
[Samsung Galaxy Watch 4] Dante63:
Let me correct my statement...

If you force connect or connect phone to watch from Bluetooth settings, it will override wearable settings and will have a broken connection that requires a reset...

Auto-connect is triggered whether you connected correctly through wearable or incorrect through settings...
[Samsung Galaxy Watch 4] sumnerm1:
Not sure if this has been mentioned , but Health Monitor does sync and record blood pressure and ecg UNTIL I try to open stock Samsung ECG app. THEN it won't sync or record anymore....
[Samsung Galaxy Watch 4] sumnerm1:
BTW, phone is stock S21 plus
[Samsung Galaxy Watch 4] Dante63:
I'm glad it worked, maybe the router configuration has firewall 🤔, anyway, good thing is that you know what to do in the future...

Not sure what you mean by stock ECG app nor sync... would you please explain more...?
[Samsung Galaxy Watch 4] sumnerm1:
Sure. I have Samsung Health Monitor on my S21 plus from prior Watch 3 use. ECG worked as soon as I got the Watch 4, without any work around, but no blood pressure function. So, I installed your app on Watch and then phone SHM. All works great, including sync to SHM. All readings, bp and ecg are recorded in SHM. But if I open the original SHM that ecg worked on, then your work around does not record or any. To SHM any longer. So, I reinstalled Watch app, and reinstalled phone app, and set up account. As long as I don't open old SHM, It continues to sync with SHM, but not SH.
[Samsung Galaxy Watch 4] Dante63:
The WearOS SHM MOD on phone and watch can only communicate with each other, they can't communicate with original SHM (phone or watch) and they don't interfere with each other, they're independent...

And it is already mentioned that for Watch4, BP sync between Samsung Health and Samsung Health Monitor is broken...

Is that what you were looking for as an answer?
[Samsung Galaxy Watch 4] LicaC:
Please...how to download this app. I can't find it anywhere!
[Samsung Galaxy Watch 4] Dante63:
The first post has sections and headers...

Read through or watch the video (the instructions are outdated in the video, so follow the instructions on the thread or Google drive) to know what you need from the drive and how to install the watch and the phone apks...
[Samsung Galaxy Watch 4] sashka69:
I cannot turn on snore detection. Is this a bug or a common problem?

I paired the watch using the s health trick. When I go to the sleep section on my watch I can switch "blood oxygen during sleep" on - BUT on s health on my phone there is no snore detection available in the sleep section. Any ideas how to enable this feature?

When I go to s health on my watch and go to the sleep section, there is a button for turning on snore detection on the phone (labeled "show on phone") but when I click on it, it says "app is not open" and nothing happens. What can I do?
[Samsung Galaxy Watch 4] Dante63:
Maybe phone Samsung health is missing that feature and needs an update...?
[Samsung Galaxy Watch 4] sashka69:
You were right. Tonight I updated health on watch but still no success. Today there was an update (v6.18.7) in the play store on my phone and now it works fine.
[Samsung Galaxy Watch 4] Dante63:
ok everyone, it's update time for SHM MOD:

Watch4 (1.1.0.175), here are my observations:

AU support...

heavy code optimizations...

Mobile app, 1.1.1.157:

Support for Country Code AU (Australia) ECG & BP...

Some optimizations to the code in BP & ECG...

Some optimization done on some BP cuff which I think we still don't have access to, maybe there are test users...?

Stay tuned, releasing soon after I complete my patches tests to be sure it's stable with no issues...

PS. I did notice a restriction that I removed from the phone and I applied it to the watch as well, which is basically low battery, prevents you from using the SHM on the watch4...
[Samsung Galaxy Watch 4] madridserginho:
@DanTe30 Can you share internal code modifications? I want to contribute with your work in patreon, but to trust in this apk, I need to see the code.
[Samsung Galaxy Watch 4] Dante63:
It's really a lot of changes and it's hard to list them all to be honest, you can always decompile my mod and decompile the original SHM and compare them to see the changes...

I spend most of the time comparing my mod with the new version and apply patches on the new version, then explore the new changes...
[Samsung Galaxy Watch 4] udara:
Hi sir. May I ask where to find the files to be downloaded?
[Samsung Galaxy Watch 4] tdthd:
This is only for cell phones that are not Samsung, right? I mean that with samsung phones you don't need the modified apk
[Samsung Galaxy Watch 4] Dante63:
Read again the first post and you'll see a section with a Google drive link

It's for all devices (including Samsung) and to use the MOD, it should be installed on phone and watch4, you can't use MOD with original SHM...
[Samsung Galaxy Watch 4] szilasz:
Big thanks for your efforts!

With this now I can fully utilize my watch.

You are the hero of the gadget geeks, my Sir!
[Samsung Galaxy Watch 4] JuK3b0x_Gr1m:
You're a God Send bro....thanks for all your hard work! Greetings from Canada! (where the ECG and BP will most likely never get approved for Samsung :(
[Samsung Galaxy Watch 4] Dante63:
It's ok, who knows what the future holds
[Samsung Galaxy Watch 4] aamadorj:
One more happy user of your mods. Thanks a lot, @Dante63.
[Samsung Galaxy Watch 4] teoc_7:
Hi, first of all thank you for your work.

I am trying to install the SHM mod app on my gear watch 6.

I install, following the guide, the apk on the phone and then, with adb, the apk on the gear.

So far so good, except that after doing the Blood pressure calibration, 2 minutes pass and the warning that a Samsung Smartphone is needed comes back.

So, I tried removing the monitor app altogether (with adb shell pm uninstall) and clean install the modded version.

By doing so, the app now remains working!!!

The only problem is that the monitor app on the smartphone and also galaxy wearable no longer see my watch, even though it is connected with bluetooth.

Is there anything I can do to fix it?
[Samsung Galaxy Watch 4] Dante63:
share a screenshot of the apps you installed please so I have a better idea alongside the error you see...
[Samsung Galaxy Watch 4] Dante63:
Ok folks, let's dive into the watch shm (1.2.5.002)

Android Manifest:

GUI:

CODE:

That's pretty much all, the patching does not look complex here thankfully, i should be able to patch this quick, i have a good feeling IHRN is fixed in this version...

Status: in-progress...
[Samsung Galaxy Watch 4] teoc_7:
The apps simply say it cannot find the watch, despite the fact that it is connected to the phone with bluetooth.

The most important is this s healt monitor, as without connecting to it, I cannot calibrate the measurement.

Here is a screenshot.

Gear wearable says the same thing respectively
[Samsung Galaxy Watch 4] Dante63:
What about the watch, what did you install on the watch..? If nothing, then proceed with the tutorial and install the watch shm mod...
[Samsung Galaxy Watch 4] Dante63:
Sharing this for whoever needs it...

Samsung Health - Enabling Medications Feature

Hi everyone, I hope you all are doing great, You need for the watch, Samsung Health version 6.26.0.051 and above, as for the phone 6.26.1.011 and above... Just wanted to share what I figured out in my Telegram group (shout out to Gosz and...

xdaforums.com
[Samsung Galaxy Watch 4] Dante63:
*** Watch SHM MOD 1.2.5.002 Released - Changelog ***
[Samsung Galaxy Watch 4] tryinghardest:
Hi, I just bought the watch and trying to install. I am stuck at step 1, I. E. Connecting with the phone with the Bugjagger app. I just keep getting the message Failed to Connect. What am I missing?
[Samsung Galaxy Watch 4] Dante63:
The process is pair then connect...

If you're struggling with bugjeager, there is wear installer 2...

Or you can use my tools, shm mod companion or geminiman wearos manager...
[Samsung Galaxy Watch 4] xda-dvlprs:
@Dante63 thanks for effort and update, but unfortunately IHRN (Irregular Heart Rhythm Notification) is still in the same situation.

That is ; If you power off or reboot the watch, On SHM Mod phone apk you must turning IHRN switch off and on once by manually. Afterwards, IHRN works fine by measuring HR every 10 minutes without suspends. If the watch's Bluetooth connection is lost or even if the phone is rebooted, IHRN continues to work properly and there is no effect like power off the watch.

I hope you will fix it with the next update.
[Samsung Galaxy Watch 4] tryinghardest:
Thanks Dante. it worked.
[Samsung Galaxy Watch 4] Dante63:
Already mentioned in the changelog, it's really unfortunate that samsung still hasn't addressed it, so now I'm writing a worker code to inject it into shm mod, it will check the time if it's more than 30 mins, and connected to watch, send IHRN on signal to watch...

But it's not simple and probably will take time, so I'm delaying the phone shm mod a bit...
[Samsung Galaxy Watch 4] xda-dvlprs:
Thanks @Dante63

So, shouldn't the shm mod apk on the phone always be running in the background so that the code you add can always run? I wonder if shm mod apk is already self-restarting and always running in the background? On my own phone, I added it to the exclusions so that the ram cleaner would not close the shm mod apk. Will everyone have to do this?

Since IHRN measures every 10 minutes, wouldn't it be better if the code to be added checks every 11 minutes instead of 30 minutes? I don't think this will put much of a workload on our phones.
[Samsung Galaxy Watch 4] Dante63:
The measurements are on the watch, not phone, if there is an alert for actual afib, all measurements will be sent to the phone, the phone doesn't have any scheduler except a listener to recieve data from watch...

Worker or scheduler minimum time is 15 mins that runs, initially I will do that and test the battery of the phone but I think every hour should be fine alongside > 30 mins (I can make it 11 and 10 but first I need to successfully inject the code and make it work)
[Samsung Galaxy Watch 4] xda-dvlprs:
@Dante63, of course I know that measurement is done on the watch attached to our wrist :)

But I wanted to ask this : If the code you will inject and trigger is in the shm mod apk on the phone, shouldn't this application always run in the background?

Please answer by re-reading my previous posts in the context of this question.

Also, if the code you will inject is the shm mod apk in the watch, not on the phone, this shm mod apk in the watch must always be running in the background from the moment the watch is booted. How can we achieve this in watch?
[Samsung Galaxy Watch 4] Dante63:
Sorry, I spoke without explaining how workers work, it's not about app being optimized, the app tells the os to register a task that runs every set of time and does a certain task and the os will do it...

Injecting the code into the watch is not ideal because on the phone it would 1% or less, on the watch it would be 10% at least for battery consumption...

What should be done is that samsung creates boot complete and checks if it recieved IHRN flag, but that value for some reason is stored on the phone but unclear on the watch, it should be stored on the watch as well...

If I would inject code to phone, it would be a scheduler to check watch connected and last time > x minutes...

If I would inject to the watch (which is more challenging), I have to find the code that starts IHRN, create a flag and save it on the watch, create a boot complete receiver and register it for the os, this is a code that runs when watch boots up, I check the IHRN flag and start it if it's true, and I have also handle IHRN off flag...

In both cases I have to test battery, and I have to see the feasibility of this because I inject assembly code, I don't go all the way back to Java code...

But since you mentioned why not the watch, I might go for the watch despite it being more difficult but it's better than running a code on the phone every x minutes...
[Samsung Galaxy Watch 4] xda-dvlprs:
For now, I power on my watch every morning, put it on my wrist, and use IHRN without any problems by turning IHRN switch off and on once by manually from my phone.

I look forward to using IHRN without doing this little action when you have time to fix this problem, thanks in advance @Dante63
[Samsung Galaxy Watch 4] Dante63:
Just an update:
[Samsung Galaxy Watch 4] xda-dvlprs:
I didn't think this problem occurred in the stock SHM, otherwise Samsung would have fixed such an annoying thing in a short time.

This explanation of yours summarizes everything, I am sure you will find a way to overcome this obstacle soon. (y)
[Samsung Galaxy Watch 4] Dante63:
*** Phone SHM MOD - 1.2.4.003 Released - Changelog ***
[Samsung Galaxy Watch 4] SyCoREAPER:
Firstly, Mod Companion is a piece of art. It works and it's easy to use, something even multi-million dollar companies can't get right.

I have one suggestion however specifically for the Watch Section. It would be nice if it remembered the last downloaded/installed version to the watch when Companion was used, sort of like the main page for the application.
[Samsung Galaxy Watch 4] Dante63:
Here is something you guys will love:

SHM MOD Companion

Major Update for

watch 5.2.5 and phone 5.7.5

With this update, you don't need to adb connect to update the watch apps (shm mod and shm mod companion) as you can update directly from your watch given you have granted installation permission...

If you find any issues, please let me know and I will fix it as fast as I can...
[Samsung Galaxy Watch 4] Dante63:
I will consider this today since I made a mistake in the last release...
[Samsung Galaxy Watch 4] Teknodad1974:
Samsung and Google are preparing Wear OS 5 based on Android 14

The next generation of Wear OS is coming possibly as soon as this year, with Samsung and Google preparing a...

9to5google.com
[Samsung Galaxy Watch 4] Therealtauseef:
Hey, First of all thank you. I bought this watch and I was really worried why bp monitor is not working but you helped me, so thank you so much. And just want to ask a quick question are you planning to sync shm with samsung health app or not.
[Samsung Galaxy Watch 4] Dante63:
Shm mod companion > BP sync
[Samsung Galaxy Watch 4] AkoreJepade:
IHRN seems to be working again! Thx! I did notice one thing that has stopped working, Snore Detection.
[Samsung Galaxy Watch 4] Dante63:
On watch reboot, or boot, IHRN requires restarting and I'm working on a patch, this is due to mod not having system privilege, Google restricts anything from running on boot for any 3rd party apps (which in this case, shm mod)

To solve it, I'm adding a small code into phone shm mod that listen to watch connectivity, check last IHRN and send flag start IHRN if time is too old...

This is the best way I could think of, most battery friendly way...