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
Recover your keystore password
100% working
Projects->taskHistory.bin
Find->KeyAlias
Note: Click and View my images for your reference
Yes, you can find your lost key in the task artifacts from Android Studio.
for updated verssion of android studio the path is:
Open the file and search with the part of the password that you remember.
Sample(this will be in that bin file):
signingConfig.keyAlias�"key name"�signingConfig.keyPassword�"key password"�signingConfig.storePassword�"Store Password"�
You can search with this string “signingConfig.storePassword” or any string given in the sample string
Note: I have experienced the same thing and I am able to find it in the above path. In case if you didn't find may be you cleared all the cache and temp files.
If you happen to be on MacOS and checked the "save password" box in Android Studio, you can recover the password from Keychain Access.
In ubuntu, we can find all password related to keystore from the given path.
edit the file and search
android.injected.signing.store
, then you can find the passwords.On the Mac, I found the keystore file path, password, key alias and key password in an earlier log report before I updated Android Studio.
I launched the Console utility and scrolled down to ~/Library/Logs -> AndroidStudioBeta ->idea.log.1 (or any old log number)
Then I searched for “android.injected.signing.store” and found this from an earlier date:
On Windows
you can find your lost key password in below path
Project\.gradle\2.14.1\taskArtifacts\taskArtifacts.bin
or..taskHistory\taskHistory.bin
open the file using appropriate tools e.g. NotePad++ and search with the part of the password that you remember. You will find it definitely. Else, try searching with this string "signingConfig.storePassword".
Note: I have experienced the same and i am able to find it. In case if you didn't find may be you cleared all the cache and temp files.
I finally could figure the issue out.
To get the Key Alias: I copied the keytool.exe and my keystore file into C:\Program Files\Java\jdk1.7.0_71\bin folder. Then from command prompt I wrote:
keytool -list -v -keystore <name>.keystore
It will also ask for keystore password then. Then it will show you the key alias and Certificate fingerprints and other info.Then I again tried to Generate Signed Apk for the project, I provided keystore, keystore password, key alias and provided the same password. Then it asks for master password, I tried with the same and it failed. With the reset option I reset the master password here.