[Android Themes] rikupw:
Zipalign .05h by Kastro & Riku

I guess i'll just keep this post updated, until I have completely moved into my new place ;) This is a zipalign script, by me and k4str0, just posting it here until I can get a little more situated and handle my own thread. please message me for assistance, instead of posting about this script, it's easy as heck to use, just put it on your computer, somewhere, run it in an empty directory, and BAM! it works. ;)

It requires the android-sdk 1.6r1+

for now i'm not going to release it as a thread, just post it here. here you go! I would suggest doing the following, plugging in your phone to your computer, creating an empty directory

opening up a terminal within that directory and executing the script from there ;)

it takes no extra work, just ./zipall.sh

what it will do is zipalign ALL APK'S on your phone, quite literally ALL APK'S that are installed, I should say :D including /system/framework :) jar's/apk's/zip's. all of 'em. man i must say, humungous speed boost with alot of apps ;)

a list of directories:

system apk's

/data/app_s
/system/app
/system/sd/app_s

data .apk's/.zips (the .zip are protected apps)

/data/app
/data/app-private
/system/sd/app
/system/sd/app-private

and the framework directory, for .apk/.jar

/system/framework

I will be unavailable for a few weeks, and don't want to have a gazillian posts on a thread to sift through---hence why i'm just posting it here for now ;) I know how useful it will be to themers. please keep in mind that using metamorph for now DOES IN FACT cancel out zipalign. however, one swipe of this script will fix everything.

have fun!

can also be found here:

thank you carneeki! :D

MIRROR: http://cyanogen-files.carneeki.net/zipall/00-zipall-latest.zip

MIRROR: http://grenslivia.mine.nu/~riku/android/zipall/00-zipall-latest.zip

Changelog from release:

.05f

:: fixed issue where if the android debug bridge wasn't running, user experience would most definitely lesson. If you have the old script, make sure the android debugger is already running in the background before you run the script, or you'll see why ;)

.05g

:: removed "only system" didn't see the point, now that zipalign is almost always applied anyway. for reference, this script CAN run in recovery, but I'm working on an option for it, to mount the partitions automatically, and umount them also. that's possibly the next 0.6a. :) test it for me?

.05h

:: fixed issues with busybox, realized not everyone has symlinked busybox, thank you again, morfic.

OPTIONS: (the help script)

Automagical Zipalign script for the Android OS
written by Kastro, heavily modified by rikupw
and I coudln't have gotten by without
a little help from my friends:
Stericson & morfic(many thanks)

this script is designed to use the
Android Debugging Bridge (AKA adb)
& zipalign tool from the Android-SDK 1.6r1 and up

Usage:"
-c: cleanup	-- will clean up your directory after completion
-h: help	-- display this dialog
-p: path	-- ./zipall.sh -p /path/to/android-sdk/tools
-r: rebot	-- reboot when script completes
-t: todo	-- lists the TODO header
-x: rm -rf	-- cleanup working directory of
zipall's output, and exits

I have found that it is extremely useful to use after having used the metamorph script, I am personally working on preparing a script to use ON THE PHONE, to do the same thing, but I wont release it until the zipalign has been ported, that's something that is NOT up my alley... yet ;)