Skip to content

Instantly share code, notes, and snippets.

@borgogelli
Forked from caingougou/sign_apk.sh
Created July 23, 2018 07:35
Show Gist options
  • Save borgogelli/3fe42d415a22d70ba707ae33cb6f10d2 to your computer and use it in GitHub Desktop.
Save borgogelli/3fe42d415a22d70ba707ae33cb6f10d2 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