Skip to content

Instantly share code, notes, and snippets.

@JuanjoSalvador
Created November 2, 2017 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JuanjoSalvador/db23838d63200f70c2851f164825b6db to your computer and use it in GitHub Desktop.
Save JuanjoSalvador/db23838d63200f70c2851f164825b6db to your computer and use it in GitHub Desktop.
APK signer for Android development
#!/bin/bash
# Fill the empty vars and place it on /usr/local/bin/
# Run it by:
# $ apksigner <apk file>
PACKAGE=$1
KEYSTORE=<YOUR KEYSTORE FILE HERE>
ALIAS=<YOUR KEY ALIAS HERE>
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore $KEYSTORE $PACKAGE $ALIAS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment