[Samsung Gear S3] adfree:
Example how to use Signing Tool for TPK and WGT on Tizen Device...

Tested with my:

SM-R760 FTD4
SM-R820 BTF3

You need mandatory ROOT.

Platform Cert etc. only with modified Firmware... or Combination Firmware... useable!

Step 1.

Push the RPM files to device

sdb push hash-signer-0.0.2-3.1.armv7l.rpm /tmp

sdb push xmlstarlet-1.4.1-3.1.armv7l.rpm /tmp

Looks like this:

sdb push hash-signer-0.0.2-3.1.armv7l.rpm /tmp
pushed hash-signer-0.0.2-3.1.armv7l.rpm 100% 18KB
1 file(s) pushed. 0 file(s) skipped.
hash-signer-0.0.2-3.1.armv7l.rpm 81 KB/s (19136 bytes in 0.230s)

sdb push xmlstarlet-1.4.1-3.1.armv7l.rpm /tmp
pushed xmlstarlet-1.4.1-3.1.armv7l.rpm 100% 29KB
1 file(s) pushed. 0 file(s) skipped.
xmlstarlet-1.4.1-3.1.armv7l.rpm 88 KB/s (30689 bytes in 0.340s)

Step 2.

sdb root on

sdb shell mount -vo remount, rw /

sdb shell rpm -Uvh --force /tmp/xmlstarlet-1.4.1-3.1.armv7l.rpm

Looks like this:

sdb root on
Switched to 'root' account mode

sdb shell mount -vo remount, rw /
mount: rw mounted on /.

sdb shell rpm -Uvh --force /tmp/xmlstarlet-1.4.1-3.1.armv7l.rpm
Preparing... ################################# [100%]
Updating / installing...
1:xmlstarlet-1.4.1-3.1 ################################# [100%]

sdb shell rpm -Uvh --force /tmp/hash-signer-0.0.2-3.1.armv7l.rpm
Preparing... ################################# [100%]
No manifest in this package. Creating default one
Updating / installing...
1:hash-signer-0.0.2-3.1 ################################# [100%]

Step 3.

Now we can push Tizen TPK and WGT to device to sign...

Use .wgt as file extension!

sdb push 23_modMe_v2.wgt /tmp

sdb shell hash-signer.sh -p platform -a -d /tmp/23_modMe_v2.wgt

sdb pull /tmp/23_modMe_v2.wgt

Result looks like this:

sdb shell hash-signer.sh -p platform -a -d /tmp/23_modMe_v2.wgt
Sign as platform level
Generate Author Signature
Key type rsa
Working in /tmp/.4004/23_modMe_v2
Archive: //tmp/23_modMe_v2.wgt
inflating: /tmp/.4004/23_modMe_v2/tizen-manifest.xml
inflating: /tmp/.4004/23_modMe_v2/signature1.xml
creating: /tmp/.4004/23_modMe_v2/shared/
creating: /tmp/.4004/23_modMe_v2/shared/res/
creating: /tmp/.4004/23_modMe_v2/shared/res/tables/
inflating: /tmp/.4004/23_modMe_v2/shared/res/tables/com.samsung.shealth_gear_ChangeableFontInfo.xml
inflating: /tmp/.4004/23_modMe_v2/shared/res/tables/com.samsung.shealth_gear_ChangeableColorInfo.xml
creating: /tmp/.4004/23_modMe_v2/shared/res/kor-KR/
inflating: /tmp/.4004/23_modMe_v2/shared/res/kor-KR/ecg_widget_preview_360.png
inflating: /tmp/.4004/23_modMe_v2/shared/res/kor-KR/bp_widget_preview_360.png
extracting: /tmp/.4004/23_modMe_v2/shared/res/health_monitor_icon.png
inflating: /tmp/.4004/23_modMe_v2/shared/res/ecg_widget_preview_360.png
inflating: /tmp/.4004/23_modMe_v2/shared/res/bp_widget_preview_360.png
creating: /tmp/.4004/23_modMe_v2/res/
creating: /tmp/.4004/23_modMe_v2/res/xml/
creating: /tmp/.4004/23_modMe_v2/res/xml/ECG/
inflating: /tmp/.4004/23_modMe_v2/res/xml/ECG/appcessoryservices.xml
creating: /tmp/.4004/23_modMe_v2/res/xml/BP/
inflating: /tmp/.4004/23_modMe_v2/res/xml/BP/appcessoryservices.xml
creating: /tmp/.4004/23_modMe_v2/res/video/
extracting: /tmp/.4004/23_modMe_v2/res/video/hr_ready_animation.mp4
extracting: /tmp/.4004/23_modMe_v2/res/video/bp_splash.mp4
inflating: /tmp/.4004/23_modMe_v2/res/video/ECG_splash.mp4
creating: /tmp/.4004/23_modMe_v2/res/po/
creating: /tmp/.4004/23_modMe_v2/res/locale/
creating: /tmp/.4004/23_modMe_v2/res/locale/ko_KR/
creating: /tmp/.4004/23_modMe_v2/res/locale/ko_KR/LC_MESSAGES/
inflating: /tmp/.4004/23_modMe_v2/res/locale/ko_KR/LC_MESSAGES/home.mo
creating: /tmp/.4004/23_modMe_v2/res/locale/en_US/
creating: /tmp/.4004/23_modMe_v2/res/locale/en_US/LC_MESSAGES/
inflating: /tmp/.4004/23_modMe_v2/res/locale/en_US/LC_MESSAGES/home.mo
creating: /tmp/.4004/23_modMe_v2/res/locale/default/
creating: /tmp/.4004/23_modMe_v2/res/locale/default/LC_MESSAGES/
inflating: /tmp/.4004/23_modMe_v2/res/locale/default/LC_MESSAGES/home.mo
creating: /tmp/.4004/23_modMe_v2/res/images/
creating: /tmp/.4004/23_modMe_v2/res/images/file_images/
inflating: /tmp/.4004/23_modMe_v2/res/images/file_images/measuring_mask.png
inflating: /tmp/.4004/23_modMe_v2/res/images/file_images/measuring_heart.gif
extracting: /tmp/.4004/23_modMe_v2/res/images/file_images/arrow_indicator.png
creating: /tmp/.4004/23_modMe_v2/res/edje/
inflating: /tmp/.4004/23_modMe_v2/res/edje/wslib.edj
inflating: /tmp/.4004/23_modMe_v2/res/edje/widget_image.edj
inflating: /tmp/.4004/23_modMe_v2/res/edje/widget.edj
creating: /tmp/.4004/23_modMe_v2/res/edje/macro/
creating: /tmp/.4004/23_modMe_v2/res/edje/include/
creating: /tmp/.4004/23_modMe_v2/res/edje/include/common_layout/
inflating: /tmp/.4004/23_modMe_v2/res/edje/home_image.edj
inflating: /tmp/.4004/23_modMe_v2/res/edje/home.edj
inflating: /tmp/.4004/23_modMe_v2/res/edje/ecg_image.edj
inflating: /tmp/.4004/23_modMe_v2/res/edje/ecg.edj
inflating: /tmp/.4004/23_modMe_v2/res/edje/bp_image.edj
inflating: /tmp/.4004/23_modMe_v2/res/edje/bp.edj
creating: /tmp/.4004/23_modMe_v2/lib/
inflating: /tmp/.4004/23_modMe_v2/lib/libwc1ppgfilter.so
inflating: /tmp/.4004/23_modMe_v2/lib/libvisual_arm_debug.so
inflating: /tmp/.4004/23_modMe_v2/lib/libsamsung_ecgannotator.so
inflating: /tmp/.4004/23_modMe_v2/lib/liboffline_filter.so
inflating: /tmp/.4004/23_modMe_v2/lib/libfinalrhythmclassification.so
inflating: /tmp/.4004/23_modMe_v2/lib/libcalctruefs.so
inflating: /tmp/.4004/23_modMe_v2/lib/libbp.so
creating: /tmp/.4004/23_modMe_v2/bin/
inflating: /tmp/.4004/23_modMe_v2/bin/health-samd-home
inflating: /tmp/.4004/23_modMe_v2/bin/health-samd-ecg-service
inflating: /tmp/.4004/23_modMe_v2/bin/health-samd-ecg-home
inflating: /tmp/.4004/23_modMe_v2/bin/health-samd-bp-widget
inflating: /tmp/.4004/23_modMe_v2/bin/health-samd-bp-service
inflating: /tmp/.4004/23_modMe_v2/bin/health-samd-bp-home
inflating: /tmp/.4004/23_modMe_v2/author-signature.xml
Signed author-signature.xml
Zipping widget...
adding: author-signature.xml (deflated 68%)
adding: bin/ (stored 0%)
adding: bin/health-samd-bp-home (deflated 62%)
adding: bin/health-samd-bp-service (deflated 60%)
adding: bin/health-samd-bp-widget (deflated 62%)
adding: bin/health-samd-ecg-home (deflated 62%)
adding: bin/health-samd-ecg-service (deflated 60%)
adding: bin/health-samd-home (deflated 62%)
adding: lib/ (stored 0%)
adding: lib/libbp.so (deflated 58%)
adding: lib/libcalctruefs.so (deflated 51%)
adding: lib/libfinalrhythmclassification.so (deflated 51%)
adding: lib/liboffline_filter.so (deflated 43%)
adding: lib/libsamsung_ecgannotator.so (deflated 44%)
adding: lib/libvisual_arm_debug.so (deflated 71%)
adding: lib/libwc1ppgfilter.so (deflated 54%)
adding: res/ (stored 0%)
adding: res/edje/ (stored 0%)
adding: res/edje/bp.edj (deflated 37%)
adding: res/edje/bp_image.edj (deflated 32%)
adding: res/edje/ecg.edj (deflated 42%)
adding: res/edje/ecg_image.edj (deflated 32%)
adding: res/edje/home.edj (deflated 49%)
adding: res/edje/home_image.edj (deflated 39%)
adding: res/edje/include/ (stored 0%)
adding: res/edje/include/common_layout/ (stored 0%)
adding: res/edje/macro/ (stored 0%)
adding: res/edje/widget.edj (deflated 46%)
adding: res/edje/widget_image.edj (deflated 18%)
adding: res/edje/wslib.edj (deflated 27%)
adding: res/images/ (stored 0%)
adding: res/images/file_images/ (stored 0%)
adding: res/images/file_images/arrow_indicator.png (stored 0%)
adding: res/images/file_images/measuring_heart.gif (deflated 13%)
adding: res/images/file_images/measuring_mask.png (deflated 79%)
adding: res/locale/ (stored 0%)
adding: res/locale/default/ (stored 0%)
adding: res/locale/default/LC_MESSAGES/ (stored 0%)
adding: res/locale/default/LC_MESSAGES/home.mo (deflated 63%)
adding: res/locale/en_US/ (stored 0%)
adding: res/locale/en_US/LC_MESSAGES/ (stored 0%)
adding: res/locale/en_US/LC_MESSAGES/home.mo (deflated 63%)
adding: res/locale/ko_KR/ (stored 0%)
adding: res/locale/ko_KR/LC_MESSAGES/ (stored 0%)
adding: res/locale/ko_KR/LC_MESSAGES/home.mo (deflated 64%)
adding: res/po/ (stored 0%)
adding: res/video/ (stored 0%)
adding: res/video/ECG_splash.mp4 (deflated 2%)
adding: res/video/bp_splash.mp4 (stored 0%)
adding: res/video/hr_ready_animation.mp4 (stored 0%)
adding: res/xml/ (stored 0%)
adding: res/xml/BP/ (stored 0%)
adding: res/xml/BP/appcessoryservices.xml (deflated 69%)
adding: res/xml/ECG/ (stored 0%)
adding: res/xml/ECG/appcessoryservices.xml (deflated 68%)
adding: shared/ (stored 0%)
adding: shared/res/ (stored 0%)
adding: shared/res/bp_widget_preview_360.png (deflated 0%)
adding: shared/res/ecg_widget_preview_360.png (deflated 0%)
adding: shared/res/health_monitor_icon.png (stored 0%)
adding: shared/res/kor-KR/ (stored 0%)
adding: shared/res/kor-KR/bp_widget_preview_360.png (deflated 0%)
adding: shared/res/kor-KR/ecg_widget_preview_360.png (deflated 0%)
adding: shared/res/tables/ (stored 0%)
adding: shared/res/tables/com.samsung.shealth_gear_ChangeableColorInfo.xml (deflated 93%)
adding: shared/res/tables/com.samsung.shealth_gear_ChangeableFontInfo.xml (deflated 91%)
adding: signature1.xml (deflated 70%)
adding: tizen-manifest.xml (deflated 79%)
Signed //tmp/23_modMe_v2.wgt
Generate Distributor Signature
Key type rsa
Working in /tmp/.4213/23_modMe_v2
Archive: //tmp/23_modMe_v2.wgt
inflating: /tmp/.4213/23_modMe_v2/author-signature.xml
creating: /tmp/.4213/23_modMe_v2/bin/
inflating: /tmp/.4213/23_modMe_v2/bin/health-samd-bp-home
inflating: /tmp/.4213/23_modMe_v2/bin/health-samd-bp-service
inflating: /tmp/.4213/23_modMe_v2/bin/health-samd-bp-widget
inflating: /tmp/.4213/23_modMe_v2/bin/health-samd-ecg-home
inflating: /tmp/.4213/23_modMe_v2/bin/health-samd-ecg-service
inflating: /tmp/.4213/23_modMe_v2/bin/health-samd-home
creating: /tmp/.4213/23_modMe_v2/lib/
inflating: /tmp/.4213/23_modMe_v2/lib/libbp.so
inflating: /tmp/.4213/23_modMe_v2/lib/libcalctruefs.so
inflating: /tmp/.4213/23_modMe_v2/lib/libfinalrhythmclassification.so
inflating: /tmp/.4213/23_modMe_v2/lib/liboffline_filter.so
inflating: /tmp/.4213/23_modMe_v2/lib/libsamsung_ecgannotator.so
inflating: /tmp/.4213/23_modMe_v2/lib/libvisual_arm_debug.so
inflating: /tmp/.4213/23_modMe_v2/lib/libwc1ppgfilter.so
creating: /tmp/.4213/23_modMe_v2/res/
creating: /tmp/.4213/23_modMe_v2/res/edje/
inflating: /tmp/.4213/23_modMe_v2/res/edje/bp.edj
inflating: /tmp/.4213/23_modMe_v2/res/edje/bp_image.edj
inflating: /tmp/.4213/23_modMe_v2/res/edje/ecg.edj
inflating: /tmp/.4213/23_modMe_v2/res/edje/ecg_image.edj
inflating: /tmp/.4213/23_modMe_v2/res/edje/home.edj
inflating: /tmp/.4213/23_modMe_v2/res/edje/home_image.edj
creating: /tmp/.4213/23_modMe_v2/res/edje/include/
creating: /tmp/.4213/23_modMe_v2/res/edje/include/common_layout/
creating: /tmp/.4213/23_modMe_v2/res/edje/macro/
inflating: /tmp/.4213/23_modMe_v2/res/edje/widget.edj
inflating: /tmp/.4213/23_modMe_v2/res/edje/widget_image.edj
inflating: /tmp/.4213/23_modMe_v2/res/edje/wslib.edj
creating: /tmp/.4213/23_modMe_v2/res/images/
creating: /tmp/.4213/23_modMe_v2/res/images/file_images/
extracting: /tmp/.4213/23_modMe_v2/res/images/file_images/arrow_indicator.png
inflating: /tmp/.4213/23_modMe_v2/res/images/file_images/measuring_heart.gif
inflating: /tmp/.4213/23_modMe_v2/res/images/file_images/measuring_mask.png
creating: /tmp/.4213/23_modMe_v2/res/locale/
creating: /tmp/.4213/23_modMe_v2/res/locale/default/
creating: /tmp/.4213/23_modMe_v2/res/locale/default/LC_MESSAGES/
inflating: /tmp/.4213/23_modMe_v2/res/locale/default/LC_MESSAGES/home.mo
creating: /tmp/.4213/23_modMe_v2/res/locale/en_US/
creating: /tmp/.4213/23_modMe_v2/res/locale/en_US/LC_MESSAGES/
inflating: /tmp/.4213/23_modMe_v2/res/locale/en_US/LC_MESSAGES/home.mo
creating: /tmp/.4213/23_modMe_v2/res/locale/ko_KR/
creating: /tmp/.4213/23_modMe_v2/res/locale/ko_KR/LC_MESSAGES/
inflating: /tmp/.4213/23_modMe_v2/res/locale/ko_KR/LC_MESSAGES/home.mo
creating: /tmp/.4213/23_modMe_v2/res/po/
creating: /tmp/.4213/23_modMe_v2/res/video/
inflating: /tmp/.4213/23_modMe_v2/res/video/ECG_splash.mp4
extracting: /tmp/.4213/23_modMe_v2/res/video/bp_splash.mp4
extracting: /tmp/.4213/23_modMe_v2/res/video/hr_ready_animation.mp4
creating: /tmp/.4213/23_modMe_v2/res/xml/
creating: /tmp/.4213/23_modMe_v2/res/xml/BP/
inflating: /tmp/.4213/23_modMe_v2/res/xml/BP/appcessoryservices.xml
creating: /tmp/.4213/23_modMe_v2/res/xml/ECG/
inflating: /tmp/.4213/23_modMe_v2/res/xml/ECG/appcessoryservices.xml
creating: /tmp/.4213/23_modMe_v2/shared/
creating: /tmp/.4213/23_modMe_v2/shared/res/
inflating: /tmp/.4213/23_modMe_v2/shared/res/bp_widget_preview_360.png
inflating: /tmp/.4213/23_modMe_v2/shared/res/ecg_widget_preview_360.png
extracting: /tmp/.4213/23_modMe_v2/shared/res/health_monitor_icon.png
creating: /tmp/.4213/23_modMe_v2/shared/res/kor-KR/
inflating: /tmp/.4213/23_modMe_v2/shared/res/kor-KR/bp_widget_preview_360.png
inflating: /tmp/.4213/23_modMe_v2/shared/res/kor-KR/ecg_widget_preview_360.png
creating: /tmp/.4213/23_modMe_v2/shared/res/tables/
inflating: /tmp/.4213/23_modMe_v2/shared/res/tables/com.samsung.shealth_gear_ChangeableColorInfo.xml
inflating: /tmp/.4213/23_modMe_v2/shared/res/tables/com.samsung.shealth_gear_ChangeableFontInfo.xml
inflating: /tmp/.4213/23_modMe_v2/signature1.xml
inflating: /tmp/.4213/23_modMe_v2/tizen-manifest.xml
Signed signature1.xml
Zipping widget...
adding: tizen-manifest.xml (deflated 79%)
adding: signature1.xml (deflated 70%)
adding: shared/ (stored 0%)
adding: shared/res/ (stored 0%)
adding: shared/res/tables/ (stored 0%)
adding: shared/res/tables/com.samsung.shealth_gear_ChangeableFontInfo.xml (deflated 91%)
adding: shared/res/tables/com.samsung.shealth_gear_ChangeableColorInfo.xml (deflated 93%)
adding: shared/res/kor-KR/ (stored 0%)
adding: shared/res/kor-KR/ecg_widget_preview_360.png (deflated 0%)
adding: shared/res/kor-KR/bp_widget_preview_360.png (deflated 0%)
adding: shared/res/health_monitor_icon.png (stored 0%)
adding: shared/res/ecg_widget_preview_360.png (deflated 0%)
adding: shared/res/bp_widget_preview_360.png (deflated 0%)
adding: res/ (stored 0%)
adding: res/xml/ (stored 0%)
adding: res/xml/ECG/ (stored 0%)
adding: res/xml/ECG/appcessoryservices.xml (deflated 68%)
adding: res/xml/BP/ (stored 0%)
adding: res/xml/BP/appcessoryservices.xml (deflated 69%)
adding: res/video/ (stored 0%)
adding: res/video/hr_ready_animation.mp4 (stored 0%)
adding: res/video/bp_splash.mp4 (stored 0%)
adding: res/video/ECG_splash.mp4 (deflated 2%)
adding: res/po/ (stored 0%)
adding: res/locale/ (stored 0%)
adding: res/locale/ko_KR/ (stored 0%)
adding: res/locale/ko_KR/LC_MESSAGES/ (stored 0%)
adding: res/locale/ko_KR/LC_MESSAGES/home.mo (deflated 64%)
adding: res/locale/en_US/ (stored 0%)
adding: res/locale/en_US/LC_MESSAGES/ (stored 0%)
adding: res/locale/en_US/LC_MESSAGES/home.mo (deflated 63%)
adding: res/locale/default/ (stored 0%)
adding: res/locale/default/LC_MESSAGES/ (stored 0%)
adding: res/locale/default/LC_MESSAGES/home.mo (deflated 63%)
adding: res/images/ (stored 0%)
adding: res/images/file_images/ (stored 0%)
adding: res/images/file_images/measuring_mask.png (deflated 79%)
adding: res/images/file_images/measuring_heart.gif (deflated 13%)
adding: res/images/file_images/arrow_indicator.png (stored 0%)
adding: res/edje/ (stored 0%)
adding: res/edje/wslib.edj (deflated 27%)
adding: res/edje/widget_image.edj (deflated 18%)
adding: res/edje/widget.edj (deflated 46%)
adding: res/edje/macro/ (stored 0%)
adding: res/edje/include/ (stored 0%)
adding: res/edje/include/common_layout/ (stored 0%)
adding: res/edje/home_image.edj (deflated 39%)
adding: res/edje/home.edj (deflated 49%)
adding: res/edje/ecg_image.edj (deflated 32%)
adding: res/edje/ecg.edj (deflated 42%)
adding: res/edje/bp_image.edj (deflated 32%)
adding: res/edje/bp.edj (deflated 37%)
adding: lib/ (stored 0%)
adding: lib/libwc1ppgfilter.so (deflated 54%)
adding: lib/libvisual_arm_debug.so (deflated 71%)
adding: lib/libsamsung_ecgannotator.so (deflated 44%)
adding: lib/liboffline_filter.so (deflated 43%)
adding: lib/libfinalrhythmclassification.so (deflated 51%)
adding: lib/libcalctruefs.so (deflated 51%)
adding: lib/libbp.so (deflated 58%)
adding: bin/ (stored 0%)
adding: bin/health-samd-home (deflated 62%)
adding: bin/health-samd-ecg-service (deflated 60%)
adding: bin/health-samd-ecg-home (deflated 62%)
adding: bin/health-samd-bp-widget (deflated 62%)
adding: bin/health-samd-bp-service (deflated 60%)
adding: bin/health-samd-bp-home (deflated 62%)
adding: author-signature.xml (deflated 68%)
Signed //tmp/23_modMe_v2.wgt

sdb pull /tmp/23_modMe_v2.wgt
pulled 23_modMe_v2.wgt 100% 3MB
1 file(s) pulled. 0 file(s) skipped.
/tmp/23_modMe_v2.wgt 547 KB/s (3279022 bytes in 5.851s)