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

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

Posted by: admin April 23, 2020 Leave a comment


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

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

How to&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.



On macOS the latest versions of Android Studio (tested on 3.2) store keystore/key passwords in the Keychain under the following items:

  • org.jetbrains.android.exportSignedPackage.KeystoreStep$KeyStorePasswordRequestor
  • org.jetbrains.android.exportSignedPackage.KeystoreStep$KeyPasswordRequestor

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:
KEY_STORE_PASSWORD__/Users/username/keystorename or KEY_STORE_PASSWORD__/Users/username/keystorename__alias

Click 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:

  1. open ‘Passwords and Keys’ (use super key and search ‘password’)
  2. filter results by ‘android’
  3. look at each entry, they will be
    something like org.jetbrains.android…KeyPasswordRequestor, and
    open each one up in turn
  4. expand the password dropdown and select
    ‘Show password’, it will look something like:
    KEY_STORE_PASSWORD__/home/pathto/keystore/[email protected]

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.


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.
Good Look