Skip to content

Instantly share code, notes, and snippets.

@imshaiknasir
Last active June 30, 2022 19:30
Show Gist options
  • Save imshaiknasir/877ab1071c07d5e9fa2eddfadc034a63 to your computer and use it in GitHub Desktop.
Save imshaiknasir/877ab1071c07d5e9fa2eddfadc034a63 to your computer and use it in GitHub Desktop.
How to Sign an APK

Create a key using

keytool -genkey -v -keystore whateverName.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

Sign the apk

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore whateverName.keystore my_application.apk alias_name

@flaan4me
Copy link

Hi

@flaan4me
Copy link

keytool -genkey -v -keystore whateverName.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment