IntelXDK > Cocoon.io (not same keystore apk sign)

Discussion and feedback on Construct 2

Post » Wed Jan 13, 2016 10:05 am

Hello,

I'm fucked,

I published on Google Play Store my APK built with IntelXDK.
Now i want to use cocoon.io (+APK signer) to build my APK and when i publish (update my application) on Google Play Store i have an error because my old APK doesn't have the same keytore that my new build...

How to resolve please ?

Best regards
B
6
S
1
Posts: 50
Reputation: 502

Post » Wed Jan 13, 2016 12:20 pm

Goto this page https://appcenter.html5tools-software.i ... xport.aspx and login (if asked) using your Intel XDK account credentials. You may have to go back to that location a second time after logging in (do this within the same browser tab that you just logged in with to preserve your login credentials).

If successful, there is a link that, when clicked, will generate a request for an "identification code" for retrieving your keystore. Pushing this link will cause an email to be sent to the email address registered to your account. This email will contain your "identification code" but will call it an "authentication code," different term but same thing. Use this "authentication code" that you received by email to fill in the second form on the web page, above. Filing in that form with the code you received will take you to a new page where you will see:

a "Download keystore" link
your "key alias"
your "keystore password"
your "key password"
Make sure you copy down ALL the information provided! You will need all of that information in order to make use of the keystore. If you lose the password and alias information it will render the key useless!

If the above fails, please send an email to [email protected] requesting help. It is important that you send that email from the email address associated with your Intel XDK account.




i get it there but i never use it :roll: because cocoon was giving me trouble to complie my games... but the key should work
Image
B
33
S
10
G
2
Posts: 306
Reputation: 3,552

Post » Tue Feb 02, 2016 9:05 pm

@wizdigitech Thanks for the instructions but I am having some trouble signing my app on cocoon. I downloaded the key-store and inputted all the passwords but I am receiving "signing Android project error". Any ideas?
B
6
S
2
Posts: 28
Reputation: 496

Post » Tue Feb 02, 2016 9:22 pm

same here bro and the moderator then over cocoon.io say they cant do anything about intel keystore. The dumbest thing they say is to make a new keystore smh
i yet to try to get the detail from the intel keystore file to make a new one
i think intel keystore is jre and not jdk file why cocoon give error
Image
B
33
S
10
G
2
Posts: 306
Reputation: 3,552

Post » Tue Feb 02, 2016 10:07 pm

I had the same error. The keystore file from IntelXDK is fine, but somehow is not compatible with Cocoon.io's build system.

So I tried to zip and align my app in my PC using Apk-Signer, following the instructions of this guide:
https://shatter-box.com/knowledgebase/a ... pk-signer/
unfortuantely, the Apk-Signer also failed, but this time I received a more meaningfull error:
"jarsigner error: java.security.SignatureException: private key algorithm is not compatible with signature algorithm"

So, after Googling that, what I finally did was this:

1. I build my App on Cocoon.io chosing unsigned.
2. I downloaded the apk on my PC and zipped + aligned it with the keystore from IntelXDK using jarsigner and SHA1withDSA algorithm.
3. I uploaded the new version of my app on Google play and voila it worked just fine!

If anyone wants to follow that root I can write here the exact 2 commands I used to zip and align my app. I saved these in case I need them again.

*Sorry for my poor English...
B
4
S
1
Posts: 5
Reputation: 365

Post » Wed Feb 03, 2016 12:39 am

@seopolis what is the link to download jarsigner and SHA1withDSA algorithm
seopolis wrote:If anyone wants to follow that root I can write here the exact 2 commands I used to zip and align my app. I saved these in case I need them again.

yes i REALLY need it and the jarsigner thanks
@ciaphuas seopolis answer your pray lol he want it also
Image
B
33
S
10
G
2
Posts: 306
Reputation: 3,552

Post » Wed Feb 03, 2016 12:17 pm

1. Open these 2 tutorials for your reference:
https://shatter-box.com/knowledgebase/a ... pk-signer/
https://www.scirra.com/tutorials/861/ho ... id-app-apk

Be sure that you have installed Java jdk 8.0 and Java JRE 8.0 and you have defined your environment variables correctly.

Note that jarsigner is part of the JDK, and resides inside this folder: C:\Program Files\Java\jdk1.8.0_71\bin
2. Build your app on Cocoon.io without signing it there and download it on your PC.

3. Run this command to sign your app:

jarsigner -verbose -sigalg SHA1withDSA -digestalg SHA1 -keystore PATH/TO/YOUR_RELEASE_KEY.keystore PATH/TO/YOUR_UNSIGNED_PROJECT.apk YOUR_ALIAS_NAME

It will ask for password, write your keystore password (I use same pass for storepass and keypass).

If you have different storepass and keypass passwords, then the above command should look like this:
jarsigner -verbose -sigalg SHA1withDSA -digestalg SHA -keystore PATH/TO/YOUR_RELEASE_KEY.keystore -storepass YOUR_STORE_PASS -keypass YOUR_KEY_PASS PATH/TO/YOUR_UNSIGNED_PROJECT.apk YOUR_ALIAS_NAME

Ok your app is signed.

* If you have 2 versions of your app (x86 and armv7) run the above command for both .apks.

4. Now we align the apps:

zipalign -v 4 PATH/TO/YOUR_SIGNED_PROJECT.apk PATH/TO/YOUR_SIGNED_AND_ALIGNED_PROJECT.apk

5. Upload your apk to Play Store. It worked for me fine.

Good luck!
B
4
S
1
Posts: 5
Reputation: 365

Post » Wed Feb 03, 2016 5:29 pm

thanks bro
Image
B
33
S
10
G
2
Posts: 306
Reputation: 3,552

Post » Thu Feb 11, 2016 4:43 pm

@seopolis Awesome! Thanks for figuring this out and providing instructions
B
6
S
2
Posts: 28
Reputation: 496

Post » Thu Feb 11, 2016 9:27 pm

got a question, when i sign the apk, it shows
Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2042-11-08) or after any future revocation date.

although I can not zipalign, I already add the path to environment , but still can not recognized.

please help, thanks
B
11
S
3
Posts: 172
Reputation: 1,178

Next

Return to Construct 2 General

Who is online

Users browsing this forum: troxx and 1 guest