142

How can i see my debug.keystore password? I entered my password 3 or 4 month ago and now i don't remember.

If it is impossible, how can i create new debug.keystore?

Janusz
  • 182,484
  • 112
  • 300
  • 368
John Error
  • 1,876
  • 5
  • 16
  • 22

6 Answers6

330

Usually the debug.keystore password is just "android".

You can delete it and Eclipse will automatically generate a new one, as described here.

Community
  • 1
  • 1
Asaf Nevo
  • 10,718
  • 22
  • 74
  • 151
  • okay i try delete keystore and clean my project. adt created a new keystore, well what is default alias name? – John Error Sep 17 '12 at 09:39
  • i tried your suggestion it gives me error; Enter keystore password: keytool error: java.lang.Exception: Alias does not exist java.lang.Exception: Alias does not exist at sun.security.tools.KeyTool.doPrintEntry(Unknown Source) at sun.security.tools.KeyTool.doCommands(Unknown Source) at sun.security.tools.KeyTool.run(Unknown Source) at sun.security.tools.KeyTool.main(Unknown Source) – John Error Sep 17 '12 at 09:45
  • can you paste the line you typed ? – Asaf Nevo Sep 17 '12 at 09:48
  • 4
    Default alias is androiddebugkey – entropy Nov 18 '14 at 13:53
  • 1
    Welcome to the android developer experience – Konstantin Schubert Nov 09 '21 at 19:44
127

The Default Configuration of debug.keystore file:

Keystore name: "debug.keystore"
Keystore password: "android"
Key alias: "androiddebugkey"
Key password: "android"
CN: "CN=Android Debug,O=Android,C=US"

Where is this file located?

For Windows users: C:\Users\[username]\.android\debug.keystore

For macOS users: ~/.android/debug.keystore

You can get the SHA1 by using the following command:

keytool -list -v -keystore "C:\Users\[username]\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

Note: The above answer has just information of Android Studio's default configuration to access the debug.keystore (debug certificate). You can make a custom certificate if you want to use your own password or configuration.

Jonas Wanke
  • 337
  • 5
  • 10
Hassan Saeed
  • 4,853
  • 1
  • 29
  • 33
  • 1
    Just FYI there is typo in Window path. You need the backslash after [username] C:\Users\[username]\.android\debug.keystore – LakeRunner Jan 22 '21 at 18:44
5

If you are not certain that the password has been set before, try just empty password. It worked for me.

Vlad
  • 112
  • 1
  • 5
3

Again you can generate your google api key. Your .keystore file will be, In Eclipse, Windows -> preferences ->Android -> build ->default debug keystore path will be there. You just use that .keystore and generate your api key again by using this link:

http://lokeshatandroid.blogspot.in/2012/05/obtaining-google-maps-api-key.html

  • Then you would need new oauth client id's. Easier to keep using the same keystore. – Tom Apr 28 '15 at 19:34
0

What i did was create signed key, I was able to observe this when i read the errors probbaly https://reactnative.dev/docs/signed-apk-android

Alabi Temitope
  • 387
  • 4
  • 15
-1

Usually the debug.keystore password is just "android".

  • This has already been mentioned in some other answers. – Eric Aya Jun 02 '22 at 08:30
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jun 02 '22 at 10:58