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.
Brian Young · Aug 2, 2015 at 09:05 pm · 2 comments

Galaxy S6 & Edge get €100 Price Cut—New Models Incoming

Samsung has dropped the price of both the Galaxy S6 and S6 Edge by €100, making the current retail price of these phones €599 and €699, respectively. Though no new prices have been announced stateside, a cut is expected soon. (more…)

XDA NEWS
Mario Tomás Serrafero · Aug 2, 2015 at 11:33 am · 1 comment

Sunday Debate: How Can We Get a No-Compromise Phone?

Join us in a fun Sunday Debate on Compromises. Come with your opinions and feel free to read some of our thoughts, then pick your side or play devil’s advocate to get your voice heard and engage in friendly discussion. You can read our food-for-thought or jump straight into the fray below!     Getting an upgrade is a big deal to us power users: it’s our little Android Christmas, where after a long time (for plenty of us, at least)...

XDA NEWS
Mario Tomás Serrafero · Aug 1, 2015 at 03:54 pm · 3 comments

PSA: You Can Optimize Your Note 4’s Recents Menu & RAM

The Note 4 never had the fastest Recents Menu, and despite its 3GB of RAM, its app-holding capabilities only got worse on Lollipop. The infamous RAM bug that plagued the S6 is indeed an annoyance on the Note 4's 5.0.X ROMs. Rumors of an update to fix all of this were confirmed with the first reports of the 5.1.1 update for the Russian Note 4, which seemingly improved the Recents Menu and RAM management. But it'll be a long time...

XDA NEWS