Steps for Manual Signing the apk/aab (Commands)

Modified on Fri, 22 Jul 2022 at 05:27 PM

For Signing aab file, you can use the following commands:

Jarsigner:  

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore $YOUR-KEY-STORE-PATH $UNSIGN-APK-PATH $ALIAS-NAME


Jarsigner Verification: 

jarsigner -verify -verbose -certs $UNSIGN-APK-PATH


zipalign: 

zipalign -v -p -f 4 $UNSIGN-APK-PATH $OUTPUT-APK-PATH

For Signing apk file, you can use the following commands: 


zipalign:

zipalign -v -p -f 4 $UNSIGN-APK-PATH $ ZIP_ALIGNED_APK_PATH


apksigner:

apksigner sign --ks=YOUR_KEY_STORE_PATH --ks-key-alias=YOUR_ALIAS_NAME --ks-pass=pass:ALIAS_PASSWORD --key-pass=pass:KEY_PASSWORD --out $OUTPUT_APK_PATH $ZIP_ALIGNED_APK_PATH


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article