Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio where is Master Password stored?

When you generate a APK in Android Studio you can secure the generation with a Master Password. Where in the filesystem is this password stored? I'm hoping I'm not committing this file in my project, i.e. and uploading it to Github:-)

like image 552
powder366 Avatar asked May 08 '14 17:05

powder366


People also ask

Where is master password stored?

Your Master Password is not stored anywhere – so we are not able to 'resend' it to you, and we cannot 'reset' it. Without the Master Password it is not possible to unlock and access your password database or to use Sticky Password.

Where is the password file in Android?

The password lock file is located in /data/system folder and named pc. key. Android OS uses exactly the same method to store the password. Once the user sets the password, device hashes it with SHA-1 and saves result into the file.


1 Answers

The master password isn't actually stored, but it's used to encrypt the master password file, which lives in the security.xml file with your Android Studio preferences. That file contains encrypted versions of your keystore and key passwords if you check the "Remember Passwords" checkbox in the Generate Signed APK wizard; if you don't tell it to remember passwords, nothing is stored.

Where that file lives depends on your platform, but in general on Windows it will be in <User home>\.AndroidStudioPreview\config\security.xml, ~/Library/Preferences/AndroidStudioPreview/options/security.xml on MacOS, and ~/.AndroidStudioPreview/config/security.xml on Linux. See http://www.jetbrains.com/idea/webhelp/project-and-ide-settings.html for more information on where preferences are stored for IntelliJ; it's essentially the same for Android Studio.

You can find a little more information on the file in a SO question about trying to decrypt the file contents if the master password is known: Intellij IDEA - view saved password

like image 185
Scott Barta Avatar answered Oct 28 '22 15:10

Scott Barta