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

user2692264 picture user2692264 · Sep 9, 2013 · Viewed 19.3k times · Source

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

Answer

Varun picture Varun · Nov 13, 2015

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