Was this useful and you were satisfied with the outcome...?


  • Total voters
    220
Search This thread

DEV_Dan

New member
Apr 5, 2021
1
0
FOLLOW-UP (2021-04-10)
After trying all again on the same PC, nothing can be done, I got always the same Java error "NoSuchMethodError".

But it's now resolved in a way, I tried on another PC and no problem at all, it is working very well until the end from the first try!

So THANK YOU again Dante63 !

---
ORIGINAL POST BELOW:
---

Hi,

First, I would want to thank you for your time and all the good work !!

Unfortunately I tried all solutions from your original post but I got always the same error during sign.bat execution:
Exception in thread "main" java.lang.NoSuchMethodError.
Please note, this is not the same Java error as previously reported (Exception in thread "main" java.lang.IllegalAccessError).
2021-04-05 14_41_05-.png



Here the solutions I tried so far:
  • Modify PATH Environment (according to C:\Users\[...]\AppData\Local\.package-manager\jdk\bin)
  • Copy different files and folders to Fit2Installer\tizen\tizen-sudio (sdk.info, sdk.version, tools\ide\*)
  • Install almost all available packages from Package-Manager in Tizen Studio. (just in case)
  • Install different versions of JRE and JDK (x86 and x64, older and newer)
  • Modify PATH Environment (according to normal %JAVA_HOME% paths depending of the currently installed JDK version)
  • Disable and close Antivirus+Firewall
  • Several PC reboots
Also I searched Google about "Exception in thread "main" java.lang.NoSuchMethodError".
The only advice I found is to add a verbose mode in tizen.bat to find the "culprit" JAR file (C:\Users\[...]\AppData\Local\.package-manager\jdk\jre\lib\rt.jar), but I don't know what to do next.

When using the correct "C:\Users\[...]\AppData\Local\.package-manager\jdk\bin" PATH Environment, inside command prompt, if I write "Java -version", I get:
openjdk version "1.8.0_242"
OpenJDK Runtime Environment Corretto-8.242.08.1 (build 1.8.0_242-b08)
OpenJDK 64-Bit Server VM Corretto-8.242.08.1 (build 25.242-b08, mixed mode)
Is it identical for you?

Please, is someone would have an idea of what could be the problem?
Could it be related to my different OS language(French) or maybe any other missing prerequire?

Thank you !
 
Last edited:

Dante63

Senior Member
  • Nov 1, 2015
    1,799
    1,555
    28
    the Clouds
    Samsung Galaxy Note 20 Ultra
    Yes, it has but doesn't work., I just installed the .189 software and did nothing else
    Did you try opening SHM from your watch?
    On your watch you can tap on open app on phone...
    Hi,

    First, I would want to thank you for your time and all the good work !!

    Unfortunately I tried all solutions from your original post but I got always the same error during sign.bat execution:
    Exception in thread "main" java.lang.NoSuchMethodError.
    Please note, this is not the same Java error as previously reported (Exception in thread "main" java.lang.IllegalAccessError).
    View attachment 5270841


    Here the solutions I tried so far:
    • Modify PATH Environment (according to C:\Users\[...]\AppData\Local\.package-manager\jdk\bin)
    • Copy different files and folders to Fit2Installer\tizen\tizen-sudio (sdk.info, sdk.version, tools\ide\*)
    • Install almost all available packages from Package-Manager in Tizen Studio. (just in case)
    • Install different versions of JRE and JDK (x86 and x64, older and newer)
    • Modify PATH Environment (according to normal %JAVA_HOME% paths depending of the currently installed JDK version)
    • Disable and close Antivirus+Firewall
    • Several PC reboots
    Also I searched Google about "Exception in thread "main" java.lang.NoSuchMethodError".
    The only advice I found is to add a verbose mode in tizen.bat to find the "culprit" JAR file (C:\Users\[...]\AppData\Local\.package-manager\jdk\jre\lib\rt.jar), but I don't know what to do next.

    When using the correct "C:\Users\[...]\AppData\Local\.package-manager\jdk\bin" PATH Environment, inside command prompt, if I write "Java -version", I get:
    openjdk version "1.8.0_242"
    OpenJDK Runtime Environment Corretto-8.242.08.1 (build 1.8.0_242-b08)
    OpenJDK 64-Bit Server VM Corretto-8.242.08.1 (build 25.242-b08, mixed mode)
    Is it identical for you?

    Please, is someone would have an idea of what could be the problem?
    Could it be related to my different OS language(French) or maybe any other missing prerequire?

    Thank you !
    Try uninstalling all java from the pc completely, then reboot the pc, and install the java again but as admin and see if that makes a difference...
     

    sattubhai12

    New member
    Apr 6, 2021
    1
    2
    heartiest thank you to Dante. I'm on version 5.5.0.2 India, & now finally able to have ECG, BP working on my pixel 4a. I sat last night, all in all it took 45 mins, most of the time was due to the Tizen Studio installation. followed the YouTube video to all the steps & that's it, it is working. I had almost given up on these features on my watch. ECG working fine. BP I have to calibrate first. again, thank you Dante. made account specifically to thank you for your work.
     
    • Like
    Reactions: Dante63 and Vuska

    TLMule

    Member
    Apr 6, 2021
    5
    0
    Hi and thanks a lot for this very good video.
    I have the same issue than others and couldn't find the solution in those 30 pages (maybe she is there, and i missed it...) . I installed the smh on my android phone, then ECG widget and it worked well. I tried after that to install the BP widget or the apk with ecg+BP and had a failure message (impossible to install that app)....And i don't know what to do next ( i was quite happy not to have to use the "difficult alternative " way)...
    Thanks for your help
     

    Acrivec

    Member
    Aug 14, 2013
    28
    1
    This update must have been really simple, because I updated through Galaxy Store (I have to use this version because I'm using Israeli rom to record calls) and it kept working. Didn't have to install it from here.
     

    triolo

    Member
    Aug 2, 2007
    9
    2
    Hi all,

    Thanks a lot for the hard work.

    I have an issue.
    I use a Xiaomi phone with a Samsung Active 2 Watch.

    I have installed the last version of Samsung Health Monitor : OK
    I have installed the original Samsung SMH installer : FAILED

    I tried to use separately
    Samsung BP : FAILED
    Samsung ECG : OK

    Someone knows how to install the whole application SMH on my watch ?

    Regards
     
    Last edited:

    gigi197172

    New member
    Apr 8, 2021
    2
    0
    It is possible to have egc and bp in Italian I found the samsung monitor in Italian Thanks
    Then I don't understand why sometimes bp on the clock tells me that the system is not ready and therefore does not measure .... pressure
     

    Dante63

    Senior Member
  • Nov 1, 2015
    1,799
    1,555
    28
    the Clouds
    Samsung Galaxy Note 20 Ultra
    Hi and thanks a lot for this very good video.
    I have the same issue than others and couldn't find the solution in those 30 pages (maybe she is there, and i missed it...) . I installed the smh on my android phone, then ECG widget and it worked well. I tried after that to install the BP widget or the apk with ecg+BP and had a failure message (impossible to install that app)....And i don't know what to do next ( i was quite happy not to have to use the "difficult alternative " way)...
    Thanks for your help
    The alternative is your way sadly...
    Hi all,

    Thanks a lot for the hard work.

    I have an issue.
    I use a Xiaomi phone with a Samsung Active 2 Watch.

    I have installed the last version of Samsung Health Monitor : OK
    I have installed the original Samsung SMH installer : FAILED

    I tried to use separately
    Samsung BP : FAILED
    Samsung ECG : OK

    Someone knows how to install the whole application SMH on my watch ?

    Regards
    For BP, go for alternative way and original SHM has many restrictions...

    If you want the whole SHM on the watch, it's either there with latest version (i still didn't upload the latest tpk) or you you just install the SHM installer apk if there is no SHM but keep in mind that BP will not be visible...
    It is possible to have egc and bp in Italian I found the samsung monitor in Italian Thanks
    Then I don't understand why sometimes bp on the clock tells me that the system is not ready and therefore does not measure .... pressure
    I am planning to do something but I'm not getting much time to do many things at once, forgive me...

    Only SHM is Multilangual for the watch, BP and ECG Standalones are in English...
     
    • Like
    Reactions: TLMule

    gigi197172

    New member
    Apr 8, 2021
    2
    0
    So bp and ecg are in Italian ... but where do I find them? All the work must be done like those in English or are already installable
    Thanks
     

    Citizen86

    New member
    Mar 25, 2011
    2
    1
    Apparently I already had the samsung accessory app on my phone,and wouldn't let me connect to the watch without it. I later found out in the wearable app that I didn't check the "allow third party apps on the watch" box. Then after trying again it transferred the widgets and works perfectly. Thank you very much I was pissed when I discovered I couldn't use all of my watch's functions. Looking at the thread I am apparently the second french to have it work both bp and ecc . Thanks again !

    Thank you Dante for all the hard work! I was able to get it installed on a Poco F2 Pro. I spent a few hours trying things out because the ECG and BP installers would install fine, but wouldn't get loaded onto the Watch 3. Played around with a bunch of apps, tried turning on auto start, tried turning off battery savings. Finally the thing that worked was what Presston said, turning on "Install unknown apps" in "About Watch" of the Galaxy Watch 3 app.

    Not sure what it is about Xiaomi/MIUI, but I saw a lot of Xiaomi phones having issues, I think that might be the problem for everyone else. I don't know why it would matter for us and not other phone brands... But I figure it would be helpful to put in the first message
     
    • Like
    Reactions: Dante63

    Dante63

    Senior Member
  • Nov 1, 2015
    1,799
    1,555
    28
    the Clouds
    Samsung Galaxy Note 20 Ultra
    @Vuska thanks to you...
    Screenshot_20210408-151600_Logcat Reader.jpg

    This is the cause of BP sync failure...
    I will try today disabling this security check and syncing should work between SHM and SH...
    Hey @adfree ,
    I hope you're good, so I have been trying to break this security exception which if bypassed, the sync between SHM and SH should work but I'm getting a lot of headache...

    The situation is, this is a try catch block, the insert in the block is triggering the catch statement and making it throw the security exception...

    I kept digging but with no use, either the signature in the error refers to the signature of application being tampered which is normal since the apk is modified or i am missing something hoping you might have a clue...

    The issue is located at:
    smali\com\samsung\android\shealthmonitor\dataroom\manager\SamsungHealthDataSyncManager.smali

    Method name: insertDataToSdk
    Search for ".line 530"

    The invoke virtual triggers the catch_0 statement throwing Java Security Exception...

    If anyone is interested also and or knows more about such details and how to resolve, be my guest to have a look and resolving it...

    As for me, I'll try a different approach on how I can capture the precise cause of this issue if no one is able to help...

    Attaching logs as well...
     

    Attachments

    • logcat_04-09-2021_03-26-13.txt
      34 KB · Views: 7
    Last edited:
    • Like
    Reactions: adfree

    TLMule

    Member
    Apr 6, 2021
    5
    0
    The alternative is your way sadly...

    For BP, go for alternative way and original SHM has many restrictions...

    If you want the whole SHM on the watch, it's either there with latest version (i still didn't upload the latest tpk) or you you just install the SHM installer apk if there is no SHM but keep in mind that BP will not be visible...

    I am planning to do something but I'm not getting much time to do many things at once, forgive me...

    Only SHM is Multilangual for the watch, BP and ECG Standalones are in English...
    Thank you again Dante...I sadly don't have a windows pc....I'll have to wait...do you think there will be an as easy as ecg installer for BP?
     

    Dante63

    Senior Member
  • Nov 1, 2015
    1,799
    1,555
    28
    the Clouds
    Samsung Galaxy Note 20 Ultra
    Thank you again Dante...I sadly don't have a windows pc....I'll have to wait...do you think there will be an as easy as ecg installer for BP?
    Install a virtual machine with windows on it if you don't need windows always or install bootcamp (if it's Apple) and you can have windows all the time with OSX...

    Easy installers no because you can't install something already exists on the watch, that's why BP fails to install...
     

    tarnumjg

    New member
    Apr 9, 2021
    1
    0
    Hello,
    I cant get past the java.exception in the sign.bat.

    I tried everything , everyone said , i installed everything in the root C:\ Folder , i put the paths in both segments

    1618003129316.png


    I even gave access to "everyone" in all folders regarding Java and Fitinstaller.

    Any more ideas?

    1618002522124.png
     
    Last edited:

    gorthon

    Senior Member
    Oct 13, 2012
    121
    15
    Quick question: can I just download and install an apk or is this a complicated procedure where I have to use sdk and modify something myself? (Android 11)
     

    Vuska

    Senior Member
    Jul 26, 2010
    1,680
    422
    Bandung
    Quick question: can I just download and install an apk or is this a complicated procedure where I have to use sdk and modify something myself? (Android 11)
    Yup... if just download and install... why we need a very long post and thread then ? 😁

    but just follow step by step... and everything will be fine..
     
    • Like
    Reactions: Dante63

    Top Liked Posts

    • There are no posts matching your filters.
    • 6
      You should know by now that youre special :)
      Wish I could share my specialness lol, everyone deserves to get this feature to perform the BP sync...

      Honestly, I checked both 6.16 & 6.17 and both have the exact identical match in the lines for enabling set features, the only guess is that it gets enabled remotely..? It's hard to reverse it because SH has so many folders & files, feels like a maze lol...

      I will do one thing, since Samsung Health isn't a system app, I will keep make a MOD and have set features enabled always...

      Tomorrow, I will prepare and release a MOD for SH latest version, anyone who wants to have latest version with sync can use the MOD or stay with original SH 6.16 for sync till either 6.17 gets set features or a later version does...
      I am getting error
      More details please,
      I don't even know what you are installing to guide through it...
      3
      I am aware of the new version 191, I am working on it right now as I am typing, sadly Samsung didn't provide change logs so I will be investigating manually to see what is new...

      Stay tuned, 191 MOD will be released today...

      EDIT:
      Ok, the Conclusion is Samsung released an update to add support to country code SG which is Singapore...
      No improvements were done to SHM, this is not a major update...


      I have released SHM 191 MOD, Have a Great Day <3...
      2
      I shared Samsung Health 6.17.0.019 that has set features, for those who want to test it now, feel free to grab it, test it and give a feedback whether it works or not for you...
      Screenshot_20210529-130157_Samsung Health.jpg
      2
      Hey there,

      Is it possible to rollback to a previous version of Samsung Health App with an unrooted phone? I'm having the same Set Feature problem.

      Thanks!
      Rolling back is as simple as uninstalling updates of the system application and then installing the previous version which is in the Google drive inside folder "Samsung Health History"...
      Sorry, but like when i had it installed last week, for me at least it shows only Developer Mode here :(

      Reverting again to 6.16 ...
      Hello Dante dont work for me only Devolpermode can not log in
      Cant get Set features showed, I only have the option of developer mode, but not set options...
      Algo would like to know which is the latest version of BP and ECG.... SHM installed 189 I think its the latests. Thank you
      not work dear , s21 ultra
      Lol Thanks for replying. Neither work :(

      I'll just have to wait to see if another solution becomes available.

      Thanks again!
      Ok from my understanding, when @73sydney said there was an update, I sideloaded the update and as a result, I couldn't see the set features, 3 days later my Samsung Health got updated automatically through the galaxy store and I had the set features, so my guess is you can't have the latest version of Samsung Health with set features if Samsung didn't release it yet, can any of you confirm what is the latest version in your galaxy story or check in Samsung Health app by going into settings then about, if it says latest version installed is 6.16 then wait, otherwise, Update, if you did and there is no set features, try restarting the phone or waiting a day, I haven't decompiled Samsung Health and seen what's under the hood because I barely have time to start a new project, working overtime, sorry for this, but please check and confirm about the galaxy store, if it's what I'm guessing, then I should update the thread again mentioning to wait for the official release when it comes to Samsung Health and not to rush...

      Have a good day/afternoon/evening ♡
      2
      It would be appreciated if you can leave it for a longer time and rebooting the device to see if set features are time-related or reboot related, as Samsung Health is getting restrictions, it is most likely "set features" won't be enabled immediately till whatever checks are there in Samsung Health are there...

      Installed 6.17 again from Play Store last night, no sign of Set Features as yet :)

      Will get back to you in 2 or 3 days lol Reboot does nothing btw
    • 88
      Hello Everyone,
      I hope you all are fine...


      ~~~ FEATURES, BUGS & FUTURE WORKS~~~
      • FEATURES: 175 (no root detection, No Force update to the latest version, English language Only), 181 & above (Multilanguage, no root detection, no country restriction, no device restriction (works on all devices, however, some Huawei devices are facing issues), age limit lowered from 22 to 16, no lock screen restriction, No Force update to latest version) for phone, as for the watch, SHM multilanguage 1.1.0043, BP and ECG Standalone English Only...
      • BUGS: Nothing that I know so far...
      • FUTURE WORKS: investigate the possibility of having Standalone BP and ECG Multilangual Support and I am open to suggestions 😊 ...
      • BP SYNC between SHM and SH: There is an Entire Section that explains it in detail, don't miss it if you want this to work...

      ~~~ ECG + BP - Easy Way & Alternative Way - Tutorial - XDA - Dante63 ~~~

      If you can't see the YouTube video, visit the YouTube link: https://youtu.be/zAclEJMDrhI

      ~~~ Exception in thread "main" ~~~
      This is a very common error for many members, and I will share what members shared, thanks to them:
      Use JDK 15 to fix this issue. This process doesn't work on JDK 16 for now. It gives you this error.
      If JDK 15 didn't fix it, try other suggestions below:
      Thanks everybody.
      It was indeed a problem with the path on the JDK.
      It must to be added to the windows path.
      Everything works wonderfully.
      Big thanks Dante.


      View attachment 5254249
      Thanks @Dante63 - I followed the alternate (long) path and got BP installed successfully. I did run into a couple of issues that others have also pointed out, which you may want to add to your instructions:

      1) JDK path needs to be added to the Path system environment variables, otherwise fit2installer fails to sign the TPKs. That Path addition looks like C:\Users\myuserID\AppData\Local\.package-manager\jdk\bin
      2) APK Easy Tool installation should be added to Exclusions in Windows Security or any other antivirus. APK compilation was not working for me until this was done,.

      Again thanks for putting this all together and letting us enable functionality that we paid for!
      This is what I used by the way, in case it helps anyone else, for setting the path system.

      PATH Environment can be fixed according to Java website guide like:
      Alternatively, a member managed to make it work by doing the following:
      finally found the solution:

      you have to replace the "sdk.info" and "sdk.version"-files within the "Fit2Installer\tizen\tizen-studio"-folder with copied ones from the tizen-studio-folder under C:\tizen-studio
      then copy all the files from the subfolder tools\ide to the corrospondent folders under C:\Fit2Installer\tizen\tizen-studio

      then run the sign.bat ... there will be some strange lines, but at the end it runs through.

      hope it helps!
      It is not neccesorcly it would work as some tried the method and failed to make it work, so remember, in this case, google is your best friend lol and he will be of a great help if these solutions did not work (hopefully they work though), And more to that, I will share this link which I found interesting for those who want to read more about different the "main" exceptions:

      ~~~ FILES and Description ~~~
      Here is the link to the files I am using:
      Google Drive - Samsung Health Monitor No Root, Country, Device, Update Detection + ECG-BP-installer / BP-installer / ECG-installer

      • MinSDK24-SHM1.1.0.191.root.detection.country.restriction.removed.dante63.apk -> "updated version of 189, SG Country added only..."
      • Samsung Health 6.16.0.047 (min SDK26).apk ->"Latest Samsung Health that worked for BP sync, if your current Samsung Health doesn't sync BP even after switching to DEV with developer mode on then install this..."
      • Samsung Accessory Service 3.1.94 (min SDK15).apk -> "This app should be installed with galaxy wearables but if you don't have it, then install it, this app transfer files from the phone and push them to the watch..."
      • SHM History:
        • MinSDK24-SHM1.1.0.175.root.detection.removed.dante63.apk -> "installs Samsung Health Monitor @caravana Mod with no root detection, most stable version..."
        • MinSDK24-SHM1.1.0.181.root.detection.country.restriction.removed.dante63.apk -> "installs Official Samsung Health Monitor, Modified by Me, removed device restriction, country restriction and root detection, lowered age restriction from 22 to 16..."
        • MinSDK24-SHM1.1.0.183.root.detection.country.restriction.removed.dante63.apk -> "updated version of 181, improved ECG and wide language support..."
        • MinSDK24-SHM1.1.0.189.root.detection.country.restriction.removed.dante63.apk -> "updated version of 183, optimizations done..."
      • Original SMH ("Official from Galaxy Store, unmodified"):
        • ORIGINAL.SHM1.1.0.181
        • ORIGINAL.SHM1.1.0.183
        • ORIGINAL.SHM1.1.0.189
        • ORIGINAL.SHM1.1.0.191
      • Original Installers:
          • Samsung-ECG-BP-Retailmode-installer-SMH-1.1.0023.apk -> "installs on your phone and pushes ECG and BP widgets to your watch after allowing installation from unknown sources for your watch, it might fail to install if you have one of the widgets already installed..."
          • Samsung-ECG-BP-Official-installer-SMH-1.1.0037 -> "installs on your phone and pushes the official SMH app to your watch containing ECG and BP widgets, however, it is controlled by Samsung, BP or ECG might not visible till your country is approved, use alternative way in this case to get the missing widget"
          • Samsung-ECG-BP-Official-installer-SMH-1.1.0039 -> "updated version of 37, enhanced ECG and improved UI"
          [*][*][*][*][*][*][*][*][*][*][*][*][*][*][*][*][*][*][*][*][*][*][*][*]
        • Samsung-ECG-BP-Official-installer-SMH-1.1.0043 -> "installs on your phone and pushes the official SMH app to your watch containing ECG and BP widgets, more improvements on 1.1.0039, however, it is controlled by Samsung, BP or ECG might not visible till your country is approved, use alternative way in this case to get the missing widget"
        • Samsung.ECG.installer.apk -> "installs on the phone and pushes ECG widget to your watch..."
        • Samsung.BP.installer.apk -> "installs on the phone and pushes BP widget to your watch..."
      • Original & Modified Tpks:
        • Original TPKs - Samsung Originally Signed TPKs
          • BP.tpk -> "Blood pressure watch widget..."
          • ECG.tpk -> "ElectroCardioGram watch widget"
          • shm37_international.tpk -> "Samsung Health Monitor version 1.1.0037, rolled-out as a system app on watches when updated"
          • shm39_international.tpk -> "bugs fixed in version 1.1.0037"
          • shm43_international.wgt -> "bugs fixed in version 1.1.0039"
        • Modified Unsigned TPKs - Modified Samsung TPKs, need to be signed in order to work...
          • Unsigned_SBP.tpk -> "Blood pressure watch widget..."
          • Unsigned_SECG.tpk -> "ElectroCardioGram watch widget"
        • Samsung.TPK.installer.apk -> "installs on the phone and pushes whatever tpk widget to your watch..."
        • READ ME.txt -> "information about how to use the TPK installer"
      • JDK 15 -> "Contains JDK 15 for windows 64, Linux and MacOS, this should fix the Java problem you are having"

      Note: If you install the widgets from the APK and you changed your mind and no longer wish to use them, uninstall the apk and the widgets will be uninstalled as well, in other words, the widgets are affected by the apk on your phone...

      ~~~ What You Need For Alternative Way To Sign TPKs~~~
      Java RE: https://www.java.com/en/download/
      Java JDK 15 (recommended), you can get it from either:
      Tizen Studio: https://developer.tizen.org/development/tizen-studio/download
      Fit2Installer: https://forum.xda-developers.com/attachments/fit2installer-zip.4218341/
      APK Easy Tool: XDA - Apk Easy Tool

      ~~~ ENABLING BP SYNC BETWEEN SHM & SH ~~~
      SHM has security checks related to signature which breaks the BP sync between SHM and SH and I struggled to disable that check... Thanks to xda member @juljoe2021, he suggested and advised the use of developer mode in Samsung Health makes it work, I have tested and seen in the logs no security checks were called and the BP syncs between SHM and SH with no issues... The steps are easy to enable the developer mode on Samsung Health:
      InShot_20210411_200934172.jpgInShot_20210411_201048449.jpgInShot_20210411_232542732.jpgInShot_20210411_232636295.jpgInShot_20210411_201440606.jpgScreenshot_20210412-021338_Samsung Health.jpg
      Instructions in words, you will open Samsung health and go to settings then about, tap on the version till features and developers are visible. You will go inside the features and expand the "Health Analytics" set it to "DEV", then expand "DataPlatform" and turn On the "Developer Mode", when you hit back, Samsung Health will ask you to force stop the application and take you to the app info screen, you will force stop and clear the cache, this will allow Samsung Health to reinitiate a connection without security checks for SHM to sync BP with it...

      I have also uploaded the latest Samsung Health that worked for me but it should work with previous Samsung Health (latest version on the galaxy store is different in every country)...

      Important Note: you need to switch to DEV and turn On the Developer Mode whenever you update Samsung Health, the update in rare cases may reset those settings back to default...

      Currently Set Features are available on what I put on my Google drive, if you update and can't find the set features, rollback...

      ~~~ Special Thanks ~~~
      Thanks to the following members for sharing their solutions about the Java "main" exception error solution: @FckSamsung, @little_blaine, @uoY_redruM and @gogega ...

      BIG THANKS TO @evildog1 for the APK Easy Tool and @LeJay for the Fit2Installer that I found on his Thread...

      Thanks to @caravana for sharing version 175, found at Samsung Health Monitor - 1.1.0.175.mod4.Caravana and on XDA Samsung Health Monitor v1.1.0.167 by @JonGarrett is how I found the link...

      Thanks to @adfree for providing me SMH 1.1.0.181, SHM watch 1.1.0037 and SHM watch 1.1.0039...
      Thanks to @vadu71 for providing me the updated version of SMH 183...
      Big thanks to member @l0nax for the great catch of finding the device detection and lowering age restriction found in here...

      Thanks to @jmdomini as despite BP was hidden and inaccessible, he was able to use the BP by calling the activity through a third-party app which tells me that the restrictions were only view related and not functionality, his findings helped me dig in the right place and fix SHM...

      Thanks to @warpjavier for sharing his thread
      https://forum.xda-developers.com/t/working-bp-tpk-for-non-samsung-phones.4184729/
      I have followed his steps and generated unsigned TPKs, you just need to sign it...
      After signing it with Tizen studio, you either push it sdb or you can use the TPK installer which you decompile, place the tpk in assets and compile it again...

      Thanks for this Guide by @xxstd (download 1 to 3, don't use 4 or 5, use mine and proceed with the rest) for how to sign TPKs

      Thanks to Mr. @m2carbine as on the journey of trying to make this work, thanks to him I found the root cause why BP failed to install... The picture below shows SMH installed on the watch:
      20210110_012035.png

      ~~~ ABOUT THE ORIGINAL SMH ~~~
      According to Samsung, The Samsung Health Monitor app requires a Galaxy Watch Active2 or Galaxy Watch3 and Android version 7.0 and above...

      From Version 181 and onwards, Samsung device detection added, country restriction and spoof location detection, the following countries were listed in the country restriction checking, I believe if you live in those countries, SMH should Work, otherwise, it wouldn't, SMH checks your GeoLocation, Sim Card, and Device CSC (why so complex, it's just BP & ECG):
      • EU_CSC: <-- FULL SUPPORT
        1. AT
        2. BE
        3. BG
        4. CZ
        5. DE
        6. DK
        7. EE
        8. ES
        9. FI
        10. FR
        11. GR
        12. HR
        13. HU
        14. IE
        15. IT
        16. LT
        17. LV
        18. NL
        19. PL
        20. PT
        21. RO
        22. SE
        23. SI
        24. SK
        25. CY
        26. LU
        27. MT
        28. GB
        29. CH
        30. IS
        31. NO
        32. LI
        33. TR
        34. RS
      • EU_MNC: <-- PARTIAL SUPPORT?
        1. AT
        2. BE
        3. BG
        4. CH
        5. CZ
        6. DE
        7. DK
        8. EE
        9. ES
        10. FI
        11. FR
        12. GB
        13. GR
        14. HR
        15. HU
        16. IE
        17. IS
        18. IT
        19. LT
        20. LV
        21. NL
        22. NO
        23. PL
        24. PT
        25. RO
        26. SE
        27. SI
        28. SK
      • Ungrouped:
        1. KR <-- NO ACTION
        2. US <-- BP DISABLED
        3. BR <-- NO ACTION
        4. CL <-- NO ACTION
        5. AE <-- NO ACTION
        6. ID <-- NO ACTION
        7. SG <-- NO ACTION
      SMH 189 listed 3 more countries CY, RU and HK which add restrictions to them aside of the language support...
      SMH 191 listed 1 country which is SG which may add restrictions aside of the language support...

      The original app will work only if you are not rooted, have no busybox and have none of the following apps installed,
      in addition to living in the countries above:
      • com.noshufou.android.su
      • com.noshufou.android.su.elite
      • eu.chainfire.supersu
      • com.koushikdutta.superuser
      • com.thirdparty.superuser
      • com.yellowes.su
      • com.devadvance.rootcloak
      • com.devadvance.rootcloakplus
      • de.robv.android.xposed.installer
      • com.saurik.substrate
      • com.zachspong.temprootremovejb
      • com.amphoras.hidemyroot
      • com.amphoras.hidemyrootadfree
      • com.formyhm.hiderootPremium
      • com.formyhm.hideroot
      • com.koushikdutta.rommanager
      • com.koushikdutta.rommanager.license
      • com.dimonvideo.luckypatcher
      • com.chelpus.lackypatch
      • com.ramdroid.appquarantine
      • com.ramdroid.appquarantinepro
      How do I know all that you ask?
      Well, I have decompiled the apk and removed the detection method, and recompiled it...
      So if you want to keep using the original mod apk or perhaps the original Samsung Health Monitor when it's released, make sure you have none of what I stated and you should be fine...

      ~~~ Don't forget to ~~~
      Bump into the thread when a newer version is released and I will update it...
      or Bump into the thread if you need an older version, share it and I will remove the root detection...
      BUT KEEP IN MIND, I WILL NOT MODIFY ANY OTHER APKS, SO PLEASE DO NOT BUMP FOR THAT...

      Now, it doesn't make sense 🤦‍♂️ why Samsung considers the blood pressure and ecg very critical that it needs lockscreen to be medium and no root :rolleyes: but oh well...

      I am using my Samsung Galaxy Note 20 Ultra Rooted with my Galaxy Watch 3...
      Also, I have tested these apps on BlueStacks, rooted, different types of devices to ensure device and update detection is removed and that the application is running, but please, if you encounter any issues, @ me for a faster response and I will do my best...


      ~~~ Finally ~~~
      Don't forget to smash the (y)THANKS (y)
      PS. if you are super happy and want to thank me, a cup of coffee will do great 😊
      16
      Changelog,
      Latest Changes:

      --- 31st May 2021 - Patched 189, removed force update, and Successfully Modified and uploaded SHM1.1.0.191, changes are only Singapore Country support - I also had to go back to previous versions, I forgot to change the error of age from 22 to 16 for all languages as I only changed English (Versions affected 183, 189 & 191), I removed Samsung Health 6.17*, please use 6.16.0.047, if you updated and can't see set features, uninstall updates and grab a copy from my drive...

      --- 29th May 2021 - Organized Google drive and added Samsung Health 6.17.0.019 that has set features which enables sync with SHM...
      --- 14th May 2021 - Some members on XDA, reddit and youtube have struggled with finding JDK 15 since the URL keeps breaking, I decided to locate and download JDK 15 and upload it to my Google Drive, now you have two options, the link and google drive...
      --- 11th April 2021 - Thanks to @juljoe2021 for the tip of using Developer mode on Samsung Health, it allows to bypass signature checks and Sync BP between Samsung Health and Samsung Health monitor, also thanks to @adfree, I uploaded the SHM version 43 for the watch and added the installer which has 3 countries support (CY, RU and HK) and some minor optimization, I also uploaded the latest Samsung Health that I used for the BP sync in SHM...
      --- 3rd April 2021 - Successfully Modified and uploaded SHM1.1.0.189 - still investigating what has been added aside from 3 countries (CY, RU and HK)...
      --- 28th March 2021 - I have gathered different solutions of members for the annoying Exception in thread "main" JAVA problem in a section so people can use one of the them to fix it and proceed signing the tpks...
      --- 14th March 2021 - I forgot to post about the SHM 39 apk installer, Thanks to @adfree, I believe it patches the SHM 37 for bugs in the interface...
      --- 10th March 2021 - the issue of hidden ECG and hidden BP was still shown for few users and now I am confident to say with more patches, I think SHM 181 & 183 is at its best, thanks to @jmdomini as despite BP was hidden, he was able to use the BP by calling the activity which tells me that the restrictions was view related and not functionality...
      --- 8th March 2021 - very few users reported that SHM still hides BP or ECG showing either "The blood pressure features require a Galaxy Watch Active 2 or later to work" or "The ECG features require a Galaxy Watch Active 2 or later to work", so I dag very deep hoping to find what I missed and I believe I found it & I patched the logic, now you should be able to see "The blood pressure and ECG features require a Galaxy Watch Active 2 or later to work." And to be able to use both BP and ECG on the app...
      --- 3rd March 2021 - Organized the Thread, Patched 181 and 183, removed BP restriction for USA, Removed lock screen requirement, changed the message of age restriction from 22 to 16 and applied the check logic...
      --- 1st March 2021 - Updated SHM1.1.0.181 & SHM1.1.0.183 removing device restriction and lowered age restriction from 22 to 16, special thanks to @l0nax, I also removed version detection, it shouldn't ask you to update to the latest version anymore...
      --- 11th Feb 2021 - Successfully Modified and uploaded SHM1.1.0.183 root detection & country restriction removed...
      --- 10th Feb 2021 - Successfully Modified and uploaded SHM1.1.0.181 root detection & country restriction removed + Added official SMH tpk installer for the watch...
      --- 14th Jan 2021 - Uploaded a tutorial video, hope it helps...
      --- 13th Jan 2021 - Fixed the Modified TPKs - the current ones are working 100% as they have been tested, please sign it and enjoy using it...
      --- 10th Jan 2021 - Added Modified BP.tpk, ECG.tpk to be signed, those who fail to install any widget, check for SMH on your watch, if it's installed, it will prevent you from pushing original widgets, sign the modified widgets and push them either sdb or the tpk installer I added and it will work (Note, you need to add the tpk inside the TPKinstaller, decompile, add it and recompile and sign)...
      --- 5th Jan 2021 - Added BP.tpk, ECG.tpk and TPK installer apk for editing and pushing if original tpk fail to install, check the Alternative way in the post...
      --- 24th Dec 2020 - Added individual widget installers, BP standalone & ECG standalone, if the watch has one of the widgets already, both widgets installer will fail to install...
      --- 20th Dec 2020 - Added photos in post #3...
      --- 14th Dec 2020 - Removed root detection from latest Samsung Health Monitor Mod (1.1.0.175.mod4) by @caravana
      6
      You should know by now that youre special :)
      Wish I could share my specialness lol, everyone deserves to get this feature to perform the BP sync...

      Honestly, I checked both 6.16 & 6.17 and both have the exact identical match in the lines for enabling set features, the only guess is that it gets enabled remotely..? It's hard to reverse it because SH has so many folders & files, feels like a maze lol...

      I will do one thing, since Samsung Health isn't a system app, I will keep make a MOD and have set features enabled always...

      Tomorrow, I will prepare and release a MOD for SH latest version, anyone who wants to have latest version with sync can use the MOD or stay with original SH 6.16 for sync till either 6.17 gets set features or a later version does...
      I am getting error
      More details please,
      I don't even know what you are installing to guide through it...
      5
      Notice:
      When updating SMH from 175, it's recommended to uninstall instead of upgrading...

      Random Uploads:
      Installing Watch App gives you ECG and BP widgets...
      20201220_154350.jpg20201220_154358.jpg
      Installing the Samsung Health Monitor will sync the watch widgets with it...
      20201220_154704.jpg
      Here are a list of versions of the watch and apps:
      Screenshot_20201225-033223_Galaxy Watch3 PlugIn.jpgScreenshot_20201225-033708_Galaxy Watch3 PlugIn.jpgScreenshot_20201225-034125_Galaxy Watch3 PlugIn.jpgScreenshot_20201225-034142_Galaxy Watch3 PlugIn.jpg
      New update remarks on ECG and BP:
      Screenshot_20210205-064937_Galaxy Watch3 PlugIn.jpg
      5
      Hello Dante, today too I received an update OTA for the Samsung Health app on the GW3 and installed it. Since I last charged the SW3 battery, about 22 hours ago, I now have left an 27% and the Samsung Health app has consumed 25% of the total battery.
      I don't think it is related to my previous installation of SHM 183 and to discard it and continue with my troubleshooting, I ask you if you have any suggestions in this regard? Should I reset the SW3?
      Thanks!
      Yeah, Samsung Health does consume a lot on the watch, SHM has nothing to do with it, it can be seen in galaxy wearables, about watch then battery, Samsung Health ha many running services, such as Heart Beat, Steps, Auto-workout detect, stress, sleeping time, stairs and so on...
      I managed to install the modified Health Monitor app 1.1.0.183 and it works.
      I tried to install both the ECG as well as the BP installers but only the ECG managed to install.
      I don't have the Health Monitor app on my watch, according to your video tutorial.
      did you try the alternative way?
      Thanks for your help!
      I have not either SHM installed on watch.
      I will try...
      Let me know if you need help...
      Yeah, I know, I'm going to alternative way but only ecg is installed, not BP.. Don't know why.
      Perhaps you are trying to install the unsigned bp... after signing the BP, go to folder install me... I made that mistake and thought something is wrong till I realized I have been using the same unsigned bp inside the sign me folder...
      I have a watch with a pre-installed SHM like yours. On a nearby branch, a respected I0nax has developed an alternative solution. To be installed as a separate application on the watch without affecting the installed one. Works normally. Yesterday he rebuilt the latest 0.39 version.
      p.s Installation via signature
      First, Credit him by adding @ and typing his name like @l0nax ...
      Second, mention the thread link...
      He modified the SHM for the phone which is brilliant how he caught the device restriction that I missed
      but patched SHM for watch...?
      It's only renaming package name just like I did with the BP and ECG, nothing is patched...
      When a tpk is modified, they will need to sign it because Samsung Signature is broken...
      Now on the watch, they'll see 2 SHMs and multiple widgets...
      Having 2 SHM services, luckily they don't run in the background, would drain the battery...
      Kindly asking you from now and onwards, you can suggest, you can assist
      BUT I do not wish to see you posting anything on your own to:
      Claim it as your own or list it to others randomly or whatever that is you are doing...
      I have worked hard to create this simple guide, I dedicated my time,
      I have listed Thanks to members for their work and effort and listed their guides as well...
      I do not wish to see you posting files from other threads and outside XDA community...
      Read the 📚 XDA Developers Forum Rules 📚 since you are a new member...
      Show some respect when you are on other threads and credit others properly...