Sometime back, I helped a friend of mine to launch an app in the Android market. As most of the Android developers know, one of the requirements to upload your APK file into the android market is that you have to sign it using a KeyStore.
I created a new KeyStore for him and I signed the app and he uploaded it to Android market. All this happened a couple of years back and now when he wanted to update the app again, he had to sign the apk file again with the same KeyStore.
I had remembered to backup the keystore file, but somehow couldn’t remember the exact password I used while creating the KeyStore.
After a quick search, I realized that I am not the only one who has done that before and also realized that there is no other way to upload the app again, without recovering the password 🙁
I started my search to find ways to recover the password and luckily found a tool, which took a smart list of words and then tried to guess the password by brute force. I gave it a couple of probable words that I would have used for the password and luckily I was able to recover the password with-in a couple of hours. 🙂
Some major take aways for me from this entire episode.
- Always, always and always make sure you have more than one copy of backup
- Don’t ever forget the password for your KeyStore. If you do then you might have to abandon your current app in the market.
- As @pareshmayani pointed out below, make sure you store the keystore file as well in your app’s repo. God be merciful on you, if you don’t version your code
- Sometimes keeping a simple password helps 😉
I agree with your point regarding backup, but one more point I would like to add here is: Try to manage your project under any version control system so that you can have keystore and all the required documents handy whenever you require. Or you can upload keystore somewhere on Cloud site like Google docs or any.
And I also agree with your point regarding keeping simple password, What I would suggest here is: Keep password with the same name as your app.
I agree. I was able to retrieve the keystore file, because I had checked into my private .git repo.
Updated the post.
I am using this tool but i cant get the key store password.
what is enter in the text file.
I tried all three ways but i cant able to get it please tell me how you have recovered the password…
how to use the tool please describe it briefly..
You can find the full instructions at the tools page at https://code.google.com/p/android-keystore-password-recover/