虽然我意识到官方不可能(还没有?)为三星 Galaxy Gear SI 开发本地应用程序(即非 Web 应用程序),但我仍然觉得找到一种解决方法以使用比可用的更丰富的 API 很有吸引力到网络应用程序。
我尝试的是使用 Tizen SDK for Wearable 生成的证书和常规/本机 Tizen SDK。在某种程度上它成功了 - 当包安装到我的 Gear S 时包签名验证通过,但我看到以下错误 (MANIFEST_INVALID) 进一步出现:
'Launching sensors - Debug' has encountered a problem.
Cannot install application.
Error code: MANIFEST_INVALID
Error message: Manifest Validation Failed
Command: /usr/bin/pkgcmd -q -i -t tpk -p /opt/usr/apps/tmp/org.tizen.sensors-1.0.0-arm.tpk
Management: Check manifest.xml in manifest editor.
它还在日志中留下以下跟踪(清单验证失败,错误代码 1871):
01-12 13:50:36.258 : ERROR / rpm-installer ( 30250 : 30250 ) : rpm-appcore-intf.c: main(192) > [/opt/usr/apps/tmp/org.tizen.sensors-1.0.0-arm.tpk] is tpk package.
01-12 13:50:36.278 : ERROR / rpm-installer ( 30250 : 30250 ) : rpm-installer-core.c: _rpm_installer_get_pkgname_info(297) > There is no old version for org.tizen.sensors.
01-12 13:50:36.298 : ERROR / W_HOME ( 665 : 665 ) : pkgmgr.c: _start(442) > (_exist_request_in_list(package)) -> _start() return
01-12 13:50:36.298 : ERROR / APPS ( 665 : 665 ) : pkgmgr.c: _pkgmgr_cb(709) > pkgmgr_cbs[0].func has errors.
01-12 13:50:37.008 : ERROR / CERT_SVC ( 30250 : 30250 ) : CertificateVerifier.cpp: verify_message_signature(239) > Signature Verify of certificate-registration.xml is passed.
01-12 13:50:37.098 : ERROR / PKGMGR_PARSER ( 30250 : 30250 ) : pkgmgr_parser.c: pkgmgr_parser_check_manifest_validation(2646) > Manifest Validation Failed with error code 1871
01-12 13:50:37.098 : ERROR / rpm-installer ( 30250 : 30250 ) : coretpk-installer.c: _coretpk_installer_package_install(1706) > @invalid manifest file
01-12 13:50:37.108 : ERROR / CAPI_APPFW_PACKAGE_MANAGER ( 626 : 626 ) : package_manager.c: global_event_handler(831) > PM error : pkg_name = org.tizen.sensors, pkg_type = rpm, event_type = 0, error case = 12, error cause = MANIFEST_INVALID
01-12 13:50:39.108 : ERROR / rpm-installer ( 30250 : 30250 ) : coretpk-installer.c: _coretpk_installer_package_install(1794) > [@]end : _coretpk_installer_package_install
01-12 13:50:39.138 : ERROR / rpm-installer ( 30250 : 30250 ) : coretpk-installer.c: _coretpk_installer_prepare_package_install(2206) > [@@]end : _coretpk_installer_prepare_package_install[12]
01-12 13:50:39.138 : ERROR / rpm-installer ( 30250 : 30250 ) : rpm-cmdline.c: _ri_cmdline_process(383) > __ri_process_request: Error
01-12 13:50:39.188 : ERROR / W_HOME ( 665 : 665 ) : pkgmgr.c: _end(647) > (strcasecmp(val, "ok")) -> _end() return
01-12 13:50:39.188 : ERROR / APPS ( 665 : 665 ) : pkgmgr.c: _pkgmgr_cb(709) > pkgmgr_cbs[6].func has errors.
有没有人尝试/设法通过?
我在下面包含了让我走到这一步的完整序列。欢迎任何提示。
此致,
C
程序:
- 安装 Tizen SDK、Tizen SDK for Wearable 并在 Tizen SDK for Wearable 中注册 Author & Distributor 证书:http ://www.pdf-archive.com/2015/01/13/tizen-sdk-installation-and-configuration/tizen- sdk-安装和配置.pdf
- 在本机 Tizen SDK 中重用来自 Tizen SDK for Wearable 的作者和分销商证书:http ://www.pdf-archive.com/2015/01/13/developingnativetizenappforwearabledevice/developingnativetizenappforwearabledevice.pdf