yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Watch] adfree:
SM-R820 CTH8 for instance:

sdb shell

sh-3.2$ pkgcmd --help

Package Manager Tool Version: 0.1

-i, --install install the package
-u, --uninstall uninstall the package
-r, --reinstall reinstall the package
-w, --mount-install mount install the package
-c, --clear clear user data
--clear-all clear user data for all packages or packages type
-m, --move move package
-g, --getsize get size of given package
-T, --getsize-type get type [0: total size / 1: data size]
-l, --list display list of installed packages available for the current user
i.e. user's specific apps and global apps
-s, --show show detail package info
-a, --app-path show app installation path
-C, --check check if applications belonging to a package are running or not
-k, --kill terminate applications belonging to a package
-d, --descriptor provide descriptor path
-p, --package-path provide package path
-n, --package-name provide package name
-t, --package-type provide package type
-T, --move-type provide move type [0: move to internal / 1: move to external / 2: move to extended]
--global Global Mode [Warning: user should be privilegied to use this mode]
--uid Specify target user's id. This only affect app activation/deactivation.
-e, --tep-path provide TEP package path
-M, --tep-move decide move/copy of TEP package [0: copy TEP package / 1: move TEP package]
-G, --debug-mode install the package with debug mode for sdk
-D, --deactivate disable package or app
-A, --activate enable package or app
-S, --skip-optimization install the package with skip optimization for sdk
-h, --help print this help

Usage: pkgcmd [options]
pkgcmd -i -t <pkg type> (-d <descriptor path>) -p <pkg path> (--global)
pkgcmd -u -n <pkgid> (--global)
pkgcmd -r -t <pkg type> -n <pkgid> (--global)
pkgcmd -w -t <pkg type> (-d <descriptor path>) -p <pkg path> (--global)
pkgcmd -l (-t <pkg type>)
pkgcmd -s -t <pkg type> -p <pkg path>
pkgcmd -s -t <pkg type> -n <pkg name>
pkgcmd -m -t <pkg type> -T <move type> -n <pkg name>
pkgcmd -g -T <getsize type> -n <pkgid>
pkgcmd -C -n <pkgid>
pkgcmd -k -n <pkgid>
pkgcmd --clear-all (-t <pkg type>)
pkgcmd -X <old_pkg> -Y <new_pkg> -Z <delta_pkg>
pkgcmd -D -t <pkg type> -n <pkgid> (--global) (--uid <uid>)

Example:
pkgcmd -u -n org.example.hello
pkgcmd -i -t tpk -p /tmp/org.example.hello-1.0.0-arm.tpk
pkgcmd -r -t tpk -n org.example.hello
pkgcmd -w -t tpk -p /tmp/org.example.hello-1.0.0-arm.tpk
pkgcmd -c -t tpk -n org.example.hello
pkgcmd --clear-all -t wgt
pkgcmd -m -t tpk -T 1 -n org.example.hello
pkgcmd -C -n org.example.hello
pkgcmd -k -n org.example.hello
pkgcmd -a
pkgcmd -a -t tpk -n org.example.hello
pkgcmd -l
pkgcmd -l -t tpk
pkgcmd -g -T 0 -n org.example.hello
pkgcmd -D -t tpk -n org.example.hellopkg
pkgcmd -D -t app -n org.example.helloapp --global

We have also Disable... deactivate

-D, --deactivate disable package or app

Please try:

A

pkgcmd -D -t app -n com.samsung.health.samd.bp --global

B

pkgcmd -D -t tpk -n com.samsung.health.samd.bp --global

[MENTION=1584181]coliny59[/MENTION]
[MENTION=882828]d j a[/MENTION]

Please try A and B and report result...

Thanx in advance.

Best Regards
[Samsung Galaxy Watch] coliny59:
sh-3.2$ pkgcmd -D -t app -n com.samsung.health.samd.bp --global

Failed to get appinfo[com.samsung.health.samd.bp]

Undefined error(-1)processing result : Undefined Error [-999] failed

spend time for pkgcmd is [82]ms

sh-3.2$ pkgcmd -D -t tpk -n com.samsung.health.samd.bp --global

PkgMgr Client Creation Failed

Undefined error(-1)processing result : Undefined Error [-999] failed

spend time for pkgcmd is [85]ms
[Samsung Galaxy Watch] Blenky:
On a side note. Has anyone that has had the Active 2 update, thats added ECG and Fall Detection, seen the addition of VO2 max measurement? I certainly can't see it.
[Samsung Galaxy Watch] xgeetx:
ECG Works on non-Samsung device on Tizen 5.5

[MENTION=1030585]adfree[/MENTION] and [MENTION=2998712]caravana[/MENTION] -- I got the ECG working on my Tizen 5.5 Device (Galaxy Watch Acive2 (C32E)) and my Google Pixel 4a. To do this I had to use Caravana's 175 SHM application. The TPK sending trick doesn't work on a non-Samsung device (from what I see in the thread, at least) but I was able to use the ecg.tpk from August 5th (I have so many files downloaded at this point... I don't remember who created it. Maybe adfree?) and resign it with my own certificate and upload via Tizen Studio's device manager. The SHM applications shows both the blood pressure and ECG buttons, but only ECG acknowledges a connected device. It does work though!!!

I'm not able to install bp.tpk the same way. Something seems to prevent it. My suspicion is the fact that com.samsung.health.samd.bp is already a package (or application?) in the global_apps folder. Instead of the request type showing as "Install" it runs as an "Update" according to the logs. I have not been able to successfully uninstall or deactivate the com.samsung.health.samd.bp package that appears to come on the Tizen 5.5 install no matter what.

Install log is here:

[IMG="Install log"]https://imgur.com/a/W3uCznx[/IMG]

Is there some special way we could get rid of the com.samsung.health.samd.bp package? I tried the pkgcmds that adfree posted above and they failed with "Operation not allowed" for the uninstall, and "Undefined error" and "Failed to get appinfo[com.samsung.health.samd.bp]" for the deactivation. I don't really know much about this stuff from a development perspective... just had the day to mess around with it. Let me know how I can help!
[Samsung Galaxy Watch] rasputine:
Hi [MENTION=1030585]adfree[/MENTION]

Can you extract only package for BP and ECG for TPK version 29? Like previous modded version?

So i can try on Pixel?

Thank You.
[Samsung Galaxy Watch] almodovaris:
I have a KOO GWA2 with firmware Tizen 5.5. In have installed MyBPlab and its GWA2 plugin (did the VPN trick to USA).

The plugin works, it says it has calibrated OK the BP. But then I press open on smartphone and does nothing further.

When I try to enter handcuff BP data, it says that my mobile phone does not have the required sensor. I can enter the three values from the BP handcuff, but it fails to due me having no Samsung phone (I have a Nokia 9 Pureview).

I have installed Samsung Health Monitor with Aptoide, but then it tries to display a photo for a fraction of second and then dies without error message.

So, all in all: useless, I cannot use GWA2 to read BP.
[Samsung Galaxy Watch] gdfranco:
How hard is it to resign the ecg.tpk? Found some stuff but it seems above my level of understanding...

At least you where able to do it! Nice!
[Samsung Galaxy Watch] xgeetx:
There are quite a few steps, and you need to install the Java SDK/JRE, Tizen Studio, and download a little tool that appears to just do the "signing" magic for you. It's very doable though.

Here's a reddit thread where he detailed what to do: https://www.reddit.com/r/GearS3/comments/aljplu/tutorial_how_to_install_tpks_and_wgts_onto_your/

Here's the link to the tool that signs your certificate: https://xdaforums.com/smartwatch/gear-fit/howto-sign-sideload-tizen-applications-t3639793

I don't remember which ECG.tpk file I used but I think it was in one of adfree's packages earlier in the thread. And I used caravana's latest SHM package (175?)

Maybe we can find a way to bypass the BP restriction in the US (apparently it's not approved yet, only ECG is...), but at least this gets ECG working for us!
[Samsung Galaxy Watch] gdfranco:
Thanks for the detailed answer! Gonna give it a try when I have the time and see what happens.

In theory it should work for any ecg.tpk, since the only difference should be the resigning, right?
[Samsung Galaxy Watch] Alibaba0101:
getting same error, did you find a fix?
[Samsung Galaxy Watch] adfree:
[MENTION=5804269]rasputine[/MENTION]

Are you able to use Tools for unzip ZIP Archives?

Then you can do it by yourself...

APK is [B]ZIP[/B]
TPK is [B]ZIP[/B]

Unpack APK and search for the file...

https://xdaforums.com/showpost.php?p=83370429&postcount=919

Another hint...

File Extension WGT... its only text string... but in this case it is the TPK 29...

Best Regards
[Samsung Galaxy Watch] xgeetx:
Are you on tizen 5.5? I think they removed the ability to install this way
[Samsung Galaxy Watch] lexiperplexi91:
I know that I'm not the people you mentioned but I tried, I have an R830, with CTH8 Tizen 5.5 and received:

sh-3.2$ pkgcmd -D -t tpk -n com.samsung.health.samd.bp --global
PkgMgr Client Creation Failed
Undefined error(-1)processing result : Undefined Error [-999] failed
spend time for pkgcmd is [74]ms
[Samsung Galaxy Watch] d j a:
I got the same exact results.
[Samsung Galaxy Watch] dursosono:
Iam failed to connect sdb 2260,

Want to install 29tpk but can't replace the old 23tpk with new one 29 tpk, then try to uninstall old 23 tpk via sdb 2260, unfortunately can't connect

Any suggestions?

My device SM-R820 Tizen 5.5 KOO pair with galaxy note 10
[Samsung Galaxy Watch] rasputine:
Thanks for the guide and hint.

Wait, which APK to unpack? Is it SHM?
[Samsung Galaxy Watch] coliny59:
I think i've done all the steps correctly. I'm using the other SHM and i'm getting a 'No compatible watch found' this is the 175_mod4.apk. Also, where did you upload ecg.tpk? /opt/usr/home/owner/apps_rw/tmp?
[Samsung Galaxy Watch] adfree:
Short compared 23 and 29...

Then realized they added 1 more language. :good:

Now for Brazil seems complete Translation into Portuguese.

[MENTION=2998712]caravana[/MENTION]

I was not able to see official the 29 TPK...

So maybe "soon" ZTO get new Firmware?

:confused:

Best Regards
[Samsung Galaxy Watch] dotly:
UPDATE:

Called samsung, requested a callback, spent about 30 minutes doing other stuff, until I got a callback from Samsung. Spoke to someone, who said that "the only thing that I could do was to buy a Samsung phone"

She then said that I can call the same number ( 8007267864 ) between 9 am and 5 pm eastern time, and ask to speak with the ECG department.

Really really disappointing :(

---------- Post added at 02:35 AM ---------- Previous post was at 02:33 AM ----------

Also any updates on a way to sideload it on non-samsung phones?
[Samsung Galaxy Watch] xgeetx:
I used the tizen studio device manager to connect to the watch and install the signed .tpk file. If it doesn't fail (bp.tpk fails here) then you will see the ecg app on your watch and be able to see your watch in the phone app.

Make sure your watch is on the same wifi as your computer and then connect to it with the ip address of your watch.
[Samsung Galaxy Watch] dotly:
I'm really dumb, is that a yes? or a no :/
[Samsung Galaxy Watch] marckusdavis:
The issue is, for those of us who aren't heavy developers, how do we (fairly easily) sign the ecg.tpk file. I've tried some of the references on this thread to no avail. I have the full Tizen studio installed and have generated a certificate using its Certificate Manager, but I have no idea how to sign an existing tpk file with it. Any help???
[Samsung Galaxy Watch] xgeetx:
You right click on the connected device and use the install option. I'm not sure what you mean with your question... You don't need to manually upload it to a folder. Did you launch the device manager independently? You don't need to open it through the Tizen Studio IDE.
[Samsung Galaxy Watch] dotly:
Sorry I wasn't clear on my question. Is this finally a working version on non-samsung devices?
[Samsung Galaxy Watch] xgeetx:
[MENTION=10211081]dotly[/MENTION] yes it worked on my Pixel 4a, running latest android. My Galaxy Active 2 (SM-R825u) is running freshly installed Tizen 5.5. I'll summarize my steps from the previous post:

Here's a reddit thread with detailed steps and screenshots to install the necessary tools to generate a certificate, sign your ecg.tpk file with the new certificate, and install it to the watch.

Here's the link to the tool that will sign your certificate. It has instructions there, but you basically put an unsigned ecg.tpk into the "sign_me" folder, run the sign.bat file, and a signed ecg.tpk will be in your "install_me" folder. You then use the device manager (steps and pictures are part of the reddit post above) to connect to your watch, and install the ecg.tpk file.

I used this ECG.tpk: https://ufile.io/pzd1qmw0

I used this Caravana SHM .apk file: https://ufile.io/d9yxknv1

Edit: to clarify to someone reading this, it doesn't work for blood pressure. It shows up in the samsung monitoring app on the phone but I can't get it installed on the watch. I believe this is because it isn't approved in the US.
[Samsung Galaxy Watch] dotly:
This is really really awesome. Thank you SO MUCH!
[Samsung Galaxy Watch] coliny59:
Got it working as well, like an idiot, i didn't install the certificate module so it was using the wrong cert. Thank you! at least this is progress.
[Samsung Galaxy Watch] jurastefo:
Hi successfully change region to XAR what next? Which app install after. GWA2+ s10e phone
[Samsung Galaxy Watch] matteo040178:
Thank you, what csc should I pick to do this? I have a SM-R835F
[Samsung Galaxy Watch] dursosono:
Do You have solved this sdb connection problem?

I have the same problem, can't connect via sdb sideload
[Samsung Galaxy Watch] marckusdavis:
I can't get it to recognize my distribute certificate. Not sure what I'm doing wrong. It creates the ecg.tpk, but it says unauthorized certificate when I try to install it.
[Samsung Galaxy Watch] sahirhussain:
i thought so too but so far, the 10-15 days that ive had the bp app, its been very accurate. i have been cross checking with my cuff based monitor.
[Samsung Galaxy Watch] thunder141:
i managed to remove it with the galaxy wearable app on my galaxys10
[Samsung Galaxy Watch] jurastefo:
Hi after wireless download/APMode and open NetOdin switch to SM-R820 wifi. I got connection fail: Connection time out (110). I would like to change region but I can not. Any suggestion?
[Samsung Galaxy Watch] dursosono:
I can't uninstall on wearable, the button menu remove/uninstall was disable (galaxy note 10)
[Samsung Galaxy Watch] xgeetx:
I don't know much about the region codes and how things differ unfortunately. All I can say is that I'm XAR (USA) and that's probably a large reason why ECG works but BP does not. Also a reminder that this is specifically because I don't have a samsung device.

---------- Post added at 07:00 AM ---------- Previous post was at 06:57 AM ----------

Hmmmm not sure. I would just retrace all my steps for the certificate steps. Did you add your watch's DUID to the certificate?
[Samsung Galaxy Watch] vertlink:
have you enabled both debug mode & developer mode on the watch? also you maybe need to turn off any antivirus & firewall on your pc, as it may block the connection
[Samsung Galaxy Watch] jurastefo:
Thats a good idea. I dont do that. Is nessecary developer mode set to ON?
[Samsung Galaxy Watch] vertlink:
just in case :D. you can disable both developer & debug mode again after the process finished, though (if you have no plan on sideload or flash the watch in near future)

and also reboot the watch after you enabled it
[Samsung Galaxy Watch] etheon84:
I think the reason bp.tpk doesnt work is because there is no bp.tpk at this point - it is merged into ecg.tpk. If you use ecg.tpk from august 5th there is no way to make bp work. Did you try to do the same but with the newest ecg.tpk?
[Samsung Galaxy Watch] 808phoneaddict:
Ok I got Tizen studio working but having a couple issues.

Package manager - I can't find the Samsung Certificate Extension and Samsung Wearable Extension in the list, as it is said that I need to download that, it's the last thing to download (got the rest done).

Also, you guys followed the tutorial and did the 4.0 wearable as well (as the original instructions in the tutorial state) it seems a rather old set of instructions?

---------- Post added at 09:36 PM ---------- Previous post was at 09:16 PM ----------
[Samsung Galaxy Watch] Vlives:
I have an issue where ECG doesn't start, it just says "moisturize your skin", like a few persons in this thread. I followed this instruction:

I am getting "5" in the L-0 field, also a few people on Reddit have "4" or "5" on their watches. Unfortunately in Finland there are no Samsung service centers, so I'm afraid I'm out of luck with physical repairs :crying:
[Samsung Galaxy Watch] matteo040178:
Me too, that means the sensor is broken?
[Samsung Galaxy Watch] Vlives:
I'd say yes with 90% certainty. There is one person 20 or so pages ago, who sent the watch for repairs and ECG started to work, but I don't know what his "L-0" was (or if he even tested with this method).

I really, really hope that it would start working after it launches in Europe officially, but most likely not.
[Samsung Galaxy Watch] Blenky:
Yes I managed to use sdb on Tizen 5. See post

https://xdaforums.com/showpost.php?p=83570927&postcount=2296

At first connection failed. I tried a few time and eventually it connected (maybe by turning off bluetooth helped?) and I was able t remove the ECG tpk. I didn't use sdb to sideload the bp/ecg dual app but the insertion APK thats linked in the post
[Samsung Galaxy Watch] dursosono:
Thanks, I've try many times but still didn't connected.

I was unable remove tpk inside the watch, wear app was disable on button to uninstall

If tried install 29 apk always failed due to (maybe) can't replace my existing 23 tpk
[Samsung Galaxy Watch] Void_Dragon07:
ECG and BP dont work on the 2018 galaxy watch right? just the GWA2
[Samsung Galaxy Watch] sandwichk:
I want the apk. The official version is not working on my Note 8 as it is rooted. Watch is in XAR, phone is Exynos N950F
[Samsung Galaxy Watch] adfree:
ECG NO, because seems no Hardware for this...

(Still I got no Service Manual)

But Blood Pressure works for me. :cowboy: :cool: :good:

SM-R500 aka Galaxy Watch Active (1).

Best Regards
[Samsung Galaxy Watch] ernani:
New Korean firmware released (R820XXU1CTI4)!!!

Changelog (translated):

GPS reception speed improvement

Improved system stability and reliability
[Samsung Galaxy Watch] Blenky:
Ok just tried this again. The steps that connected my GWA2 to sdb are

Ensure watch has wi fi always on and is connected to same wi fi as laptop\desktop

turn off bluetooth on watch

reboot watch

after watch reboots open admin command prompt and navigate to wherever sdb is located- in my case 'C:\samsung\sdb\data\tools'

run command

sdb connect {watch ip}

My output from above was:

C:\samsung\sdb\data\tools>sdb connect 192.168.0.119
connecting to 192.168.0.119:26101 ...
connected to 192.168.0.119:26101
[Samsung Galaxy Watch] dursosono:
In previous Tizen 4.0.0.6, 4.0.0.7, and 4.0.0.8 there is no problem with command sdb connect [ip]

But in Tizen 5.5 this command don't work :confused:

If uninstall apk (SHM 175 mod by Caravana) it's will automatically uninstall tpk inside watch?

I will try this method but i'am worry
[Samsung Galaxy Watch] Matttis:
Just saw it as well, I'm installing it now.

I hope the GPS accuracy really did improve, the watch added almost 2km to my last run ?
[Samsung Galaxy Watch] Blenky:
I'm on Tizen 5.5.0.1.
[Samsung Galaxy Watch] armato:
isnt a good idea to create a new post with clear steps to installa ecg/bp in each firmware? it's very complicated to follow this thread
[Samsung Galaxy Watch] dursosono:
after many trial, now I can connect with sdb commant

But when try to uninstall it's failed, below the log cmd

C:\Users\Hp\Downloads\sdb2260\sdb\data\tools>sdb connect 192.168.137.15

192.168.137.15:26101 is already connected

C:\Users\Hp\Downloads\sdb2260\sdb\data\tools>sdb shell

sh-3.2$ pkgcmd -u -t tpk -n com.samsung.health.samd.bp

__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.health.samd.bp] key[start] val[uninstall]

__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.health.samd.bp] key[appid] val[com.samsung.health.samd.bp.bp-service]

__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.health.samd.bp] key[appid] val[com.samsung.health.samd.bp.bp-home]

__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.health.samd.bp] key[appid] val[com.samsung.health.samd.bp.home]

__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.health.samd.bp] key[appid] val[com.samsung.health.samd.bp.ecg-home]

__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.health.samd.bp] key[appid] val[com.samsung.health.samd.bp.ecg-service]

__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.health.samd.bp] key[appid] val[com.samsung.health.samd.bp.widget]

__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.health.samd.bp] key[install_percent] val[4]

__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.health.samd.bp] key[install_percent] val[9]

__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.health.samd.bp] key[error] val[-4]

__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.health.samd.bp] key[end] val[fail]

processing result : Operation not allowed [-4] failed

spend time for pkgcmd is [1626]ms

sh-3.2$ exit

exit
[Samsung Galaxy Watch] marckusdavis:
OK, I think you hit the nail on the head. I think part of the problem might be that those instructions are older, and/or are incorrect for the current version of Tizen Studio, or I'm missing some stuff (which I'm about to test and find out). To help you out though, when in Package Manager, make sure you are on the "Main SDK" tab first, and that under that tab, you have the wearable toggle on (watch icon, it should be blue/selected) . Scroll down to the bottom to "Tizen SDK Tools". Click on the arrow to the left of it. Now click on the arrow to the left of "Baseline SDK". Click on the "install" button to the right of "Certificate Manager". That will install the Certificate Manager. This tab may also be where the wearable extension is, but I'm not sure about that, so just for kicks, I'm (right now) installing the 5.5 Wearable IDE (scroll back up to the top to see it). I also noticed that if you click on the "Extension SDK" tab (to the right of the "Main SDK" tab), under "Extras" (scroll down a bit), there are the Samsung Certificate Extension, and the Samsung Wearable Extension. Perhaps these are what's missing (and what you were looking for) as I don't have those installed either (and I'm installing them now too).

I'm hoping that because I didn't have those things above installed, that this is the reason that I do not get many of the options mentioned in the reddit thread (like putting in the watch DUID and asking to set a password for the distributor certificate, neither of which I have), and that the instructions are still valid.

UPDATE: Indeed it looks like this might have been the problem. I'm limited on time to keep going right now, but I'm definitely now getting some of the options that were missing...
[Samsung Galaxy Watch] xgeetx:
Thanks for the additional info. I had already installed the 5.5 wearable SDK so this makes sense. I also did add the certificate and wearable extensions from the extensions tab. The reddit instructions were pretty close overall though, but yes I may have been doing some tinkering along the way.
[Samsung Galaxy Watch] Blenky:
What region is your watch? Mine is XAR (US).
[Samsung Galaxy Watch] dursosono:
Mine K00,

Any suggestions for this problem?
[Samsung Galaxy Watch] ShayMagen1:
Thank you so much for this method, works like a charm.. I was about to return my watch.. I guess we need to wait for BP to officially approved here (US) and we should be able to make it work like the ecg
[Samsung Galaxy Watch] dotly:
Hi everyone, quick question. In the even that Samsung does release the Health Monitor app to Non-Samsung phones, can we uninstall this version?
[Samsung Galaxy Watch] Blenky:
Sorry I don't sorry. I was just wondering if the region settings are a factor. I don't have any insight I just follow the great work done by the likes of [MENTION=1030585]adfree[/MENTION] and [MENTION=2998712]caravana[/MENTION].

What version of sdb are you using? I use v2260.

I assume the watch is in dev mode?
[Samsung Galaxy Watch] 808phoneaddict:
Thanks for that additional info! I'll give it a shot to prepare for when my replacement watch comes in! Will report back how that works!
[Samsung Galaxy Watch] dursosono:
Yes SDB 2260, the watch enable/on developer mode