You can use zipalign -h to see the full set of flags supported.Ĭontent and code samples on this page are subject to the licenses described in the Content License. ![]() To confirm the alignment of existing.apk: zipalign -c -v 4 existing.apk To align infile.apk and save it as outfile.apk: zipalign -p -f -v 4 infile.apk outfile.apk Other files, whose alignment is determined by the mandatory alignment argument to zipalign, StudioĪligns to 4 bytes on both 32-bit and 64-bit systems. To ensure that they're aligned to a 4KiB page boundary suitable for mmap(2). Existing data in the "extra" fields may be altered by this process.įor more information about how to use zipalign when building your application, please read The alignment is achieved by altering the size of the "extra" field in the zip Local File Header Zipalign must only be performed after the APK file has been signed. ![]() If you sign yourĪPK using apksigner and make further changes to the APK, its signature is invalidated. ![]() ![]() Must only be performed before the APK file has been signed. Caution: You must use zipalign at one of two specific points in theĪpp-building process, depending on which app-signing tool you use:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |