yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Watch 4] ohmistigan:
Sorry, but I am confused because I seem to lack some basic steps BEFORE installing the companion:

You show a desktop in your tutorial where you install the companion app. But the desktop computer already seems to be connected with phone and watch??? What do I have to do to prepare that? I can't even run an apk-file on my PC. When I remember the old days of my "moddery" with galaxy s2 I think I have to install this google-software-package for creating own apps I formerly didn't quite understand ... Am I right?

Sorry again for asking such basic questions!
[Samsung Galaxy Watch 4] devaponnadsm:
It is his phone. He is using Samsung Dex to connect his phone to PC/monitor etc... You need to install the Companion on phone and watch. You don't need a PC.

Samsung Dex is a feature in some high-end Samsung devices where you can enjoy desktop experience of your phone.
[Samsung Galaxy Watch 4] ohmistigan:
Thanks a lot!!!
[Samsung Galaxy Watch 4] Ree$:
how do you do.

how fix it ?
[Samsung Galaxy Watch 4] Dante63:
Uninstall the stock/tizen shm from your phone
[Samsung Galaxy Watch 4] mouse@home:
Sorry for that... I'm using a watch 6 on a Sony Xperia 1 III someone may point me to the correct app needed? Really thanks in advance!
[Samsung Galaxy Watch 4] Dante63:
Watch the video tutorial about using shm mod companion, this is the app you will install initially and it will help you with everything else, installing the mod, configuring it and so on...
[Samsung Galaxy Watch 4] mouse@home:
thanks! I've installed the app for the smartphone, did I need something for the phone itself?
[Samsung Galaxy Watch 4] mouse@home:
ok done!
[Samsung Galaxy Watch 4] pr1ncemani:
Dante, Holy **** man! I've been wanting my Galaxy Watch 4 to measure B.P. and E.C.G. for years now. I bought a Watch 6 recently and stumbled upon your post and SHM works like magic now! THANK YOU SOOOO MUCH!!
[Samsung Galaxy Watch 4] badabing2003:
@Dante63

Do you know if it is possible to export the food intake data, detailed data like it is available in the app?

The share option is pitiful at best.

Thanks
[Samsung Galaxy Watch 4] Dante63:
Just saw and couldn't agree more, but i don't think so, just a picture with calories
[Samsung Galaxy Watch 4] badabing2003:
Thanks, your always prompt responses are appreciated.

Too bad there is no export capability.

Thanks
[Samsung Galaxy Watch 4] Magnus334:
Really appreciate your effort Dante!! The result is awesome and much needed.

I wondered — Why not put the decompiled progress on GitHub (or BitBucket)? It would enable easier code review and contribution.

P.S. - I’m new to XDA forums
[Samsung Galaxy Watch 4] Dante63:
1. You can decompile stock and mod and compare them, I always provide both apks in my Google Drive...

2. I see no advantage for me to post it other than needing to update it alongside posting on github, and I'd rather focus on patching, moding and making playstore apps and watchfaces, alongside responding to comments and messages, after all, my free time isn't that big but trying my best to be around and productive...

3. Github is confusing a bit, and whenever I understood how it works, give me few days and I would have already forgotten how to use it...

I hope this makes sense...
[Samsung Galaxy Watch 4] Magnus334:
I understand :)

Thanks for the explanation, I now also see it’s quite common on XDA.
[Samsung Galaxy Watch 4] dmoney98:
Hello Dante

Samsung's Phone s22u SHM app is version 1.2.5.003 and watch 5 SHM app is version

1.2.6.002.

Are there any significant changes from your versions?

Thanks.
[Samsung Galaxy Watch 4] farshood1:
Hi dear dante63 many thanks of your nice efforts. i used your instructions on samsung s23u and galaxy watch5 it worked very well for 1 year but recently i followed rules on my watch5 and my poco phone x6 pro all well done and works good on my hyperose and i did several bp ,ecg but within a week of installation, my watch disconnect from phone samsung wearable app .i reseted my watch followed your instruction again but no change in what happened. in addition now i use wearable app connected to phone and not installation of your shm and wearable working normal
[Samsung Galaxy Watch 4] xandercom:
Can't get my honor magic v2 to connect to the watch via wifi ABD. Just times out after a period of time.

Tried multiple routers. Oh well, looks like Samsung want me to buy even more honor products.
[Samsung Galaxy Watch 4] Dante63:
they are in beta test phase and will be released later
[Samsung Galaxy Watch 4] dmoney98:
Thanks for your hard work.
[Samsung Galaxy Watch 4] Dante63:
*** Watch SHM MOD - 1.2.6.002 Released - Changelog ***

Android Manifest:

- Nothing New observed...

GUI:

- Proper Description of permissions and setting them up correctly to prevent Services from being killed or removed by Watch OS...

***permission_bluetooth_description: Used to scan for and connect to nearby devices

***permission_notification_desc: Used to provide you with timely information

***permission_sensor_notice_cause: Used to provide measurements such as blood pressure and ECG

Since OS remove unused permissions from time to time, this causes stock SHM to crash on start, and I have seen this a lot...

CODE:

- Aside from checking watch connected to Samsung Phone, there is a check if the phone is verizon when samsung fails, odd device restriction check...

- They added on watch connect, start service but that will not work if the watch booted it up for the first time...

NOTE:

- in the current 1.2.5.002 Patch #2, if you use ECG Tile or BP Tile, even after reboot, the service does not start, I missed this part, I should add the same logic of checking and starting service from the main activity into the Tile Activity, So I will make sure in 1.2.6.002, IHRN service is handled correctly in all cases...

New Approach for handling IHRN:

*** Enhanced handling of service start, by checking several flags, isIhrnEnabled and check scheduled IHRN, the service starter will be called when conditions are satisfied where ihrn enabled is true and if IHRN is not scheduled, this will handle cases where device reboots, and it's more battery friendly...

*** This patch has been injected into MainActivity (opening the app), Tile activity (from outside) for both BP and ECG, finally, and just to be safe, in both ECG and BP MainActivities...

*** Make sure you have BP or ECG Tile set, when you watch boots up, tile creation activity is called, it will run the IHRN Service via the tile...
[Samsung Galaxy Watch 4] Dante63:
*** Phone SHM MOD 1.2.5.003 ***

Android Manifest:

- Manifest shows line to use native-library libhal.wsm (deleted because this detects knox state and makes shm not work on custom/rooted Samsung)

GUI:

- assets has country code MU - Mauritius but no BP and ECG documents so next would be checking the code for this country to confirm...

- Some strings related to BP were changed from measuring BP on your watch to Measuring BP, probably for Galaxy Ring Measurement? there is no mention of the Ring either way...

- Samsung removed their address in India...

- Switching all fonts to OneUiSans...

CODE:

- CSCUtil confirms MU has ECG and BP but not IHRN...

- Some minor modifications in BP, ECG, IHRN and some activities - namings - not visible to user...

- Samsung Health Data Permission logic added and binding Health Profile Data to SHM - nothing new here, just rewritten everything, either way, this cannot be performed with mod...

Note:

- Patching this was a wild ride due to renaming plenty of classes and functions, whenever I applied a patch, the app would crash because my patch has old namings, but all is well...
[Samsung Galaxy Watch 4] :
It's great! I had to try for a while to get the WAN connection working with debugging to the watch. But now it works. Thanks for the great programming!
[Samsung Galaxy Watch 4] bottomcentre:
What am I doing wrong? I can't install shm mod apk in my pixel 7. No 6th april version neither february version :( (first step of all)

More info:

I had galaxy weareable offical app connected to my watch5 (since I bought it).

I uninstalled this official app, I tried to install shm mod apk and nope.
[Samsung Galaxy Watch 4] Dante63:
Which app are you installing exactly (apk name)...?
[Samsung Galaxy Watch 4] MphoWearable:
please help me remove restrictions
[Samsung Galaxy Watch 4] riccol1966:
Hi Dante, I've had this installed for a good while but the IHRN function never worked (using Sony Xperia 10 IV), whenever I click on IHRN it shows the current datetime as the last measurement, regardless of toggling it on/off. So I plan to do a reinstall. Can you give me a quick overview on how to remove everything before I reinstall from the beginning? Thanks.
[Samsung Galaxy Watch 4] Dante63:
Follow the YouTube video guide, first post

That's how IHRN should be, showing last measurement time and date and usually it's within 10 mins time frame...

If you want to know more about it, read the IHRN points mentioned inside the on/off toggle, history is only for suspected afib that was caught...
[Samsung Galaxy Watch 4] Aquaholic1:
I have a Pixel 6 pro and when loading the watch.SHM.MOF.1.2.6.002.dante63.apk it gives me a not compatible app message when it tries to install Samsung health monitor. Running android version 14.
[Samsung Galaxy Watch 4] Dante63:
Share a screenshot please
[Samsung Galaxy Watch 4] uicnren:
unless I am mis-reading, you do not install the *watch* mod on your phone, hence the incompatibility.
[Samsung Galaxy Watch 4] Aquaholic1:
Wow, I am so sorry to have bothered you. Thank you. I will continue install and once again sorry for such a newbie mistake.
[Samsung Galaxy Watch 4] asifemon0:
Love your work man, i have a weird issue, my ECG starts without touching the crown and tests are off the chart Feels like my Heart is pumping insane i can record a video if you want to see i am using a case (plastic case) i dont know if that is messing with it or not or my sensor is trashed. can you help me bro ?
[Samsung Galaxy Watch 4] Dante63:
Here is my troubleshooting guide:
[Samsung Galaxy Watch 4] asifemon0:
Awesome i will try all the steps tomorrow and reach back. Thanks you are the best mate. cheers
[Samsung Galaxy Watch 4] asifemon0:
Update - Tried step 1 , then removed the plastic case and installed stock strap now ECG works fine. I will use it like this and keep you posted if i found anything . Thanks again mate
[Samsung Galaxy Watch 4] ams1234:
i have a samsung watch 6 and a honor magic 6 pro on macgicOS i dont cant install ECG and bloodprusure

somone a idea
[Samsung Galaxy Watch 4] ams1234:
by help from dante its works thxs mate
[Samsung Galaxy Watch 4] watsonash:
exactly the same thing has happened to me on a Galaxy Watch6 multiple times now (except I have a One Plus phone). The pain is when I try to connect the watch via the Galaxy Wearable app again, it sees the watch and then I attempt to use the "transfer" option, then a second reference pops up with the same name as the first (in my case Galaxy Watch6 Classic (M4VJ) and I confirm the number ,and log into Samsung as requested on the UI flow on the phone, then I always end up with a message saying "Couldn't connect to Galaxy Watch6 Classic (M4VJ). My only way past this is to reset the watch again, but that is a painful experience as I have to set up my google payment cards and a bunch of other stuff which isn't persisted to the backups. I don't have these connection problems when I don't sideload the Samsung Health Monitor app onto the watch.

so do we also need a hacked Galaxy Wearable app as well on the phone to work with the hacked Samsung Health Monitor app on the phone?
[Samsung Galaxy Watch 4] devaponnadsm:
I don't think the problems are because of modded SHM. Also, its not possible to modify Galaxy Wearable.
[Samsung Galaxy Watch 4] watsonash:
thanks. Yeah, I think you might be right. The watch disconnected again yesterday but was probably caused when my phone was away from my watch. Seems a widespread Samsung issue. The problem being that a transfer/reconnect never works and I have to go through the watch reset process to re-pair the watch (hence the reason that my bank cards tied to Google Pay have to be reset up each time).
[Samsung Galaxy Watch 4] Dante63:
Transfer would work if you have a second phone, you'd transfer to the second phone then back to the main phone but at some point, this transfer will end up having unstable connection, I experimented this with my Samsung devices...

SHM Mod is definitely not the culprit, galaxy wearable/plugin is the culprit after an update (this i know) alongside battery optimization (hypothetically), you end up getting disconnected...
[Samsung Galaxy Watch 4] McFlypants:
As far as i know, this problems comes with bluetooth changes in the newest QPR2 release. The issue happens on many roms, you can find issue reports on gitlab for LineageOS and für GrapheneOS. I know it happens on Evox for my phone, too.

I had this problem even after setting the watch up freshly without your mods, so they aren't the problem.

Newest problem i have is samsung health crashing on my phone. With and without your mods, so they won't be the problem again.
[Samsung Galaxy Watch 4] bourbonlegend78:
Not sure if this is the proper place to ask this question. Is there any way to activate BP monitoring in original SHM app without installing an APK? I can get everything on the watch with another phone but my primary phone has a restriction for installing APK files. I am in the US and would like to activate BP monitoring in the original SHM app if possible.
[Samsung Galaxy Watch 4] AkoreJepade:
Found your other post: https://xdaforums.com/t/samsung-health-enabling-medications-feature.4650901/
[Samsung Galaxy Watch 4] kimtyson:
Thank you so much! Pixel 8 Pro and Galaxy 5 Pro. Works perfectly. I have to admit, it took me more than a single try but persistence payed off. I sent you some PayPal cash. Well worth it. You saved me from buying a Samsung Phone and now I have blood pressure on my Pixel.
[Samsung Galaxy Watch 4] bourbonlegend78:
From my post above, I am assuming from the silence that it is not possible. I unfortunately will have to wait for the US to open BP monitoring up for use.
[Samsung Galaxy Watch 4] devaponnadsm:
It is not possible. Your primary phone is owned by your company/corporate?
[Samsung Galaxy Watch 4] bourbonlegend78:
Yes it is unfortunately, is blocked from installing APK files.
[Samsung Galaxy Watch 4] Dante63:
Silence isn't intended, ever since xda app broke, I have open browser and check xda (and I tend to forget to do that), so there is a delay from my side, but I always respond to any questions asked and not answered by others already...

Unfortunately no, the only way is to remove the company as owner, install the apk and restore ownership, that should do the trick but whether you can update those apps or not, that I am not sure
[Samsung Galaxy Watch 4] Dante63:
*** SHM MOD Companion - phone 6.0.0 ***

*** SHM MOD Companion - Watch 5.5.0 ***

*** SHM MOD Companion - phone 6.0.1 ***

Patch:
[Samsung Galaxy Watch 4] bourbonlegend78:
My apologies as I didn't intend any disrespect by my statement. I truly do appreciate all you have done for the community! How would I go about removing them as an owner temporarily? It is a Galaxy S20.
[Samsung Galaxy Watch 4] Dante63:
None taken, you can uninstall them anytime you want, simply long press the app icon and uninstall, whether on watch or phone...
[Samsung Galaxy Watch 4] badabing2003:
@Dante63

With the latest SHM MOD I couldn't install the watch SHM Mod no matter how much I tried.

I would pair the phone with the watch, and it would ask me what next I want to do, I select install apk, but it would

drop to connect screen instead on installing the apk.

If I try the connect again, why am I being asked to pair again, I see the paired device on the watch?

I see no option to specify the connection port, just the pairing code.

I know the app tries to find the port, but in this case even though the device is paired, should I try to re-pair again?

I kind of like the previous way of pairing first and then as long as the device is paired, just connecting.

Maybe this is an issue on my end, I'm just bringing it up in case there is an flaw somewhere.

At the end I used the PC to install the apk, had no issues connecting from the PC.

All devices are on the same network in case you're wondering.

Thanks for you continued support of this amazing mod.
[Samsung Galaxy Watch 4] Dante63:
If you don't provide pairing code as mentioned in description, it will connect...

If you uncheck "detect ports" to enter the port manually...

The idea is to minimize the input needed, for example, you tap on get watch network info, then press start and it will connect, or enter pairing code and press start, it will pair then connect...

Here is a video on how to connect:

But the part where you said you cannot install is something very concerning, I did rewrite that part to support different file managers, I have done several tests in none crashed...
[Samsung Galaxy Watch 4] badabing2003:
Thanks for getting back.

I expected that, but it would timeout in about 5 seconds and not connect.

I missed that checkbox, my bad.

I'm totally for it, it is indeed much simpler and less friction on the user, the pairing (plus auto-connect on pairing) was super smooth, and I saw in the console that the device was connected and asking me what I want to do next, and the Install APKs button was enabled.

Really nice and seemless. (y)

Except that when I tried to install the apk, it didn't and dropped out the connection, after which the connect button without entering a pairing code was not working and timing out.

I'm on Pixel 7 Pro, and the apk selection was made with the default recents and sorting in time descending order.

Me missing the checkbox to not discover the port was the reason why I couldn't test with specifying the correct port.

This could all be an issue on my watch, and even though when I was experiencing the above issue, I could see the phone in the paired list, often when I enable Wireless debugging, the paired devices list is cleared (not sure if this is by design or a flaw) and every now and then I'm prompted to authorize my network, even though each time I do I select Always.

I went back to test this out, and it worked without issues, I had to Authorize the network again, and then pair, but was able to install apk, doing exactly the same steps that I had been doing, I even disconnected and tried to reconnect, it discovered the port and connected.

Not sure what to tell you, I attribute it to buggy watch / software.
[Samsung Galaxy Watch 4] alonmozes:
can i use it with xiaomi 13t pro ?

will ECG anf BP will work ?

** galaxy watch 6
[Samsung Galaxy Watch 4] databcrab:
I am stuck pairing my phone with my watch, while until then, everything went smoothly. The phone is a Cubot P50, and the watch is a Galaxy Watch4 Classic. My steps are feeding the watch's IP address, the port address, and the pairing code. I then hit "start," and it began scanning port addresses. Later, I got a phone response that said, "Something went wrong. Try again!"

I watched the video; however, it seems to show a different (older?) version of your app. Is it accepting the code, port, and address entered? It starts scanning port addresses instead of pinging the watch.

Edit: Android Version 11

Build: CUBOT_P50_A023C-1_V08_10110816
[Samsung Galaxy Watch 4] Dante63:
As long it connected and it worked, that's good, but if you face issues and manage to capture it (logs or video), share it with me and I'll work on it asap...

Yes

I will be updating the tutorial soon, but I did upload a video on YouTube for how to use the new connection logic...

First provide IP address, then

* if you're paired, just press start and wait...

* if you paired already, just press start...
[Samsung Galaxy Watch 4] carlese:
Hi @Dante63 , I recently changed rom and reset my watch so I used your companion to set everything up and it worked, but now if I click on ECG/BP from the watch app, it says that the phone is disconnected (but it isn't since Wear app is working fine). If I open the SHM app from the phone, it communicates with the watch but it doesn't the other way around so no ECG data is transferred from the watch to the phone.. How can I solve this? I tried clearing app data and uninstalling but still..
[Samsung Galaxy Watch 4] Dante63:
Can you share more details, like screenshots of the apps you are using on your watch with your phone? Do you have stock SHM installed alongside SHM MOD (phone and watch)?

The fact you can make an ECG means you successfully configured SHM, so when you measure an ECG, you should be able to see an icon on your phone with ECG results...
[Samsung Galaxy Watch 4] carlese:
I deleted the stock shm with the companion app and I am using 1.2.6.002 build on the watch and 1.2.5.003 on the phone. If I click on ECG/BP on the watch it tells me to download the app on my phone and then gives me the error "smartphone disconnected", while if I click on the app from the phone it works but then data doesn't go back from watch to phone
[Samsung Galaxy Watch 4] VerticalCobra:
I'm running Android 14 stock + Magisk rooted.

Everything is working well except that ECG from SHM will not show up in Samsung Health. BP shows up fine.

I'm sure I'm missing some trick here!

Thanks
[Samsung Galaxy Watch 4] N_otori0us_:
I can't seem to get my Watch6 to pair with my rooted Samsung. I've tried following all the instructions and downgrading apps etc, but nothing seems to work. Galaxy Wear always give an error, even though the watch does connect by Bluetooth to the phone. On the watch it says check phone to complete setup, but the Wear app says an error occurred. Any thoughts on what should be my next steps?

I've also done the magisk hide and the enhanced knox module too
[Samsung Galaxy Watch 4] pz1982:
Hi, I am new to this thread, I have rooted phone other than Samsung brand and have several questions:

1.Does this method work on the latest WearOS 4?

2.Is Galaxy Watch 6 also supported?

3.Is Galaxy 5 Pro version also supported?

4.Is there some watch from Samsung line where this worsk best with minimum issues?

Thanks
[Samsung Galaxy Watch 4] VerticalCobra:
FYI - I'm using this on my Galaxy 5 Pro with a rooted Pixel 7 Pro with almost everything working.

That should answer most of your questions.
[Samsung Galaxy Watch 4] carlese:
@Dante63 this is the error I get, I started from scratch by resetting the watch and uninstalling galaxy wear/shm and Samsung health from the phone but still nothing.. It only works from shm phone to the watch not the other way around
[Samsung Galaxy Watch 4] carlese:
Also, I tried installing the companion app also on the watch and if I click on "open app on phone", the app opens on my phone so I don't think there are problems in the communication, it must be something in the app.. I tried older version but same problem..
[Samsung Galaxy Watch 4] Dante63:
It's mentioned on XDA and in companion FAQ, there is no ECG sync, never was, but there is a tile shortcut and you can enable it by going into ECG tile enabler, install that tool and it will act as a bridge between SHM MOD and Samsung Health...

Unfortunately no clue, aside from KnoxPatch by @BlackMesa123 , hiding root from different Samsung apps, plugins and services and play integrity pass, nothing else comes in mind...

1. Yes

2. Yes

3. Yes

4. WearOS is easier than old gen Tizen watches (Active 2 and Watch3)

Can you record a video of the phone and watch, where you open the app on watch and open the app on phone and interact with both...

I developed the companion, if there were issues, I can easily address them but not SHM, I only patched restrictions, never changed a logic of connectivity or measurement, yet, you're the first to report of such thing...

What was your device again?

Rooted or custom ROM or stock?

Connected via galaxy wearable?
[Samsung Galaxy Watch 4] devaponnadsm:
It would be really helpful if you make a video recording of the situations you wrote for better understanding.