While I realize that officially it is not possible (yet?) to develop native apps (i.e. non-web apps) for Samsung Galaxy Gear S I still find it compelling to find a work around to be able to use the much richer API then that available to web-apps.
The thing I tried is using the certificates generated with Tizen SDK for Wearable with the regular/native Tizen SDK. To some extend it succeeded - the package signature verification passes while the package is installed to my Gear S but I see the following error (MANIFEST_INVALID) appearing further on:
'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.
and it also leaves a following trace in the logs (Manifest Validation Failed with error code 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.
Has anybody tried/managed to get pass that?
I include below the full sequence which got me this far. Any hints are welcome.
Best Regards,
C
Procedure:
- Install Tizen SDK, Tizen SDK for Wearable and register Author & Distributor certificates in Tizen SDK for Wearable: http://www.pdf-archive.com/2015/01/13/tizen-sdk-installation-and-configuration/tizen-sdk-installation-and-configuration.pdf
- Reuse the Author & Distributor certificates from Tizen SDK for Wearable in the native Tizen SDK: http://www.pdf-archive.com/2015/01/13/developingnativetizenappforwearabledevice/developingnativetizenappforwearabledevice.pdf