signApk.sh
#!/bin/bash #$1 signed and unaligned apk
#$2 unsigned apk
#$3 aligned apk #./signApk.sh test-signed.apk test-unsigned.apk test-aligned.apk jarsigner -keystore ./test.keystore -storepass 123456 -keypass 123456 -signedjar $1 $2 test.keystore
#execute ZIPALIGN
ZIPALIGN -v 4 $2 $3
#verify *****ZIPALIGN CONFIRMED
ZIPALIGN -c -v 4 $3