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
Feedback sent
We appreciate your effort and will try to fix the article