Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is production keystore in android and how can I get the path-to-production-keystore?

Tags:

I am trying to add google authentication feature in my android app and for that I need to get the Android Signing certificate SHA-1. The official tutorial says to use the below command to get the SHA-1 hash value .

In release mode

keytool -exportcert -list -v \-alias <your-key-name> -keystore <path-to-production-keystore> 

debug mode

keytool -exportcert -list -v \-alias androiddebugkey -keystore ~/.android/debug.keystore 

Now I am confused with what is this production-keystore and debug.keystore and how to get the path to production-keystore? Explanations are appreciated.

like image 353
Hari Krishnan Avatar asked Apr 29 '16 11:04

Hari Krishnan


People also ask

Where are Android keystore files stored?

Go to "Build" -> "Generate Signed Bundle / APK" -> "Next" -> "Create new...". Save the keystore somewhere in the project tree, as we want the keystore to be a part of the repository. The name for the keystore should be "package. name.

What is a keystore for Android?

The Android Keystore system lets you store cryptographic keys in a container to make it more difficult to extract from the device. Once keys are in the keystore, they can be used for cryptographic operations with the key material remaining non-exportable.


1 Answers

Please use below command for linux, if you don't have keystore file:

 keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android 

Production keystore will generate when you are creating signed APK file.

Refer below link for information:

http://developer.android.com/tools/publishing/app-signing.html

like image 194
Saritha G Avatar answered Nov 02 '22 18:11

Saritha G