yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Watch 4] Dante63:
I just want o give you guys a quick peak at what I am doing for the mod...

First thing is that on Telegram some people pointed out that the logo is a bit high (phone and watch), and I pushed it down:

Next is an idea that came to me and I have set a poll on Telegram and majority voted:

And finally, I am working on automating the Samsung Health BP sync by adding a button that would create the SamsungHealth folder with FeatureManagerOn for you in the download folder...

As well I am working on making a check for mod updates...

Wish me luck in making those two features work...

I didn't roll out anything, I'm just sharing what I am working on...

Stay tuned...
[Samsung Galaxy Watch 4] Johnathan271:
Good evening Dante63,

First off, your work is awesome...I have the BP and sync working nicely as I have BP issues so this helps a ton.

My dilemma is this, I have the Samsung Galaxy Note 10+, watch Active 2, and the Galaxy Watch 4.

Now that I have the BP on my watch Active 2 working, the ECG for some reason is not working. I really don't care to have both of these functions on both watches as I wear the Active 2 95% of the time.

If I put the Wear OS Phone MOD on my phone and MOD the Watch 4 will that knock the Active 2 BP sync out?
[Samsung Galaxy Watch 4] Dante63:
I have watch3 and watch4 and it works fine, in fact you have 2 MODs that can be installed independently without affecting each other for the sake of owning two types of watches (Tizen and WearOS)...

So you can use either the watches and the phone will connect to the watch you will use...

Just don't get confused between the MODs, they have different logos to differentiate between them, in other words, you open the WearOS MOD on your phone and see the message "no watch avaliable" and you have the Active2 on your hand and so on...
[Samsung Galaxy Watch 4] Johnathan271:
Thank you so much
[Samsung Galaxy Watch 4] User111111:
In case of a system update, do I have to restore the original version of the app before updating?
[Samsung Galaxy Watch 4] midhunmurali007:
Everything is working except the BP sync. In samsung health app, after force stoping and restarting too, only developer option button is showing. Feature set option is not showing. Tried many times, when i did this 2-3 months back it was working, kindly help me and I really appreciate your great work.
[Samsung Galaxy Watch 4] midhunmurali007:
Oops sorry, it worked, i had copied it to a different path other than the download folder
[Samsung Galaxy Watch 4] Dante63:
No need, you can update
[Samsung Galaxy Watch 4] drhay53:
I'm having an issue getting samsung health to sync everything other than step data, and I have tried lots of various things, which I will explain. I am hoping this is the best place for someone to know what is going wrong.

I have the galaxy watch 4 paired with a moto g7 power. After initial setup, samsung health worked fine; heart rate, oxygen, sleep, etc. all were kept in sync with the watch. I then installed the apk on the watch and the phone and was able to get ecg and BP data. Great! I didn't try syncing BP data to samsung health.

But then I started having the disconnect issues, and eventually the watch and the phone completely refused to connect, after multiple reboots of both. At that point I noticed that the heart rate / sleep / oxygen hadn't been updating for ~24 hours, which I think corresponded to a reboot of the phone.

I made the mistake of unpairing the watch in the bluetooth menu,, which leaves no choice but to reset the phone and watch connection, which wiped the watch. At this point, after re-pairing, I was able to sync step data only; all other data in samsung health is not syncing. SH sees the watch, and I can run a sync, and it updates the time. Both the watch sync (by swiping down on the main screen) and the samsung account sync. They both claim to update successfully, but no data from the watch ever shows up on the phone except steps.

I have since removed all the apps from the phone (samsung health, galaxy wearables, galaxy watch 4) and reinstalled them. I have verified that they are all listed as "not optimized" in their battery settings (I believe this was the source of my disconnects, as I had to enable system apps to see the galaxy 4 plugin). I have reapplied the SHM apk's to both the phone and the watch and I am able to get BP and ECG data to the SHM app. Everything seems to be working except the samsung health sync. Except for steps, which are syncing fine.

Has anyone seen this before and/or has a suggestion for how to fix it?

edit: one other thing. When I go to the heart rate area on the watch, and click "Show on phone", it says "Couldn't open app on phone"

edit2: I noticed that after a reboot, when I try to sync samsung health with the watch by pulling down on the screen on the phone, it says "syncing. this may take some time. please wait..." But then after 30 seconds or so, a very brief message pops up saying "couldn't complete sync with galaxy watch 4". Then after about a second it switches to saying "synced with galaxy watch4 at <time>", where the time is basically "now". So, it does appear that somehow the sync of samsung health between the watch and phone is failing, the message is just very briefly shown.
[Samsung Galaxy Watch 4] Dante63:
It was a good thinking to whitelist apps, because that was the first thing I would've suggested, some phones tend to have aggressive battery optimization that would kill important services, in your case, you need to ensure that galaxy wearable and watch4 plugin are whitelisted as these two are important for watch connectivity and syncing problems, because even if samsung health is killed, the sync would resume as soon as you open the app...

But I do have a question about your device and used version of Samsung health...

Is your device rooted...? What version of Samsung Health are you using...?
[Samsung Galaxy Watch 4] 73sydney:
@drhay53

i would suggest downloading this Samsung Health version, please note it will not sync BP....you'll just have to live with looking it up in Samsung Health Monitor until a way to patch later Samsung Health is found

Samsung Health 6.19.5.017 APK Download by Samsung Electronics Co., Ltd. - APKMirror

Samsung Health 6.19.5.017 APK Download by Samsung Electronics Co., Ltd. - APKMirror Free and safe Android APK downloads

www.apkmirror.com

@Dante63

Sounds like the same issue i was having using anything above Samsung Health 6.19.5.017 on my rooted S20+ 5G - especially "couldnt complete sync"

I am going to start work tomorrow on that project we talked about on TG :)

More news when i have some
[Samsung Galaxy Watch 4] Dante63:
It would be great to find the culprit in Samsung Health and kill it for good, but it is odd that a moto g7 phone would get detected 🤔, this means it's not knox anymore? I wonder...

As soon as he answers about his device being rooted or not... if it's rooted, it would be great to have logs... that way, we can compare Samsung and non-samsung to find something in common and narrow things even more...
[Samsung Galaxy Watch 4] 73sydney:
It is wierd, but the text of that error is very familiar....im pretty sure its a root issue and not knox, but you never know
[Samsung Galaxy Watch 4] User111111:
Is the Samsung Health Monitor app on the Watch only for measuring blood pressure/ ECG? Or also for other things?
[Samsung Galaxy Watch 4] Dante63:
BP & ECG only
[Samsung Galaxy Watch 4] drhay53:
@Dante63 the moto g7 is not rooted. The sync with the watch and samsung health worked for about a day.

All of the apps are listed as "not optimized" under the battery settings in each app's info. That's galaxy watch4 manager, galaxy wearable, and samsung health.

@73sydney I am simply using the play store version of samsung health, 6.21.2.007
[Samsung Galaxy Watch 4] 73sydney:
Cheers, i though thats weird you would get that message, as ive only heard/seen it on a rooted device, with later versions of Samsung Health such as yours...which i have tried here. Thanks for the feedback.

Wonder what else it could be then....
[Samsung Galaxy Watch 4] Dante63:
You didn't mention the plugin, so whitelist it and restart your watch and phone and see if things work
[Samsung Galaxy Watch 4] loopqq:
hi @Dante63

I'm using rooted s20 with oneui4.1 and watch4classic lte Chinese version

the watch app works fine, sync is enabled, but this is what i get when open shm

I've seen some people meet similar problem with Chinese version, maybe more restrictions from normal ones

hope for your reply
[Samsung Galaxy Watch 4] loopqq:
oneui also Chinese version
[Samsung Galaxy Watch 4] Dante63:
You said rooted and I have an idea about the issue and the solution but I forgot to post it, disable your phone encryption and it will work, you are having ERR_INTEGRITY, the device encryption invalid, because it's rooted
[Samsung Galaxy Watch 4] drhay53:
the "galaxy watch4 manager" is the plugin. In the play store it's called "galaxy watch4 plugin" but in apps it's called "galaxy watch4 manager".

I just double-checked that everything is whitelisted, no dice. When I get some time I am going to try the lower-version apk of samsung health just in case. I also used adb to make sure any services with "health" in the name are installed on the watch. Didn't seem to help.
[Samsung Galaxy Watch 4] loopqq:
"disable your phone encryption", you mean disable data partition encryption?
[Samsung Galaxy Watch 4] Dante63:
I am not sure but I think so, basically flash DM verity and force encryption disabler, and all should work fine afterwards, it's hectic because you have to backup and perform a full wipe to be able to flash that
[Samsung Galaxy Watch 4] stain pain:
Ty
[Samsung Galaxy Watch 4] 73sydney:
yup, thats a full /data wipe, so you would need to install TWRP, then flash dmverity and encryption disabler

feel free to PM if you want to go ahead and want the links (because an updated encryption disabler is needed for A12 than is in the easily found steps, i.e. its buried in the thread)), so we dont derail this thread too much :) I have an S20+ 5G so steps and files should be same
[Samsung Galaxy Watch 4] User111111:
Maybe a stupid question but can the modified application damage the Watch?
[Samsung Galaxy Watch 4] 73sydney:
No.
[Samsung Galaxy Watch 4] CKavanagh:
Canada: Shoppers Drug Mart has a Blood Pressure unit near the Pharmacy! The values are not exactly the same between watch and standalone monitor, but it is close. I tested between the 2 devices a couple times a day for a week. Mine is a couple numbers different but not enough for any concern.
[Samsung Galaxy Watch 4] cptkirkh:
I am pretty sure I have followed all of the steps. I can run the BP on my watch and take the EKG but can't get past the BP sync. No matter what I try to do I can't get the set features to open up in Samsung Health. I am running a Pixel 6 and a Watch 4 classic. Thanks in advance.
[Samsung Galaxy Watch 4] Rydeeeeeen:
I have a BP sync with Samsung Health on my Pixel 6 and Watch 4. You're probably in the wrong location for the folder, or you're tapping it in the wrong place.
[Samsung Galaxy Watch 4] drhay53:
Just to update, I was finally able to get samsung health syncing with the watch. Downgrading the samsung health on my phone did not work. I think the key is something from the reddit thread in the OP, which is to do the pairing to the watch from samsung health first, not from galaxy wearable.

I first reset the watch and uninstalled all of the apps on the phone, clearing their storage. Then I paired the watch directly from galaxy wearable; samsung health was not able to sync still.

I then reset the watch again, and "forgot" the watch from the bluetooth settings on my phone. I then opened samsung health and did the "scan accessories", which found the watch, and initiated the pairing from there. After pairing that way, the watch is finally able to sync everything from samsung health to the phone.
[Samsung Galaxy Watch 4] Dante63:
Double check the path, you might have additional folder or space...

You can't sideload and use Samsung Health Monitor on non-samsung...

Odd and interesting, thanks for sharing your solution, hopefully it would help others...
[Samsung Galaxy Watch 4] cmccarter:
Hate to bug you but havving an issue when i try to install shm.203 on my phone....it asks if i want to install it, then tries then fails with a phone not compatible error. did the following:

1. shared to your drive

2. tries to install from your drive

3. moved to my drive still error

downloaded to pc and tried still fail with error.

have I missed something? running android 12, win 11, latest watch software. used to work till i had to reset my watch now blah.
[Samsung Galaxy Watch 4] CKavanagh:
Opps. Guess I didn't research enough. I assumed SHM could be sideloaded because the Google Play Store apps can be downloaded to the Pixel6 (my son just got a Pixel6 and has all his apps transferred from his previous Samsung phone)
[Samsung Galaxy Watch 4] Dante63:
Yep, it's a watch app, not a phone app, if you read the name, you'd see watch apps have watch in the name and phone apps have phone in the name

No problem, Samsung Health Monitor would crash or show device not supported, hence why I made this mod for everyone to use 😊
[Samsung Galaxy Watch 4] hornsbeef:
Dear Dante63!

Thank you for creating such an awesome mod!

Unfortunately I keep running into one problem, and can't seem to find a solution in this thread.

I have (to my best knowledge) followed your instructions, but when I open SHM on the watch and click BP or ECG -> open Phone app => I get stuck on creating my SHM profile on the phone. (it does not complete, only spins the loading-circle)

I am running on my phone: android 8.0.0 on Huawei Mate 9;

my watch: Galaxy watch 4 classic lte 46mm;

SHM on Phone: 1.1.1.191.wearos.dante63

SHM on watch: 1.1.0.203.dante63
[Samsung Galaxy Watch 4] hornsbeef:
I have given SH and SHM all possible permissions, I have tried reinstalling SH and SHM, I have followed instrucions on BP sync (Set feature thingy);

the only way to get past the profil-creation screen seams to be when the watch is not connected via bluetooth - but then the BP and ECG do not work and i get the you need to be 16 year old thing on BP. when I then reconnect the watch and open SHM on the watch -> the same profile-creation-loop happens.

I am now totally lost and would appreciate any help!

Thank you very much in advance!
[Samsung Galaxy Watch 4] Dante63:
I wonder why you couldn't go through at profile creation screen and you say after creating the profile and connect the watch, it goes into loop again (whether it's over 16 or under)...?
[Samsung Galaxy Watch 4] JazonX:
Hey Dante63;

A question I had for a while ...

For Installations on the Watch Directly from PC,

Is there a way to connect the Watch directly to the PC / Laptop over WiFi - Instead of connecting it to a router ?
[Samsung Galaxy Watch 4] 73sydney:
There has to be something to route packets between devices.

Easiest solution is to hotspot both PC and Watch to Mobile if you dont have a WiFi router available
[Samsung Galaxy Watch 4] Dante63:
As @73sydney suggested, connect watch and pc to phone hotspot...
[Samsung Galaxy Watch 4] hornsbeef:
Sorry for the confusing post, I will try to clarify with a video:

Can I provide anything else helpful? maybe logs?

I hope you can help!

Thank you!
[Samsung Galaxy Watch 4] Dante63:
I definitely need to see some logcats
[Samsung Galaxy Watch 4] szaki33:
Hi there, Update: after some time I checked the App and now it showed conmected so fixed somehow.

Thanks

Hi there, I have problem to connect the mod SHM to my watch. Can anyone help pls? I paired my watch via Samsung Health app.

Phone: Huawei P30 Pro

Watch: Watch 4 Classic

Watch mod SHM version: latest(Watch.SHM.MOD.1.1.0.203.dante63.apk)

Phone mod SHM version: latest(Phone.WearOS.SHM.MOD.1.1.1.191.DARKMODE.dante63.apk)

What I tried: Reinstalling the Phone app, Enabling BP sync.

Thanks for any help
[Samsung Galaxy Watch 4] Dante63:
I'm not sure which comment is newer, is it fixed...?
[Samsung Galaxy Watch 4] zabijakoo:
Witam,czy jest możliwość zainstalowania aplikacji Samsung health monitor na telefonie Xiaomi ?
[Samsung Galaxy Watch 4] hornsbeef:
Hi!

I've attached the logs. Thanks for looking into it!
[Samsung Galaxy Watch 4] Dante63:
I'd like to apologize if I don't respond and for the delay in the patch that I spoke about few posts back...

For those who are not in Telegram, I unfortunately have suffered from 2 neck discs due to long sitting with possibility of bad posture that cause numbness and pain to my right arm, hand and shoulder...

I am taking meds, supplements and doing physiotherapy, don't worry about me...

I tell myself that I can endure it some days and other days, I do nothing but rest, because I really do want to release this patch which should contain theme mode selection and a link to a companion app I'm building, it will check for updates and create the SamsungHealth folder, I decided to separate those from shm mod, it will be much easier for me to maintain the shm mod and at the same time I can add anything related to shm mod into the companion, such as F.A.Q, the app is Multilangual so all is well...
[Samsung Galaxy Watch 4] CKavanagh:
Dante! I feel your pain. I just had a Radiofrequency Neurotomy on my cervical spine - the nerves were burned from C4-C7 (only one side of C7 because the doctor couldn't find the correct nerve) Pain is still an 8 and I am told it could take days to weeks to months before I feel any pain relief! Plus, the procedure is not guaranteed to reduce pain. It is only temporary as the nerves will regenerate and the pain will return, possibly worse. I had a cervical spine laminectomy/decompression/fusion at C4-C5 in 2019. (my hip bone is connected to my neck bone LOL) Since that surgery the pain is worse, limited neck/head range of motion. Plus, I had a laminectomy/discectomy/fusion at L5-S1 in 2002 and Tarlov cysts removed from Lumbosacral S2-S3 in 2021. Sadly, I have tried it all and I am medication resistant. There is no pain management. I have been off work since Sept 2019 after working for 35 years (in pain) and 16 of those years in IT (Helpdesk, Systems Technician, Systems Analyst, Telecom Specialist and was accepted for IT Supervisor) until I could no longer do my job due to pain. I now spend my day pacing my daily activities and continuing to learn about technology. The Galaxy smartwatch is my newest toy to keep me busy. Just do your best and forget the rest! Learn your limits and live within it. You are a great XDA resource and have helped me a lot! I wish you well!
[Samsung Galaxy Watch 4] Dante63:
May one day a new medicine or technology emerge that can help you in your case in such you'd feel little to no pain at all...

Thank you for your words...

My joy is always in fiddling with codes or writing new logics, seeing them work and feel impressed lol, but we IT people are overwhelmed and always under a lot of work pressure or even code pressure itself (it was working, WHAT DID I DO) lol, not many know that, only IT people know...
[Samsung Galaxy Watch 4] CKavanagh:
I'm a little more experienced in old school hardware rig ups. Back in 2005, long before wireless buds, I connected a one ear Bluetooth unit (popular back in the day) to wired headphones with an adapter! I clipped the Bluetooth to my shirt and ran the headphone wires behind my head. I also rigged up a keyboard to use with the Pocket PC. I Bluetoothed it to my HP IPAQ Pocket PC (LOL there were no smartphones yet but there were good PDAs that had Wi-Fi capability with a slot for a 2-inch Wi-Fi card LOL) I was looked at strangely in my college classes when I connected the keyboard to the Pocket PC and typed my notes/listened to music as there were very few students with laptops back then. Go back a bit further and I rigged up external speakers to a Sony Walkman. As for software, I haven't explored very much. However, a few years ago, I did brick a first gen iPhone in an attempt to root it. I do have a couple tv/movie APKs I installed on my phone and laptop without issue. (movieboxpro -the best!) and I'm now experimenting with APKs for the smartwatch. I may check out the Android Auto section here on XDA as I have it in my car. I always fix my computers and laptops myself and repair them for others.
[Samsung Galaxy Watch 4] BerMM:
Does Samsung plan to make these features compatible with all phones or is this the only way I'll ever get them working? What am I missing by waiting, just on demand and/or continuous blood pressure and heart rate readings? Is the Galaxy Watch 3 the same way, requiring hacks to get the health features working?
[Samsung Galaxy Watch 4] Dante63:
1. Samsung chose that these features are explicitly available for Samsung phones only, there was nothing from them changing that...

2. It's BP and ECG on-demand features, nothing else you're missing...

3. For Tizen if the watch has shm, then you only need to install the phone mod...

4. This is not a hack, this is a mod... and I quote for you "Hacking is mostly commonly thought of as gaining unauthorized access to the contents of a computer or network of computers (you have a target). Modding is most commonly thought of as changing the behavior of an application"...
[Samsung Galaxy Watch 4] BerMM:
OK. Bought this specifically for the health and phone features. Once upon a time I was loading a new Android or Windows Mobile rom onto my HTC HD2 almost weekly. Now I struggle to figure this stuff out. I've never grasped video instruction well though (or maybe I'm just old). Do you know of a good text tutorial for this mod?
[Samsung Galaxy Watch 4] Dante63:
In the Google drive there are written instructions if you want to do write everything manually and there are instructions of automated way as well, but for using the PC...

I still haven't made instructions by using the phone, but it's pretty much the same, except instead of using ADB on PC, you'll use Bugjeager, or easy fire tools or even wear installer...
[Samsung Galaxy Watch 4] 73sydney:
Wear Installer 2 is even betterer :)

Wear Installer 2 – Apps on Google Play

A general purpose app installer for WearOS devices

play.google.com
[Samsung Galaxy Watch 4] Markon101:
Works awesome on my Pixel 6 and Watch 4! Thank you so much for all the hard work on this. Not having ECG available really bummed me out. This is AWESOME! Thanks so much!
[Samsung Galaxy Watch 4] BigwaveMx:
Hello Dante. I just did everything of the tutorial to sync data between SHM to SHED, Blood pressure data is synced but no HR data. I restarted the watch also the phone but still no HR sync . Any idea what i need to do to sync those data?

EDIT: I'm using watch 4 and S20 FE LTE edition.

EDIT2: I restarted the process from the beginning and all works fine now!. Thanks for your time.

I send you some candies from MX (transaction ID 45342194AE600531Y).
[Samsung Galaxy Watch 4] Rap1001fly:
Galaxy watch 4 is counting steps while I am swimming, it's totally no sense, is it possible stop steps while I'm swimming and track it? It happens in any exercise and generate a higher calorie as expected. It put 1km more in my steps while I was swimming.
[Samsung Galaxy Watch 4] Dante63:
you need to start activity swimming so instead of counting steps, it would count swimming laps and activity...
[Samsung Galaxy Watch 4] Dante63:
Here is the big update that I have been working on, I hope you guys like it:

Report any bugs you find in Companion app, because I haven't made an app since 2014, I might be missing a permission or using deprecated code, don't get confused, you can post about the bug and I'll fix it...
[Samsung Galaxy Watch 4] 73sydney:
@Dante63

That is some next level work, right there!

Take care and thanks as always!