zipalign is a zip archive alignment tool. It ensures that all uncompressed files in the archive are aligned relative to the start of the file. This allows those files to be accessed directly via mmap(2), removing the need to copy this data in RAM and reducing your app's memory usage. zipalign是一种zip归档对齐工具。它确生存档中全部未压缩的文件都与文件的开头对齐。这答应通过mmap直接访问这些文件,无需将这些数据复制到RAM中,并镌汰应用步伐的内存利用。
zipalign should be used to optimize your APK file before distributing it to end-users. This is done automatically if you build with Android Studio. This documentation is for maintainers of custom build systems. 在将APK文件分发给用户之前,应利用zipalign优化APK文件。假如您利用Android Studio进行构建,这将自动完成。本文档面向定制构建体系的维护职员。