Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,812,530 Members 42,457 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
digitalhigh
Old
(Last edited by digitalhigh; 2nd August 2012 at 05:11 AM.)
#1  
digitalhigh's Avatar
Recognized Developer - OP
Thanks Meter 5,398
Posts: 2,523
Join Date: Dec 2010
Location: Milwaukee, WI

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

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

Like what I do? Maybe you'll like my band too. I sing.

http://www.facebook.com/Corruptable
The Following 33 Users Say Thank You to digitalhigh For This Useful Post: [ Click to Expand ]
 
digitalhigh
Old
#2  
digitalhigh's Avatar
Recognized Developer - OP
Thanks Meter 5,398
Posts: 2,523
Join Date: Dec 2010
Location: Milwaukee, WI

 
DONATE TO ME
Reserved?

Like what I do? Maybe you'll like my band too. I sing.

http://www.facebook.com/Corruptable
The Following 4 Users Say Thank You to digitalhigh For This Useful Post: [ Click to Expand ]
 
-Grift-
Old
#3  
-Grift-'s Avatar
Recognized Contributor
Thanks Meter 1,944
Posts: 4,494
Join Date: Jan 2011
Location: Singapore
Thanks and rated! Very interesting!




Devices That I Have Rooted/Flashed/S-OFF
Asus Google Nexus 7 2012
LG GT540 Optimus Swift
LG Optimus 4X HD P880
LG Google Nexus 5 (Active)
Samsung Galaxy Mini
Samsung Galaxy Ace
Samsung Galaxy Note
Samsung Galaxy S II (<-- Awesome Device)
HTC Sensation XE

 
wbchristmas
Old
#4  
Senior Member
Thanks Meter 41
Posts: 381
Join Date: Aug 2009
Location: Daytona Beach, Florida
Subscribed!



Sent from my PG86100 using Tapatalk 2
Have I helped in my contributions to the forum?

Hit thanks!
 
stenka85
Old
#5  
Member
Thanks Meter 13
Posts: 79
Join Date: Jan 2010
Interesting and suscribed, need a powerful automated script for ics/jb, thanks man.
 
stenka85
Old
#6  
Member
Thanks Meter 13
Posts: 79
Join Date: 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)
 
vimi93
Old
#7  
vimi93's Avatar
Senior Member
Thanks Meter 69
Posts: 318
Join Date: Oct 2011
Location: DNH UT
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?
 
Un.Knowen
Old
#8  
Un.Knowen's Avatar
Senior Member
Thanks Meter 82
Posts: 190
Join Date: Sep 2011
Location: Damascus
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
 
XGr7078
Old
#9  
XGr7078's Avatar
Senior Member
Thanks Meter 40
Posts: 292
Join Date: Dec 2011
Location: Durgapur
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
http://forum.xda-developers.com/signaturepics/sigpic4365046_2.gif
 
digitalhigh
Old
#10  
digitalhigh's Avatar
Recognized Developer - OP
Thanks Meter 5,398
Posts: 2,523
Join Date: Dec 2010
Location: Milwaukee, WI

 
DONATE TO ME
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.

Like what I do? Maybe you'll like my band too. I sing.

http://www.facebook.com/Corruptable

The Following User Says Thank You to digitalhigh For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes