Skip to content

Instantly share code, notes, and snippets.

@MuriloMazzeu
Last active September 8, 2017 17:46
Show Gist options
  • Save MuriloMazzeu/fad4b09ae9f4f150c2181ca8c5fc273f to your computer and use it in GitHub Desktop.
Save MuriloMazzeu/fad4b09ae9f4f150c2181ca8c5fc273f to your computer and use it in GitHub Desktop.
Android's CLI
keytool -genkey -v -keystore PATH_TO/MYAPP.KEYSTORE -alias MYAPP_ALIAS -keyalg RSA -keysize 2048 -validity 100000
jarsigner -sigalg SHA1withRSA -digestalg SHA1 -keystore PATH_TO/MYAPP.KEYSTORE PATH_TO/MY_UNSIGNED_RELEASE.APK MYAPP_ALIAS
zipalign -f -v 4 PATH_TO/MY_UNSIGNED_RELEASE.APK PATH_TO/MY_SIGNED_RELEASE.APK
adb shell pm setInstallLocation 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment