Created
August 5, 2014 20:24
-
-
Save ikawka/071414997ada38be8258 to your computer and use it in GitHub Desktop.
Android deployment signing and alignment
This file contains 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
//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