These are a few Android command line tools and their options which I always have to look up …
Listing the aliases from a keystore file:
keytool -list -keystore /location/of/your/com.example.keystore
Sign apk:
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore my_application.apk alias_name
Zip align apk:
zipalign -v 4 your_project_name-unaligned.apk your_project_name.apk
Be First to Comment