zipalign

Zip archive alignment tool. Part of the Android SDK build tools. More information: <https://developer.android.com/studio/command-line/zipalign>.

Install

All systems
curl cmd.cat/zipalign.sh
Debian Debian
apt-get install zipalign
Ubuntu
apt-get install zipalign
image/svg+xml Kali Linux
apt-get install zipalign
Windows (WSL2)
sudo apt-get update sudo apt-get install zipalign
Raspbian
apt-get install zipalign

Zip archive alignment tool. Part of the Android SDK build tools. More information: <https://developer.android.com/studio/command-line/zipalign>.

  • Align the data of a ZIP file on 4-byte boundaries:
    zipalign 4 path/to/input.zip path/to/output.zip
  • Check that a ZIP file is correctly aligned on 4-byte boundaries and display the results in a verbose manner:
    zipalign -v -c 4 path/to/input.zip

© tl;dr; authors and contributors