Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check if apk is zip aligned?

Is there any possibility to check if an apk file is zip aligned?

like image 952
goon Avatar asked Jan 29 '16 12:01

goon


People also ask

What is aligned APK?

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.

Is Zipalign mandatory?

Caution: You must use zipalign at one of two specific points in the app-building process, depending on which app-signing tool you use: If you use apksigner, zipalign must only be performed before the APK file has been signed.

Do I need to Zipalign AAB?

APK zipalign There are no problems with installation and execution without zipalign, but it may fail when registering with the App Market for distribution. For AAB files, there is no official guide to zipalign, so it is not required.


1 Answers

I just found the verification command: zipalign -c -v 4 application.apk

From here : ZipAlign verification

like image 102
goon Avatar answered Oct 05 '22 12:10

goon