Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[UPG] Automatically merge a Theme into a Rom before flashing

OP dumfuq

26th June 2009, 12:45 PM   |  #1  
OP Retired Recognized Developer
Thanks Meter: 43
 
542 posts
Join Date:Joined: May 2009
I wrote this batch file to merge a theme and a rom into a signed update.zip in order to not have to flash twice or mix them by hand every time I update my phone.


Main assumptions in batch file:
1)Autosigning apk/zip files has already been set up on your computer ('java testsign something.zip' works in command console).
2)7-zip is installed on your computer and is also in your %PATH% ('7z.exe' works in command console).

How to do:
1)Rename mymerge.txt to mymerge.bat and place on Desktop.
2)Select the two zipfiles you want to merge and drag and drop onto mymerge.bat.
3)When asked which file is the primary zip, choose the main update ROM.
4)Choose whether to copy framework or framework and apps.
5)A signed file named “update.zip” will be created on your desktop


Warning:
This is a simple script. There is absolutely no error correction in this batch file. Use at your own risk.
Attached Files
File Type: txt mymerge.txt - [Click for QR Code] (1.6 KB, 44 views)
26th June 2009, 01:18 PM   |  #2  
sacredsoul's Avatar
Senior Member
Flag Singapore
Thanks Meter: 515
 
1,667 posts
Join Date:Joined: Feb 2007
More
Good job. Definitely useful.
26th June 2009, 02:17 PM   |  #3  
Senior Member
Thanks Meter: 299
 
1,795 posts
Join Date:Joined: Jan 2009
Only problem with this is.... what if some applications were updated in the new rom? Like when Maps, Camera, Launcher, etc. get an update? You are basically just throwing them out by flashing the older "themed" versions. Not saying this happens a lot, but when it does... you get people complaining XXX app is not the right one, and why do I have two gallery apps, and things of that nature.
26th June 2009, 02:46 PM   |  #4  
OP Retired Recognized Developer
Thanks Meter: 43
 
542 posts
Join Date:Joined: May 2009
Quote:
Originally Posted by daveid

Only problem with this is.... what if some applications were updated in the new rom? Like when Maps, Camera, Launcher, etc. get an update? You are basically just throwing them out by flashing the older "themed" versions. Not saying this happens a lot, but when it does... you get people complaining XXX app is not the right one, and why do I have two gallery apps, and things of that nature.


Yep. agreed. That is why i made an option to only copy the framework. I put the option for apps because i use a few pulled from different themes. That way I don't have to push them back on after flashing. My personal script puts the man pages in the rom as well.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes