Web Niraj
  • Facebook
  • Flickr
  • Github
  • Linkedin
  • Twitter
  • YouTube
Online portfolio, code examples and developer blog
  • About
  • Contact
  • Portfolio
  • WordPress
Search the site...
  • Home
  • Blog
  • Cordova: Changing the Default Debug Keystore for Android Applications

Cordova: Changing the Default Debug Keystore for Android Applications

0

I’ve already covered release signing Android application in Cordova in a previous article, but sometimes you want to do the same for debug builds. By default, Cordova uses its own debug keystore, but it’s easy to customise your project to use a keystore of your choice when creating debug builds.

Prerequisites

Start by creating your keystore using the keytool command line, as described in my earlier article.

If you already have a keystore you would like to use, you can skip this step.

Setup

Next, we need to create the configuration file Cordova will use to sign your debug build. This is done by creating the debug-signing.properties file in the platforms/android folder of your app.

In this file, you’ll need to add the following:

Each of the variables must match the details you used when creating the keystore (or in the Prerequisites step). If you didn’t enter passwords for the keystore (storePassword) or alias (keyPassword), these lines can be removed from the file.

Building and Signing

When you’re ready to build and sign your app, you can simply run the following Cordova command:

cordova build android

If the build is successful, the android-debug.apk file will be generated in the platforms/android/build/outputs/apk folder. Keep an eye on the output to see if the build was successful, and to find the location of the file.

screen_shot_2016-11-21_at_21_17_22

The above screenshot has been modified to hide intermediate output from the build process, and to redact confidential information.

Android, Code Signing, Cordova, Debug, Google Play Store, Security

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

StackExchange / StackOverflow

profile for Niraj Shah on Stack Exchange, a network of free, community-driven Q&A sites

Support Me

Buy Me a Coffee

PSN Profile

Tags

ACL Amazon Amazon Web Services Android Android 4.4 KitKat Android 5.0 Lollipop Apache Backup Bug Command Line Cordova cPanel / WHM Facebook Facebook Graph API Facebook PHP SDK 4.0 Facebook Social Plugins Fan Page Firewall Flash Gadget Geolocation Google Nexus 5 Hacking HTML5 iOS JavaScript jQuery Laravel 5 Linux NodeJS Parse PDF PHP Plugin Portfolio PS4 Review Security Server SSH SSL Sysadmin Tutorial WordPress WordPress Plugins
© 2011-2025 Niraj Shah
  • Blog
  • Portfolio
  • WordPress
  • About Me
  • Contact Me
  • Privacy Policy
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Privacy Policy