Zipaligning is when a dev uses the zipalign utility to make sure that an app has all the correct permissions to run, and also optimizes the app at the same time.
Now op, it really depends on the dev. They can include zipalign and a script to use it, but it really isn't that useful after the ROM is compiled. Cm doesn't include the zipalign binary by default, it has to be added in by your dev or yourself.
Just download zipalign and place it in /system/bin or xbin, and make sure its permissions are 755 or rwxrw-rw-.
As per the script to use zipalign at boot. Copy and paste this into a file named 99-zipalign into your etc/init.d folder with 755 perms.
Code:
#! system/bin/sh
# zipaligns at boot.
# christen ford
if [ -f /system/bin/zipalign ]; then
chmod u+rwx,go+rw /system/bin/zipalign
su /system/bin/zipalign
elif [ -f /system/xbin/zipalign ]; then
chmod u+rwx,go+rw /system/xbin/zipalign
su /system/xbin/zipalign
fi
This will run a script that zipaligns at boot. It will check for zipaligns presence in either bin or xbin and if found will run it. The 99 in front of the script name ensures it is run last, to make sure it doesn't interrupt any other scripts and cause a bootloop. It also makes sure it has the correct perms before it is run.
Sent from my SPH-L710 using Tapatalk 2