Android does not compress resources.arsc allowing it to be
read directly without uncompressing. When opticharger runs,
it compresses it breaking the optimization.
Change-Id: I9c9b9971a3fe4a21be5a633274832041ca9a33c1
This fixes market updates and redundant
*.old files from being packaged- looks to
save about 10MB on the zip.
Change-Id: I82266204de3a04f71b24e4183672185d6b2da8d9
Now uses $OUT/../../../host instead of $ANDROID_BUILD_TOP/out/host
fixes build when used with OUT_DIR_COMMON_BASE
Change-Id: Ib1934b57f3e94a3c3af10189c803fc494438a4a4
But fallback to optipng -o7 and then pngout.
This saves ~2M in final .zip size at a cost of ~5 min of build time on
my laptop.
Change-Id: Ic56f677bdc8250f4088f4dbfbfd555ceed5616c2
Signed-off-by: Evan McClain <aeroevan@gmail.com>
aapt's -0 option is for extensions only, not directories, and PinyinIME
needs .dat to be excluded. Nothing else in CM7 uses a .dat file, so
this shouldn't increase the .apk size more than is needed.
Also adding .dict, which isn't strictly required, but LatinIME wants it.
Nothing in CM7 but LatinIME uses .dict.
Change-Id: I7ce1b2cbc2b32c734978488aac2f4f6c43562cc1
The verbose output of opticharger can obscure warning messages about missing
tools so this patch reduces the noise.
The script leaves droppings in /tmp so clean this up on exit using a trap.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>