I have an android app currently published in Google Play which I update periodically. I follow the following process to sign the app before a new push:
Press right-mouse on the project, the 'Android tools' -> export signed application package Provide keystore password Sign your app Upload the apk file into Google Play Developer Console
Recently I have imported the project from Eclipse to Android Studio and continued working on Android Studio. Now I am planning to push a fix in the app. I have figured that I have this option to sign apk in android studio
Build -> Generate Signed apk ->
As per my understanding, for my android app I have to use the same key store and key store password which I used earlier to push updates into Google Play. Also here it's asking for Key Alias and Key Password. I don't remember the Key Alias and Key password(number 4 input in the image) while signing apk in Eclipse. Any suggestion what can I do now? If I already know my keystore and keystore password, is there an way to retrieve the key alias and alias key password?
Update: Now I can retrieve my key alias through keytool -list -v -keystore name.keystore command
Based on gkemp answer, On Windows, I found the keystore file path, password, key alias and key password in an earlier log report before I updated Android Studio.
From windows file explorer c:/Users/your pc name/.AndroidStudio1.4 (your android studio version)\system\log\idea.log.1 (or any old log number)
Then I searched for “android.injected.signing.store” and found this from an earlier date:
To just restore the KEY ALIAS. Type the below command on terminal.
It will give information starting,
You can look for the alias name there.
Just Open yourApp.jks file with Notepad you will find Keystore & Alias name there!!
In any case you are confused with your password.You can use hit and trial. It will ask you for password.If it right then it will show you the list.
$ keytool -list -v -keystore filename
You might like to try this password breaker.
http://maxcamillo.github.io/android-keystore-password-recover/index.html
I was using the Dictionary Attack method. It worked for me because there were only a few combinations to my password that I could think of.
You cannot retrieve the password. If you forgot it, you are doomed.
But you need keystore password for this first.
EDIT
No password can be restored. If you forgot key password for good then you are doomed too and there's no other way than trying harder to recall it. There's no password reset thing nor anything like that.
Be aware that if you forgot your password for good then you will issue no further updates to your app (docs):