Created
May 5, 2017 16:09
-
-
Save jonathanpeppers/8c4d297326640d77407411d572f55f49 to your computer and use it in GitHub Desktop.
Android debug key generator - takes a Google Play keystore and converts it to one that can be used for debugging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Change these variables for your keystore | |
KEYSTORE="iap.keystore" | |
ALIAS="iap" | |
PASSWORD="YOUR_KEYSTORE_PASSWORD" | |
# These are variables that Xamarin.Android expects | |
OUT_KEYSTORE="debug.keystore" | |
OUT_ALIAS="androiddebugkey" | |
OUT_PASSWORD="android" | |
cp -f $KEYSTORE $OUT_KEYSTORE | |
keytool -changealias -keystore $OUT_KEYSTORE -alias $ALIAS -destalias $OUT_ALIAS -storepass $PASSWORD | |
keytool -keypasswd -keystore $OUT_KEYSTORE -alias $OUT_ALIAS -new $OUT_PASSWORD -storepass $PASSWORD | |
keytool -storepasswd -keystore $OUT_KEYSTORE -new $OUT_PASSWORD -storepass $PASSWORD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment