Former Writer · Jul 31, 2012 at 11:00 am

ROMzilla Brings Batch ROM Decompiling and Recompiling to Linux

When it comes to compiling and decompiling ROMs, many chefs don’t have the biggest assortment of tools available. When devs need to grab some apk files and edit them, they have to extract the proper files and use a tool to decompile them. When this needs to be done over and over again, as in a properly supported ROM that isn’t built from source, the task can become quite tedious. That said, there is now a tool that’ll take apk files out of ROMs and decompile them all in one step.

Dubbed ROMzilla, it is comprised of two main scripts that will extract and decompile apk and jar files and then recompile them, inserting them back into the ROM when done. Developed by XDA Senior Member digitalhigh, the scripts are quite helpful for devs who maintain ROMs who only ever need to grab a few files at a time.

Users first edit two text files called apk.txt and jar.txt. These are then edited to include the path of any apk and jar files that they regularly work with. Afterward, users run ROMzilla, which extracts and decompiles all the files mentioned in the two text files. Once done, simply run the script to reverse the process, and the files will be made available to drop right back into the ROM. As digitalhigh explains:

Please keep in mind – this wasn’t necessarily written for final ROM production – although it could easily be used for such. This is more for those of you who are looking for a way to quickly recompile several files – repeatedly if needed without destroying the original ROM files or removing the source code. I will work to add more features as I have time. I will eventually be including an option to zipalign, rezip, and sign the final output, as well as to decompile and recompile boot images. I just haven’t gotten that far yet.

While useful now, the tool is slated to receive some pretty useful updates in the future as well.

For more information, full instructions on use, and more, check out the original thread.


_________
Want something on the XDA Portal? Send us a tip!
TAGS:

Former Writer

Former Writer is an editor on XDA-Developers, the largest community for Android users. View Former Writer's posts and articles here.
Mario Tomás Serrafero · Jul 6, 2015 at 12:49 pm · 3 comments

Which OEM Would You Like to Help?

Most manufacturers have moments of greatness and moments of decadence, and in the past few years we've some of our favorite companies' tables turned. Some are stagnating, some are struggling, some lack direction. Despite this, we often hold them dear to our hearts. Many of them could use a hand, be it with design, marketing, or other tasks. If you could help out an OEM and take it back to its golden days, which one would it be?

DISCUSS
Aamir Siddiqui · Jul 6, 2015 at 11:03 am · 2 comments

Root T-Mobile S6/Edge on 5.1.1 Without Tripping Knox

If you purchase phones from a carrier, you may be no stranger to the difficulties involved in rooting and installing a custom rom, recovery and kernel on such a carrier locked device. Add to this the extra layer of security that Samsung adds in the form of the Knox counter on its devices, and one can only imagine the roadblocks for enthusiasts who want to play around with their device without losing warranty in the process. It's a slippery slope...

XDA NEWS
Jimmy McGee · Jul 6, 2015 at 06:00 am · 4 comments

IonVR Coming Soon, HTC M9 Dev Edition Gets Android 5.1 – XDA TV

The HTC M9 Developer Edition has received Android 5.1. That and much more news is covered by Jordan when he reviews all the important stories from this week. Included in this week's news is the announcement of IonVR and be sure to check out the article talking about the OnePlus Cardboard price (Hint, it's free). That's not all that's covered in today's video! Jordan talks about the other videos released this week on XDA TV. XDA TV Producer TK released an...

XDA NEWS
Share This