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


  • Total voters
    213
Search This thread

tiba95

New member
Oct 7, 2016
2
0
Dante help me please i cant find soultion.
Setting configuration is succeeded....

[Fatal Error] :1:1: Premature end of file.
Loaded in 'C:\Fit2Installer\tizen\profiles.xml'.
author path: C:\Fit2Installer\cert\author.p12
author password: ********
distributor1 path: C:\Fit2Installer\cert\distributor.p12
distributor1 password: ********

Exception in thread "main" java.lang.IllegalAccessError: class org.tizen.common.util.CipherUtil (in unnamed module @0x2d928643) cannot access class com.sun.org.apache.xerces.internal.impl.dv.util.Base64 (in module java.xml) because module java.xml does not export com.sun.org.apache.xerces.internal.impl.dv.util to unnamed module @0x2d928643
at org.tizen.common.util.CipherUtil.getEncryptedString(CipherUtil.java:117)
at org.tizen.common.sign.preferences.SigningProfile.writeProfileItem(SigningProfile.java:290)
at org.tizen.common.sign.preferences.SigningProfileContainer.writeProfile(SigningProfileContainer.java:346)
at org.tizen.common.sign.preferences.SigningProfileContainer.writeProfileXML(SigningProfileContainer.java:315)
at org.tizen.ncli.ide.shell.AbstractSecurityProfileCLI.writeXML(AbstractSecurityProfileCLI.java:114)
at org.tizen.ncli.subcommands.sign.SecurityProfileAddCLI.execute(SecurityProfileAddCLI.java:147)
at org.tizen.ncli.ide.shell.SecurityProfilesCLI.execute(SecurityProfilesCLI.java:60)
at org.tizen.ncli.ide.shell.AbstractCLI.execute(AbstractCLI.java:92)
at org.tizen.ncli.ide.shell.Main.run(Main.java:144)
at org.tizen.ncli.ide.shell.Main.main(Main.java:78)
[Fatal Error] :1:1: Premature end of file.
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/osgi/util/NLS
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1010)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:855)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:753)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:676)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:634)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
at org.tizen.ncli.subcommands.sign.SignCLICommand.call(SignCLICommand.java:74)
at org.tizen.ncli.subcommands.sign.SignCLICommand.call(SignCLICommand.java:48)
at org.tizen.ncli.subcommands.AbstractSubCommand.runCommand(AbstractSubCommand.java:85)
at org.tizen.ncli.ide.shell.PackageCLI.doRepackageForTpk(PackageCLI.java:694)
at org.tizen.ncli.ide.shell.PackageCLI.doPackageForTpk(PackageCLI.java:887)
at org.tizen.ncli.ide.shell.PackageCLI.execute(PackageCLI.java:1058)
at org.tizen.ncli.ide.shell.AbstractCLI.execute(AbstractCLI.java:92)
at org.tizen.ncli.ide.shell.Main.run(Main.java:144)
at org.tizen.ncli.ide.shell.Main.main(Main.java:78)
Caused by: java.lang.ClassNotFoundException: org.eclipse.osgi.util.NLS
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:636)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
... 18 more
Press any key to continue . . .
 

Dante63

Senior Member
  • Nov 1, 2015
    1,793
    1,548
    28
    the Clouds
    Samsung Galaxy Note 20 Ultra
    Dante help me please i cant find soultion.
    Setting configuration is succeeded....

    [Fatal Error] :1:1: Premature end of file.
    Loaded in 'C:\Fit2Installer\tizen\profiles.xml'.
    author path: C:\Fit2Installer\cert\author.p12
    author password: ********
    distributor1 path: C:\Fit2Installer\cert\distributor.p12
    distributor1 password: ********

    Exception in thread "main" java.lang.IllegalAccessError: class org.tizen.common.util.CipherUtil (in unnamed module @0x2d928643) cannot access class com.sun.org.apache.xerces.internal.impl.dv.util.Base64 (in module java.xml) because module java.xml does not export com.sun.org.apache.xerces.internal.impl.dv.util to unnamed module @0x2d928643
    at org.tizen.common.util.CipherUtil.getEncryptedString(CipherUtil.java:117)
    at org.tizen.common.sign.preferences.SigningProfile.writeProfileItem(SigningProfile.java:290)
    at org.tizen.common.sign.preferences.SigningProfileContainer.writeProfile(SigningProfileContainer.java:346)
    at org.tizen.common.sign.preferences.SigningProfileContainer.writeProfileXML(SigningProfileContainer.java:315)
    at org.tizen.ncli.ide.shell.AbstractSecurityProfileCLI.writeXML(AbstractSecurityProfileCLI.java:114)
    at org.tizen.ncli.subcommands.sign.SecurityProfileAddCLI.execute(SecurityProfileAddCLI.java:147)
    at org.tizen.ncli.ide.shell.SecurityProfilesCLI.execute(SecurityProfilesCLI.java:60)
    at org.tizen.ncli.ide.shell.AbstractCLI.execute(AbstractCLI.java:92)
    at org.tizen.ncli.ide.shell.Main.run(Main.java:144)
    at org.tizen.ncli.ide.shell.Main.main(Main.java:78)
    [Fatal Error] :1:1: Premature end of file.
    Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/osgi/util/NLS
    at java.base/java.lang.ClassLoader.defineClass1(Native Method)
    at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1010)
    at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
    at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:855)
    at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:753)
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:676)
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:634)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
    at org.tizen.ncli.subcommands.sign.SignCLICommand.call(SignCLICommand.java:74)
    at org.tizen.ncli.subcommands.sign.SignCLICommand.call(SignCLICommand.java:48)
    at org.tizen.ncli.subcommands.AbstractSubCommand.runCommand(AbstractSubCommand.java:85)
    at org.tizen.ncli.ide.shell.PackageCLI.doRepackageForTpk(PackageCLI.java:694)
    at org.tizen.ncli.ide.shell.PackageCLI.doPackageForTpk(PackageCLI.java:887)
    at org.tizen.ncli.ide.shell.PackageCLI.execute(PackageCLI.java:1058)
    at org.tizen.ncli.ide.shell.AbstractCLI.execute(AbstractCLI.java:92)
    at org.tizen.ncli.ide.shell.Main.run(Main.java:144)
    at org.tizen.ncli.ide.shell.Main.main(Main.java:78)
    Caused by: java.lang.ClassNotFoundException: org.eclipse.osgi.util.NLS
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:636)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
    ... 18 more
    Press any key to continue . . .
    I believe this was resolved, you sort of message d me and posted, one is enough lol but I'm glad it worked for you with jdk 15
     
    • Love
    Reactions: tiba95

    muschiu35bv

    Senior Member
    Oct 19, 2013
    234
    29
    I have Uninstall jdk 16 and replaced with jdk 15 and I was able to sign the tpk and use apk easy tool. Now everything is working and no problems occurred. Thank you for your support and great work 😀
     
    • Like
    Reactions: Dante63

    LeonardoNextgen

    New member
    May 5, 2021
    1
    1
    Hello Dante! First of all, thank you for your beautiful work here.

    I've managed to install it on my Active 2 following the "Easy way". I got the ECG working with no problems at all. However, the Blood Pressure app won't appear in on my watch.

    When I installed the apk it didn't showed any errors. I have already followed the "BP SYNC between SH and SMH" and reinstalled the apks. In my watch the only new thing installed were "Samsung ECG Monitor". On my phone, the SHM only accepts ECG and says I haven't a BP compatible device.

    Any idea on why it behaves like that? Should I follow the alternative way for installing BP, even though the easy way worked for ECG?

    Thank you once more! Beautiful work
     
    • Like
    Reactions: Dante63

    lambik333

    Senior Member
  • Nov 22, 2011
    1,261
    266
    vlissingen
    i have to go back to original rom.... samsung health monitor is working but samsung health wont...
    messages that phone was rooted, i installed your apk but didnt work , cant chanche the tima (etc) file to 0 because phone is not rooted.... please help. how can i root the phone with original rom?????
     

    Dante63

    Senior Member
  • Nov 1, 2015
    1,793
    1,548
    28
    the Clouds
    Samsung Galaxy Note 20 Ultra
    Hello Dante! First of all, thank you for your beautiful work here.

    I've managed to install it on my Active 2 following the "Easy way". I got the ECG working with no problems at all. However, the Blood Pressure app won't appear in on my watch.

    When I installed the apk it didn't showed any errors. I have already followed the "BP SYNC between SH and SMH" and reinstalled the apks. In my watch the only new thing installed were "Samsung ECG Monitor". On my phone, the SHM only accepts ECG and says I haven't a BP compatible device.

    Any idea on why it behaves like that? Should I follow the alternative way for installing BP, even though the easy way worked for ECG?

    Thank you once more! Beautiful work
    Please try the alternate, your phone may have somehow failed to show error of pushing the BP...
    i have to go back to original rom.... samsung health monitor is working but samsung health wont...
    messages that phone was rooted, i installed your apk but didnt work , cant chanche the tima (etc) file to 0 because phone is not rooted.... please help. how can i root the phone with original rom?????
    Logically, clean ROM flash would reset everything back to normal so I am not sure why tima is still flagged...

    Rooting a phone will require you getting you the device ROM unmodified, you extract and move AB to your phone (preferable) and install magisk manager and choose patch image and select AB, once it's done, you'll have Magisk Patched image, take it back on your PC, now flash things with Odin putting the Magisk patched image in AB and the rest from the original ROM (don't forget to unchecked the auto reboot), once the flashing is complete reboot into stock recovery and wipe data and reboot one more time and you will have root, now I am not sure if there are additional steps to remove encryption and install custom recovery, as far as I know, what I told you should be enough...

    One last thing, before all this, you need to enable OEM unlocking in developers options and unlock your bootloader...

    I also advise you to look for your phone thread just in case and to avoid soft or hard bricking your phone...
     

    lucifaru

    Member
    Nov 29, 2010
    33
    1
    Macao
    thank you so much for your help Dante. I have followed your alternate way because my watch is at latest firmware, and got both ECG and BP to be installed on my watch. BP works perfectly on my watch, and ECG was working for a week until suddenly this morning, when i clicked ECG on my watch, the "measure" button becomes "Install Update" and I couldn't do ECG anymore. when i pressed install update on my watch, my phone says this content isn't available in galaxy store. error code is ecg:2290:9900:97d787e5021. Please see if you could help and thanks! the app on my phone is .189 from your google drive. thanks again!
     
    • Like
    Reactions: Dante63

    Dante63

    Senior Member
  • Nov 1, 2015
    1,793
    1,548
    28
    the Clouds
    Samsung Galaxy Note 20 Ultra
    thank you so much for your help Dante. I have followed your alternate way because my watch is at latest firmware, and got both ECG and BP to be installed on my watch. BP works perfectly on my watch, and ECG was working for a week until suddenly this morning, when i clicked ECG on my watch, the "measure" button becomes "Install Update" and I couldn't do ECG anymore. when i pressed install update on my watch, my phone says this content isn't available in galaxy store. error code is ecg:2290:9900:97d787e5021. Please see if you could help and thanks! the app on my phone is .189 from your google drive. thanks again!
    Do you have SHM on your watch?
     

    kodiak799

    Senior Member
    Jan 17, 2012
    163
    27
    So I'm one of the idiots that accidentally re-locked the bootloader on Galaxy s10e (snapdragon US).

    Samsung Health wasn't working. But the below modified apk sort of works - i'ts not syncing and Health Sync won't work.

    Now to see if I can get BP working again
     
    Last edited:

    lucifaru

    Member
    Nov 29, 2010
    33
    1
    Macao
    The SHM has ECG which sometimes tends to push the old one out, the ECG in SHM is sufficient enough and you can use it instead of the Standalone ECG...
    Thank you again Dante. Just to report to you that both the stand alone ECG and BP both have "install update" instead of measure, so I couldn't use the functions now...

    Can you let me know how to get the bundle SHM to be installed on the watch? Don't think I can find it on your YouTube video. Sorry for the troubles. And will it conflict with the hidden system SHM that I have?
     

    DrTwoScoops

    New member
    May 10, 2021
    2
    0
    Interesting issue that I can't seem to find posted elsewhere in the thread, After completing part of the process I was softlocked out of of the base Samsung Health app, I am unable to log in and I keep getting kicked back to the login and 2FA screen. SHM works fine but I am unable to see my sleep data, heart rate or workouts on my phone due to this error.
     

    Dante63

    Senior Member
  • Nov 1, 2015
    1,793
    1,548
    28
    the Clouds
    Samsung Galaxy Note 20 Ultra
    Thank you again Dante. Just to report to you that both the stand alone ECG and BP both have "install update" instead of measure, so I couldn't use the functions now...

    Can you let me know how to get the bundle SHM to be installed on the watch? Don't think I can find it on your YouTube video. Sorry for the troubles. And will it conflict with the hidden system SHM that I have?
    Inside Galaxy wearable, go to apps and manage apps, make sure Samsung Health Monitor is not hidden (if it's hidden, hit the plus and you will see SHM on your watch)
    Interesting issue that I can't seem to find posted elsewhere in the thread, After completing part of the process I was softlocked out of of the base Samsung Health app, I am unable to log in and I keep getting kicked back to the login and 2FA screen. SHM works fine but I am unable to see my sleep data, heart rate or workouts on my phone due to this error.
    Your Samsung Health app is broken?
    Can you explain what you have done so far to be locked out of SH?
     

    DrTwoScoops

    New member
    May 10, 2021
    2
    0
    Your Samsung Health app is broken?
    Can you explain what you have done so far to be locked out of SH?
    What I think what happened was that I installed the SHM app before the SH app after setting up my watch. On my device (LG wing 5g) this caused the SH app to loop through the initial login and 2FA steps without ever actually logging me in, eventually locking me out of my account for a little while. After a factory reset and installing the apps again (wearable, galaxy watch 3 plugin, accessory service, SH then SHM in that order) everything worked fine.

    When troubleshooting the issue I tried installing the apps out of order again on an LG V60 and got the same result, being unable to log into the SH app. Maybe an issue with LG phones? Or perhaps just user error, I'm sure not too many people install the apps out of order.
     

    Dante63

    Senior Member
  • Nov 1, 2015
    1,793
    1,548
    28
    the Clouds
    Samsung Galaxy Note 20 Ultra
    What I think what happened was that I installed the SHM app before the SH app after setting up my watch. On my device (LG wing 5g) this caused the SH app to loop through the initial login and 2FA steps without ever actually logging me in, eventually locking me out of my account for a little while. After a factory reset and installing the apps again (wearable, galaxy watch 3 plugin, accessory service, SH then SHM in that order) everything worked fine.

    When troubleshooting the issue I tried installing the apps out of order again on an LG V60 and got the same result, being unable to log into the SH app. Maybe an issue with LG phones? Or perhaps just user error, I'm sure not too many people install the apps out of order.
    SH comes before SHM...
    Having SHM first may break SH, theoretically speaking since SHM calls for SH services, might conflict with SH as SHM tries to sync and fails...
     
    • Like
    Reactions: galaxys

    rafaelmnz

    Member
    Apr 5, 2021
    5
    1
    Google Pixel 4 XL
    This thread targets all devices and not just Samsung phone, if you're facing any issues, share details so I could assist you
    Hi Dante, thank you for answering me!

    So, I didn't have any problems installing the BP and ECG apps by the alternative way, but whenever I try to install the SMH 1.1.0043 from your folder I get a "Failed to install" message when transferring to the watch 3.
     

    Dante63

    Senior Member
  • Nov 1, 2015
    1,793
    1,548
    28
    the Clouds
    Samsung Galaxy Note 20 Ultra
    Hi Dante, thank you for answering me!

    So, I didn't have any problems installing the BP and ECG apps by the alternative way, but whenever I try to install the SMH 1.1.0043 from your folder I get a "Failed to install" message when transferring to the watch 3.
    You have a newer version installed on the watch, check galaxy wearable, apps, manage apps and look for SHM...

    If you can't find it, then Samsung disabled it
     
    • Like
    Reactions: rafaelmnz

    Top Liked Posts

    • 2
      Thanks for the advice. I managed to sort it out. My password had a special character % and it was breaking the code. Spend hours with out thinking that. All good now....

      Anyone who is about to try these, my advice is to use some simple passwords like abcd1234
      Thats what i wanted to say next. CMD/Terminals got problems with special characters.
      Glad that it worked now :)
      2
      Ok so I had no luck with editing Samsung Health so far, there is a signature verification happening that I still haven't caught, so editing Samsung Health latest will take time, so stay on the old version...

      On the other hand, I asked Samsung support online and sadly they just pointed me at how to enable developer mode and not how to enable set features as I wanted to see what are the requirements of having set features enabled...
    • 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
      A quick update:

      I have been very busy, barely got time, some of you wanted a modified Samsung Health app and some of you wanted a modified SHM for the watch and I still didn't get the chance to even attempt to extract newer versions of BP and ECG from SHM...

      Forgive me all but my hands are a bit tied, real life is taking most of my time but I promise that SHM mobile app will always be maintained...
      2
      Here is a theory that came up to my mind:
      what if SHM on the watch can be triggered by the SHM on the phone,
      a signal to enable the BP or ECG widget or both...?

      I have both widgets enabled, so I will see if I can send a signal from the Phone SHM to disable my watch SHM BP widget...
      I will keep everyone updated for sure...
      Cheers...
      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
    • 86
      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 😊
      15
      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...