Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure Eclipse to use signed keystore

I have finally created a 'final' keystore for my app. As my app is using Google Maps, I take I have to update all Layouts to use the new API Key resulting from the app as well..

Now I'm fully aware of the requirement to export a signed APK for release, but what after that? My thoughts are that for further development and testing, it would be easiest if I could configure Eclipse to use my final keystore instead of the debug keystore … but I found no way to do that? It only allows me to configure an 'alternative' debug key but I guess that's not the same.

Sorry if I am too confused if I have totally misunderstood something here.

like image 379
richey Avatar asked Jun 04 '12 19:06

richey


People also ask

What keystore does eclipse use?

By default, Eclipse uses the Java trust store at $JAVA_HOME/lib/security/cacerts.


1 Answers

You can configure a custom keystore to use for your debug builds (the ones that happen when you click Run...) in Eclipse by going to Preferences -> Android -> Build and entering the file name in the "Custom debug keystore" option.

However, it has the caveat that it must follow the same rules as a traditional debug keystore, mainly:

  1. The keystore password must be "android"
  2. It must contain a key named "androiddebugkey"
  3. That key's password must be "android"

Therefore, while it is possible to sign your apps in debug with the same keystore as you Export with, it requires your production keystore to look like a debug store, which makes it less secure if someone got ahold if the file (it would be easier to inspect and guess the passwords).

HTH

like image 59
devunwired Avatar answered Oct 11 '22 20:10

devunwired