• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

SpO2 TPK

Search This thread

adfree

Senior Member
Jun 14, 2008
9,256
5,461
Seems Mission Impossible...

No GW3 user help...

IMHO no Rocket Science required...


A

TPK to test is here:

sdb install blabla

A.1
Possible on Combination Firmware "easier" if never self signed TPK...

A.2
Signing TPK with own Cert seems never done by GW3 user... :unsure:


B

No luck to find cheap GW3 on Ebay...

I see no reason to pay more then 100 Bugs ehm Bucks for this s...


Meanwhile I have newer Version of ext Sensor crap... not tested yet...

Best Regards
 

jadonv

Member
Jul 11, 2012
6
4
Hi @adfree I finally had a chance to try this out. I managed to get the tpk signed and installed through the Tizen studio!

It shows up on the watch, opens, scans, and then... no joy.

It keeps getting stuck at 80%..

Is it possibly because my SHM app on the phone is the wrong version?

I don't see sp02 when opening it. Only water which is manual.

Lazer is also a reddish green color.

Let me know if you need anything else. Appreciate the hard work on this!

IMG_20210708_145001.jpg

IMG_20210708_144231.jpg

IMG_20210708_144125.jpg
 
  • Like
Reactions: paul92 and adfree

jadonv

Member
Jul 11, 2012
6
4
After opening the SH again it does now show the blood oxygen card!

Still won't complete cycle on the watch though 😔

Edit:

SH on watch does not have blood oxygen showing up. I'll try find an updated TPK to see if it completes.

Standby...

Edit:

Tried installing the modded Samsung health from dante63

Samsung Health 6.16.0.047 (minSDK26).apk

but still cant get the TPK on watch to show blood oxygen..

@adfree do you know how i can get it to update? Could it be tied to region on the watch? im currently under: XAC

SH on watch is currently on version:

4.16.102000


Screenshot_20210708_150727.jpg
 
Last edited:
  • Like
Reactions: adfree

adfree

Senior Member
Jun 14, 2008
9,256
5,461

@jadonv


Thank you very much for testing and posting test results.


I have removed few Binaries from TPK so it is normal it stuck at 80 % and not finish...
This is confirmed by other Galaxy Watch 3 user.

Stupid question because maybe missing in Translation or simple not read fully from me...


Ehm....
Blood Oxygen normally work on your Watch? Or Country Restriction?

Best Regards
 

jadonv

Member
Jul 11, 2012
6
4

@jadonv


Thank you very much for testing and posting test results.


I have removed few Binaries from TPK so it is normal it stuck at 80 % and not finish...
This is confirmed by other Galaxy Watch 3 user.

Stupid question because maybe missing in Translation or simple not read fully from me...


Ehm....
Blood Oxygen normally work on your Watch? Or Country Restriction?

Best Regards
@adfree nope it normally wouldn't work. I'm in canada under XAC region.
 
  • Like
Reactions: adfree

adfree

Senior Member
Jun 14, 2008
9,256
5,461
Argh... my blindness... you already posted XAC as CSC...

Anyway thanx for confirm Country Restriction...


You could check if Country check is inside these Samsung Tests...

Sorry, my tests with rooted devices and never really focus on Country check...

So for your not rooted device is hard to replace Original SH on Watch...
But maybe this Samsung test can be used parallel to Original SH...

Thanx for testing.

Maybe no signing required.. because Original Samsung Signature...

Best Regards
 

adfree

Senior Member
Jun 14, 2008
9,256
5,461
APK TPK WGT ... is ever ZIP ...

You can unpack with 7Zip for instance... to see what is inside...

I hope this answer your question...

Best Regards
 

LollosoSi

Member
Mar 28, 2016
26
8
Sapessi
:D

User helped me alot in PM.


Thank you very much. :good:

Now only way left to activate the correct sensor driver... :cyclops:


Best Regards

Thanks
I used your new files and the blood oxygen is now appeared on samsung health menu and widget is now active
I wish you could solve the final problem for measurement my unique friend!;)
hl95_screen_20201019_010724.png

8bal_screen_20201019_010713.png
@adfree how about starting measure like here and at the same time issuing
cat /sys/class/sensors/hrm_sensor/hrm_led_g_ir ?
 

LollosoSi

Member
Mar 28, 2016
26
8
Sapessi
Removed 2 more Privilege... this time Partner Level...

Code:
http://developer.samsung.com/tizen/privilege/healthinfo.share

http://developer.samsung.com/tizen/privilege/iotresourcemanager


I hope this time Public Level Cert is enough to sign...

@MixenSK
@Shammy7861

Please try now and report result.

Thanx in advance.
C:\tizen-studio\tools>sdb install C:\Fit2Installer\install_me\firstBlood_oldest_v20_pubPriv_v2.tpk WARNING: Your data are to be sent over an unencrypted connection and could be read by others. pushed firstBlood_oldest_v20_pubPriv_v2.tpk 100% 12MB 6606KB/s 1 file(s) pushed. 0 file(s) skipped. C:\Fit2Installer\install_me\firstBlood_oldest_v20_pubPriv_v2.tpk 4226KB/s (12951851 bytes in 2.992s) path is /home/owner/share/tmp/sdk_tools/firstBlood_oldest_v20_pubPriv_v2.tpk __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[start] val[install] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[install_percent] val[12] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[install_percent] val[15] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[install_percent] val[18] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[install_percent] val[21] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[install_percent] val[25] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[install_percent] val[28] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[install_percent] val[31] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[install_percent] val[34] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[install_percent] val[37] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[install_percent] val[40] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[install_percent] val[43] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[install_percent] val[46] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[install_percent] val[50] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[install_percent] val[53] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[install_percent] val[56] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[install_percent] val[59] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[install_percent] val[62] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[install_percent] val[65] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[install_percent] val[68] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[install_percent] val[71] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[install_percent] val[75] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[error] val[-21] __return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[end] val[fail] processing result : Register application error [-21] failed spend time for pkgcmd is [10160]ms

Watch Active 2, nonroot, tpk resigned with my own certificate
 

LollosoSi

Member
Mar 28, 2016
26
8
Sapessi
@LollosoSi it's been a while since I been on hear but I am ready to try this for you where can I get the .tpk file from cam you convert it to .apk and will down load it on my phone and install it which will transfer it to my watch. Waiting for your respond.
Thought for the users who could manage to start oxygen measure with flat graph, that command would help get some output through the graph.
I couldn't try it myself but I could see instead that this command stops the current HR/stress measure (shuts led and measure fails). Letting the red led shut itself and reissuing the command continuosly actually gave some graph output. Not sure if this observation could be useful in some way
 

LollosoSi

Member
Mar 28, 2016
26
8
Sapessi
Put this in a .bat file (for windows) inside folder containing the sdb.exe
:a sdb shell cat /sys/class/sensors/hrm_sensor/hrm_led_g_ir powershell -nop -c "& {sleep -m 500}" goto a PAUSE

Connect to watch via sdb
Start measuring your heart rate normally (or in this case oxygen maybe?)
open the bat file. will repeat that command every 0.5 second
Observe output

Then stop execution by terminating the bat process
 
  • Like
Reactions: adfree

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    Samsung not add Blood Oxygen in Tizen 5.5.0.2 for GWA2...
    😭

    But I will check our older findings... with SM-R820 DUA3...

    Test checklist...

    A
    This still work... so red LED not deactivated fully...

    B
    My Rooting is still working. So I have Root access in DUA3...


    C
    Maybe mistake... w-home trick seems not work... to enable BloodOxy Widget...
    Will check later again with open eyes...

    D
    Hmmm...
    sdb push w-manager-service /usr/apps/com.samsung.w-manager-service/bin/

    No luck yet to make the Widget visible like before...

    E
    sh-3.2# launch_app com.samsung.shealth.measure
    ... successfully launched

    Shows same "not avaliable"...

    Will proceed with SH mods...

    F
    Code:
    usr\lib\libsensor-genuine.so.4.1.27
    usr\lib\sensor\libsensor-hal.so


    Still 2 hits for search text string:
    SPO2_MONITOR_SENSOR
    6
    Simple edit of manifest.xml allow me now to start Blood Oxygen in 3 wayS...

    Code:
    D:\SDB\SDB260>sdb shell launch_app com.samsung.shealth.measure
    ... successfully launched
    
    D:\SDB\SDB260>sdb shell launch_app com.samsung.shealth
    ... successfully launched

    2 Commands because I have simple replaced shealth with shealth-measure...

    And this allows me also by clicking the Icon...

    Now next changes... rename... to run also where SH is installed...
    I have Root and ways to deinstall...

    I am trying to simplify also for others...

    Best Regards
    6
    Old method was to replace text string SM-R820 with SM-R840...

    In my tests with DUA3 SM-R820 I realized this is not "Driver switch"... but kind of blacklist...

    So my "new" method is:

    A
    Code:
    sdb root on
    
    sdb shell mount -vo remount,rw /
    
    sdb push shealth-measure /usr/apps/com.samsung.shealth_gear/bin

    Only changed text string SM-R820 into SM-R821...


    B
    To start Blood Oxy I send Command:
    Code:
    sdb shell launch_app com.samsung.shealth.measure


    This means only progress like before... but with less modified files...


    Now will try to do more text string changes... because SH TPK contain in every Binary Model Name text strings...
    Will check if blacklist stuff or something else...

    Best Regards
    6
    I will be receiving a GW3 sometime next week. Not sure if I will keep it yet as it is probably to big for my skinny wrists :D.
    But I would be up to do the necessary testing for you @adfree
    5
    Puh, I spent hourS dayS without Luck to get FUB5 to root via FOTA procedure...

    Now I found way to bypass Security and successfully updated my SM-R500 to FUB5 Tizen 5.5.0.1 with Root access.

    So I can do soon more stupid tests. Blood Oxygen related...

    Best Regards