读书人

Android Tools研究研讨一:zipalign

发布时间: 2013-01-26 13:47:01 作者: rapoo

Android Tools研究探讨一:zipalign

The adjustment is made by altering the size of the "extra" field in the zip Local File Header sections. Existing data in the "extra" fields may be altered by this process.

For more information about how to use zipalign when building your application, please read?Signing Your Application.

Usage

To align?infile.apk?and save it as?outfile.apk:

zipalign [-f][-v]<alignment> infile.apk outfile.apk

To confirm the alignment of?existing.apk:

zipalign -c -v <alignment> existing.apk

The?<alignment>?is an integer that defines the byte-alignment boundaries. This must always be 4 (which provides 32-bit alignment) or else it effectively does nothing.

Flags:

读书人网 >Android

热点推荐