Conan Troutman · Apr 22, 2013 at 01:30 pm

Decompile and Recompile Classes.dex with Ease

It’s fair to say that unless you’ve spent some time digging around inside APK files and making some heavy duty modifications to apps or the Android OS itself, you probably haven’t come face-to-face with a .smali file in its natural environment. They are a common component in many of the most popular Android tweaks and hacks out there such as adding toggles, extending the power menu, and adding CRT screen off animation.

The files themselves can often be found nestled inside APKs and become available for modification once that particular file is decompiled with a utility such as APKTool. Unfortunately, these smali files sometimes have a tendency to squirrel themselves away inside the classes.dex of a JAR file and make themselves a little more awkward and time consuming to reach and manipulate. Following on from his recent guide to ADB commands, XDA Senior Member iamareebjamal has put together a one-click tool that will allow you to decompile the classes.dex from any APK or JAR file with ease.

Simply place the relevant file in the input folder, decompile, make any necessary changes to the newly available files, recompile, and check the output folder for your modified version. It’s as simple as that. Obviously there are a few prerequisites to this, namely some kind of personal computing device running Windows, Java (ideally in software and liquid form), the relevant files and tools (notepad++, an archive manager etc), and some idea of what you’d actually like to achieve as the end result. If you have all of those at your disposal, this could prove to be a great little time saver and well worth a visit to the original thread.


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

Conan Troutman

Conan Troutman is an editor on XDA-Developers, the largest community for Android users. Senior Moderator, Newswriter, Recovering Meme Addict. View Conan Troutman's posts and articles here.
Mario Tomás Serrafero · May 28, 2015 at 11:44 am · no comments

OnePlus Two: Expectations and Boundaries

OnePlus is a company that has been through controversies and praise in what was perhaps one of the most dynamic years for a company - and all of this with a single phone. The OnePlus One was, indeed, flagship killer that didn’t settle in many ways. The device went on to sell over a million units - an impressive number considering the invite system meant limited sales and that its advertising was mostly word-of-mouth.   OnePlus made it clear that their...

XDA NEWS
Jimmy McGee · May 28, 2015 at 06:00 am · 2 comments

Time-Lapse with ChronoSnap – XDA App Review

Some of the most interesting pictures are time-lapse animations that capture the passage of time.  Someone painting a house, someone building a treehouse, or a sunset are just a few of the ideas for a time-lapse session. A lot of smartphone cameras have some great power now, so why not use a smartphone. Developer Nathan Osman offers up an app that creates simple and easy time-lapse photos. In this video, XDA TV Producer TK reviews ChronoSnap. TK shows off the...

XDA NEWS
Aamir Siddiqui · May 27, 2015 at 02:12 pm · 1 comment

Samsung Galaxy S6 To Receive Major Camera Update

When the Samsung Galaxy S6 and S6 Edge were launched, they became the prime focus for all discussions as Samsung took a break on their traditional design philosophy and opted for something that their flagship lineup hadn't seen before. But along with the design, a lot of Android enthusiasts were also impressed by another aspect of the flagship duo: their camera. Even traditionally, the primary camera on Samsung's flagship lineup has been one of its stronger points as compared to other...

XDA NEWS
Share This