Skip to content

Frequently Used Android Commands

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
Leave a Reply

Your email address will not be published.