Skip to content

Instantly share code, notes, and snippets.

@pratamawijaya
Forked from caingougou/sign_apk.sh
Created January 24, 2018 09:09
Show Gist options
  • Save pratamawijaya/b2c42bfdb107a88f7ab1d5e21c413b89 to your computer and use it in GitHub Desktop.
Save pratamawijaya/b2c42bfdb107a88f7ab1d5e21c413b89 to your computer and use it in GitHub Desktop.
Create keystore file and sign a jar file (or android package)
# create keystore file
keytool -genkey -v -keystore [my-release-key].ketstore -keyalg RSA -validity 1000 -alias [some_alias]
# sign package
jarsigner -keystore my-release-key.ketstore [some-release-unsigned.apk] some_alias
# verify signed package
jarsigner -verify [some-release-unsigned.apk]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment