Search code examples
androidapkzipalign

Is there a way to test if an APK is correctly zipaligned


Our customer uploaded the APK himself and has reported that the APK is not aligned. Which surprised me a lot and is rather embarrassing.

Before supplying a new APK I wonder if there is a way to test if an APK is correctly aligned.

There is of course zipalign -c — but this produces no output. Does no output mean success? Or is it in the return value? Or is there another tool which can do it better?


Solution

  • Use

    zipalign -c -v 4 'path-to-apk'
    

    -v flag gives you verbose output.