List of tools for Android reverse engineering and analysis

2019-08-15 reversing android tools resources

Yohannes Yemane Brhan

I wish to share these tools, resources, and platforms which I came across while I am doing reverse engineer and analysis on Android apps.

1.The primary tools needed to interact with android phones and apps are SDK Tools and SDK Platform-Tools packages. These packages include ADB (Android Debugging Bridge). ADB tools is a command-line tool that makes communication with an Android device possible. The adb command enables a variety of device actions, such as installing/uninstalling apps, pulling and pushing files, debugging apps and so on.

Intalling and configuring SDK tools including ADB

Adb command

2.Apktool is a popular free tool that can extract and disassemble resources directly from the APK archive and disassemble Java bytecode to Smali format (Smali/Baksmali is an assembler/disassembler for the Dex format. It’s also Icelandic for “Assembler/Disassembler”). It is also possible to reassemble the package, which is useful for patching, code injection and applying changes to the Android resources, with apktool.

3.Dex2Jar is a free tool to work with Android “.dex” and Java “.class” files. The “.dex” (Dalvik Executable) files are a compiled Android apps, which then turn into a single “.apk” (zipped file) file on the device. The output of this tool is jar file which contains the java source code of the Android application. From the above link, you can download the tool.

4.JD-GUI is a standalone graphical utility that displays Java source codes of “.class” files. You can browse the reconstructed source code with the JD-GUI for instant access to methods and fields (Source its official site). It is possible to open the “.jar” file – which is decompiled using Dex2Jar – with JD-GUI. Then, you can see the source code of the application which is Java classes in a readable format.

JD-GUI

5.Jadx is an android decompiler which has capability of decompiling the source code from .apk file & provide human readable java class files. In Jadx, you don’t need apktool and Dex2jar tools to view the source which can disassemble and decompile the entire process with just single click.

A tutorial for configuring and using Jadx

jadx gui

6.Xposed is a “dynamic” instrumentation or hooking framework that allows developers or security professionals to replace any method in any Android class. You can change parameters for the method call, modify or change the return value or skip the whole method completely. Some of the things to perform using xposed: byppass securities such as SSL pinning or root detection, edit limitation on apps such as twitter’s character limit, and so on.

List of already developed modules for xposed

Here is blog on how to use, configure and a titorial on developing a module for xposed framework

Once installed and configured, the framework looks like the following image.

Xposed interface

7.Frida is a dynamic code instrumentation toolkit like xposed. It lets you inject a piece of JavaScript code or your own library into native apps including Android platform. Unlike exposed, it is used on other operating systems such as Windows, macOS, GNU/Linux, iOS, and QNX. Like xposed, it lets to edit or instrument running apps such as hook method calls, trace API calls, intercept http calls, and so on. Both xposed and Frida have an active developers community and have a lot of developed modules and libraries.

List of libraries for Frida

A tutorial to install, configure and use Frida framework

If it is installed and configured successfully, you should be having the output as shown in the image below (the image is taken from the above tutorial link). The command outputs shows all the processes currently running.

frida communicating with andoird phone from windows machine