giovedì 6 marzo 2014

Change the keystore in Eclipse ADT

To simplify the development of an Android app, I suggest to configure the Eclipse ADT plug-in with the same certificate used to publish the app in Google Play.
In this way, you can debug your published app in case of problem or crash directly from Eclipse!

Create a copy of your keystore: for example, eclipse.keystore

In according with Signing Your Applications, modify the keystore file in this way:

# change the keystore password with "android" 
keytool -keystore eclipse.keystore  -storepasswd

# change the alias with "androiddebugkey"
keytool -keystore eclipse.keystore -changealias -alias app-alias -destalias androiddebugkey

# change the password for the alias with "android"
keytool -keystore eclipse.keystore -keypasswd -alias androiddebugkey

Configure the Eclipse ADT plugin, specifying the eclipse.keystore file as "Custom debug keystore" in the Eclipse Preferences > Android > Build panel.