yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Watch] pepocho:
Hello, I will explain how I have managed to have BP and ECG working perfectly on a NON-SAMSUNG smartphone (Xiaomi Mi10) with Tizen 5.5.0.1:

I have a SM-R825F, to have Tizen 5 I changed CSC to Brazil. Being on 4.0.0.7 and before updating install by side loading (sdb) ecg.tpk and bp.tpk separately. Update to Tizen 5 and BP disappears .... but when updating an already installed non-native application it is possible to uninstall it using already known commands; once uninstalled it is necessary to reinstall the original BP.tpk, but Tizen 5 does not allow side loading (sdb), so to be able to install it is necessary to sign the tpk and then install the signed tpk through Tizen Studio.

After this and with SHM 1.1.0.175caravana everything (ECG and BP) works on NON SAMSUNG smartphone.

A greeting.

Thanks to [MENTION=1030585]adfree[/MENTION] and [MENTION=8771555]amitdon[/MENTION]

---------- Post added at 01:19 AM ---------- Previous post was at 01:18 AM ----------

Hello, I will explain how I have managed to have BP and ECG working perfectly on a NON-SAMSUNG smartphone (Xiaomi Mi10) with Tizen 5.5.0.1:

I have a SM-R825F, to have Tizen 5 I changed CSC to Brazil. Being on 4.0.0.7 and before updating install by side loading (sdb) ecg.tpk and bp.tpk separately. Update to Tizen 5 and BP disappears .... but when updating an already installed non-native application it is possible to uninstall it using already known commands; once uninstalled it is necessary to reinstall the original BP.tpk, but Tizen 5 does not allow side loading (sdb), so to be able to install it is necessary to sign the tpk and then install the signed tpk through Tizen Studio.

After this and with SHM 1.1.0.175caravana everything (ECG and BP) works on NON SAMSUNG smartphone.

A greeting.

Thanks to [MENTION=1030585]adfree[/MENTION] and [MENTION=8771555]amitdon[/MENTION]
[Samsung Galaxy Watch] coliny59:
Ok, so if I have XAR and updated with the first 5.5.1 update and updated my own signed ecg file, there is no benefit to me updating, right? This new 5.5.1 doesn't magically allow is to delete bp.tpk, right?
[Samsung Galaxy Watch] MKOTTP:
BP on non-Samsung phone

Hello,

I am on a non-Samsung phone, with R820 44mm watch and Tizen 4.0.0.7. Using sideloaded BP.tpk and ecg.tpk

My Active2 (with CSC XAR) had another update this evening. Not sure what it was for - only small about 20Mb. Software version R820XXU1CT14/R8200XA1CT1, Wearable app updated to 5.5.0.1 and BP still not there.

any idea how to bring back BP

---------- Post added at 04:31 AM ---------- Previous post was at 04:28 AM ----------

how to sign the tpk and then install the signed tpk through Tizen Studio? steps ?
[Samsung Galaxy Watch] Huy.tq:
I don't work it but you can see here: https://xdaforums.com/smartwatch/samsung-galaxy-watch-3/enable-ecgbp-featur-samsung-phones-t4168567
[Samsung Galaxy Watch] Erden:
Hey, con you post here the separate TPK you have used? Thank you.
[Samsung Galaxy Watch] Arzo001:
Can you send link for tpk pusher v9?
[Samsung Galaxy Watch] MKOTTP:
can anyone share the signed bp.tpk and ecg.tpk for GA2 R820 (with CSC XAR) for Tizen 5.5.0.1
[Samsung Galaxy Watch] ChristianArcim:
Hello,

I got it working (44mm non LTE + Xiaomi Mi 9).

But now I have 2 questions:

1) Is it possible to "force" it to calibrate again? I did not have a measuring device and just used 3x 130/80 but that is ofc wrong to do. And I don't want to wait the 20+ days until it asks again to be calibrated

2) is it possible to have it measure in a fixed Intervall? Say every 30 min? Or only on button press? Are there any apps that can do it? Or would I Need to program my own app?
[Samsung Galaxy Watch] liquidguru:
If you want it to be at all accurate you must calibrate it against a certified cuff BP monitor, or there is no point in using the monitor on your watch. You can make it calibrate again by going into SHM. selecting 'View History', then the 3-dots and 'Recalibrate'

There is absolutely no point in taking your BP more than a couple of times a day. As you must be totally still, not moving, when taking the measurement (or it won't work), there, again, is no point in taking your BP at a fixed short internal.

Please read up about BP and measuring, best times etc. This is not a toy, but a serious measurement tool.
[Samsung Galaxy Watch] ChristianArcim:
Thank you! I'll recalibrate and try again. Edit: Works. But without you, I would not have found it!

And for 2, you are absolutely right. But our use case for the watch would be to compare it to a medical grade 24h cuff-based blood pressure measurement. To see how accurate it is and if it could replace the cuff-based measurement. So basically, a comparison study.

But that would only work if I can have it run every 2 hours or every 30 minutes to give me a measurement, because that is how the 24h right now works.
[Samsung Galaxy Watch] kanyazsombor:
Set the timer on the watch to the desired period, than measure it manually. But as it was said, you need to be still. Once I was traveling on a bus and wanted to measure my bp. I was sitting still, but the vibrations from the bus made the measurement completely impossible
[Samsung Galaxy Watch] ChristianArcim:
Would work for a test. But the idea is to have say 20-30 people wear it for 24h while they get a 24h normal measurement taken.

And for that I can’t tell people to always start a new timer and then measure and repeat. It kinda has to do it automatically. And we have a device that can do the same (continuous RR measurement using the pulse wave) but that one is 3.500€. So if the watch could do something at least comparatively (say +/- 10 mmHg) that would be huge for the medical field as the watch is so cheap.
[Samsung Galaxy Watch] plouprou:
For your study, take a look at ASUS VIVOWATCH SP (or older VIVOWATCH BP). They can track BP automatically at programmable intervals.
[Samsung Galaxy Watch] mohmd.nagy:
Can someone provide a full firmware R820XXU1BTG1 Tizen 4.0.0.8
[Samsung Galaxy Watch] ChristianArcim:
Oh wow, I'll have to talk to my boss about that watch. We would need to buy this one too.

It does say it is not certified as a medical device, the Samsung Watch Active is (at least in Korea, I guess they will have FDA certification in the future?). So Samsung (if certified) would be better option. But would need a second app for intervall or the hope that Samsung would upgrade the app.
[Samsung Galaxy Watch] Gary02468:
That's a slight exaggeration. It can still be useful to detect trends, even though you can't trust the absolute numbers without calibration. But of course calibration makes it far more useful.

That's medical advice that I think is probably unsound. A person's blood pressure can vary dramatically throughout the day, sometimes quite rapidly. One of the best things about having a BP monitor in your watch is that you can track such fluctuations by conveniently measuring your BP throughout the day, merely by sitting still for a minute each time. (If you find that you're a person for whom BP is consistent, then--and only then--might it be pointless to measure frequently.)
[Samsung Galaxy Watch] ChristianArcim:
All true, but for a 24 hour measurement I would need it run at an interval. Ofc I would not do that 24/7 but for 1 day and have a doc look at it, it would be important.
[Samsung Galaxy Watch] Gary02468:
Agreed, which probably wouldn't work well if using a watch. But taking sample watch measurements throughout the day can be a convenient compromise between either cumbersome equipment for interval measurement, or else having just a couple of measurements per day.
[Samsung Galaxy Watch] Hbmtg:
I see those with the Active 2 (R820/825 etc.,) are having success bringing back BP through either region changing to Korea/Brazil/US and/or going through the steps signing the bp.tpk and installing through Tizen on both Samsung and non-Samsung phones.

I am in the US with a Note 10 plus. I have a Galaxy Watch 3 (R845U) updated to 5.5.0.1.

Has anyone with a Galaxy Watch 3 (R840/845 etc.,) had success bringing BP back after updating?

I've tried all the steps in the previous pages. I am unable to uninstall the com.samsung.health.samd.bp (Operation not allowed error). I signed the BP.tpk but unable to install this, I get (Older version is greater than install error). I edited the manifest then updating the version (if that helps at all), signed with the same certs I always use that work before, but then I get a "Author cert does not match" error?! So confused! :confused:
[Samsung Galaxy Watch] adfree:
[B]Watch part:[/B]

Model Name:
SM-R820

Firmware Version:
R820XXU1CTI4/R820OXA1CTI4

active CSC:
ZTO

Samsung Health TPK Version
4.10.10100

[B][COLOR="Red"]Phone part:[/COLOR][/B]

Samsung Phone or other Brand?

Model Name:
SM-G920F

Samsung Health APK Version
6.12.0.029

Since last CSC change I run this successfully...

BP work. :good:

ECG work. :good:

BP syncing with SHealth not... :( :rolleyes:

[MENTION=10335403]Hbmtg[/MENTION]

I have forgotten which GW3 you have...

Anyway.

As SM-R840 and/or SM-R850 user I would simple flash CSC ONLY from BTG6...

CSC_OXA_R840OXA1BTG6_usr.tar.md5

OWN RISK!

Sideffects unknown...

Minimum you loose FOTA updates from "future"...

Best Regards
[Samsung Galaxy Watch] mirdones:
Mine is working without a problem. I use a S20 and I updated to KOO before.
[Samsung Galaxy Watch] plouprou:
Maybe this will help you --> https://xdaforums.com/showpost.php?p=83609209&postcount=124
[Samsung Galaxy Watch] adfree:
https://doc.samsungmobile.com/SM-R845U/XAR/doc.html

According to this funny changelog...

I would mix BTH4 with BTG6 CSC...

CSC_OYN_R845UOYN1BTG6_usr.tar.md5

If nothing explode after Flashing ONLY this file...

Factory Reset required to apply changes from old CSC... to gid rid of preinstalled ECG(((BP)))

Then future FOTA updates will NOT work... "disabled"...

Or complete downgrade to BTG6...

No idea if usefull changes are inside BTH4...

Best Regards
[Samsung Galaxy Watch] Hbmtg:
Thanks but unfortunately it appears that after the new 5.5.0.1 update, uninstalling the com.samsung.health.samd.bp app from the Galaxy Watch 3 (SM-R840/845) is not possible. I've tried for hours - just no luck.

I continue to mess with the manifest and appccessory xmls... sometimes I get different errors when trying to install the BP.tpk by itself. Maybe changing the install names? Really not sure if that makes any difference. I enjoy tinkering - ANY suggestion please!!! :D Otherwise will probably end up going the route [MENTION=1030585]adfree[/MENTION] suggested.
[Samsung Galaxy Watch] adfree:
Full BTG6 Firmware for SM-R845U like US

https://www.file-upload.net/download-14307604/R845USQU1BTG6_US_before_ECG.7z.html

Best Regards
[Samsung Galaxy Watch] n.u.k.e.r:
modded SHM on non-rooted device throw "can't be opened on rooted device" error

Hello Caravana

First of all thank you so much for all you effort!!

Unfortunately none of your versions work since ECG added to SHM app work for me. It always says it "can't be opened on rooted device." Actually my phone is stock European S10 without tripped Konx - so it is not rooted nor ever attempted to root.

Original App from Samsung is not saying and allow to connect to my watches but says it's not available in my country.

It seems your mod interfere with root check on some phones.

PS: I'm not alone few other's were reporting it. Even modded version of you mod is out there to kill root check but I still get the error even with that one.

Is there any way to fix it to remove root check or fix "interference with root check" your mod did?

I can test any new version if you'd like.

Many thanks in advance
[Samsung Galaxy Watch] adfree:
Tiny progress in CSC Firmware File Hacking and SQLite Database...

https://xdaforums.com/showpost.php?p=83615967&postcount=936

This is still Blood Oxygen and so on related...

Still I have no CTH8 nor CTI4 Firmware Files to try,,, :o

About Root Detection of SHM APK...

Found this interesting post:

https://xdaforums.com/showpost.php?p=83615653&postcount=157

[MENTION=1182234]n.u.k.e.r[/MENTION]

Can you check if SHM is installed internal or somewhere else...

Best Regards
[Samsung Galaxy Watch] ChristianArcim:
Yes. And so, so many people suffer from high blood preassure. But to do this I would need another app to trigger it or hope Samsung will Change the app.
[Samsung Galaxy Watch] benjat:
Thanks to caravana n adfree and others for all the effort.

Just sharing my result. Just got update on gwa2 sm820 - 5.5.0.1 software version R820XXU1CTI4

Csc R820OXA1CTI4

Phone Using s10+

SHM1.1.0.175.mod4.apk

Ecg n BP i get the one at this page https://xdaforums.com/smartwatch/samsung-galaxy-watch-3/enable-ecgbp-featur-samsung-phones-t4168567

All step follow the step in that page to sign ecg n bp.

Results - both ecg n bp works. Only bp not sync with samsung health.

Thanks again.

-regards from malaysia

P/s: restart ur pc/notebook after installing all the apps, java etc
[Samsung Galaxy Watch] Rickytr:
I have exactly the same problem with SDB ver 2.2.60. Can you tell me the correct SDB version to use (and where to find it...), please?

Thanks a lot.
[Samsung Galaxy Watch] ChristianArcim:
Does anybody know where the app saves locally on the phone the blood pressure measurements it shows in the app?

Thanks!
[Samsung Galaxy Watch] EQMOD:
Hi Tried to install this with the latest update of Tizen 5.xxxx , but it says lower version

C:\tizencli-studio\tools>install.bat

WARNING: Your data are to be sent over an unencrypted connection and could be read by others.

pushed samsungapps-000002143337-32185748-401002600.wgt 100% 30MB 1833KB/s

1 file(s) pushed. 0 file(s) skipped.

.\install_me\samsungapps-000002143337-32185748-401002600.wgt 1928KB/s (31974176 bytes in 16.189s)

path is /home/owner/share/tmp/sdk_tools/samsungapps-000002143337-32185748-401002600.wgt

__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[start] val[update]

__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[11]

__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[error] val[-29]

__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[end] val[fail]

processing result : Old Version is greater than update request version [-29] failed

Do you have the latest one ? I already have BP and ECG, trying to get Oxygen to work .Thanks.
[Samsung Galaxy Watch] peppo90:
with this method I managed to install ecg but it doesn't work with BP.

Anyone knows what can be?

Failed to install the app:

Reason:

processing result: General error [-1] failed

https://www.xda-developers.com/enab...gzxV3yDqgbA63FL1S--zYwWoi9xvRkSjPnCxxaSc0VlRA
[Samsung Galaxy Watch] sprcreative:
ECG only tpk

latest version extracted from samd.bp version 1.1.0103

installs as com.samsung.health.samd.ecg instead of com.samsung.health.samd.bp because you cant uninstall it anymore on the last update.

NOT signed! => you need to sign it yourself and install it with sdb install, does not give sideload error

Verified with 1.1.0.175Caravana on tizen 5.5.0.1

After selecting wrist in smh app watch keeps waiting on phone app, close the app on the watch and reopen it => should be ok now

https://www.file-upload.net/download-14308531/ecg.tpk.html

Warning, if you reset your watch on the last update => com.samsung.health.samd.bp becomes unable to uninstall due to no permissions. Only solution I know of is to downgrade firmware, install unofficial samd.bp that is signed with an other signature and then upgrade => when upgrading it tries to update samd.bp but it fails because signature author is not the same, the app will dissapear however on screen but is still installed and thus you have permissions to delete it.
[Samsung Galaxy Watch] Hbmtg:
Yeah, I found this last night messing around. Signing the ECG tpk that was posted a few pages back will install on my US Galaxy Watch 3 R845U (5.5.0.1 most recent). So now I have 2 working ECGs but no BP haha :cyclops:

At least this confirms we can still sideload apps on the R840/845 etc., running the newly updated 5.5.0.1. I'm messing around trying to merge the BP and ECG tpks - not sure if I'm making any progress at all, but at least different results each time I install. I know the whole issue is with the samd.bp being locked down but would there be any way to install a BP tpk as a separate app like the ECG can be?

[MENTION=1030585]adfree[/MENTION] is kind enough to have posted the firmware and instructions to downgrade... I just like the battle sometimes to see if there is a work around to get BP working before I flash. Lots of clever people here!
[Samsung Galaxy Watch] Erden:
thank you, signed and installed without problem.
[Samsung Galaxy Watch] adfree:
[MENTION=10335403]Hbmtg[/MENTION]

https://xdaforums.com/showpost.php?p=83620189&postcount=170

Corrected CSC...

Look into this Thread... seems to work.

Only as info.

Best Regards
[Samsung Galaxy Watch] the_passenger:
If you want both ECG and BP to work, then you need to install BP.tpk first then ECG.tpk. For some odd reason it doesn't work the other way around.
[Samsung Galaxy Watch] woof123:
I installed Ecg and now im getting a -1 generic error when i try to install bp....Is this what you mean?And how to undo that...

Ps:i tried to do the opposite after i uninstalled Ecg app from the watch...But i still get generic -1 error on bp...
[Samsung Galaxy Watch] the_passenger:
remove it with:

sdb shell

pkgcmd -u -n com.samsung.health.samd.ecg

then install again with Tizen Studio (Device Manager)
[Samsung Galaxy Watch] sprcreative:
I tried by changing the app id to samd.bp2 so that it would install, it worked, smh regonized it but in the calibration it got stuck. Then I assumed the smh app would be hard coded to the service name but i need to change it because we cant delete the pre installed samd.bp.

Then I tried to trick it by using samd without .bp as name but for the service use the exact same name, it worked for the ecg but the bp app would not even start anymore. But when trying to revert to my ecg.tpk that didn't work anymore too so i had to reset the watch, now im back on the ecg.tpk. Could be that one of my tests screwed up the services.

If you start changing names, don't use the samd-home launcher, its hard coded to search for samd.bp, by changing the nodisplay parameter you can bypass the launcher.

But for the samd.bp with only ecg inside it that I used to make a ecg only tpk, that build is more recent(109) then the samd.bp with bp still inside it (still 29). Perhaps we just need a newer build of the combo app for 5.5.0.1?
[Samsung Galaxy Watch] Hbmtg:
Thanks for the suggestions! I think I'm getting somewhere. I was able to get BP back on my watch (R845U) ...just trying to find a corresponding SHM on my phone to connect with.
[Samsung Galaxy Watch] adfree:
Need help from Galaxy Watch 3 user, with working Blood Oxygen.

Blood Oxygen related.

https://xdaforums.com/showpost.php?p=83621535&postcount=3

Please I need this file from GW3. :angel:

Exported to JSON it contains some weired data...

Example:

{
"data1": "ZDQxZDhjZDk4ZjAwYjIwNGU5ODAwOTk4ZWNmODQyN2U=",
"data2": null,
"id": "dashboard@com.samsung.shealth.widget",
"ordering": 1,
"reserved1": null,
"reserved2": null,
"rowid": 85,
"subid": null,
"uid": "1ef61569319ed1de59dc00053cd39022"
},

data1 is Base64 encrypted... no idea what it is...

So IMHO easier to copy file to GWA2...

Thanx in advance.

Best Regards
[Samsung Galaxy Watch] sprcreative:
That's the easy part, if you have the .175 SMH installed it should go further, I suspect the service is not running.

If the service is running, SMH will pick it up and the app on the watch will give the button to open app instead of download app. If i pushed open app on the watch it would open SMH automaticly, I could also start callibration but then the app on the watch should change, that it didn't do. Then the app on the phone would go further with instructions until it said measuring on watch but the watch would not do anything until SMH gives a time out.

So i had BP running, SMH reconigized it, BP could start SMH but SMH could not control the BP app, why exactly not is still an open question here but my best guess so far is it needs a new build, the 5.5.0.1 changed a lot with permissions
[Samsung Galaxy Watch] Hbmtg:
Yeah, so far with the SHMs I've been using, the watch BP app shows to Open App on Phone - which it does. It goes all the way through calibrate, and while the SHM phone app moves forward, the watch BP measure doesn't kick in at this point....will keep at it. At least moving somewhere :good:
[Samsung Galaxy Watch] EQMOD:
after based64 decode this came out ;

d41d8cd98f00b204e9800998ecf8427e

Could be an ID of something
[Samsung Galaxy Watch] adfree:
[MENTION=8689093]EQMOD[/MENTION]

I have used Phone and the Wear Plugin crap to remove Widgets...

So I left only 1 as template...

Now i will try if change only 1 String...

And if I can copy to SM-R820...

Best Regards

Edit 1.

Writing to watch work... push...

But first attempt failed.

Still need .home.db from Galaxy Watch 3 with Blood Oxygen enabled.

Edit 2.

{
"data1": "ZDQxZDhjZDk4ZjAwYjIwNGU5ODAwOTk4ZWNmODQyN2U=",
"data2": null,
"id": "[COLOR="Red"][B]bp@com.samsung.health.samd.bp.widget[/B][/COLOR]",
"ordering": 1,
"reserved1": null,
"reserved2": null,
"rowid": 92,
"subid": null,
"uid": "3f670d71547276a23a27ee8db1bbc3c4"
}

Used this as template and replaced only by text string:

oxygensaturation@com.samsung.shealth.widget

IMHO I need correct data1 and uid field...
[Samsung Galaxy Watch] Hbmtg:
Sorry for the first few attempts - too long on the computer today :silly: PMd you the link for home.db
[Samsung Galaxy Watch] ChristianArcim:
Do you own any of those watches? Can you show me a screenshot of the interval setting? (My boss does not want to buy another watch without knowing if the watch can do that for sure).

Thanks!
[Samsung Galaxy Watch] plouprou:
I own Vivowatch BP, the new model is Vivowatch SP.

This is a screenshot of the silent BP measurements from Vivowatch BP:
[Samsung Galaxy Watch] MKOTTP:
spo2 and vo2max is working for any one in galaxy active 2 (XAR R820)?
[Samsung Galaxy Watch] ChristianArcim:
Awesome. Thanks!

And you don't have to put the finger on the sensor (I read something about the ECG being on top of th watch?).

The interval it measures seems kinda random? Between 15 and 20+ Min?

But still that looks perfect
[Samsung Galaxy Watch] plouprou:
On background measurements you dont have to put your finger on the sensor, only for on demand measurements you has.

Interval is set to 10 minutes but I suppose that some of the measurements fail due to movement or anything like this.
[Samsung Galaxy Watch] ChristianArcim:
Thank you again! And yes our medical 3500€ device also has huge Problems with movement. So movement artefacts are a Problem. As is light coming from other sources during the measurement.
[Samsung Galaxy Watch] jurastefo:
GWA2( R820) region XAR, Tizen 5.5, ECG working properly, BP not working yet not approved in the USA. Any way how to make working easily BP and auto sync to SHM?
[Samsung Galaxy Watch] mirdones:
Not working for me on ZTO S20 and KOO R820.

I changed the CSC to KOO and restored to the factory configurations before connecting again with the ZTO S20.

BP and ECG working correctly and syncing with SHealth.

SpO2 is not being measured and VO2Max is nowhere to be seen.
[Samsung Galaxy Watch] jdx111:
Where did you get SHM app on phone, which are you using?
[Samsung Galaxy Watch] mirdones:
SHM on ZTO (Brazil) is official.
[Samsung Galaxy Watch] Gary02468:
No SpO2. VO2 max works. But it only appears in the analysis for the Running workout, and only if your heart rate is 70-90% of maximum for 20 continuous minutes, while you run on a flat surface with a good GPS signal.
[Samsung Galaxy Watch] mirdones:
So it would be never for me as I don't run on these extremes
[Samsung Galaxy Watch] Gary02468:
I don't think it's possible to measure VO2 max without sustained aerobic or anaerobic exertion.
[Samsung Galaxy Watch] mirdones:
My problem is with running I can sustain rowing, climbing stairs, fighting, but not running. This thing is not for me.