CDADMK: SOLD
It looks like my Sultan is drunk #NFTs, we will send your medicine ASAP :D $XEC #eCash #P2P pic.twitter.com/7weHc2XrER
— Gaexe (@gaexe_) November 19, 2024
Recently, I encountered a unique case while developing a Flutter application where I needed to generate an SHA key using both the release and debug keystore. While there were no significant issues with the release keystore, how about the debug one?
While reading several posts on the internet to learn more about signing Android apps, I came across articles explaining how to sign an app and what to do if you lose your keystore file or password.
The question I want to address here is: I’ve never created a keystore before, and I don’t know its alias or password. How can I deal with forgetting the password or the keystore itself?
I know that the default password for Android is "android". If I forget this default password, is there a way to resolve the issue? Additionally, I want to know what the default alias is if the default password is "android". Finally, are there alternative ways to create a new keystore?
The Android build tools provide a debug signing mode that simplifies developing and debugging applications while meeting Android system requirements for signing APKs. When using debug mode to build an app, the SDK tools automatically invoke Keytool to create a debug keystore and key. This debug key is then automatically used to sign the APK, so developers don’t have to manually sign the package with their own key.
The SDK tools create the debug keystore/key with the following predefined names and passwords:
- Keystore name:
debug.keystore
- Keystore password:
android
- Key alias:
androiddebugkey
- Key password:
android
- CN:
CN=Android Debug,O=Android,C=US