Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I retrieve a saved keystore password from Android Studio?

The new Android Studio allows us to save keystore passwords for later use. Where are these passwords stored on my computer (OSX), and is there a way to retrieve the saved values?

enter image description here

EDIT I am looking for the Alias password, not the Keystore password

like image 339
user2692264 Avatar asked Sep 09 '13 15:09

user2692264


People also ask

How do I find my android keystore password?

bin file in android studio itself. Search for ". storePassword" .. That's it you got your keystore password.

How do I find my keystore password?

From the logs: If you have your logs intact, then you can find the password in the Android Studio log files: Go to ~/Library/Logs -> AndroidStudio ->idea. log.

How do I recover my Java keystore password?

Resolution. The only way to recover is then to create a duplicate keystore with a new store password. All of the certs from the original trustore can be copied as-is into the new keystore. We will use /opt/CA/jre/lib/security/cacerts as the example but this will work with any Java Keystore (jks).


1 Answers

You can find this in the idea.log files generated by Android Studio:

Search for "Pandroid.injected.signing.key.password" and you can see the key password.

Example logs:

2015-11-13 10:22:48,844 [ 709463] INFO - a.gradle.invoker.GradleInvoker - Build command line options: [--configure-on-demand, -Pandroid.injected.invoked.from.ide=true, -Pandroid.injected.signing.st ore.file=/Users/varun/Projects/myapp/mykey.jks, -Pandroid.injected.signing.store.password=mykeystorepassword, -Pandroid.injected.signing.key.alias=myalias, -Pandroid.injected.signing.key.password=mykeypassword , -Pandroid.injected.apk.location=/Users/varun/code/android/workspace/myapp, --init-script, /private/var/folders/vk/z504nlhd6v30p7zvtgjp5sjm0000gn/T/asLocalRepo0.gradle]

Note 1: On OSX the idea.log file can be found at ~/Library/Logs/AndroidStudio2.0

Note 2: If you don't find the password in idea.log, then also look at the files called idea.log.1, idea.log.2 and so on.

Source

like image 200
Varun Avatar answered Oct 05 '22 01:10

Varun