yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Watch 4] yjinbhhs:
@Dante63 I need some help to sideload APK file to the phone. I have a Watch 5 and after I paired the phone (OnePlus Nord N200) with the watch, I got an error while sideloading the watch file (watch.shm.mod.12030011.dante63.apk). I got the following error: "Exit code 1: The command failed to execute due to an error or exception". However, I successfully installed the companion to the watch. Could you please let me know how to resolve it? I got stuck. Thank!
[Samsung Galaxy Watch 4] Dante63:
While I implement the checksum in the companion, here is the file md5 checksum:

635ab5adeabd3b2ab4398528fadb4bda

I have tested installation and it looks successful...

Also do tell me what android os is on your phone ...
[Samsung Galaxy Watch 4] yjinbhhs:
I just bought another Watch 6 and encountered the same error. It doesn't seem to be watch related. My android version is 12. Again, I paired the phone with the watch and sideloaded the apk file. What does the error mean? It is not specific. So I don't know what went wrong.
[Samsung Galaxy Watch 4] ultimateon:
Hey guys has anyone in here had any problems pairing Samsung watch 6 classic BLE with Xiaomi series 13 phones with the official global rom?

I've had this issue where they seemingly disconnect and can't reconnect and create a second Bluetooth device on the phone after a around 12 hours and which when connected to via app or Bluetooth menu.

On the new entry the watch says it connects but the app says it's still connected and after a minute it fails and deletes the entry, when we try the other second entry, they just recognize the phone as a new one and ask to transfer and when we agree it fails and ask to be reset which I do, and it resumes the up to 12 hours functioning time. The battery itself is still over the 25% threshold on both devices and battery saving isn't enabled on any device and cache deletion is also off.

I've paired it to my phone an s20 ultra and it apparently also randomly disconnects after a few hours and reconnects fine, but I haven't been able to do more extensive testing and I wanted to make sure it's not a hardware issue on the watch side as I'm waiting for Samsung to make the request to send it in for testing.

I originally wanted to make sure it worked perfectly before I installed the mod but that hasn't panned out yet, I've unironically contacted both support lines, Samsung wants the watch Xiaomi just told me to test with another device since I already did the whole Reset, Reboot, update stichk on both devices and the Xiaomi device has connected. I've already ran the test suite on Samsung members app, and it returned no devices issues.

I didn't experience this with my watch 5 or 4 on any previous Xiaomi devices and I'm going to do a sanity check with it on the Xiaomi 13t and testing it on my Redmi note 11 pro 5g and get a second phone for myself for testing in any case is there anything I should do as well?
[Samsung Galaxy Watch 4] Dante63:
Compare the checksum i provided with what you have to see if apk is corrupted...
[Samsung Galaxy Watch 4] HTCore:
I checked it, the checksum is correct.

However, what I have in common with @yjinbhhs we both use OnePlus Nord N200! Using OxygenOS 12 to be exact, are we hopless then?!!!
[Samsung Galaxy Watch 4] Dante63:
This puzzling me as well, if the issue was in the adb library, you wouldn't be able to install anything, but you were able to install the companion on the watch...

I will revise the code but do me a favor and try installing using GeminiMan WearOS manager, it has identical interface, avaliable on Playstore...

The difference between the companion and WearOS manager is there are no checks on the apk installed, this is what I am thinking, the check is breaking the installation on certain OS...

If GeminiMan WearOS manager does install for you, then I should patch shm mod companion soon...
[Samsung Galaxy Watch 4] HTCore:
It didn't work, I got the same Exit Code [1] error message with GeminiMan WearOS manager as well.

By the way, I tried to push SHM MOD companion app AGAIN and I received the same error message! I don't remember if I had the same experience with SHM MOD companion app when I was trying before, I might be wrong though! When I was so desperate to install, I remember I pushed SHM MOD companion several times!

I have 5.0.0 installed on my watch though!

I'm thinking to pull all SHM MOD apks with GeminiMan WearOS manager from watch and start over, I have a little confidence but worth to try!
[Samsung Galaxy Watch 4] Dante63:
What kind of network are you using? Phone hotspot or WiFi?

Any VPN or apps that could act as a firewall?
[Samsung Galaxy Watch 4] re5pect123:
Hello everyone,

can someone help me? It's about the Serbian market. I've followed everything from the tutorial, but the issue is that the phone and the watch constantly disconnect when it comes to blood pressure. The EKG works fine, but when I try to start the blood pressure calibration, it reaches 22-30% and then disconnects from Bluetooth. In the end, I turned off the hotspot and Bluetooth, connected again, turned on, restarted both the phone and the watch, and then went to forget, but it shows that it's not allowed for my market, before that all work fine.

I am using the ASUS Rog 6 Pro phone and the GW 5 Pro watch.

Can someone tell me what's happening? Otherwise, Bluetooth works fine for everything else. The EKG works because it loads faster.

Thank you in advance, everyone.
[Samsung Galaxy Watch 4] Dante63:
If you have stock shm, remove it...
[Samsung Galaxy Watch 4] HTCore:
WiFi. No vpn or anything like that.
[Samsung Galaxy Watch 4] Dante63:
Try your phone as a hotspot and connect the watch to it...
[Samsung Galaxy Watch 4] yjinbhhs:
Hi, I did the hotspot and it had the same error. As a matter of fact, I tried to install different versions of the apk (I tried a couple). They all gave me the same Exit Code [1] error. Based on what @HTCore said, maybe it is phone specific since we both have OnePlus Nord 200? Where was the error message generated in the code? Could you guess some possible reasons?
[Samsung Galaxy Watch 4] Dante63:
Might be the adb library has issues with your OS, I'll try to do something...

Right now, there are 2 libs, one is supposedly for android 12 and above and the other is for older Android, might make a fallback to use the old adb lib and see if it works 🤔...

I might even need to create a new adblib or find an updated one that works for all android os...
[Samsung Galaxy Watch 4] yjinbhhs:
Thank you. Could you please tell me how to install the old adb lib? Do you mean to install A7.Phone.WearOS.SHM.MOD.1.1.4.002.dante63.apk instead of A9?
[Samsung Galaxy Watch 4] Dante63:
Was talking about my apps, not the mod...

Anyway, try updating the companion 5.3.0
[Samsung Galaxy Watch 4] nachoac:
Thank you for your work! Everything worked perfectly on my watch6! greetings from Argentina!
[Samsung Galaxy Watch 4] EBRJR:
This is great news. I bought the Watch Pro 4 about 6 months ago. At first, all i wanted from it was its payment functions! Then, I realized it had more potential. I have been making small progress here and there- mostly by getting my DI.FM streaming service on the thing and a utility enabling me to exchange information from my private server. But, I have not focused on it simply because until I realized 2 days ago that I could use ADB,, it was too difficult with a bluetooth mouse and keyboard to work in that minute area! I was about to attempt to install an update of my streaming app and did consider manually removing some of the health related apps when I just happened to sign on here again and saw the progress!

I read a good portion of the thread but I cannot see any one file or something like that which would singularly give the results you have mentioned. Is there such a file that needs to be pushed or is this a result of many smaller steps?

Any help would be appreciated.

ed
[Samsung Galaxy Watch 4] EBRJR:
By the way, I am using adb the old fashioned way - from the PC. I have adb apps on my Lume Pad2 and Galaxy Note 10+5G but they are not as stable as using the pC
[Samsung Galaxy Watch 4] EBRJR:
Well, I actually finally went all the way back to the start of your thread... you have been at this for quite some time! I was able to figure out what you are doing and concept behind how you are doing it. Ingenious. You are so clear that I was able to implement everything on the thread in a few hours. In one day, the watch went from marginally useful, to worth keeping.
[Samsung Galaxy Watch 4] Dante63:
Glad to hear you found your way through, I was going to mention using the windows tool that I made (bat file) which would do what you need, and there are others as GUI...

And I was going to suggest my own phone apps GeminiMan WearOS manager and SHM mod companion (this one is for shm and the other is for everything)...

And then let you decide which is the best for you...
[Samsung Galaxy Watch 4] EBRJR:
Once I understood that they would do in minutes what would have taken me days, I certainly did use them!
[Samsung Galaxy Watch 4] yjinbhhs:
Hi, could you please clarify what is the difference between Phone.SHM.MOD.Companion.5.3.0.apk and A9.Phone.WearOS.SHM.MOD.1.2.2.005.dante63.apk? Which one should I use?
[Samsung Galaxy Watch 4] bouya80:
The Galaxy A51 is in use.

I tried to connect the Galaxy Watch 5 pro, but I can't use Samsung Health because I bought this phone directly from overseas.

Is there any way to use the Watch5 pro?
[Samsung Galaxy Watch 4] Dante63:
Companion is the tool that checks for updates and sideload watch apk alongside other services...

ShM MOD, well, it's what everyone needs to use BP and ECG...

If you're asking about SHealth, overseas will have no effect, Samsung Health works everywhere...

If you're talking about SHM aka Samsung Health Monitor (not Samsung Health) then follow the guide...
[Samsung Galaxy Watch 4] HTCore:
As @yjinbhhs mentioned, hotspot didn't work for me either.

However, alongside making SHM MOD, I just want to say a big thank you for keep trying for us. Even if it doesn't work for me, I am still very thankful for the time and energy you put for what you're doing! It's also quite amazing you reply to every single of us!! So THANK YOU!
[Samsung Galaxy Watch 4] Dante63:
Even with the new companion 5.3.0, it has updated adb binaries, was hoping that would fix the issue...?
[Samsung Galaxy Watch 4] peterthorpe81:
The latest Samsung updates seem to have broken the Samsung Health workaround for connecting the watch on a Huawei phone. Previously you could use Samsung Health to connect the watch while Galaxy Wearable said the phone wasn't supported.

Frustrating as a P30 Pro user that has google services and shouldn't be part of any ban. Also there was no mention at launch.

I have managed to update the galaxy wearable app using the steps below. I'm not sure if it's all necessary but I thought I would put it here for anyone looking to fix it:

Decompile the galaxy wearable apk ‘apktool d’

In the AndroidManifest.xml remove android:sharedUserId=”com.samsung.accessory.wmanager”

Remove the android:writePermission=”com.samsung.android.hostmanager.permission.WRITE_APP_REGISTRY” from the BaseContentProvider part

Change "HUAWEI" to something else in smali\com\samsung\android\app\twatchmanager\util\PlatformUtils.smali

Compile the apk "apktool b"

Sign the apk
[Samsung Galaxy Watch 4] Dante63:
Bad, very bad approach because you'll pretty much break some features, updates, services because of signature verification and integrity being broken, it's better to use stock...

did you see the updated workaround, if you did follow those steps, then I'll try to think of something that might work, but a lot have reported updated workaround is working...
[Samsung Galaxy Watch 4] junior_ilha:
Is there a way or an idea How to remove restrictions from smartthings. Like finding smarttags on non Samsung phone.
[Samsung Galaxy Watch 4] Dante63:
No, core application can't be modded
[Samsung Galaxy Watch 4] jay_m3:
working like a charm!! thx a lot!
[Samsung Galaxy Watch 4] junior_ilha:
Thanks..

I was wondering If I can modify my rooted phone tô trick It... XMLpak didn't work aswell..
[Samsung Galaxy Watch 4] Dante63:
If I'm not wrong, it requires Samsung service jar file, very tricky and might bootloader your phone...
[Samsung Galaxy Watch 4] Michael1515:
Before I'm going to use it, I want to understand how this "mod" was created. Some of may questions my seem trivial, but that's just because I'm only a user, not a professional programer.

1. Where have you got the original apk from?

2. How did you indentify the lines to modify? Is it simply possible to decompile the apk like I read elsewhere?

2. b) If it's decompiling: Could I do it, too? (I have access to programming software, that would be no problem.)

3. As far as I understood all the pieces of information I read on this thread there were only a few lines you had to change: Is there a list, preferebly as .txt-file, where those changes are and what they were? (Like: File xyz, Line 344, changed to ......)

4. Did you make the changes to the apk by decompiling and then recompiling? Or did you make the changes directly on the original binary-apk? (Is the apk binary at all? I don't know. :) )

4. b) If you change the decompilation, which software would I need to recompile it myself? (I literally will do this if it's possible.)

Background: I don't have a Samsung Smartphone, and I bought the Samsung SmartWatch 4 for someone else, who also doesn't have a Samsung Smartphone. I could only give it to her with the modApk, if I'm very sure it is save.

(On a side note: It's incredibly, nearly shambolic, that Samsung is able to sell this SmartWatch in my country WITHOUT pointing out anywhere cleary the restrictions. (Like need to have a Samsung Phone, need to login using a SIM-card-connection and not only via a WLAN network, basically nowhere published list of which countries allow ECG at all, ... and so on. It's just a side note.:) )

I hope very much to be able to use you mod!

Thank you for all the work!
[Samsung Galaxy Watch 4] Dante63:
The history of me and this mod goes back to August 2020, it was initially handled by another dev if I'm not mistaken caravana, but it wasn't fully patched, it was minimal...

For instance, not working on rooted devices, age is locked on 22, Lockscreen was still required, and a lot of people were requesting for things but there was little to no response, perhaps he was busy at that time, so I decided to redo everything and expand, I started a thread on December 2020 (Tizen)...

I always provide both, stock apk (source changes, Galaxy Store or Apkmirror or Telegram members from my group, depends which gets the update first, integrity verified because signature match) and the mod for anyone to decompile and compare, I do not have a changelog because it's overwhelming, and every release of stock, I take a full dive and see what's new and if I need to update what I patch, I even post videos on YouTube explaining briefly what's new and if it needs patching...

I use ApkEasyTool to decompile and recompile, and I apply the patch at smali level (aka Assembly) because I can read and understand it, you can decompile it further back to Java if you want...

I have been devoted to maintaining the mod for everyone to use because I believe health shouldn't be something to restrict, this app can save lives...

If you wish to patch this now on your own, it would be difficult because you'll need to start from 3 years to see how the code changed and what to apply and carry your changes through all versions...

Here are some facts to ease things for you:

1. XDA is highly reputable and mods here check everything posted regularly...

2. The mod is maintained by me for 3 years and counting...

3. I dedicated time to building a tool named "shm mod companion" (maintained by me 1.5 years) which us built to simplify everything for everyone, because among those who dm me are elders whom I really wish I could make things as simple as a one button tap for them, I have a great care for them...

4. Reputation of the thread and me as a name if you search for XDA Dante63 to see everything (I wouldn't trust anything new and the dev has no reputation, I'd wait for few months myself if I don't dive into the work myself)...

With that being said, you can decompile both stock and mod and compare them...

Let me know if you have other questions...
[Samsung Galaxy Watch 4] ultimateon:
Welp fixed it, board was faulty on the 6 classic, phone's enterprises mode killed all non registered device connections leading to the sync/reset issues on all the other watches, fixed that by requesting a all my watches to be registered into the enterprise management suit and installed and got the mod to work after.

Boy oh boy did I have to read metric amounts of documentation to figure it all out.
[Samsung Galaxy Watch 4] kevinwu128:
Thanks all the way from Australia for this @Dante63! I don't think I'd use it much but I was under the impression it would work here. But it didn't for me! I installed this and all is working following your clear youtube video. Keep up the good work!
[Samsung Galaxy Watch 4] alfredo35:
Thank you
[Samsung Galaxy Watch 4] stroemungsgleichrichtrr:
Before I install, I have a question, maybe I missed it in the description: can I install mods on smartphone and watch parallel to stock versions, or do they replace stock versions?
[Samsung Galaxy Watch 4] HTCore:
Sorry for delayed reply. I tried with companion 5.4.0, t didn't work either. Does it have to be 5.3.0? If positive, would you mind sharing a link for 5.3.0?

However, today I pulled an old phone (OnePlus3T) to give it a try, and it worked like a charm, no issues whatsoever!

For the sake of troubleshooting and not pulling my old phone after every update, I am still very eager to give it a more try to see what is the issue with my current phone; hence 5.3.0 if ADB lib is different from 5.4.0.
[Samsung Galaxy Watch 4] Dante63:
You can keep stock but you will mix up between them from time to time...
[Samsung Galaxy Watch 4] Dante63:
Ok, I'm betting it has to do with storage permission... because adb works fine, you just can't install, but you can do other things just fine, I'll experiment more...
[Samsung Galaxy Watch 4] stroemungsgleichrichtrr:
Just to understand if I got correctly what the mod does: the "core" health algorithms like ECG and BP measurement and interpretation, IHRN etc. are still stock developed by Samsung, while the mod "only" removes restrictions like age and country? I ask because I am dependent on accurate health measurements...
[Samsung Galaxy Watch 4] Neil_Armstrong_:
Hi there, dumb question but with the latest watch updates, the watch won't disconnect to phone by itself when sleep mode goes on, do you guys have a workaround for this ? For a non Samsung user I can't use "Mode and routines" thing I guess
[Samsung Galaxy Watch 4] Dante63:
That's the objective, to keep their logic as it is, and mod the restrictions and handle the right displayed messages (age set to 16, watch4 and above for WearOS, active2 and watch3 for tizen, etc)
[Samsung Galaxy Watch 4] AkoreJepade:
Anyone else seeing BT distance and Battery life cut in almost half since the December update on GW5? I installed it yesterday and both have been cut in half :-(
[Samsung Galaxy Watch 4] Michael1515:
Thank you @Dante63 for the fast reply, and the great work! Highly likely I will try the mod.

Will I be able to use ECG and blood pressure on the Samsung watch 4, if I use a lineage OS on my smartphone? Could I use the mod in connection with a lineage OS?

It's a bit awkward that I have to ask here, but all the manual pages I have seen on the Samsung site are not giving an answer: Can I use the Mod+ECG+blood pressure without granting any privileges to the SmartWatch or the smartphone app, where those privileges would allow the watch app or the smartphone app to use the internet connection of my smartphone at all, and neither to probably use the bluetooth or wlan on the SmartWatch to phone home to Samsung over public open networks? The original Samsung health monitor app asks for so many privileges but doesn't explain anywhere which ones the app needs for which

SmartWatch function.
[Samsung Galaxy Watch 4] Dante63:
Stock SHM works with only stock Samsung devices, but the MOD works with any, including custom ROMs...

Now I'm not sure what you mean by permissions, in new android, you don't need to grant any permissions, only on older ones, you need to grant location for nearby scanning which is used for accessories (external BP and such) and storage to export reports (single BP or ECG PDF report or export all ECG as excel report)

Other permissions do not need user permission because they are permissions defined in order to execute certain codes in the app...
[Samsung Galaxy Watch 4] kalle1984:
Where can i found the updated workaround?

I also have the problem that my watch no longer connects.
[Samsung Galaxy Watch 4] Dante63:
Same section of pairing problems...

This is August 2023 Solution
[Samsung Galaxy Watch 4] kalle1984:
OK, I read that. But where can I find the Wearable 2.2.50.22072061 apk to downgrade?
[Samsung Galaxy Watch 4] cannicus:
Worked flawlessly on a gw4c on the latest system update and fully updated pixel 6a, thanx for your great work.
[Samsung Galaxy Watch 4] Dante63:
Apkmirror
[Samsung Galaxy Watch 4] Alexcar75:
Hi guys, I'm new, I have an Oppo a74 and I would like to put Samsung Health Monitor to measure blood pressure with Galaxy Watch, I can't find the link to download the modified app, can you help me please🙏🙏🙏🙏 thanx
[Samsung Galaxy Watch 4] Alexcar75:
Hi, sorry to bother you, where can I find the link to download the app? I have an Oppo and would like to be able to install the health monitor. A thousand thanks🙏🙏🙏🙏
[Samsung Galaxy Watch 4] Alexcar75:
Hi ragazzi, sono nuovo, ho un Oppo a74 e vorrei mettere Samsung Health Monitor per misurare la pressione con Galaxy Watch, non trovo il link per scaricare l'app modificata, potete aiutarmi per favore 🙏 🙏 🙏 grazie
[Samsung Galaxy Watch 4] Dante63:
You'll download the companion from Post #3

and update it, and download everything...

Watch the YouTube video or read the written guide for step by step tutorial...
[Samsung Galaxy Watch 4] Alexcar75:
Thank you 😁
[Samsung Galaxy Watch 4] paul369741:
Thank you so much
[Samsung Galaxy Watch 4] SergSlim:
Hello!

I have a Watch4 Classic paired with my Galaxy S10e. Everything works fine.

Recently we bought Watch6 for my girlfriend and paired it with her POCO F3 smartphone. Of course with issues.

Came across your app. Tried setting it up, but I'm always getting a timeout when trying ADB connection.

Ping is OK, ports are OK, pairing code is OK.

I tried forgetting and repairing again multiple times. Tried using router's Wi-Fi, and Access Point of the smartphone. Tried to disable Bluetooth...

Always getting a timeout.

Then I tried to do the same on my Galaxy S10e. And it worked like a charm from the first try. I installed the APKs into the watch, and then continued with the rest on POCO F3. Companion works fine and checked the versions successfully.

So at the moment, I kinda resolved my issue, but just letting you know that such issues exist. I tried googling "SHM mod timeout" and did not find anything useful :(
[Samsung Galaxy Watch 4] Dante63:
I was going to suggest using network discovery because it uses network scan, I it does not find your watch (watch screen is always on)

Turning wireless debugging off and on again might fix it...
[Samsung Galaxy Watch 4] dsquizz00:
Hi, I tried to download on two different smartphones (Oppo e Motorola) the mod app Samsung Healt Monitor and I wasn't able to do it. There was an error message "Couldn't install on this device". Can anyone help me?
[Samsung Galaxy Watch 4] Dante63:
Something tells me you are installing the apk that has "watch" in its name on your phone...

Phone apk is for phone, watch apk is for watch...