title: Does Corona SDK automatically align apk's when you build for Android?
body: <p>I'm just wondering if step 4 is included in Corona's build process, or if you have to do it manually.</p>
  
  <p><a href="https://developer.android.com/tools/help/zipalign.html" rel="nofollow">https://developer.android.com/tools/help/zipalign.html</a></p>
  
  <p>[4.] Align the final APK package</p>
  
  <p>Once you have signed the APK with your private key, run zipalign on the file. This tool ensures that all uncompressed data starts with a particular byte alignment, relative to the start of the file. Ensuring alignment at 4-byte boundaries provides a performance optimization when installed on a device. When aligned, the Android system is able to read files with mmap(), even if they contain binary data with alignment restrictions, rather than copying all of the data from the package. The benefit is a reduction in the amount of RAM consumed by the running application.</p>
  
  <p>The zipalign tool is provided with the Android SDK, inside the tools/ directory. To align your signed APK, execute:</p>
  
  <p>$ zipalign -v 4 your_project_name-unaligned.apk your_project_name.apk
  The -v flag turns on verbose output (optional). 4 is the byte-alignment (don't use anything other than 4). The first file argument is your signed .apk file (the input) and the second file is the destination .apk file (the output). If you're overriding an existing APK, add the -f flag.</p>
  
  <p>Caution: Your input APK must be signed with your private key before you optimize the package with zipalign. If you sign it after using zipalign, it will undo the alignment.</p>
  
  <p>For more information, read about the zipalign tool.</p>