QNimate

  • CoursesVideos
  • WP PremiumPlugins
  • DemosLab
  • BlockClusterBuild Private Blockchains
  • Home
  • QIdea
  • QTrack
Home Home Signing Intel XDK Generated Android App

Signing Intel XDK Generated Android App

This post is a part 15 of Intel XDK Complete Tutorial post series.

To release a app into Google play store you need to sign the Android apk file. If you are using Intel XDK to build a app then its very easy to sign the apk.

Installing Java

Before we sign our apk file we need to make sure we have Java installed. If you have it installed then proceed to next step.

  • First Download and Install Java.
  • Set Java_Home directory.

Signing APK File

Go to your Projects -> Select your project -> Click build settings and make sure you have filled all the fields. And also make sure you have unchecked “Signed”.

Screen Shot 2014-11-08 at 3.47.11 pm

Now you need to build the Intel XDK project and download the apk file.

Now you need to run this command to generate a keystore file which will be used to sign the apk file.

$ keytool -genkey -v -keystore key_file_name.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

Don’t forget to change the alias_name and key_file_name of your wish.

Now you need to run this command to attach the keystore file to the generated apk file.

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore key_file_name.keystore my_application.apk alias_name

Don’t forget to change alias_name, key_file_name and my_application names.

The image shows how all commands are runned.

Screen Shot 2014-11-08 at 1.55.05 pm

Now you have created a signed apk.

Optimization

Its recommended that you should always optimize your signed apk file before releasing into app store.

With just one line command you can optimize your apk file

zipalign -v 4 my_application.apk my_application_release.apk
Nov 8, 2014Narayan Prusty
Change Viewport Width using Intel XDKPublishing Intel XDK App to App Store
Comments: 5
  1. Subramaniyam
    3 years ago

    I developed and tested an App in XDK and I use Google Map Api key in the app. While Map was showing all fine in testing in all devices and physical device too, after I exported the app to Playstore, the Map doesnt showup.

    I did add the jarsign and zipalign as stated here, but no succtess in seeing the map in production.

    I have used the same api_key that I used in development/testing. Should I replace this key with anyother like any release key and where and how do I get this ? Do I need to mention any specifics in the html file for api key before exporting the apk ?
    Where am I going wrong ?

    ReplyCancel
  2. Rinkal Patel
    3 years ago

    Hello,
    I have generated app from intelxdk earlier and uploaded that app to play store. Now i need to upgrade app and i need keystore certificate to build app from adobe. When i generated certificate and build app and tried to upgrade app in play store it shows error of keystore does n`t match. Can anyone help me how can i get keystore certificate from intelxdk?

    ReplyCancel
  3. Merendaz
    3 years ago

    Hi Narayan,
    What if I just have one app signed by Intel and having issues to update because of the fact that we do sign in an old account, haea to reset password and causes the change of sign issue.. Is there a way to ask Intel to send me the key archive and manually sign it and update the app.

    ReplyCancel
  4. Pablo
    3 years ago

    Why do you sign using command line and not click on the “Signed” checkbox in the XDK? Thanks

    ReplyCancel
    • Narayan Prusty
      3 years ago

      The Android system requires that all installed applications be digitally signed with a certificate whose private key is held by the application’s developer. The Android system uses the certificate as a means of identifying the author of an application and establishing trust relationships between applications.

      If Intel uses their private key then they are the developer of the app not you. Therefore you shouldn’t use the “Signed” checkbox.

      ReplyCancel

Leave a Reply Cancel reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

Narayan Prusty

I am a full-stack web developer. I specialize in Blockchain and JavaScript. This is my personal blog where I write about programming and technologies that I learn and feel interesting to share.

4 years ago 5 Comments Cordova
Share this
0
GooglePlus
0
Facebook
0
Twitter
0
Linkedin
  • Installing Java
  • Signing APK File
  • Optimization
Related Articles
  • Publishing Intel XDK App to App Store
  • Intercepting Android Back Button In Intel XDK
  • Building Intel XDK APP for Adhoc and App Store
  • Downloading Files and Showing Progress using Intel XDK
  • Create a Music Player App using Intel XDK
Our Sponsor
Freelance: I am available
@narayanprusty
Hi, I am a full-stack developer - focusing on JavaScript, WordPress, Blockchain, DevOps, Serverless and Cordova. You can outsource your app development to me.





Will get back to you soon!!!
WordPress
ReactJS
Meteor
Blockchain
Serverless
Kubernetes
DevOps
DB & Storage
Ejabberd
Let's get started
My Books

2014 - 2015 © QNimate
All tutorials MIT license