0% found this document useful (0 votes)
122 views2 pages

Android Generate Release - Debug Keystores (Example)

The document provides instructions for generating keystores that are used to sign Android apps for release and debug. It explains how to generate a debug keystore using specific alias and password values dictated by Google. It also explains how to generate a release keystore and print fingerprints for integrating apps with services like Google APIs.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
122 views2 pages

Android Generate Release - Debug Keystores (Example)

The document provides instructions for generating keystores that are used to sign Android apps for release and debug. It explains how to generate a debug keystore using specific alias and password values dictated by Google. It also explains how to generate a release keystore and print fingerprints for integrating apps with services like Google APIs.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Android: Generate Release/Debug Keystores (Example) about:reader?url=https://coderwall.com/p/r09hoq/andr...

coderwall.com

Android: Generate Release/Debug


Keystores (Example)
Matt

2 minutos

Generate Keystores

To generate keystores for signing Android apps at the command


line, use:

$ keytool -genkey -v -keystore my-key.keystore


-alias alias_name -keyalg RSA -keysize 2048
-validity 10000
A debug keystore which is used to sign an Android app during
development needs a specific alias and password combination
as dictated by Google. To create a debug keystore, use:

$ keytool -genkey -v -keystore debug.keystore


-storepass android -alias androiddebugkey
-keypass android -keyalg RSA -keysize 2048
-validity 10000
Keystore name: "debug.keystore"

Keystore password: "android"

Key alias: "androiddebugkey"

Key password: "android"

CN: "CN=Android Debug,O=Android,C=US"

1 of 2 23/02/2021 23:31
Android: Generate Release/Debug Keystores (Example) about:reader?url=https://coderwall.com/p/r09hoq/andr...

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

For your release keystore, do the same as above but choose a


name, alias, and password that you prefer.

Get Key Fingerprints

To hook your app up with services like Google APIs you'll need
to print out each of your keys' fingerprints and give them to the
services you're using. To do that, use:

$ keytool -list -v -keystore [keystore path]


-alias [alias-name] -storepass [storepass]
-keypass [keypass]
For your debug key that would look like:

$ keytool -list -v -keystore debug.keystore


-alias androiddebugkey -storepass android
-keypass android

2 of 2 23/02/2021 23:31

You might also like