wiki:sign_android_apk_terminal
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
wiki:sign_android_apk_terminal [2021/02/07 12:20] – add Migrate keystore antisa | wiki:sign_android_apk_terminal [2021/02/07 13:01] (current) – add Zipalign the apk antisa | ||
---|---|---|---|
Line 17: | Line 17: | ||
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore my_application.apk alias_name | jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore my_application.apk alias_name | ||
+ | |||
+ | ===== Zipalign the apk ===== | ||
+ | This is required for uploading to the Play Store. It aligns the data in apk to start on 4 byte boundaries for faster memory access and reduced memory consumption. | ||
+ | |||
+ | Install tool | ||
+ | |||
+ | sudo apt install zipalign | ||
+ | |||
+ | Align | ||
+ | |||
+ | zipalign -v 4 my_application.apk-signed.apk my_application.apk-signed-aligned.apk | ||
====== Tested on ====== | ====== Tested on ====== |
wiki/sign_android_apk_terminal.1612700446.txt.gz · Last modified: 2021/02/07 12:20 by antisa