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.
Tomek Kondrat · Apr 1, 2015 at 10:11 am · no comments

Hi Locker to Help You With Lockscreen Headache

The lockscreen is a part of the OS that we see hundreds of times every day, whether we're using Android or iOS. The look of the lockscreen depends on the Android version, device manufacturer or ROM chef. In short, it differs for almost every user. Luckily enough, users can use third party alternatives that bring more features. One such application is Hi Locker, developed by XDA Senior Member thotran7989. Hi Locker can be found both on the Play store and...

XDA NEWS
Jimmy McGee · Apr 1, 2015 at 07:00 am · 2 comments

Must Have App Review: Spider Squisher Pro Extreme

Here on XDA TV we have a series we like to call Must Have Apps. These are apps that we think are so great and useful that you must have them. We’ve given this title to such programs as Pushbullet, Light Flow, Helium, the AROMA File Manager, ROM Toolbox and Pocket Casts. But today we have an app that surpasses them all. Former XDA TV Producer Adam Outler offers up a must have application. In this video, XDA TV Producer...

XDA NEWS
Aamir Siddiqui · Apr 1, 2015 at 04:30 am · 2 comments

OnePlus DR-1 Quadcopter Drone Available for Purchase

OnePlus has been teasing a new product for a while now, hailing it as a game-changer which isn't a tablet or a smartwatch. While speculations were rife about what this game-changing device could be, the company did confirm that the product was indeed a drone in their recent AMA. A tweet and vine from OnePlus shed some more light on this product, which was confirmed to be named as DR-1 (dr-one, get it?) and was to reach stores "next month". In a...

XDA NEWS
Share This