yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Watch 4] Dante63:
Oh my...

Well, it literally says it...

It's a phone app, not for the watch...

In other words, instead of installing the watch shm mod on your watch, you installed the phone shm mod on your watch...

Uninstall that, and sideload the watch shm mod, it will be in Google drive, watch folder, at the root of the folder, you'll see "Watch.SHM.MOD.x.x.x.xxx.dante63.apk"

where x is the version number...

Alternatively, you can install the companion on your phone, then go to the watch section, you'll see the watch shm mod (+ watch shm mod companion, optional to install, it only checks for updates)...
[Samsung Galaxy Watch 4] spinaldex:
Yep. That was it. Sideloaded the right APK over. Not sure how I screwed that one up, but I did! Thanks!
[Samsung Galaxy Watch 4] shadyover:
Okay now I reset my watch and change country to Emirates, official SHM and Pay apps appeared on watch now and still modded SHM can't connect to phone!

I installed Bluetooth Library Patcher Magisk module, I never needed it before and SHM was working on my rooted phone without it couple versions ago, when I rebooted connection with my watch lost and I had to reset watch again.

Now modded SHM and companion on both devices with latest version, Wearable app and Samsung Health works okay as before but still SHM can't recognize my phone 😣 it opens the phone app though.

Rebooted both devices several times.

Don't even know what the stubborn problem is ☹️
[Samsung Galaxy Watch 4] Dante63:
I just asked about it, didn't say do that, as far as I know, the magisk module won't be enough alone, on the github it needs you to run a command or flash a twrp file...

Putting that on the side,

I'm not quite sure if the Bluetooth patch is needed...

Do you have XPosed module installed, not sure if xposed has any impact, but we both need to work together in finding what service might be interfering with shm broadcast service...

Since you said it was working before,

Have you installed mods or magisk modules from the time it was working 🤔

What I could suggest is going through magisk modules and turning them off one by one to see if any of these modules have decided to occupy the connection and not allowing shm to search...
[Samsung Galaxy Watch 4] shadyover:
Just one question for you to get better understanding: is it normal that wearable and all other watch apps all work flawlessly except the SHM, is it normal? why SHM is particular ?
[Samsung Galaxy Watch 4] Dante63:
As I mentioned, there are services and functions that are obscured, for example the ERR_INTEGRITY that I spoke of, I wasn't able to bypass it and took a lot of time to understand it was related to the encryption not disabled on rooted device, and everything works fine with the watch, galaxy wearable works fine and so does Samsung Health, Spotify, etc but shm wouldn't connect, it would show BP & ECG for seconds then goes into no watch found and in logs it shows so many lines ERR_INTEGRITY, connection abort..

Shm does have more complexity, for example there is no screenlock requirement on Samsung Health, but on SHM, you need medium level lockscreen to use the app (which is removed in the mod)...

SHM is treated as if it's bank data rather than health, not really sure what's so critical with such data aside from knowing the person's health condition 🤔...

So to answer your question, yes, it is possible for shm not to work while everything else work...

What is the problem, I wish I could know, I have a rooted note 20 ultra with Watch4 classic and I can't seem to reproduce the problem you're having, if only I could, I'd be able to create many logs and experiment many times to see whether I can pinpoint the problem and patch it in the mod or at least put a note on the thread how to make it work...
[Samsung Galaxy Watch 4] hnfloyd:
Instructions for the download and install were clear and I successfully completed the installs of both phone and watch mods, however it does not work. When the phone app is opened to get the BP reading from the watch, all I get is a " no compatible watch found" error and can't proceed from there. Obviously it was compatible enough to install the Bp app from the phone to the watch using Bugjaeger. I'm a little stumped. Any suggestions?

Both the molded health monitor app and the original are still on both the phone and watch. From what I could find in the forum that shouldn't make a difference?
[Samsung Galaxy Watch 4] Dante63:
restart the watch and phone...
[Samsung Galaxy Watch 4] MoveToZero:
I am on a newly rooted S22 (stock rom) and had some issues with the the stock SHM. At first with the rooted device error, then after hiding with Shamiko, with the "no compatible watch found" error.

Intalled the modded SMH on watch and phone and I promptly get the "no compatible watch found" error again. As with the stock app, for a split second the app seems to work, then displays the error.

Fired up logcat and it was a bloodbath of red...error after error....and sure thing there is:

E/S HealthMonitor - WsmController: WsmSession.connect(). fail : ERR_INTEGRITY

So yeah....Either something went fu*ky during rooting or I need to disable encryption, will report later.
[Samsung Galaxy Watch 4] hirent:
Thank you so much for working on this; it takes a lot of time and effort.

I'm expecting the Watch 4 to be delivered in a few hours and can't wait to install these mods.

Q. On the phone: do we first need to install the Samsung Health app from the Play Store? Or just your APK of SHM?

The way I understand it is;

first install official SH on the phone.

Set up the watch using the official app.

Then install the mods.

Is this correct?

I read through the install process and the FAQs and the first ten pages of this thread but can't seem to find the answer.

'Search this thread' function is not working on this site.

Thanks.
[Samsung Galaxy Watch 4] Dante63:
Disable the encryption and you should be fine...
[Samsung Galaxy Watch 4] Bruno1967:
Ciao

a me dice apk non installato perchè il pacchetto risulta non valido

orologio glaxy non rootato

dove sbaglio?
[Samsung Galaxy Watch 4] Dante63:
Install order doesn't matter, in the end you'll have them all...
[Samsung Galaxy Watch 4] hirent:
Great. Thanks.

I wasn't sure if SHM is the same as SH, and whether SH is required at all on the phone.

Your answer succinctly covers it all.

Can't wait to try it out.

Thanks.
[Samsung Galaxy Watch 4] BigfootNW:
I followed all of the procedures but this does not seem to work on the new Galaxy watch 5. I hope a watch five implementation will be coming soon as I am disgusted that Samsung holds the ECG function Ransom to force the public to buy their phones.
[Samsung Galaxy Watch 4] shadyover:
@Dante63 I tried disabling all Magisk modules and even Zygisk with no luck !

Can you help me bypassing this "Strong Integrity" thing? I guess it's related to my problem here.
[Samsung Galaxy Watch 4] JeffSory:
I have a new watch 5 ... ZZMB software R915USQU1AVH6 SM-R915UZAATMB and i tried to add your latest mod for blood pressure and the watch app. will not synch with Phone App. can you help with this? i did the same to a watch 4 and it works. help if you are able please
[Samsung Galaxy Watch 4] Dante63:
Strong Integrity is not yet used in any app, also, it doesn't affect connectivity...

Sorry that I am unable to help much in your case, I really wish I could, you have the phone shm mod 209 & watch shm mod 215... you have already restarted the phone... you have provided me with logs and logs seemed normal... you have tried disabling modules to see if it would make a difference and nothing...

I have no clue, as I said, I wish I could reproduce this problem at my side to see if it's something needs patching or something else...

I could suggest you try installing previous shm mod versions from the mod history for both watch and phone...

Who knows, it might shake things and make it work suddenly...

Those are my last thoughts, I don't know what else to think about...

After you have installed the watch shm mod on the watch and phone shm mod on the phone, restart both watch and phone and try opening again, they should work fine...
[Samsung Galaxy Watch 4] JeffSory:
perfect it looks like the reboot on both phone and watch worked !!! thank you
[Samsung Galaxy Watch 4] hnfloyd:
Thank you for the reply,it works like a charm now! Thank you Dante for all of the work and the instructional videos.
[Samsung Galaxy Watch 4] MoveToZero:
Unfortunately I could not disable encryption. I am on a (Snapdragon) S22 running Android 12 and no flashable zip did the trick. I have been out of the loop for the last few years, so my research was quite limited and ended up only in a few bootloops or no result at all.

So I just flashed back everything stock through Odin. And lo and behold, SHM works perfectly on stock rom, but SH does not due to tripped knox.

Do you have any tricks how to disable encryption on the last gen Galaxy line running Android 12?

I avoided Samsung phones for decades and I believe this (along with the GW) will be my first and last one. The whole thing is a joke.

Thank you for your efforts though!
[Samsung Galaxy Watch 4] Dante63:
From what I know, tripped knox in download mode would void warrenty, and if it says custom rather than official then most knox related apps wouldn't work, especially Samsung Pay, but if you have gone back to official rom with bootloader off, as in no more warnings on boot, the phone should work fine, the knox tripped will only be for warrenty (again, from what I know, because I rarely switch back from root to stock, I'm always rooted)...

However, if you went back to official and rooted again, there is a trick for Samsung health to work on rooted device thanks to @73sydney , the solutionis written on the main post...
[Samsung Galaxy Watch 4] locomax2010:
Hi! I can't enable BP Sync with Samsung Health 6.22.2.007, I put the file inside the "download" folder, force close SH, and tried but "set features" doesn't appear.

I hope it can be updated.

Greetings and thanks!
[Samsung Galaxy Watch 4] 73sydney:
Good plan for 1st time installers is to open both the mod on watch and phone, grant permissions, and then reboot both immediately afterwards :)
[Samsung Galaxy Watch 4] BADtoBONE:
@Dante63

Just to let you know that everything worked flawlessly on my new GW5pro.

I fixed the SH sync issue without using the offered magisk module.

SHM + BP sync worked. Uninstalled original SH with the easy auto command.

Thanks a bunch for the tutorial + the youtube videos and your support on XDA.

Will send a beer / coffee :cool:
[Samsung Galaxy Watch 4] 73sydney:
Dont worry, i took a holiday from Samsung to avoid the nonsense for years, but then Google stopped making decent Pixel phones, so ive unfortunately been back in the fold for about a year now...it hasnt been happy times for me

I do know how to remove the encryption on an S20+ 5G at least, and in fact, using info from an old post on here, i now actually have created a .tar file that i can flash alongside the stock Samsung ROM to automatically install TWRP at ROM flash time, reboot to it (no needing to nail the vulcan death grip of special keys at the right time in boot process), format /data and immediately disable encryption and then reboot to system to start for 1st time setup, automatically like magic.... i will share it at some point soon for my other S20+ 5G brethren.

I dont know off the top of my head much about the S22 but will look into the threads later today to see what the situation is there for installing TWRP and whether theres a "multi disabler" (as its generally called) zip that does the encryption disabling, for most Samsung devices there is...or you could have a scrounge before i do ....

As mentioned disabling encryption can be a pain in the butt, as you have to create a .tar file with TWRP recovery img in it, flash it alongside the stock ROM (with auto reboot off in ODIN), then (with cable plugged in, otherwise you stand NO chance of getting into it) reboot into the newly written TWRP (if you miss it you will have to reflash the TWRP .tar, because booting to system will overwrite TWRP with stock recovery), then format /data and then flash the multi disabler zip. Almost no one gets this stupid procedure right first go...sometimes even i botch it and ive done it since S2 days...hence why when i found this automated method i refer to above, i spent some time updating the contents of it :)

Ill look later for the S22 procedures/files, in about 8 hours

As @Dante63 alluded to, theres a magisk module you can try, available from the Releases page of my repo here:

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

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

github.com

@Dante63:

Im testing a (lightly) debloated stock ROM based ROM at the moment, and dont even need that module - a quick grep of the file i alter reveals that the key type my module removes is in effect, but my SHealth works fine, so id love to know what the ROM dev has removed to make this work, he does mention removing parts of knox....im planning to ask to see if i can apply it via magisk....

ROM "features":

ROM Features

<*>Knox partially removed and ROM light debloated</*>

<*>Removed dm-verity, automatic encryption, proca & vaultkeeper services</*>

in the meantime, on this ROM:

grep "ro.security.keystore.keytype" /vendor/build.prop

returns:

ro.security.keystore.keytype=sakv2,gak,sgak
[Samsung Galaxy Watch 4] Dante63:
I'll try searching for sakv2 in shealth and knox services, but it might not be knox service, might be something else debloated that shealth calls, I mean sure finding the apk is even better as it will give us more insight on what Samsung might use in the future and to be able to counter it...

I recommend you download and install the phone companion, go to the BP sync enabler section, press the button, it will create everything for you and even restart shealth for you, making setfeatures visible for configuration...
[Samsung Galaxy Watch 4] 73sydney:
i PM'd the ROM dev for any insights he has....one of these days Samsung might just give up trying to hold peoples devices, and their own health data, to ransom, and none of this malarkey will be necessary...
[Samsung Galaxy Watch 4] locomax2010:
Thank you for responding, I have already followed the steps of the "phone companion" application and the option does not appear either. Capture attached.

Cheers!

Spoiler content hidden.
[Samsung Galaxy Watch 4] tzarcone:
I did a quick search to see if anyone did this mod on a Galaxy Z Fold4 yet. I didn't see any posts saying it worked or not, so I figured I would ask does this mod also work on the Z Fold4?

I had everything working just fine with my new Galaxy Watch 5 Pro and my Pixel 5. Than I saw the deal on Google Fi for the Z Fold4 and also how much they are giving on the Pixel 5 trade-in I couldn't resist upgrading the phone too.

Thanks,

Ted
[Samsung Galaxy Watch 4] Dante63:
😅 tap the version number many times till it appears...

Hypothetically speaking, shm is designed for Samsung devices, the mod makes it work on all devices, very few devices (rare) face issues in crypto functions (encrypt decrypt) like few Huawei phones, other than those, I think it should work...
[Samsung Galaxy Watch 4] MoveToZero:
So these were my scenarios so far:

Unlocked BL:

-Stock ROM, stock recovery, no root: SHM works, SH does not work

-Stock ROM, stock recovery, root: SHM does not work, SH does work (shamiko+sakv2) -> not running samsung official software message

-Stock ROM, stock recovery, root: SHMmod does not work, SH does work (shamiko+sakv2) -> not running samsung official software message

-Stock ROM, TWRP, no root: SHM does not work, SH does not work -> not running samsung official software message

-Stock ROM, TWRP, root: SHM does not work, SH does work (shamiko+sakv2) -> not running samsung official software message

-Stock ROM, TWRP, root: SHMmod does not work, SH does work (shamiko+sakv2) -> not running samsung official software message

Locked BL, everything stock:

No "not running samsung official software" message and no "unlocked bootloader message"

Samsung Health still does not work, SHM works.

Whatever the case is, I either get SHM to work or SH, not both. Whenever the red "official software" message is displayed (root), SHM does not work, while SH does not work without root (shamiko+sakv2).

As for the TWRP tar files. There are in fact TWRP and vbmeta files with a multidisabler for my model, but apart from installing TWRP, it does nothing to encryption. Well it says it disabled encryption, but nothing really happens.

This has to be by far my worst and most time consuming experience in the mobile world since I got my first device in the late 90s. I'd say some things about the MD's/VP's who enforced those policies, but I'd get banned...so I'll leave them to your immagination.

Thank you all for your time :D
[Samsung Galaxy Watch 4] locomax2010:
oh you were right, everything worked fine!

Thank you very much for your help.
[Samsung Galaxy Watch 4] tperki:
Don't know if Dante replied... You do not install the same apk on phone and watch.

Install "Phone.WearOS.MinSDK24-SHM1.1.1.153.root.detection.country.restriction.removed.dante63.apk" on the phone, and sideload "Watch4.SHM.MOD.1.1.0.171.apk" on the watch using ADB.

Edit: I see you replied that you solved the issue, but I leave my comments for anyone else who might have this question.
[Samsung Galaxy Watch 4] cinorian:
Work fine with OPPO find X3 lite. Thank you very much.
[Samsung Galaxy Watch 4] TonyHuang42:
Thank you for your work, it works very well.
[Samsung Galaxy Watch 4] Squashi:
Hello dante, I installed the watch apk and the phone app correctly, but I dont see any options or working widgets, did I made something wrong?
[Samsung Galaxy Watch 4] Dante63:
Please join the Telegram group and send me a photo or video or the issue because you should be able to set widgets easily
[Samsung Galaxy Watch 4] Squashi:
Sorry, I accidentally installed the phone version 😅, it's fixed now, thanks
[Samsung Galaxy Watch 4] mcmagno:
Hi all!

I am trying to install SHM MOD .171 but I receive the following error:

user@mac-osx platform-tools % ./adb -s 10.10.8.167 install ../../../Downloads/Watch4.SHM.MOD.1.1.0.171.apk

Performing Streamed Install

adb: failed to install ../../../Downloads/Watch4.SHM.MOD.1.1.0.171.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]

I am using Mac OS X (11.15.1 Big Sur) with ADB (Android Debug Bridge version 1.0.41 Version 30.0.4-6686687) and I have a Galaxy Watch4 Classic (BT only, no LTE). I have removed the "vanilla" SHM trying to solve the "Version Downgrade" thing.

Is there any requirements in terms of Samsung Health installed on my mobile phone? (Xiaomi MI10 with Android 11 MIUI 12.5.2 Global)? If yes, which is the right Samsung Health APK file to install?

Thanks in advance.

Max.
[Samsung Galaxy Watch 4] pdubcramp:
Sorry to be dense, but does this mean we have to manually push the APK to the watch via adb for each update or it's a one and done install? I wouldn't think there's a way to have them automatically update. Thanks for your efforts!
[Samsung Galaxy Watch 4] Dante63:
This error would happen only if you have the mod 171 installed on watch and you're trying to install 169 mod...

Are you sure you got the right files...?

Through ADB pc or ADB phone everytime there is a new update or patch
[Samsung Galaxy Watch 4] mcmagno:
Ciao @Dante63, thanks a lot for looking into this first of all!

I have grabbed the file from the gdrive link, this is what I have:

MD5 (Watch4.SHM.MOD.1.1.0.171.apk) = 60707f1466effce79829e45838564c15

So far I have no SHM installed, neither the modded nor the vanilla apk, according to pm list:

wisebl:/ $ pm list package| grep monito

1|wisebl:/ $

Thanks again!

Max
[Samsung Galaxy Watch 4] Dante63:
Well technically it should work but why isn't it working...? It can't be that MacOS adb runs differently, can it? The reason of my confusion is that the MOD is completely independent from all apks on the watch

Try pushing the apk from your phone to the watch, either using the app from the video on my main post or download adb remote shell from playstore
[Samsung Galaxy Watch 4] DiamondLion:
I revive my account just to say thank you. Work perfectly with galaxy watch 4 and my note 10 in my restricted country.
[Samsung Galaxy Watch 4] bigpapa007:
I have a Note 20.

Did you need both the Samsung Health .apk for the phone and the modded SHM for the watch or you only needed the phone SH apk from Dante?

Also, does synching with Samsung Health works if you use a Samsung phone?
[Samsung Galaxy Watch 4] AltuRoxx:
While i was typing and asking how to fix a problem, it fixed itself and the ecg works fine. thank you so much again man. thx.
[Samsung Galaxy Watch 4] DiamondLion:
Yes, I needed both apps. In the phone when I try the official apk, accepting the terms and conditions give me an error "not avaliable in your country"

And no it doesn't work sincronize with Samsung Health.
[Samsung Galaxy Watch 4] Dante63:
You need both SHM MODs, on the phone and on the watch4...

There is no sync between Samsung Health and Samsung Health monitor
[Samsung Galaxy Watch 4] Aircraft800:
Bad @SS!! I have a OnePlus 8 Pro and Galaxy Watch4, your directions were perfect and I got it working after a few tries. I forgot to add the port along with the IP address the first time so it failed. Reviewed the tutorial and got it working!

Thanks for your great work!!
[Samsung Galaxy Watch 4] mcmagno:
Hi @Dante63 !

I tried this morning with the newest MAC OS X adb version (Android Debug Bridge version 1.0.41 Version 31.0.3-7562133), no luck. Then I thought I should have tried the good old microsoft way... so I restarted the Watch and... it worked flawlessly! I don't know what happend but a Watch4 reboot fixed that!

Thanks again for your help and your great work!

Cheers

Max
[Samsung Galaxy Watch 4] dataonlycod:
I was wondering if it is mandatory to follow all the steps for the countries that we already have this function enable. I mean, in my case (Spain), we don't have any restrictions for having this features.

The major issue here is having a Samsung phone, because the SHM APK of the Samsung store only works on Samsung phones and it crashes for example in my Oneplus 8. So I don't know if it is possible to use a modded version of the SHM without installing any modded app in the smartwatch.

Thanks in advance.
[Samsung Galaxy Watch 4] Dante63:
because of signature check on the watch, original SHM of watch can't communicate with SHM MOD of the phone...

That's why you need to have the MOD on the watch as well...
[Samsung Galaxy Watch 4] marcel112:
hello, i just got my watch 5 pro. Will this work on my watch also, even with the same fies in google drive?
[Samsung Galaxy Watch 4] Dante63:
Already mentioned it works
[Samsung Galaxy Watch 4] 73sydney:
have seen it, just had a long day and reading over dinner, will let it permeate my brain and get back when i have a decent reply. But makes little sense you have only either or when rooted....

The usual process for the multidisabler and disabling encryption is:

flash TWRP via ODIN

immediately boot to recovery with special key combo

format data via TWRP

flash multidisabler

the only possible way that fails is perhaps, as happened to me on my S20+ a few months back, Samsung changed their partitioning and the multidisabler hasnt been updated to take this into effect...which would mean it wouldnt disable encryption as expected, this happened to me and as a result of being a guinea pig, a member on here updated the multidisabler script. if you want to send me the one for your model via personal message, ill have a look at it

I suspect youve figured out that "not running samsung official software' is just a byproduct of unlocking the bootloader, so its just noise in the background of the actual issue itself

(previously displayed link removed after i realised you had a snapdragon model, and it was for exynos)