在Gear S2设备上启动Web应用程序时出现错误81 [英] Error 81 when launching web app on Gear S2 device
问题描述
我正在使用Tizen SDK(2.4.0_Rev5)在Gear S2上启动演示应用程序HelloTizen(可穿戴2.3),但失败,并出现以下错误:
I am using Tizen SDK (2.4.0_Rev5) to launch the demo app HelloTizen (wearable-2.3) on my Gear S2 but it fails, with the following error:
Unknown Error [81]
Unknown Error [81]
当我尝试使用sdb install HelloTizen.wgt
安装它时,得到以下输出:
When I try to install it with sdb install HelloTizen.wgt
I get the following output:
pushed HelloTizen.wgt 100% 36KB 0KB/s
1 file(s) pushed. 0 file(s) skipped.
/home/user/tizen/HelloTizen/HelloTizen.wgt 114KB/s (37179 bytes in 0.318s)
path is /opt/usr/apps/tmp/HelloTizen.wgt
__return_cb req_id[138540002] pkg_type[wgt] pkgid[RFZKe67scd] key[start] val[install]
__return_cb req_id[138540002] pkg_type[wgt] pkgid[RFZKe67scd] key[install_percent] val[3]
__return_cb req_id[138540002] pkg_type[wgt] pkgid[RFZKe67scd] key[install_percent] val[22]
__return_cb req_id[138540002] pkg_type[wgt] pkgid[RFZKe67scd] key[install_percent] val[25]
__return_cb req_id[138540002] pkg_type[wgt] pkgid[RFZKe67scd] key[install_percent] val[33]
__return_cb req_id[138540002] pkg_type[wgt] pkgid[RFZKe67scd] key[error] val[81] error message: Non trusted certificate is used. Register valid certificate
__return_cb req_id[138540002] pkg_type[wgt] pkgid[RFZKe67scd] key[end] val[fail]
processing result : Unknown Error [81] failed
spend time for pkgcmd is [1385]ms
有sdb dlog
的输出:
W/WRT_INSTALLER(20115): task_certify.cpp: StartStep(619) > --------- <TaskCertify> : START ----------
E/WMS ( 490): wms_event_handler.c: _wms_event_handler_cb_log_package(4560) > package [_________] callback : [INSTALL, PROCESSING]
E/WMS ( 490): wms_event_handler.c: _wms_event_handler_cb_log_package(4560) > package [_________] callback : [INSTALL, PROCESSING]
E/WMS ( 490): wms_event_handler.c: _wms_event_handler_cb_log_package(4560) > package [_________] callback : [INSTALL, PROCESSING]
E/WMS ( 490): wms_event_handler.c: _wms_event_handler_cb_log_package(4560) > package [_________] callback : [INSTALL, PROCESSING]
W/CERT_SVC(20115): OCSPCertMgrUtil.cpp: getCertFromStore(97) > Error during certificate search
W/CERT_SVC(20115): WrtSignatureValidator.cpp: check(365) > signature1.xml has got unrecognized Root CA certificate. Signature will be disregarded.
W/WRT_INSTALLER(20115): task_certify.cpp: throwCertificateInvalidException(373) > Certificate is Invalid [-34]
E/WRT_INSTALLER(20115): task_certify.cpp: stepSignature(350) > Error occured in signature validator: 81
E/APP2EXT (20115): job_widget_install.cpp: SendFinishedFailure(370) > Error number: 81
E/APP2EXT (20115): job_widget_install.cpp: SendFinishedFailure(371) > Message: Non trusted certificate is used. Register valid certificate
W/WRT_INSTALLER(20115): pkgmgr_signal.cpp: sendSignal(275) > Success to send pkgmgr signal: error - 81:Non trusted certificate is used. Register valid certificate
W/WRT_INSTALLER(20115): pkgmgr_signal.cpp: sendSignal(275) > Success to send pkgmgr signal: end - fail
E/WRT_INSTALLER(20115): wrt-installer.cpp: staticWrtStatusCallback(1102) > Step failed
因此,这似乎是与证书相关的错误.我确实在Security Profiles
中生成了我的证书,其中包含一个生成作者证书和针对分发者的自动证书.我也使用了Register Certificate
,但是我不知道它是否有效,因为当我单击OK时,什么也没发生.
So, it seems to be a certificate related error. I did generate my certificate in Security Profiles
with one generate author certificate and the automatic certificate for distributor. I also used Register Certificate
but I do not know if it worked because when I clicked on OK, nothing happened.
我要做的另一件事是为设备启用Permit to install applications
.但是,对于证书注册,我不知道它是否有效,因为什么也没发生.我签入了/home/developer
,但没有device-profile.xml
文件.
The other thing I did was to enable Permit to install applications
for my device. But, as for the certificate registration, I do not know if it worked because nothing happened. I checked in /home/developer
and there is no device-profile.xml
file.
推荐答案
如果在模拟器中运行应用程序,则IDE生成的证书将起作用.但是,您正在Gear S2中运行具有用户二进制文件的应用程序,这就是为什么您需要从三星获得作者证书的原因.下面的链接将向您展示为模拟器和设备安装证书扩展SDK的方法.
If you run app in Emulator, then IDE generated certificate will work. But you are running app in Gear S2 which has user binary, that's why you need to get author certificate from samsung. Below link will show you the way of installing extension sdk for certificate for both emulator and device.
这篇关于在Gear S2设备上启动Web应用程序时出现错误81的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!