- Make a copy of your keystore, I copied mine to a file called iap.keystore
- Open terminal/command window with keytool on the path (for me the path is D:\NVPACK\jdk1.6.0_45\bin\keytool.exe) or use the fullpath to
keystore
in the commands below - Change your keystore password to 'android':
keytool -storepasswd -keystore iap.keystore
- Follow prompt to enter your old keystore password
- Follow prompt to enter
android
as the new password - Follow prompt to confirm
android
as the password
- Rename your key to
androiddebugkey
(replaceOld_Key_Store_Name
with your current key name in the next command)keytool -changealias -keystore iap.keystore -alias Old_Key_Store_Name -destalias androiddebugkey
- Follow prompt to enter your keystore password (which is now
andorid
) - Follow prompt to enter your
Old_Key_Store_Name
password (this is whatever you previously had your key password set to)
- Change the password for your
androiddebugkey
keytool -keypasswd -keystore iap.keystore -alias androiddebugkey
- Follow prompt to enter your keystore password (which is now
andorid
) - Follow prompt to enter your
androiddebugkey
password (this is whatever you previously had your key password set to) - Follow prompt to enter
android
as the new key password - Follow prompt to confirm
android
as the key password
- You now have a keystore (with key) which Eclipse can use to automatically sign builders.
- Load up Eclipse.
- Window -> Preferences -> Android -> Build
- Follow 'Custom debug keystore' browse to the iap.keystore file we previous created
- OK
Now when you launch/debug your project, it'll use the keystore we just set up to sign your project. This will allow things like IAP to work.
BEWARE: this is convenient, but of course if someone gets hold of your iap.keystore they will be able to sign things as you by using 'android' as the keystore/key password. Hopefully this is obviously from the steps listed above, but just take a second to appreciate what this means for yourself (or your company). Then based on that decide if the risks are acceptable, and if you need to carry out any extra measures to ensure the safety of this file.