Getting an .apk into the Google Play store

This is mostly for my own reference but I hope someone else can find it useful too :)
  1. Disable debugging in your AndroidManifest.xml file by setting android:debuggable="false” in the “application” node.
  2. cordova build android –release
  3. jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore yourkey.keystore app.apk alias_name (assuming you’ve generated a key beforehand using keytool in the JDK bin directory)
  4. zipalign -v 4 app-release-unsigned.apk app.apk (obviously replace “app” with your app name)
Zipalign must be the last thing that happens!
Useful links: