5

I am new to developing Tizen apps for the Gear S2. I've been through the tutorial but can't get my app installed on my Gear S2.

I'm using Tizen Studio 1.0.1 in Mac OS Sierra (10.12.1), and a newly bought Gear S2.

I've installed the Extension SDK (Samsung Certificate Extension and Samsung Wearable Extension), then created a certificate through the Certificate Manager (Author Certificate and a Distributor Certificate), connected my Gear S2 via Wifi (same network as my computer), set "Permit to install application" by selecting (right click) the device identifier in the connection explorer, and finally set a configuration in the "Run as" option from the Project menu.

But I get an error every time I try to install it and run it on my device:

$ sdb -s 192.168.2.14:26101 install myapp.wgt [...] __return_cb req_id[107100002] pkg_type[wgt] pkgid[6U1GRaNlHz] key[error] val[81] error message: Non trusted certificate is used. Register valid certificate __return_cb req_id[107100002] pkg_type[wgt] pkgid[6U1GRaNlHz] key[end] val[fail] processing result : Unknown Error [81] failed spend time for pkgcmd is [1225]ms

Works fine on the emulator though..

I may have messed around with the certificate... Indeed I removed the first certificate I created because it wasn't working and tried to create a new one following the documentation reco, but actually it might just be because I need to register it. How can I do that?

Any other ideas what I miss or did wrong, and how to solve it? The Tizen documentation isn't really helping...

Thanks for your help!

sbi
  • 53
  • 1
  • 4
  • What kind of error? Add it to the post. – Andrey Moiseev Nov 22 '16 at 13:13
  • The command : `sdb -s 192.xxx.x.xx:26101 install myapp.wgt` returned : `__return_cb req_id[23210002] pkg_type[wgt] pkgid[6U1GRaNlHz] key[error] val[81] error message: Non trusted certificate is used. Register valid certificate` and I think I messed around with the certificate... Indeed I removed the first certificate I created because it wasn't working and tried to create a new one, but actually it might just be because I need to register it. How can I do that ? – sbi Nov 23 '16 at 10:44

2 Answers2

12

Did you make certificate from samsung certification process? Check your certificate is from samsung. If you make certificate with only sdk it is run only emulator not real device. You can choose Samsung certificate creation process on certificate menu.


You can choose it in menu tools -> Certificate Manager and

enter image description here

click + in certificate manager and

enter image description here

click Samsung and make samsung certificate.

As @Osana noted; If you do not see the "Select the type of certificate profile" screen, that means you're missing the Samsung Certificate Extension package. Go to Tools -> Package manager. Then, go to Extension SDK and install the Samsung Certificate Extension package.

Daantje
  • 2,406
  • 25
  • 26
pius lee
  • 1,164
  • 1
  • 12
  • 28
  • 2
    I can't find any _certificate menu_ all I have is the _Certificate Manager_ from the _tools_ menu, but there is no option in the certificate process creation that allows to choose _Samsung certificate creation process_ Where can I find it in Tizen Studio v1.0.1? – sbi Nov 23 '16 at 10:54
  • Thanks! Works just fine! :) – sbi Nov 24 '16 at 09:22
  • 1
    I feel compelled to note I had the following problem with a profile after fixing this cert problem. This forum solved it. http://developer.samsung.com/forum/thread/watch-profile-error-sdb/201/290176?boardName=SDK&startId=zzzzz~ – lee Nov 25 '16 at 00:46
  • 10
    If you do not see the "Select the type of certificate profile" screen, that means you're missing the Samsung Certificate Extension package. Go to Tools -> Package manager. Then, go to Extension SDK and install the Samsung Certificate Extension package. – Onosa Oct 05 '17 at 14:20
  • @Onosa I think this is worth an extra answer – Nicolai Weitkemper Aug 29 '18 at 17:11
  • @lee is correct. After fixing the Samsung cert issue I was still getting the same error because I was mistakenly targetting the wrong SDK version. Migrating the project didn't work, I had to start a new project from scratch with correct version, and then it finally worked. – Alex D Jul 20 '21 at 11:49
0

Try the following steps:

  1. Make it sure that, when you select Permit to install application, it shows a popup with the message Succeeded to upload certificate.

  2. Set the device time according to your development PC.

  3. Go to Project Properties->Tizen Settings->Platform and select ARMv7-a as the architecture.

enter image description here

Moreover, follow the steps carefully in this link.

Shaswati Saha
  • 758
  • 5
  • 15
  • Steps 1 and 2 OK, but I don't see where to select ARMv7 fro the project properties, I can't find the "Tizen Settings" or "Platform" (I am very new to Tizen and Tizen Sutdio...) – sbi Nov 23 '16 at 10:51
  • Check the modified answer – Shaswati Saha Nov 23 '16 at 11:25
  • OK I found out why I didn't find it in the first place, my sample app is a web app not native. So I went through all these steps again but with a sample native app and I got an error installing the app on the gear : `processing result : SIGNATURE_VERIFICATION_FAILED [23] failed` Looks like I've messed around with certificate or I have to register the certificate somehow, but I don't know how ? Thanks. – sbi Nov 23 '16 at 15:30