How to install app on Gear S2 via Tizen Studio?

偶尔善良 提交于 2019-12-30 10:01:44

问题


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!


回答1:


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

click + in certificate manager and

click Samsung and make samsung certificate.




回答2:


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.

Moreover, follow the steps carefully in this link.



来源:https://stackoverflow.com/questions/40742515/how-to-install-app-on-gear-s2-via-tizen-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!