yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Watch 4] confusicus20071:
Thanks - don't apologise at all. Thank you for your work!
[Samsung Galaxy Watch 4] Lenster45:
I have a problem installing SHM MOD to watch

I followed all the directions, turned on developer developer, turned on ADB debugging, turned on debug over wifi, got the IP 192.168.1.116

I renamed the mod to SHMMOD and placed it in the same folder as ADB

Issued adb kill-server followed by adb start-server and got deamon started successfully.

issued adb connect 192.168.1.116 got connected to 192.168.1.116:5555

Never got an prompt on the watch to reply OK to.

tried

C:\adb>adb -s 192.168.1.116:5555 install shmmod.apk anyway and got this:

error: device '192.168.1.116:5555' not found

I suspect my issues is I never got a prompt on my watch to reply OK to
[Samsung Galaxy Watch 4] jtOttawa:
I seem to recall the option didn't show up automatically on the watch either - had to turn the bezel or click the home key I think - don't remember which, but give it another try. *Edit*: I should add that you should get a message first saying you failed to connect - if you're getting confirmation of connection that wouldn't appear to be your issue.
[Samsung Galaxy Watch 4] roberttaiwan:
did you manage to get the body composition thing working? I just bought Galaxy Watch 4 and it's not on there (I'm also in Taiwan)
[Samsung Galaxy Watch 4] Lenster45:
Thanks for your replay. Didn't work

here is what I typed (renamed the mod to SHMMOD)

C:\adb>adb connect 192.168.1.116:5555

connected to 192.168.1.116:5555

C:\adb>adb -s 192.168.1.116:5555 install SHMMOD.apk

error: device unauthorized.

This adbd's $ADB_VENDOR_KEYS is not set; try 'adb kill-server' if that seems wrong.

Otherwise check for a confirmation dialog on your device.

- waiting for device -

You would think at this point I would have the prompt on the watch. But home and rotating the bezel showed nothing.
[Samsung Galaxy Watch 4] jtOttawa:
Have a look at this video - I found it helped me a lot to troubleshoot my way through the process:
[Samsung Galaxy Watch 4] Lenster45:
Thanks for your reply. watched the video. unfortunate it did not show the prompt on the watch for me to reply to.

I know this is not rocket science, but it still sits there "waiting for device"
[Samsung Galaxy Watch 4] jtOttawa:
No, but the video does show the connection failing if you need to click on the prompt, doesn't it? Whereas you're getting a 'connected' message? Try this: after you get the 'connected' message, run the 'devices' command to see if you are, in fact, connected. If not, try to connect, and maybe try the back key this time if you don't see the prompt. Also, make sure that's the right IP, of course. *Edit*: Also, try just giving it more time for the prompt to show up.
[Samsung Galaxy Watch 4] Lenster45:
adb devices is showing me unauthorized

C:\adb>adb devices

List of devices attached

192.168.1.116:5555 unauthorized

I'm googling how to fix that but not with much success
[Samsung Galaxy Watch 4] jtOttawa:
That's odd - another user ran into the same issue (you can search this thread for 'unauthorized') - but his solution was to add the port number (5555) to the connect command, which you are already doing. And if you wait a bit the prompt doesn't show up?
[Samsung Galaxy Watch 4] jtOttawa:
Not to be too basic, but have you checked that 'adb debugging' and 'debugging over wifi' are still turned 'on' on the watch?
[Samsung Galaxy Watch 4] Lenster45:
Problem solved .Uninstalled and reinstalled ADB on the PC. Must have had corrupted keys.

Thanks for all your help.
[Samsung Galaxy Watch 4] jtOttawa:
Great to hear! And anytime, even though I didn't really help much... 🤣😉
[Samsung Galaxy Watch 4] daasguy:
The syn connection keeps breaking between health and Samsung app on non Samsung phone from time to time. I mean it's really nitpicking but anyone else having this issue? Although just have to enable permissions from time to time when it doesn't sync blood pressure.
[Samsung Galaxy Watch 4] timtian:
very nice,thanks
[Samsung Galaxy Watch 4] Dante63:
Do tell me more because it's not suppose to happen...
[Samsung Galaxy Watch 4] gerardo1000:
Hi Dante. I use sleep as android app to monitor sleep but samsung blocks oxygen saturation sensor data for third parties. Do you think it is possible to make any changes? Thank
[Samsung Galaxy Watch 4] Dante63:
I can't mod Samsung Health if that's your question, but I'm interested in knowing more about the blood pressure sync problem because it seems that the settings failed to save on Samsung Health side which when you reboot, permissions are disabled 🤔
[Samsung Galaxy Watch 4] Suhan2012:
Hey is there anyway to download Samsung Pay using this method for restricted countries.
[Samsung Galaxy Watch 4] Dante63:
Unfortunately, you can't sideload it,

You'll probably bump into build version error which indicates your watch already has S Pay, and since you can't see it, it means it's hidden & locked by region and you can't enable or show it
[Samsung Galaxy Watch 4] Suhan2012:
Anyway to get SPay on region locked countries. For sw3.
[Samsung Galaxy Watch 4] Dante63:
Current way for Watch3 (or any Tizen watch in general) is changing its CSC...
[Samsung Galaxy Watch 4] Suhan2012:
That is complicated for me. I am scared that i will brick my wathch. Your method seemed easy. thanks for the help.
[Samsung Galaxy Watch 4] gerardo1000:
It would not be modifying the samsung healt. It would unlock the oxygen sensor so that third party app can collect oxygen saturation data. The sleep as android app cannot access this data.
[Samsung Galaxy Watch 4] Dante63:
To unlock it is to modify it, because it's embedded code in Samsung Health to check the watch CSC...

Since I can't mod it, the other option is wait for official CSC change of the Watch4 guides to come out
[Samsung Galaxy Watch 4] gerardo1000:
Truth. I didn't expect the galaxy watch 4 wear to come with such restrictions. Tickwatch and fossil are more open. Thank
[Samsung Galaxy Watch 4] benjat:
Thanks to our brother dante. Method works with my gw4c. I install shm 1st, then the plugin, then when my watch arrive, i use the bonjour method to push shm apk to the watch before done any update. Ecg, bp work flawlesly and no 2 shm icon in watch. Only the one with M available.

Thanks again bro.
[Samsung Galaxy Watch 4] Gadget-john:
I have installed your excellent mods on my Galaxy Watch 4 Classic and my Galaxy Note 20 Ultra in Thailand, and now have BP and ECG monitoring working perfectly on Watch and Phone.

I have also set up Samsung Health Monitor to synchronise with Samsung Health, which also works fine with one caveat.

When I first set up the SH to SHM sync, my BP readings automatically appeared on SH, and ECG sync produced a link on SH after a new ECG reading was done. I could click on the link in SH which took me to the detailed results on SHM.

Now, my BP results automatically sync to SH from SHM, but no ECG information passes to SH from SHM.

I have checked all permissions are granted on both apps, stopped and restarted both apps but cannot get ECG results info to pass from SHM to SH as they did on the 1st day of installation.

It's no big deal, but frustrates me as it worked originally!

Any ideas?

Thank you meanwhile, because having BP and ECG monitoring working perfectly is a wonderful and beneficial development for me!🙏🇹🇭
[Samsung Galaxy Watch 4] jtOttawa:
In my experience this is caused by the sync 'hanging' in SHM - not sure why, but I find if you prompt it (by either swiping downward on the BP page or tapping the sync icon) it starts syncing again. I don't see any specific setting for the sync feature, so not sure why this happens - perhaps Dante63 might be able to shed some light on this. *EDIT*: Sorry, read your post too quickly - that's interesting tho, as I don't see an ECG link in SH...? *EDIT#2*: Just ran an ECG to test this and, rather than a link in Samsung Health, I get a notification message - that then links to SHM to see the results when you click on it. Is that what you were referring to?
[Samsung Galaxy Watch 4] Gadget-john:
Now you have got me thinking! I am convinced on the day I first got the SH to SHM set up to automatically sync, after I ran ECG on my Watch, the results appeared correctly in SHM, and I'm sure when I opened SH, under my BP results synced from SHM was a box referring to ECG Results, but with few details. Clicking on this Box took me direct to the ECG details in SHM..I'm sure I haven't dreamt this..?!

You are correct that also I received a Notification in my phones drop down list, linking me to the ECG results in SHM.

Interestingly now, I do not receive this notification either..

I have checked all Notification options I can see are turned on, and all App permissions granted in both apps..

Manually syncing in both Apps makes no difference. BP readings auto sync perfectly from SHM to SH, but ECG readings remain perfectly recorded in SHM, just without any Notifications or link to SH..

It's no big deal, but still puzzling to say the least..!
[Samsung Galaxy Watch 4] jtOttawa:
Yes, I remember you mentioning that when you first set it up - but I have never seen any link to ECG in SH - unless somehow I missed it? And as you mention all notification settings both in SHM and for SHM on your phone are on?
[Samsung Galaxy Watch 4] Gadget-john:
Well, after writing my previous reply, and went into my Galaxy Note 20 Ultra's Notification Settings, and changed Notifications from Brief to Detailed.

Ran another ECG test on the Watch, and immediately received a Notification on my Phone, which when clicked took me straight to SHM ECG results..

Still nothing appeared in SH re the ECG test, so maybe my memory is playing tricks?!
[Samsung Galaxy Watch 4] jtOttawa:
Well, at least you're now back on par with the rest of us! And at a glance online I'm not sure ECG is ever supposed to be shown in Samsung Health, but rather just SHM if I'm not mistaken - maybe you were looking at SH when you got the notification the first time, so it just seemed that way?
[Samsung Galaxy Watch 4] Dante63:
Yes it works but honestly, it's very odd that you don't have it even though Australia has been approved for BP and ECG, perhaps your watch CSC isn't Australian 🤔

I will update my post about ECG,

There is no sync of ECG at all to Samsung cloud, you can't see any results of ECG on Samsung Health, the tile of ECG in Samsung Health is just a shortcut to open SHM at ECG section and it won't be there because the mod won't show up due to name difference
[Samsung Galaxy Watch 4] Dante63:
No no, don't worry, rest assured, updates can't break the mod because the mod is independant, everyone installed the mod and most have received different types of updates, mod is still intact, no one reported any issues...
[Samsung Galaxy Watch 4] jtOttawa:
I finally found an image of what the linking tile in SH should look like under normal (not Dante63's mod) circumstances - is this what you saw Gadget-john?
[Samsung Galaxy Watch 4] Dante63:
That is what I meant by ECG tile, it is visible when you have at least 1 ECG recorded and all what it does is open SHM at EG view...
[Samsung Galaxy Watch 4] jtOttawa:
Thanks Dante63 - but just to avoid any confusion, as you mentioned in your previous post, this tile does not show up when using the mod, correct?
[Samsung Galaxy Watch 4] Dante63:
for WearOS SHM MOD, it won't show because I had to change the package name to make the MOD work on the phone with the watch4, Samsung hardcoded the ECG tile to the original package name in the Samsung Health app...

So this tile can be seen only in the Tizen SHM MOD since I didn't need to change the package name and obviously it will be visible also on the original SHM...
[Samsung Galaxy Watch 4] kbboykin:
I'm confused. What doesn't show up in SHM Mod Wear OS? When I tap the ECG (and I have both Tizen and Wear OS MOD installed on the same phone and grouped) it gives me the choice of either MOD to look at.

On another note, I got a message for SH update today, but have not updated it yet. 6.19.5.017. My current version is 6.19.1.001
[Samsung Galaxy Watch 4] Sneeder:
Hi @Dante63 , I used the search function but didn't found what I'm looking for. I don't still own a galaxy watch 4 so my question may sound obvious but believe me it is not, for me. Anyway, I would like to know if 24h/24 afib detection is available in your mod. Thanks
[Samsung Galaxy Watch 4] Dante63:
Because you have Tizen mod installed alongside WearOS mod, you can choose to view Tizen and you can choose to view WearOS, but if you have only WearOS mod installed, you won't see the ECG tile in Samsung Health

Not sure why you're telling me about Samsung Health update but I'm aware of it and I updated 🤷🏻‍♂️
[Samsung Galaxy Watch 4] Dante63:
If you're asking if SHM has auto ECG or BP recording to detect abnormal behavior of heart, then unfortunately no, SHM is manually managed by you, you choose when to record
[Samsung Galaxy Watch 4] Sneeder:
Not an auto ECG but I read here and there, mostly reddit, of people getting atrial fibrillation alerts during the day so when the smartwatch is non actively managed, and this is with galaxy watch 4
[Samsung Galaxy Watch 4] Dante63:
SHM is a manual recording tool, it shows your heart condition but I don't think it would notify you about afib, if the watch does it, then it's probably embedded inside Samsung health with the heart sensor monitor...

Do share some of those reddit so I can have a clear idea of what you mean if I misunderstood you
[Samsung Galaxy Watch 4] Sneeder:
https://www.reddit.com/r/GalaxyWatch/comments/j1xsrc

Anyway I also saw that mentioned in some reviews
[Samsung Galaxy Watch 4] Dante63:
From what I see in his first update, when he said it detected afib, so he re-ran the tests...

This tells me, he has done it manually...

I left him a comment on reddit for confirmation...

I've seen the entire code of SHM, so I assure you, SHM is a manual tool, nothing automated for now...
[Samsung Galaxy Watch 4] Sneeder:
But he also said that the watch reported it when he got out of bed. It's probably a function independent from SHM at this point
[Samsung Galaxy Watch 4] Dante63:
Same thought, but this reddit is 1 year old, so I'd say it's watch3 and the alert heart rate alert in this case

Which he can measure an ECG to see why the heart rate is abnormal at rest or so
[Samsung Galaxy Watch 4] Sneeder:
Uhm, I hope they didn't deprecate this feature
[Samsung Galaxy Watch 4] kbboykin:
Thanks.

Just wondering if I should bother with the SH update.
[Samsung Galaxy Watch 4] Dante63:
That is completely up to you,

And if you decided to update, make sure that permission for SHM are still enabled and set features didn't reset back to original values
[Samsung Galaxy Watch 4] jtOttawa:
This has been asked, and answered, several times already, by new users like you who, instead of reading the OP carefully, would rather post and ask. Read the OP - the link is there, and do not post asking for information that is already in the thread.
[Samsung Galaxy Watch 4] Dante63:
There is no Samsung Health mod, there is Samsung Health Monitor mod, and for that, please read the 1st post, it's well organized I believe and if you do a key combo (CTRL+F), the browser will show you a magical tool that allows you to search the current page you're on lol...

And if you have more questions, use the search box of XDA, upon typing, you'll see XDA offering several options of where you want to search, choose "Search this thread"
[Samsung Galaxy Watch 4] Yuudai_bouda:
Thank you so much it really helps
[Samsung Galaxy Watch 4] majd00shka:
I just noticed that BP stopped syncing. Checked all the settings in developer mode and all is good. When I go to check the app permissions, I can't see SHM or any other app.

I'm using a Galaxy S10 Lite with latest software and so is all the apps that I have.
[Samsung Galaxy Watch 4] jtOttawa:
Yeah, mine did that too after the latest Samsung Health update - the settings under 'Set Features' got reset to the defaults - just go through the BP sync setup steps again and it will be fine. *Edit*: I always read too fast - I see you checked the settings, but did you force close SH and clear cache? Also, you will have to turn data permissions on again in SHM.
[Samsung Galaxy Watch 4] majd00shka:
Thanks.

I already did that and I wasn't able to enable it in SHM. I reinstalled SHM and that solved it.
[Samsung Galaxy Watch 4] bonnington:
Super effort. My phone arrived at 2pm all installed by 5pm with no problems. Sent cash for a coffee.
[Samsung Galaxy Watch 4] Dante63:
Thank you for the support 🙏
[Samsung Galaxy Watch 4] maxfirex:
Yes
[Samsung Galaxy Watch 4] Dante63:
First message is yes and I don't know what you're trying to say lol, I'll take it as "YES IT WORKS" 😁
[Samsung Galaxy Watch 4] Dante63:
As I thought, manual measurement
[Samsung Galaxy Watch 4] Sneeder:
Thank you for your interest, really appreciate it
[Samsung Galaxy Watch 4] cft6980646:
I just noticed that set features are locked this time after I updated Samsung Health to version. 6.19.5.017. I have forced stop Samsung Health and clear the cache,but it's not working this time.
[Samsung Galaxy Watch 4] cft6980646:
Well, it's working now:ROFLMAO:
[Samsung Galaxy Watch 4] Francjl9:
hmmm I can't access set features from about screen. all i get is developer settings.

latest Samsung health - pixel 6 android 12
[Samsung Galaxy Watch 4] jtOttawa:
Did you follow the steps in Dante63's instructional video to make them appear...?
[Samsung Galaxy Watch 4] ardahan:
I have a Galaxy note 9, purchased in a supported country (Belgium) for SHM, also bought the galaxy watch 4 in the same country trough official channels. No root or whatsoever but changed the CSC to activate the automatic call recording. And I'm sure because of this SHM (and BP and ECG) didn't work in "my region".

Executed the steps in this tutorial and everything works fine: BPM, ECG, Syncing with Health. Except while calibrating my watch4 for measuring BP, it had to cool down a few times before i could finish the 3rd measuring.

Very happy for not having to change the CSC or maybe having to factory reset my phone.

Great tutorial, thank you very much (y)
[Samsung Galaxy Watch 4] jtOttawa:
Not only that, but some have reported that you can't change the CSC back once you've changed it on the GW4, and a reset wouldn't help either I don't think.
[Samsung Galaxy Watch 4] rwald:
FYI: I initially thought that installing the modded app to the watch didn't work, because even after installing it the ECG app on the watch had a button reading "Download the app" which opened a link on my phone to download the app from the Galaxy App Store. But then I realized I was using the original app on my watch, I just needed to scroll farther down to get the modded version (distinguishable due to the M in the logo). So if anyone else has experienced a similar problem, there's an easy fix.

Also, contrary to the description at the top, the modded version does seem to be creating tiles which can be used to replace the original tiles, allowing access to BP and ECG from the tiles interface. I haven't checked the changelog to determine when this feature was added, but might be a good idea to update the documentation to reflect this.
[Samsung Galaxy Watch 4] jtOttawa:
You must be referring to shortcut tiles on the watch. The tiles referred to in the description are tiles in Samsung Health linking to BP and ECG - you will note that you get the tile for BP in SH, but not ECG, for the reasons detailed by Dante63.
[Samsung Galaxy Watch 4] rwald:
That's true, but the phrasing of "since the first release of SHM, the ECG tile is missing for WearOS but rest assured that the ECG tile has no use other than being a shortcut to open SHM at ECG tab..." makes it sound like it's talking about the tile on the watch: "missing for WearOS" sounds like it's missing within WearOS (e.g., on the watch itself). And does the Samsung Health phone app have a tile for ECG under any circumstances? Because if it doesn't, the bit talking about the ECG tile doesn't seem like it's talking about the Samsung Health phone app either.
[Samsung Galaxy Watch 4] jtOttawa:
Fair enough. And yes, it does, I posted a pic of it up above.
[Samsung Galaxy Watch 4] Dante63:
If you can't access set features, verify the path of FeatureManagerOn and force stop Samsung Health, if you don't know what I mean, please watch the video at the BP sync section

True, one direction csc change...

The title was very clear "ABOUT ECG IN SH", this means every word mentioned is about ECG in Samsung Health, and the WearOS refers to SHM WearOS, you could ask about it more rather than write assumptions that may mislead other users into asking questions and I have to answer everyone telling them the same thing about ECG, nevertheless, I will update it for you and I will make it clearer that I'm talking about SHM WearOS ECG tile in SH...
[Samsung Galaxy Watch 4] rwald:
Sure, clearer wording is all I was really looking for.
[Samsung Galaxy Watch 4] Dante63:
Done already, let me know if you want it clearer 😊
[Samsung Galaxy Watch 4] ardahan:
That would have been really bad then. Glad it didn't turn out that way.

I changed the CSC on my phone only actually, does that change the CSC on the watch automatically also?
[Samsung Galaxy Watch 4] jtOttawa:
No. If you'd like to check it, just go > About Watch > Software > Software Version and it's the last three letters of the second number listed.
[Samsung Galaxy Watch 4] Dante63:
Your phone csc & firmware has nothing to do with the watch csc & firmware

They are completely independent
[Samsung Galaxy Watch 4] McKajVah:
Hi.

After using the modified version of the app, the green light on the back of the watch stops flashing. The strange thing is that it still continues to record the heart rate continuously without any dropouts...

I have to turn the watch off and on again to see the green light at the back again.

Anyone else seeing this behaviour?
[Samsung Galaxy Watch 4] Dante63:
If anyone did see the behavior, you would've seen so many reporting it (because version 157 was released on 10th September), however, on reddit I've seen this behavior of green light but SHM wasn't involved, it was with SpO2 and there was a debate about faulty sensor...

I say give the watch a reset and use it without SHM (to clear doubts about it).

Try to find the cause, if the watch behavior is normal, then install SHM and keep observing, if nothing happens then the reset solved it, reset solves most of the problems...
[Samsung Galaxy Watch 4] sgtslaughter64:
I hope you can help, I think I am missing something. When I open up samsung health and tap the version number, I only see an option for developer mode, I cant change features. SH 6.19.5.017
[Samsung Galaxy Watch 4] jtOttawa:
Right. That's normal. Now go back to the instructional video and follow the steps to enable 'Set Features.'
[Samsung Galaxy Watch 4] sgtslaughter64:
Thanks.
[Samsung Galaxy Watch 4] jtOttawa:
So all sorted now?
[Samsung Galaxy Watch 4] sgtslaughter64:
Not yet. Haven't had a chance to watch the video. I was previously reading the written instructions.
[Samsung Galaxy Watch 4] Chris4312:
Successfully installed on onePlus7pro. Had to remove all google accounts on phone. Deleted memory for google play store and google play services. Phone rebooted. Deleted existing bluetooth connection to whatch.

Installation as described in this thread. Then re-connected the whatch with the phone using galaxy wearable app.

Took me a while to figure out the extra steps.

Now all works fine.
[Samsung Galaxy Watch 4] sgtslaughter64:
Working perfectly now!!!! Thank you so much! You are a genious
[Samsung Galaxy Watch 4] jtOttawa:
He is, isn't he? You can always throw a few bucks his way for a coffee if you'd like to show your appreciation - devs drink a lot of coffee putting this stuff together for us... 😉