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?
I am looking for the Alias password, not the Keystore password
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.
2015-11-13 10:22:48,844 [ 709463] INFO –
a.gradle.invoker.GradleInvoker – Build command line options:
-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,
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.
On macOS the latest versions of Android Studio (tested on 3.2) store keystore/key passwords in the Keychain under the following items:
The former stores the password of the keystore itself, and the latter – the password to the key.
You can access them using system Keychain Access app. Locate corresponding entry and double-click it. The Account field should contain the path to your keystore or the path to the key alias within the keystore in the following form:
Show password and enter your macOS password when requested. That’s it!
For anyone attempting keystore password recovery on more recent versions of Android Studio and Ubuntu, it seems that most documented suggestions to recover the password from logs, gradle, etc no longer work. Corneliu’s excellent brute force script is great – unless you chose a 16 character password with no dictionary words in it and would like a result some time this month 🙂 Using the Intellij security.xml solution is no longer available to retrieve saved passwords from Android Studio either, as far as I can tell.
However – having dug around a bit, Android Studio 3.1 seems to use the OS keychain in Ubuntu 18.04, so retrieving a saved keystore password is as simple as:
- open ‘Passwords and Keys’ (use super key and search ‘password’)
- filter results by ‘android’
- look at each entry, they will be
something like org.jetbrains.android…KeyPasswordRequestor, and
open each one up in turn
- expand the password dropdown and select
‘Show password’, it will look something like:
Find the keystore you’re looking for and the bit after @ is your missing password. Hope that helps someone out there!
Gradle stores them within your project directory in a binary file. You can get them like this (from the project directory):
strings .gradle/GRADLE_VERSION/taskArtifacts/taskArtifacts.bin | grep storePassword -A1
(Thanks to https://stackoverflow.com/a/33624636/1982087 for the taskArtifacts.bin pointer)
look for the log file from the date which you had signed your apk and you can find your key info there like below.
-Pandroid.injected.signing.store.password=[store_password], -Pandroid.injected.signing.key.alias=[alias], -Pandroid.injected.signing.key.password=[key_password]
you can find your log files under
I had the same problem!
it makes me crazy but I found a little script that it´s saves me: https://github.com/corneliudascalu/intellij-decrypt
I think it could help you.