What is difference between 'debug.keystore' and 'release.keystore' in Android?
Asked Answered
L

6

34

Recently, I was working with Android Maps V2. I came across debug.keystore and release.keystore. What is the difference between them? Why do we have to use both?

Leash answered 19/2, 2014 at 12:11 Comment(4)
developer.android.com/tools/publishing/app-signing.htmlAdmissible
@ chitan khetiya... Please tell the difference between normal export, Export Signed Application package & Export unsigned Application packageLeash
@Anilkumar tell us what you know so we can guide you forward.Comely
@Comely I know about both of them & I used also... But posted this question to know about them in detail.. See the accepted answer by Mr. Hardik.. that's exact answer I required.. Thanx for ur timeLeash
D
14
  • debug.keystore is merely for developing and testing purposes, so using that you can't release your app to Google Play using that only.

    Caution: You should not release your application to the public (via any source) when signed with the debug certificate.

  • release.keystore is required only when you want to release your app to any app store.
    For more information, see Signing Your Applications, subsection Signing in Release Mode.

Derna answered 19/2, 2014 at 12:24 Comment(3)
I used debug.keystore to upload my app for alpha testing. But why does it create a problem when we move to production?Pyaemia
@anish because the app in production mode requires the APK to be signed in release mode.Derna
thanks i changed it. But it did accept my apk file signed in debug mode tooPyaemia
I
5

You can work on developing the Android app with debug.keystore. The release.keystore will be need when your app is ready to be submitted as an app on Play Store.

Impalpable answered 19/2, 2014 at 12:14 Comment(0)
P
4

debug.keystore you call for testing purposes for developers, because it contains the default alias and default key password and also by using this you can not publish your app into the play store.

release.keystore you call for the final app certification keystore. This keystore has its own alias and own key password. And for every new publish of your app, you must generate an signed APK file by using this keystore.

For more information, see Signing Your Applications.

Pearliepearline answered 19/2, 2014 at 12:21 Comment(0)
B
4

debug.keystore is used at the time of development, where as release.keystore will be used at product release... link

Br answered 19/2, 2014 at 12:50 Comment(0)
G
3

You cannot publish your app to Google Play with debug.keystore, and users won't be able to download your app.

Gaynellegayner answered 19/2, 2014 at 12:17 Comment(1)
I don't think this is correct, keystore is nothing but a signing file to avoid tampering. You probably mean you cannot publish your app with debug variant.Saga
A
2

debug.keystore is used to generate Google Map API V2 key for Debug purpose . release.keystore is used to generate map key before uploading app to Google Play.

Adulate answered 19/2, 2014 at 12:18 Comment(1)
Keystores are not even related with Google Map API, but you can use the keystore hashes to restrict the availability of your Map APISaga

© 2022 - 2024 — McMap. All rights reserved.