Skip to content

Instantly share code, notes, and snippets.

@ikawka
Created August 5, 2014 20:24
Show Gist options
  • Save ikawka/071414997ada38be8258 to your computer and use it in GitHub Desktop.
Save ikawka/071414997ada38be8258 to your computer and use it in GitHub Desktop.
Android deployment signing and alignment
//generate your key
keytool -genkey -v -keystore my-release-key.keystore -alias my-app -keyalg RSA -keysize 2048 -validity 10000
//sign your apk
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore my-app-release-unsigned.apk my-app
//align apk zipalign is usually unnder Android/sdk/build-tools/19.1.0/
zipalign -v 4 my-app-release-unsigned.apk my-app-release.apk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment