语言

Menu
Sites
Language
Unable to sideload wgt's to Gear S

As per instructions, I've attempted the following multiple times on Mac OS X Yosemite 10.10.1:

I've installed the Mac version of the Tizen SDK for wearable, including the IDE and created example projects.
Following that, I generate a new CSR which I sent in to Samsung to receive my certificate, and a device profile,
in which I put the DUID of my Gear S, that I retrieved by looking at the properties of the device in the Connection
Explorer.

I set up the certificate and device-profile using the Request and Register a Certificate dialog in the IDE. This automatically
sets up my profiles.xml and generates the .p12 files. Following this I click Permit to install applications, which returns with
Succeeded to upload a certificate.

From what I've gathered from the documents, this should allow me to build my test project and run it on the device, however
whenever I attempt to run it I get:


Error code: SIGNATURE_INVALID
Error message: 
Command: /usr/bin/pkgcmd -i -q -t wgt -p "/opt/usr/apps/tmp/AltiTest.wgt"
Management: Check author certificates in Preferences > Tizen SDK > Secure Profiles > Profile items. Or try to perform 'permit to install applications' of the context menu in Connection Explorer.

What am I doing wrong? Which step do I seem to be forgetting?

profiles.xml

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="3.0">
<profile name="default">
<profileitem ca="" distributor="0" key="/Users/pascal/tizen-wearable-sdk-data/keystore/author.p12" password="*****" rootca=""/>
<profileitem ca="" distributor="1" key="/Users/pascal/tizen-wearable-sdk-data/keystore/distributor.p12" password="*****" rootca=""/>
</profile>
</profiles>

 

编辑者为: Pascal Scheepers 02 12月, 2014

响应

16 回复
daniel kim

Hi,

If 'certificate-registration.xml' is not created in keystore folder of SDK, I suggest you to copy your previous 'certificate-registration.xml' into keystore folder of current SDK and run 'permit to install applications' in connection explorer. 

Pascal Scheepers

I don't think I have a previous 'certificate-registration.xml', where can I generate or find one?

daniel kim

Hi,

I hope that you have the email which contain previous 'certificate-registration.xml' file which was received from Samsung certificate site.

Pascal Scheepers

I never received such an e-mail. Only things I received from samsung were my certificate and a device-profile.xml

daniel kim

In my case, even if I generated the certificate properly in wearable SDK 1.0.0, 'permit to install applications' menu was not able to be executed in my Gear2.

So I copied my old  'certificate-registration.xml' file which was used in previous SDK version to keystore folder of IDE to perform this action.

If you don't have a problem to run 'permit to install applications' menu in connection explorer, I suggest you to check /home/developer folder of your device whether it contains this xml file.

We can open this xml file in editor and can check it whether it has correct information.  I could solve my problem by this way in Gear2.

Pascal Scheepers

I've never used a previous SDK version, and no, 'certificate-registration.xml' is not in /home/developer. So this is the issue? Is the only way to get a 'certificate-registration.xml' through the old SDK?

Bit strange the current release of the SDK is broken :P. Could you point me to where I can download this older version? I could use it to generate the file and work around it that way. Or is there a way to generate the file without an SDK?

daniel kim

Unfortunately, we can't download the beta version of SDK anymore through the Tizen Developer site.

I don't think that author.crt has problem as you received it from Samsung properly. But device-profile.xml might be make some trouble.

Could you open the device-profile.xml in editor and check the <TestDevice> DUID </TestDevice> inside of this file?

You can check whether your xml contains the correct DUID of your device in this tag.

Pascal Scheepers

My decive-profile.xml has <TestDevice>CORRECTDUID</TestDevice> in it, and this xml file gets deployed to the device as well.

Pascal Scheepers

However it still doesn't work like this... I'm just unable to sideload the apps to it.

Garry Marry

Hi Pascal,

make sure, that your time on Gear S is set correctly. If there is a big difference between time on Device and machine where SDK is installed, certificate will by "invalid".

hope that helps,
Garry

Pascal Scheepers

The time is in sync with my computer. So that can't be the issue

Garry Marry

Have you tried to create new workspace?

I've experience this error only in 3 cases:

1. Time on Gear S was different than in sdk
2. Workspace has old information about certificates (.metainf dir). Create new workspace, create Basic app from sample apps and try to install on device.
3. Broken certificate.
remove device profile from device:
connect to device via sdb shell and remove device-profile.xml from /home/developer directory

After that create/generate new certificates authors and new device profiles and import them using "register certificate" icon. When it succeeds don't forget to "permit to install applications", by clicking RMB on device in Connection Explorer.

 

BTW, when installing sample apps you recieve same error?

Pascal Scheepers

I get this error installing sample apps or anything I tried to make myself. The time on the Gear S is exactly the same as on the macbook I connect it to. I've tried recreating a workspace several times already and I've tried regenerating a certificate several times (each time in a clean new workspace).

I'm going to give it another attempt

Vlad H

Hi everyone,

I'm sorry if this is not a good place to ask, but I was wondering if it's free to develop apps for the Gear S, or if you need to pay for a developer license like on iOS?

Thanks!

daniel kim

Hi,

Developer don't need to pay for uploading the Gear S application into Samsung AppStore.

Vlad H

Thanks Daniel!