[Samsung Gear S3] adfree:
Tiny step forward with Tizen 3... and SQLite "Hacking"... :rolleyes:

sh-3.2$ pkgcmd -u -t tpk -n com.samsung.shealth_gear --global
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[start] val[uninstall]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth.heartrate]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth.multiworkout_widget_setting]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth.food]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth.caffeine]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth.together_viewer]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth.widget]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth.together_selector]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth.water]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth.exercise]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth.debug-menu]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth.alert]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth.direct-share]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth.calorie]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth-service]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth.heartrate.measure]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth.steps]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth.exercising]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth.wsm-service]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth.userprofile]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth.today]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth.floors]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[appid] val[com.samsung.shealth.notification-service]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[5]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[10]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[15]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[20]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[25]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[30]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[35]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[40]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[45]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[50]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[55]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[60]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[65]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[70]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[75]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[80]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[85]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[90]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[95]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[100]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[end] val[ok]
spend time for pkgcmd is [6137]ms

I made 3 templates... cleared all data from these 3 database files...

sdb push .pkgmgr_parser.db /opt/dbspace
sdb push .pkgmgr_cert.db /opt/dbspace
sdb push .security-manager.db /opt/dbspace

So now I can little bit play with these Apps from /usr/apps path...

QuestionS left...

Why I can not install unmodified TPKs...

Simple copied and zipped from rootfs.img...

sdb install com.samsung.shealth_gear_CQL1_Tizen3_original.tpk
pulled com.samsung.shealth_gear_CQL1_Tizen3_original.tpk 100% 19MB
1 file(s) pulled. 0 file(s) skipped.
com.samsung.shealth_gear_CQL1_Tizen3_original.tpk 672 KB/s (19937823 bytes in 28.965s)
path is /opt/usr/home/owner/apps_rw/tmp/com.samsung.shealth_gear_CQL1_Tizen3_original.tpk
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[start] val[install]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[10]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[13]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[17]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[20]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[24]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[[COLOR="Red"][B]error[/B][/COLOR]] val[-12] error message: :Invalid signature. Signed with wrong key, changed signature file or changed package file.:<-4>
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[end] val[fail]
processing result : [COLOR="Red"]Check certificate error [-12][/COLOR] failed
spend time for pkgcmd is [6740]ms

:o

Platform signed...

sdb install com.samsung.shealth_gear_CQL1_Tizen3_PlatformSigned_v1.tpk
pulled com.samsung.shealth_gear_CQL1_Tizen3_PlatformSigned_v1.tpk 100% 19MB
1 file(s) pulled. 0 file(s) skipped.
com.samsung.shealth_gear_CQL1_Tizen3_PlatformSigned_v1.tpk 856 KB/s (20341893 bytes in 23.205s)
path is /opt/usr/home/owner/apps_rw/tmp/com.samsung.shealth_gear_CQL1_Tizen3_PlatformSigned_v1.tpk
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[start] val[install]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[10]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[13]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[17]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[20]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[24]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[27]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[31]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[34]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[37]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[41]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[44]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[48]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[51]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[55]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[58]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[62]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[65]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[68]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[72]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[75]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[79]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[82]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[86]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[89]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[93]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[96]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[install_percent] val[100]
__return_cb req_id[1] pkg_type[tpk] pkgid[com.samsung.shealth_gear] key[end] val[ok]
spend time for pkgcmd is [27793]ms

If I have time I will check what I do wrong... maybe my Certs...

Or internal Apps Certs not in Fingerprint... :eek:

:confused:

Best Regards