I have an android app which needs to be signed using a specific keystore for it to be able to communicate with another app. I see that I can put the keystore file in a specific location for eclipse to use it. I don't find any documentation on how to configure the keystore in build.xml for ant builds though.
4 Answers
For Ant builds you just need to add lines like these to the build.properties file:
key.store=c:/users/me/my-release-key.keystore key.alias=release_alias key.store.password=MyStorePassword key.alias.password=MyKeyPassword assuming that your build.xml is based on the main_rules.xml that comes with the SDK
1 Comment
I'm using Maven for that and it works fine. I have configured multiple build profiles like "release", "devel" etc. signed with different keys. If you want to use Maven look for maven android plugin.
1 Comment
In eclipse it is done through window-preferences-android-build-custom debug keystore.
As you can see from there, default debug keystore is located in .android/debug.keystore at your homedir (~ at linuxes and c:\Users\whatevah on windowses).
So you can replace default ~/.android/debug.keystore with your custom.