SpO2 TPK

Search This thread

Vuska

Senior Member
No error? If nothing happens, then the tpk is in pending state, waiting to transfer inside Samsung accessory service application data...
Just try to install the file via sdb command...
and this the error..

error.jpg


i dont know what error is this... so i show it here... and my watch not rooted
maybe i did wrong ....
 

adfree

Senior Member
Jun 14, 2008
9,879
5,835
Samsung Galaxy Watch 4
@Vuska

Thank you very much for test and infos.


Maybe we not need all privilege thingies from manifest...
I will check if we can do this without...


Code:
<privileges>
        <privilege>http://tizen.org/privilege/network.get</privilege>
        <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
        <privilege>http://tizen.org/privilege/internet</privilege>
        <privilege>http://tizen.org/privilege/datasharing</privilege>
        <privilege>http://developer.samsung.com/tizen/privilege/accessoryprotocol</privilege>
        <privilege>http://tizen.org/privilege/packagemanager.info</privilege>
        <privilege>http://tizen.org/privilege/telephony</privilege>
        <privilege>http://tizen.org/privilege/alarm.get</privilege>
        <privilege>http://tizen.org/privilege/network.set</privilege>
        <privilege>http://tizen.org/privilege/alarm.set</privilege>
        <privilege>http://tizen.org/privilege/notification</privilege>
        <privilege>http://tizen.org/privilege/mapservice</privilege>
        <privilege>http://tizen.org/privilege/nfc.cardemulation</privilege>
        <privilege>http://developer.samsung.com/tizen/privilege/logmanager</privilege>
        <privilege>http://tizen.org/privilege/appdir.shareddata</privilege>
        <privilege>http://tizen.org/privilege/healthinfo</privilege>
        <privilege>http://tizen.org/privilege/mediacontroller.client</privilege>
        <privilege>http://tizen.org/privilege/window.priority.set</privilege>
        <privilege>http://tizen.org/privilege/haptic</privilege>
        <privilege>http://tizen.org/privilege/display</privilege>
        <privilege>http://tizen.org/privilege/power</privilege>
        <privilege>http://tizen.org/privilege/mediastorage</privilege>
        <privilege>http://tizen.org/privilege/appmanager.kill</privilege>
        <privilege>http://tizen.org/privilege/bluetooth</privilege>
        <privilege>http://developer.samsung.com/tizen/privilege/iotresourcemanager</privilege>
        <privilege>http://tizen.org/privilege/nfc</privilege>
        <privilege>http://tizen.org/privilege/network.profile</privilege>
        <privilege>http://tizen.org/privilege/download</privilege>
        <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
        <privilege>http://tizen.org/privilege/location</privilege>
        <privilege>http://tizen.org/privilege/bluetooth.admin</privilege>
        <privilege>http://developer.samsung.com/tizen/privilege/screen.top</privilege>
        <privilege>http://developer.samsung.com/tizen/privilege/healthinfo.share</privilege>
        <privilege>http://tizen.org/privilege/widget.viewer</privilege>
        <privilege>http://tizen.org/privilege/location.enable</privilege>
        <privilege>http://tizen.org/privilege/packagemanager.admin</privilege>
        <appdefined-privilege>http://com.samsung.tizen.samsung-analytics/appdefined/samsung-analytics</appdefined-privilege>
    </privileges>

This we have at the moment...

With your screenshot we can identify... what is not public privilege...

Need some time...

Best Regards

Edit 1.
If no mistake... from me...
SDB screenshot shows 5 Errors...
Code:
http://tizen.org/privilege/appmanager.kill



http://tizen.org/privilege/bluetooth.admin

http://tizen.org/privilege/packagemanager.admin

http://tizen.org/privilege/systemsettings.admin



http://tizen.org/privilege/location.enable




----------
.admin
.kill
.enable

Will edit and test and upload if runs...
 
Last edited:

Vuska

Senior Member
Removed Platform Privileges from Manifest...

Now IMHO Public Level Cert should be enough... in theory.

Best Regards
it installed but always asking permission but after i choose ✓ it keep back to screen and if i reopen the new shealth app... then always ask permission again..

this i attach the video in zip.... Thank you
 

Attachments

  • 20210323_165618_1.mp4.zip
    11.2 MB · Views: 47

adfree

Senior Member
Jun 14, 2008
9,879
5,835
Samsung Galaxy Watch 4
I am on Phone XDA app. Not seen Video...
But allready told in older post.
A
Be fast tap tap

Or.
B
Set 5 seconds display... then via SDB command...
I have renamed this launch_app command...

So later...

Best Regards
 
  • Like
Reactions: shahrooz_ra

Vuska

Senior Member
I am on Phone XDA app. Not seen Video...
But allready told in older post.
A
Be fast tap tap

Or.
B
Set 5 seconds display... then via SDB command...
I have renamed this launch_app command...

So later...

Best Regards
already fast tap... but it's ok.. i can give proper permissions from settings...
1 post above i attack the video but in zip... you may open and extract the zip to see the video and what happen when i try the app 🙏

by the way.. i also use xda android app..
 
Last edited:
  • Like
Reactions: adfree

adfree

Senior Member
Jun 14, 2008
9,879
5,835
Samsung Galaxy Watch 4

@Vuska


Thank you very much for testing and report and Videos.


All is "okay" now.
More not accomplished yet.

I have "only" simplified...
NO Root required
NO uninstall of SH... because also require Root to do...

Nice would be, if Galaxy Watch 3 user(s) can test for us...
If sensors on... LED green and/or red.

So we could proceed... Maybe somebody with more skills find the answer... how to enable Sensors for SPO2 on GWA2...

@MixenSK


Thank you very much.

Will check the Partner Privilege in Manifest and removing...

Need some time, then I will upload.

Thanx.


Best Regards

Edit 1.

First look for Partner Privilege... according Screenshot from SDB...

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

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

adfree

Senior Member
Jun 14, 2008
9,879
5,835
Samsung Galaxy Watch 4
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.
 

Attachments

  • firstBlood_oldest_v20_pubPriv_v2.zip
    12.2 MB · Views: 109
  • Like
Reactions: xaser66 and MixenSK
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.

@adfree

Output of File Below:-
C:\SDBstarterKidv1\sdb_2.2.60_windows-64\data\tools>sdb install firstBlood_oldest_v20_pubPriv_v2.tpk
* The version of SDB client (2.2.60) is not same with that of SDB server (4.2.12).
It may cause version compatibility problems.
It is recommended to use SDB server with version 2.2.60. *
* The version of SDB client (2.2.60) is not same with that of SDB server (4.2.12).
It may cause version compatibility problems.
It is recommended to use SDB server with version 2.2.60. *
pulled firstBlood_oldest_v20_pubPriv_v2.tpk 100% 12MB
1 file(s) pulled. 0 file(s) skipped.
firstBlood_oldest_v20_pubPriv_v2.tpk 3742 KB/s (12950587 bytes in 3.379s)
* The version of SDB client (2.2.60) is not same with that of SDB server (4.2.12).
It may cause version compatibility problems.
It is recommended to use SDB server with version 2.2.60. *
path is /opt/usr/home/owner/apps_rw/tmp/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[error] val[-12] error message: :Non trusted certificate is used. Register valid certificate:<-32>
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.stealth_fear] key[end] val[fail]
processing result : Check certificate error [-12] failed
spend time for pkgcmd is [5361]ms
* The version of SDB client (2.2.60) is not same with that of SDB server (4.2.12).
It may cause version compatibility problems.
It is recommended to use SDB server with version 2.2.60. *
rm: remove write-protected regular file `/opt/usr/home/owner/apps_rw/tmp/firstBlood_oldest_v20_pubPriv_v2.tpk'?

When running the below still says not available in your country on watch.
C:\SDBstarterKidv1\sdb_2.2.60_windows-64\data\tools>sdb shell launch_app com.samsung.shealth.measure
* The version of SDB client (2.2.60) is not same with that of SDB server (4.2.12).
It may cause version compatibility problems.
It is recommended to use SDB server with version 2.2.60. *
... successfully launched

@adfree by the way my country is UK if that helps do your magic boi and get this working I am sure once you get by passed that will be closer.
 
Last edited:
  • Like
Reactions: xaser66 and adfree

adfree

Senior Member
Jun 14, 2008
9,879
5,835
Samsung Galaxy Watch 4
@Shammy7861

Thank you very much for testing and report.


A
My TPK files are proper signed for use with "special" Firmwares... like:
- Combination Firmware
- My own rooted Firmwares with modified Fingerprint/Certs...

B
If you wish to install proper... you need to sign with your own Certificate...

C
Code:
sdb shell launch_app com.samsung.shealth.measure

This calls the original unmodified SH part...

In my modded TPKs... I have renamed it to:
Code:
sdb shell launch_app com.samsung.stealth_fear.measure
... successfully launched


Because it is in tizen-manifest.xml


Thank you very much.


Best Regards
 

73sydney

Senior Member
Im trying the same method i use with the BP and ECG, signed the tpk, then added to tpk pusher apk (signed) and installing from watch (im lazy)

Installed TPK pusher package on watch

Successfully pushed to Active 2

Icon on watch

Permissions prompt (ticked)

Startup screen to tell you to go to phone to continue

Go to phone, open Health...nothing

Back to watch, run app again...permissions prompt

Goes no further, will not return to "go to phone to continue" screen, just endless permissions prompts

Give permissions manually via Settings

Finally able to progress

Blue line goes about 90% of the way around bezel and stops, nothing else displayed but a blue water drop

edit: same as @Vuska 's video

Tried rebooting both watch and phone, no change

tpk installer attached fwiw (package in assets renamed to sp02.tpk for ease,

package in Manifest.xml set to com.samsung.sp02.tpkinstaller (so no package collision))
app_name in res\values\strings.xml set to Samsung SP02 TPK Installer (so no app namecollision))
 

Attachments

  • Samsung.SP02.TPK.installer.apk
    13.7 MB · Views: 236
Last edited:

MixenSK

New member
Jul 6, 2016
2
3
Xiaomi Mi 8 Lite
Same result as @73sydney and @Vuska

Maybe some useful info from log.

Code:
03-24 08:20:04.357 : Error / SENSOR ( 12412 : 12412 ) : [0msensor_internal.cpp: sensord_get_default_sensor(205) > Invalid type(SPO2_MONITOR_SENSOR)
03-24 08:20:04.357 : Error / SHealthAppCommon ( 12412 : 12412 ) : [0mOxygenSaturationWaveProxy.cpp: RegisterHRMPulseWaveListener(49) > [0;40;31msensor_is_supported() failed [-38010874][0;m
03-24 08:20:04.357 : Error / SHealthAppCommon ( 12412 : 12412 ) : [0mOxygenSaturationWaveProxy.cpp: RegisterHRMPulseWaveListener(90) > [0;40;31mSWidgetClicked exception : [sensor_is_supported() failed [-38010874]][0;m

 
  • Like
Reactions: xaser66 and adfree

adfree

Senior Member
Jun 14, 2008
9,879
5,835
Samsung Galaxy Watch 4
Please.

We need help from GW3 user(s).

Means user with:
SM-R840
or
SM-R850
or
SM-R845..
or
SM-R855..

Need info if Blood Oxygen measure starts proper and shows wave? And Sensors on? LED green and/or red?

Thanx in advance.

I hope I get answer in 2021.

Thanx in advance.

Best Regards
 

Julek1981

Member
Aug 26, 2008
36
8
Ostrowiec Świętokrzyski
Hi im not possible to install this at all when tap install on samsung galaxy s21 android 11 installer stops and give screen "cant install this application uninstalling" watch active 2 do absolutly nothing tizen 5.5.0.2
 

adfree

Senior Member
Jun 14, 2008
9,879
5,835
Samsung Galaxy Watch 4
@Vuska

Threadstarter also with IDA skills...
But you can see... he is "Missing in Action"... since monthS...

I lost also other smart user, but he is "alive" he is only to la ehm "busy" to answer conversation...


I still have NO feedback from GW3 user(((s)))...

From time to time I check Ebay for cheap crap GW3 victim for own tests...


But out of luck.

I am really wondering if only 1 user have IDA and/or Reversing skills...
And this user is offline... :poop:


Best Regards
 
  • Sad
Reactions: MixenSK

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
    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
    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
    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
    Attempt 1.

    With changed text string inside 20 files from SH bin folder...

    Code:
    sdb root on
    
    sdb shell mount -vo remount,rw /
    
    sdb push notification-service /usr/apps/com.samsung.shealth_gear/bin
    
    sdb push scp-service /usr/apps/com.samsung.shealth_gear/bin
    
    sdb push shealth /usr/apps/com.samsung.shealth_gear/bin
    
    sdb push shealth-alert-viewer /usr/apps/com.samsung.shealth_gear/bin
    
    sdb push shealth-breathe /usr/apps/com.samsung.shealth_gear/bin
    
    sdb push shealth-debug-menu /usr/apps/com.samsung.shealth_gear/bin
    
    sdb push shealth-exercise /usr/apps/com.samsung.shealth_gear/bin
    
    sdb push shealth-exercising-viewer /usr/apps/com.samsung.shealth_gear/bin
    
    sdb push shealth-health-data-permission /usr/apps/com.samsung.shealth_gear/bin
    
    sdb push shealth-heartrate-measure /usr/apps/com.samsung.shealth_gear/bin
    
    sdb push shealth-measure /usr/apps/com.samsung.shealth_gear/bin
    
    sdb push shealth-mindfulness /usr/apps/com.samsung.shealth_gear/bin
    
    sdb push shealth-multiworkout-widgetsetting /usr/apps/com.samsung.shealth_gear/bin
    
    sdb push shealth-sa-service /usr/apps/com.samsung.shealth_gear/bin
    
    sdb push shealth-sdk-data-service /usr/apps/com.samsung.shealth_gear/bin
    
    sdb push shealth-service /usr/apps/com.samsung.shealth_gear/bin
    
    sdb push shealth-stress-measure /usr/apps/com.samsung.shealth_gear/bin
    
    sdb push shealth-together-viewer /usr/apps/com.samsung.shealth_gear/bin
    
    sdb push shealth-whitelist-sync-service /usr/apps/com.samsung.shealth_gear/bin
    
    sdb push shealth-widget /usr/apps/com.samsung.shealth_gear/bin

    Need then time to check if still working and to maybe find differences...

    Best Regards