FORUMS
Remove All Ads from XDA

One Click Rom/Theme Optimizer and Signer

1,003 posts
Thanks Meter: 109
 
By ASimmons, Retired Recognized Developer on 11th October 2010, 09:03 PM
Post Reply Email Thread
This tool will open any AOSP based rom or theme (as long as the file structure is correct) and optimize and zip align everything.

Simply grab your rom or theme and place it in this folder (should work from anywhere but you need to full path from where the cmd file is run). Now click on the reopto_runner.cmd and it will ask you where the rom is (name) that you want to optomize, type the name of the rom and hit enter, it will do the rest.

Final output of the re-optimized (double pass with 2 different png optimizers) rom will be named rom-optoed-signed-finished.zip this will be exactly the same rom except the script will optomize every png in every apk found in the system/app and system/framework-res.apk. It will also zipalign all these same apks and finally will sign the zip file. When its done just rename the rom-optoed-signed-finished.zip to what ever you want and its ready to flash.

What this won't do is make your zip file (rom, theme, update zip) flashable unless its already set up to be flashable... meaning you'll still need your update-script in the com.google.android folder to be there. Its does sign your zip file for you though.

I put this out there as its some of the scripting and tools I have made to help me in theming and rom hacking.

Feel free to use any part of this to help you in any scripting you do.
Attached Files
File Type: zip opto_signer.zip - [Click for QR Code] (867.1 KB, 1082 views)
The Following User Says Thank You to ASimmons For This Useful Post: [ View ] Gift ASimmons Ad-Free
 
 
11th October 2010, 10:50 PM |#2  
Cetus Corr's Avatar
Senior Member
Flag San Jose
Thanks Meter: 69
 
More
Sweet, you are the man. Going to try it out now.
11th October 2010, 10:53 PM |#3  
Senior Member
Flag Pittsburgh
Thanks Meter: 399
 
More
I'm going to try this on the MIUI ROM!
11th October 2010, 11:17 PM |#4  
ASimmons's Avatar
OP Retired Recognized Developer
Flag Tampa Bay
Thanks Meter: 109
 
More
Quote:
Originally Posted by Cetus Corr

Sweet, you are the man. Going to try it out now.

Quote:
Originally Posted by teejaymarx

I'm going to try this on the MIUI ROM!

I have only tried this method on AOSP based roms the script should work on any rom or theme or update zip that follow this structure in the top level. system/app/*apk and system/framework/framework-res.apk, which is pretty much all of them.

The script takes about 10 minutes or so to run on cm6 rom and is really quick on most of the themes here. So for instance you could use it to make sure or re optimize a theme or roms.

feel free to tire it apart and use it in other fashions. I can guarantee it will shave some about of space of any rom or theme along with the zip aligning of every apk. If its a short request I'll post some more automated tiny scripts to todo various stuff.
11th October 2010, 11:29 PM |#5  
vampir4997's Avatar
Senior Member
Thanks Meter: 250
 
More
Little confused. I run any aosp rom through this and it makes it compatable with the hero? ( sorry for the newb question)

Sent from my Hero CDMA using XDA App
11th October 2010, 11:36 PM |#6  
Senior Member
Flag Pittsburgh
Thanks Meter: 399
 
More
Didn't work for me on the MIUI ROM, got a status 0 error in clockwork recovery...lol
11th October 2010, 11:48 PM |#7  
ASimmons's Avatar
OP Retired Recognized Developer
Flag Tampa Bay
Thanks Meter: 109
 
More
Quote:
Originally Posted by vampir4997

Little confused. I run any aosp rom through this and it makes it compatable with the hero? ( sorry for the newb question)

Sent from my Hero CDMA using XDA App

No I haven't released that script yet. This just optimizes a rom that's all.

Sent from my HERO200 using XDA App
11th October 2010, 11:51 PM |#8  
ASimmons's Avatar
OP Retired Recognized Developer
Flag Tampa Bay
Thanks Meter: 109
 
More
Quote:
Originally Posted by teejaymarx

Didn't work for me on the MIUI ROM, got a status 0 error in clockwork recovery...lol

Not sure what you did... this is not a flashable zip just a tool to optimize a rom.

Did you run this tool on the miui rom?


Sent from my HERO200 using XDA App
12th October 2010, 10:47 PM |#9  
jschill31's Avatar
Senior Member
Flag Midwest
Thanks Meter: 165
 
More
Hello,
New to the "kitchen", items like this help us out! Thank you and looking forward to your other scripts. Any desire to do a "how to port a theme/rom" guide? Love the Screaming Droid, I laugh every time I boot up one of my 2.2 roms. I also use your R2 boot but I have yet to get sound on 2.1? Anyway a big thanks goes out to you!
13th October 2010, 12:25 AM |#10  
ASimmons's Avatar
OP Retired Recognized Developer
Flag Tampa Bay
Thanks Meter: 109
 
More
Quote:
Originally Posted by jschill31

Hello,
New to the "kitchen", items like this help us out! Thank you and looking forward to your other scripts. Any desire to do a "how to port a theme/rom" guide? Love the Screaming Droid, I laugh every time I boot up one of my 2.2 roms. I also use your R2 boot but I have yet to get sound on 2.1? Anyway a big thanks goes out to you!

Thank you for the praise, wife been complaining about doing stuff for free so I might have to post my pay pal account with a wife complaining button.

I might just release a script that does it for you. mdpi to mdpi (or hdpi to hdpi) no matter what rom is fairly easy todo. Of course it can only theme what it can match but it will do it for you.

For a more in depth description would take some time so I'll probably have to do it some time later.
13th October 2010, 03:48 AM |#11  
jschill31's Avatar
Senior Member
Flag Midwest
Thanks Meter: 165
 
More
[QUOTE=ASimmons;8590969]Thank you for the praise, wife been complaining about doing stuff for free so I might have to post my pay pal account with a wife complaining button.

I might just release a script that does it for you. mdpi to mdpi (or hdpi to hdpi) no matter what rom is fairly easy todo. Of course it can only theme what it can match but it will do it for you.



I totally understand, my wife and I have our first child on the way. I am always around so take your time. BTW, I think you would get some clicks your work is solid. I wish XDA had a "thanks" button!
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes