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

[TOOL][LINUX]ROMzilla - Batch ROM Decompile/Deodex/Build .apk and .jars! (8/1/12)

OP digitalhigh

22nd July 2012, 07:32 AM   |  #1  
digitalhigh's Avatar
OP Recognized Developer
Flag Milwaukee, WI
Thanks Meter: 7,957
 
2,913 posts
Join Date:Joined: Dec 2010
Donate to Me
More
Here is ROMzilla Version 0.2.

http://d-h.st/pkp

First and foremost, I have fixed the issue with it not rebuilding files properly. Everything should go exactly where it's supposed to now.

The other modifications are numerous and subtle.

It will now deodex any odexed .zip you throw at it.

Included checking in numerous places for nonexistent files, folders, etc.

Merged routines for .jars and .apks.

You're now presented with one of three extraction options. Full, Custom, or Boot. Full will scan for all files in /app and /framework folders, and gut them into their respective folders in /edits.

Custom will extract anything you list in /scripts/custommod.txt. Be sure to include the full path from /system/. Ex: /system/app/FooApp.apk

Boot won't do anything for now. The line is commented out. I have the extraction down, but rebuilding needs some love yet.


For compiling, if existing /modded folder exists from previous compile, you will be prompted to backup. Files will be overwritten otherwise.

You will then be asked if you want to compile Full, Custom, or Boot.

Full will rebuild all folders found inside edits/system/framework and edits/system/app.

Custom will rebuild all folders specified in /scripts/custommod.txt.

Boot won't do squat right now.


Changes:

Added checking for existing /edits and/or /modded folders. Presents option to back up and then remove folders for clean extractions/rebuilds.

Added checking for existing working dir - skips .zip extraction if working dir found.

Created /in folder as location to look for .zip files to extract.

Renamed primary output folder to /extracted.

That's it for now.

http://d-h.st/pkp



Usage:

./ROMzilla.sh -d ROMNAME.zip
./ROMzilla.sh -d ROMFOLDERNAME

-Decompile ROM


./ROMzilla.sh -b ROMFOLDERNAME

-Compile files in -b
Last edited by digitalhigh; 2nd August 2012 at 06:11 AM.
The Following 33 Users Say Thank You to digitalhigh For This Useful Post: [ View ]
22nd July 2012, 07:32 AM   |  #2  
digitalhigh's Avatar
OP Recognized Developer
Flag Milwaukee, WI
Thanks Meter: 7,957
 
2,913 posts
Join Date:Joined: Dec 2010
Donate to Me
More
Reserved?
The Following 4 Users Say Thank You to digitalhigh For This Useful Post: [ View ]
22nd July 2012, 08:52 AM   |  #3  
-Grift-'s Avatar
Recognized Contributor
Flag Singapore
Thanks Meter: 1,959
 
4,498 posts
Join Date:Joined: Jan 2011
More
Thanks and rated! Very interesting!
22nd July 2012, 10:56 PM   |  #4  
Senior Member
Daytona Beach, Florida
Thanks Meter: 41
 
387 posts
Join Date:Joined: Aug 2009
More
Subscribed!



Sent from my PG86100 using Tapatalk 2
27th July 2012, 06:57 PM   |  #5  
Member
Thanks Meter: 13
 
81 posts
Join Date:Joined: Jan 2010
Interesting and suscribed, need a powerful automated script for ics/jb, thanks man.
28th July 2012, 03:51 AM   |  #6  
Member
Thanks Meter: 13
 
81 posts
Join Date:Joined: Jan 2010
Tested, works good, except for building and add folder res, resources.asrc into final apk, the script inject the entire folder into apk (/home/blabla/edits/rom/xxx.apk/res)
31st July 2012, 03:21 PM   |  #7  
vimi93's Avatar
Senior Member
Flag DNH UT
Thanks Meter: 69
 
325 posts
Join Date:Joined: Oct 2011
More
CLASS WORK DEV.
i have a small question
can i use this tool to cook rom of my huawei ideos x6?
what changes do i need to do?
31st July 2012, 08:25 PM   |  #8  
Un.Knowen's Avatar
Senior Member
Flag Damascus
Thanks Meter: 98
 
195 posts
Join Date:Joined: Sep 2011
More
Angry Credits
Thanks Man
I'm just Learning to be a Developer
This will Help a Lot
All Credits in future will go to you
31st July 2012, 10:55 PM   |  #9  
XGr7078's Avatar
Senior Member
Flag Durgapur
Thanks Meter: 40
 
293 posts
Join Date:Joined: Dec 2011
More
Thumbs up Nice Work!!!!!!!
I am not from a linux background so I would like ask some to make it for the Windows. I'll be waiting.

Thanks:xgr7078
1st August 2012, 12:50 AM   |  #10  
digitalhigh's Avatar
OP Recognized Developer
Flag Milwaukee, WI
Thanks Meter: 7,957
 
2,913 posts
Join Date:Joined: Dec 2010
Donate to Me
More
Hey guys, sorry, yes, I realized yesterday that the rebuild function was inserting full folders into the target files. I'm working on updating my device's root OTA file today, but when I get a chance, I will update the script. If someone else would like to do so in the meantime, you're more than welcome to.

The Following User Says Thank You to digitalhigh For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes