Enable ECG(BP Featur) On Non-Samsung Phones for Galaxy Watch 3, Active 2 Step-By-Step

Search This thread

Geronimo2009

Member
Nov 23, 2009
8
0
Managed to install SHM + ECG on my "Pixel5+GW3 Lte", using @Dante63 "Easy install method", but no luck with BP, either "easy or hard way" :-(
After reading your post , I´ve disabled "Bluethoot" and repeated @xxstd steps as you told, using @Dante63 unsigned BP apk, and "voilá", it worked.
Regarding Java errors, if you're using WIn10 like me, just update the PATH Environment variable as explained on @Dante63 thread, it's that simple.
Kudos to you guys who made this "thing" to work and shame on you Samsung ...
I got BP working with this modified unsigned tpk:
 

imkobra

New member
Apr 15, 2021
1
0
Hello, i'm trying to make the BP to work with Galaxy Active 2 paired with Huawei P40 lite, ECG is working but the BP apk won't install on watch (failed to install msg).
Tried the method with create certificate and sign tpk with Fit2Installer but receive the following errors when run sign.bat:

Setting configuration is succeeded....

Loaded in 'C:\Fit2Installer\tizen\profiles.xml'.
Security profiles have a specified profile. Will be overwritten.
author path: C:\cert\author.p12
author password: **********
distributor1 path: C:\cert\distributor.p12
distributor1 password: **********

Wrote to 'C:\Fit2Installer\tizen\profiles.xml'.
Succeed to add 'MyProfile' profile.
If want to sign by this, add the file of security profiles in CLI configuration
like 'tizen cli-config "profiles.path=C:\Fit2Installer\tizen\profiles.xml"'.
Exception in thread "main" java.lang.NoSuchMethodError: 'java.lang.String org.tizen.common.sign.preferences.SigningProfileContainer.readActiveProfileXML(java.io.InputStream)'
at org.tizen.ncli.subcommands.sign.SignCLICommand.getActiveProfileName(SignCLICommand.java:153)
at org.tizen.ncli.subcommands.sign.SignCLICommand.getSigningProfile(SignCLICommand.java:108)
at org.tizen.ncli.subcommands.sign.SignCLICommand.call(SignCLICommand.java:73)
at org.tizen.ncli.subcommands.sign.SignCLICommand.call(SignCLICommand.java:58)
at org.tizen.ncli.subcommands.AbstractSubCommand.runCommand(AbstractSubCommand.java:76)
at org.tizen.ncli.ide.shell.PackageCLI.doRepackageForTpk(PackageCLI.java:862)
at org.tizen.ncli.ide.shell.PackageCLI.doPackageForTpk(PackageCLI.java:1086)
at org.tizen.ncli.ide.shell.PackageCLI.execute(PackageCLI.java:1260)
at org.tizen.ncli.ide.shell.AbstractCLI.execute(AbstractCLI.java:91)
at org.tizen.ncli.ide.shell.Main.run(Main.java:188)
at org.tizen.ncli.ide.shell.Main.main(Main.java:121)
Press any key to continue . . .

Tried on laptop with Windows 10 x64 and computer with Windows 7 x64, JDK 15.0.2, JRE-8u281.
 
Hello, i'm trying to make the BP to work with Galaxy Active 2 paired with Huawei P40 lite, ECG is working but the BP apk won't install on watch (failed to install msg).
Tried the method with create certificate and sign tpk with Fit2Installer but receive the following errors when run sign.bat:

Setting configuration is succeeded....

Loaded in 'C:\Fit2Installer\tizen\profiles.xml'.
Security profiles have a specified profile. Will be overwritten.
author path: C:\cert\author.p12
author password: **********
distributor1 path: C:\cert\distributor.p12
distributor1 password: **********

Wrote to 'C:\Fit2Installer\tizen\profiles.xml'.
Succeed to add 'MyProfile' profile.
If want to sign by this, add the file of security profiles in CLI configuration
like 'tizen cli-config "profiles.path=C:\Fit2Installer\tizen\profiles.xml"'.
Exception in thread "main" java.lang.NoSuchMethodError: 'java.lang.String org.tizen.common.sign.preferences.SigningProfileContainer.readActiveProfileXML(java.io.InputStream)'
at org.tizen.ncli.subcommands.sign.SignCLICommand.getActiveProfileName(SignCLICommand.java:153)
at org.tizen.ncli.subcommands.sign.SignCLICommand.getSigningProfile(SignCLICommand.java:108)
at org.tizen.ncli.subcommands.sign.SignCLICommand.call(SignCLICommand.java:73)
at org.tizen.ncli.subcommands.sign.SignCLICommand.call(SignCLICommand.java:58)
at org.tizen.ncli.subcommands.AbstractSubCommand.runCommand(AbstractSubCommand.java:76)
at org.tizen.ncli.ide.shell.PackageCLI.doRepackageForTpk(PackageCLI.java:862)
at org.tizen.ncli.ide.shell.PackageCLI.doPackageForTpk(PackageCLI.java:1086)
at org.tizen.ncli.ide.shell.PackageCLI.execute(PackageCLI.java:1260)
at org.tizen.ncli.ide.shell.AbstractCLI.execute(AbstractCLI.java:91)
at org.tizen.ncli.ide.shell.Main.run(Main.java:188)
at org.tizen.ncli.ide.shell.Main.main(Main.java:121)
Press any key to continue . . .

Tried on laptop with Windows 10 x64 and computer with Windows 7 x64, JDK 15.0.2, JRE-8u281.
Use a modified BP, you can grab one from my thread or try the one mentioned in the post earlier, sign the modified BP and install it and it will work...

For java error, install jdk 15
 

JJamesB02

New member
Sep 9, 2020
3
1
I keep having this problem. Ive gotten through everything else fine. Ive tried remaking the cert, turned the bat into absolute values but nothing i try is changing anything. Samsung active 2 OnePlus 8

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

Exception in thread "main" java.lang.IllegalAccessError: class org.tizen.common.util.CipherUtil (in unnamed module @0x73846619) 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 @0x73846619
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 keep having this problem. Ive gotten through everything else fine. Ive tried remaking the cert, turned the bat into absolute values but nothing i try is changing anything. Samsung active 2 OnePlus 8

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

Exception in thread "main" java.lang.IllegalAccessError: class org.tizen.common.util.CipherUtil (in unnamed module @0x73846619) 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 @0x73846619
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 . . .
Install JDK 15, that should solve your problem
 

Fan7as7icMrFox

New member
Apr 19, 2021
1
0
Hey Guys!

I've scoured the comments on this and similar threads and I'm still unable to sign the ecg.tpk, anyone able to help me?

Background:
Huawei P30 Pro UK fully updated. Samsung Galaxy Watch Active2 with Tizen 5.5.0.2. Debugging on etc.

I've been able to create the certificated and even got the Device Manager working after manually installing the missing DLL

I've also been through the sign.bat and given absolute paths where applicable and yet i still get the following error message:

Code:
Setting configuration is succeeded....


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


Exception in thread "main" java.lang.IllegalAccessError: class org.tizen.common.util.CipherUtil (in unnamed module @0x73846619) 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 @0x73846619
        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 . . .

Any help would be greatly appreciated!!
 
Hey Guys!

I've scoured the comments on this and similar threads and I'm still unable to sign the ecg.tpk, anyone able to help me?

Background:
Huawei P30 Pro UK fully updated. Samsung Galaxy Watch Active2 with Tizen 5.5.0.2. Debugging on etc.

I've been able to create the certificated and even got the Device Manager working after manually installing the missing DLL

I've also been through the sign.bat and given absolute paths where applicable and yet i still get the following error message:

Code:
Setting configuration is succeeded....


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


Exception in thread "main" java.lang.IllegalAccessError: class org.tizen.common.util.CipherUtil (in unnamed module @0x73846619) 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 @0x73846619
        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 . . .

Any help would be greatly appreciated!!
Install jdk 15 and it should work...
 

RC7777

New member
Apr 22, 2021
1
0
I have already installed the app on my watch and my phone. However, when I open the app on my phone, it has no response at all. Can anybody help? Thank you so much.

My phone is Sony Xperia 1 II, running on Android 11. And my watch is Watch 3, its Tizen version is on 5.5.0.2
 

ydo22

New member
Apr 24, 2021
4
3
Hey there,

I'm having the following error.
I've reinstalled java already and have edited the PATH variables according to a guide posted here, nothing's worked yet.

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

Exception in thread "main" java.lang.IllegalAccessError: class org.tizen.common.util.CipherUtil (in unnamed module @0x5649fd9b) 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 @0x5649fd9b
        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 . . .
 
Hey there,

I'm having the following error.
I've reinstalled java already and have edited the PATH variables according to a guide posted here, nothing's worked yet.

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

Exception in thread "main" java.lang.IllegalAccessError: class org.tizen.common.util.CipherUtil (in unnamed module @0x5649fd9b) 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 @0x5649fd9b
        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 . . .
Install jdk 15 and your issue should be resolved...
 
Grabbing a fresh copy of fit2installer and uninstalling all other java versions and reinstalling jdk 15 seemed to do the trick.

Successfully installed ecg.tpk but BP.tpk is giving me error [-1]
Grab a modified BP tpk and sign it and it will install, you can grab mine from my Google drive in my thread (check signature)
 
  • Like
Reactions: galaxys and ydo22
Dec 25, 2014
11
1
hi

can someone please help me got to section 17

password correct

but came up with this error







read a few messages back and seen if u install jdk 15 will fix ......only jdk 16 is showing up everytime i got to 15

can some one plesae pm me with link to install


would appreciate any help

Thank you


1619433041969.png
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 38
    Update 09/29/20:
    1. The latest Samsung Health Monitor Version 1..1.0.175.Caravana (Thanks Caravana for the Mod) Download

    This tutorial should work on all Android Phones to enable ECG for your Galaxy Watch 3 and Active 2. BP might also work the same way when it is released in the US.

    Basic idea is to create your own certificate to sign ECG.tpk application and install it on your watch, then install the Samsung Health Monitor Mod app on your phone.

    I have read lots of threads on XDA and can't find a complete tutorial about how to do it for Galaxy Watch 3 or Active 2. Hope this step-by-step tutorial will help. The whole process took me around 30 mins, it shouldn't be very hard. Make sure you back-up your watch first, just in case anything goes wrong and you need to restore data.

    You will need an Android Phone, a Windows PC and Galaxy Watch 3/Active 2 watch for this tutorial. And a wireless network.

    Downloads:
    1. Download Java for Windows offline (64 bit) https://www.java.com/en/download/manual.jsp and install it.
    2. Download JavaSE/Oracle JDK https://www.oracle.com/technetwork/java/javase/downloads/index.html Click "JDK Download" from the top the latest version, then it will direct you to a new page, find "Windows x64 Installer" click the download page from the page and install it.
    3. Download Tizen SDK https://developer.tizen.org/development/tizen-studio/download Download Latest Tizen Studio with IDE installer, click "64 Bit" to download and install it.
    4. Download ecg.tpk, BP.tpk, Fit2Installer from here(ecg_downloads)
    5. Download Samsung Health Monitor Version 1..1.0.167.Caravana (Thanks Caravana for the Mod) from here (See update 09/29/20 from the top of the thread to download the latest version)

    On Your Phone:
    1. Install Samsung Health Monitor Version 1..1.0.167.Caravana on your phone. Open the app enter your name, BOD and etc to finish the setup.

    On Your Watch:
    1. From your watch, Go to "Settings"->"About Watch"->"Software"->Click On "Software Versio" 5 times until it shows "Developer mode turned on"
    2. Go back to "About Watch", make sure it shows "Debugging is turned on", it not click "Debugging" and turn it on.
    3. Go to Wifi settings on the watch, change wifi setting to always On, and connect it to the same wireless network with your PC.
    4. Reboot the watch. Make sure wifi is connected after the reboot.

    From Your PC:
    1. Launch Tizen Package Manager and Navigate to 5.5 wearable(It depends on your watch's software version, eg mine shows Tizen Version 5.5.0.1, so I navigate to 5.5 wearable), then click Install icon
    2. Scroll down to the Tizen SDK tool and click the install icon
    3. Click on the Extension SDK tab
    3.1 Click the arrow on Extras
    3.2 Install Samsung Certificate Extension and Samsung Wearable Extension
    4. Check the Progress tab, once it shows 100%, you can close Tizen Package Manger and do not launch Tizen Studio(we don't need to use Tizen Studio)
    5. Open up "Certificate Manager"
    6. Click on the "+" icon and from the pop-up window click Samsung Logo.
    6.1 Device Type -> Mobile/Wearable, Click Next
    6.2 Certificate Profile(Give it whatever name you like), Click Next
    6.3 Author Certificate -> Create a new author certificate, Click Next
    6.4 Author Certificate -> Enter Author name, Password, Confirm Password as required(Remember the password,. you will need it when you sign the TPK file) and click next
    6.5 A pop up will ask you to sign in to your Samsung account, enter your account information and sign in
    6.6 Now it will show your certificate has been saved at C:/Users/USERNAME/SamsungCertificate/cert_name and click next.
    6.7 Create a new distributor certificate and click next
    6.8 Do not change Privilege and password information, do not close these windows, just leave it there, we need to enable debug mode from the watch and connect it to PC now.
    7. Open Tizen "Device Manager" from the PC.
    8. Click the "Remote Device Manager" icon from top right corner.
    9. From pop-up windows, click the "Scan Devices" icon from the top right corner.
    10. Once it find your watch turn the connection switch to on. and close pop-up windows. At this time, you should able to see lots of debugging information from Device Manager. (If you don't see debug information, try these steps: 1. Turn off your windows firewall 2. turn off bluetooth&GPS on your watch 3. reboot your watch )
    11. Go back to Tizen Certificate Manager, step 9.8, we can see one DUID has been added automatically. Click next.
    12. It will show your certificate has been saved at C:/Users/USERNAME/SamsungCertificate/cert_name, Click Finish.
    13. Download Fit2installer.zip unzip the whole folder to your desktop.
    14. Go to the certificate(C:/Users/USERNAME/SamsungCertificate/cert_name) you just created and copy all files. inside the folder
    15. Go to C:\Users\USERNAME\Desktop\Fit2Installer\cert Paste all the certificate file you just copied.
    16. Copy ecg.tpk file and paste it at C:\Users\USERNAME\Desktop\Fit2Installer\sign_me
    17. Click sign.bat from the Fit2Installer folder. Enter your certificate password.
    18. It will show "Package( C:\Users\USERNAME\Desktop\Fit2Installer\install_me\ecg.tpk ) is created successfully." and enter any key to close the window.
    19. Now go to "Device Manager", right-click your device, choose "install app", Select ecg.tpk file from C:\Users\USERNAME\Desktop\Fit2Installer\install_me.
    20. Wait a few seconds, you should see ECG app has been installed on your watch. Open it.
    21. Open the "Samsung Health Monitor" app from your phone, you should be able to read the ECG data from your watch now.

    As Blood Pressure has not been released in the U.S, once it released, you should be able to activate for Non-Samsung phone the same way. You can disable debug mode if you want now.

    Enjoy!

    Reference:
    1. https://xdaforums.com/showpost.php?p=83574519&postcount=6
    2. https://www.reddit.com/r/GearS3/comments/aljplu/tutorial_how_to_install_tpks_and_wgts_onto_your/
    3. https://xdaforums.com/smartwatch/gear-fit/howto-sign-sideload-tizen-applications-t3639793
    4
    Dante63, thanks for your help and comments earlier.
    My head is spinning - I haven't done stuff like this since the days of Windows Mobile!
    Could you just tell me whether, as I now have 5.5.0.2 on the watch, with ECG and BP in the update, although not available to my Huawei P20 Pro, should I still install the apks?
    Or do I understand that the next SHM you modify might just work with the 5.5.0.2 and the P20 as-is?
    Really sorry, and grateful for any help.
    (The watch is from UAE, but I'm in the UK)
    Many thanks!
    It's already done, I have 175, 181 & 183, but for those who can't get it running, I'm willing to play around with the SHM apk, hopefully I find what is stopping the app from running...

    it's not fair for people having a watch and can't use its features because it's not available or device problems and so on...
    2
    In allegato BP in italiano, da me tradotto, da firmare. perfettamente funzionante in abbinamento a SHM1.1.0.175 anche esso in italiano
    buon divertimento
    2
    I successfully installed the ECG tpk, Dante - works perfectly with SHM 175 - thank you so much!
    To install the BP tpk, do I just add it using Device Manager?
    Because it doesn't want to do it.
    I don't need to repeat any other steps, do I? Just install the tpk using Device Manager?
    Sorry - I've been doing it for ages, and now I'm too tired to think straight... Would like to do it while everything is set up to go.
    Many thanks, as always.
    You can try with SDB or decompile the TPK installer, add the signed tpk file inside the assets and compile it and then install it and it will push the file inside your watch... I hope you get right and at the first attempt...
    Whered you find the bp.TPK file I cant locate it?
    That member used the BP.tpk in my thread...
    2
    I have tested all the versions in you drive link, none work.
    I think it's time to upgrade the hardware.
    I will make 1 more version of the SMH...
    Wait a little bit longer, if that version works, it will solve most of people problems with the latest version...