GetJava Helps You Convert APKs into Java Projects
Android is an operating system that uses a lot of programming languages. The most common languages are Java (or Android Java if you prefer), C, XML, Bash, as well as a few more. Android applications can be decompiled by APKTool and a few similar tools, and their output is Smali. I know that many of you will disagree with me, but Smali is quite complicated language—much more than Java.
There are two tools that can convert Smali back to Java: Dex2Jar and JAD. They are pretty hard to use, though, and need some experience to use them properly. Luckily, XDA Recognized Developer broodplank1337 created a simple bash script, that does all the work for us. This script can get all necessary dependencies, as well as get the Java code straight from APK. It works on Linux only, but I’m quite sure that can be used on non UNIX-like systems like Windows with Cygwin. The developer recommends that you put the file in ~/bin and make it executable. Further instructions are available in the thread.
Sometimes scripts can make life a lot easier. If you are interested in the project, make your way to the original thread to get more information and learn how to convert assembler code into Java.
Note: Tools like this should be used for educational purposes. “Borrowing” code from applications (paid or free) is unethical and should not take place. They are closed source for a reason. Keep that in mind.
Want something on the XDA Portal? Send us a tip!
The latest version of Touchwiz, launched alongside the Galaxy S6 and S6 Edge, was aimed at providing a vastly improved software experience in lieu of the bad reputation its predecessors had gained. While this iteration turned out to be a vast improvement in terms of lack of bloatware, fluidity and user experience, Samsung's OEM skin fell short in the aesthetics department by a long shot, abandoning a plethora of Material Design principles and leaving users wanting more. However, Theme Store...
There comes a sad time in everyone's life where you must part ways with your gadgets. Perhaps they are dropped from a height, carelessly hardbricked, or simply stashed in a drawer in favor of a shinier upgrade. Alternatively they might enter the world of the second-hand market, and become someone else's daily driver. Swappa is especially popular for this purpose here at XDA, where thousands of users trust the site enough to buy and sell their devices through it. In fact, we made...
2015 has been a phenomenal year for Xiaomi so far. With a stellar rise in 2014, 2015 saw increased success outside of China for Xiaomi along with tremendous consumer interest in the company's smartphone offerings. The company also increased its ventures outside of smartphones touching everything from routers to selfie sticks. The company took to twitter to announce their recent success. Xiaomi's smartphones sales increased 33% year-on-year, with the company having sold 34.7 Million smartphones in the first half of...