Thursday, 13 February 2014

Reverse engineer your apk

You can also de-obfuscate  your apk using any of the available tools from google. What we demonstrate or work with is dex2jar. Please download this tool from http://code.google.com/p/dex2jar/. 

1.In command prompt navigate to dex2jar directory: Now type the following command. See the screen shot . This will change your apk file to .jar.

.Jar will be generated in your path where dex2jar software will be present
In this case (D:\sample\D-final\soft\dex2jar-0.0.9.15\dex2jar-0.0.9.15)

2. Once you have the .jar file, you need  jd-gui tool to view .jar . jd-gui is a graphical utility for viewing java source files. First download jd-gui here.
Open jd-gui.exe file-> click on open files. Now choose .jar file that you received from dex2jar tool. You are done, you can see following screen and browse through your java classes









In Command Prompt type the following

D:\Sample\D-final\soft\dex2jar-0.0.9.15\dex2jar-0.0.9.15>d2j-dex2jar.bat C:\Us
ers\sample\Desktop\All\BatteryUsage.apk




Automatically generates once you type enter
dex2jar C:\Users\KRN4BMH\Desktop\All\BatteryUsage.apk -> BatteryUsage-dex2jar.ja
r















No comments:

Post a Comment

Pass a HashMap from Angular Client to Spring boot API

This example is for the case where fileData is very huge and in json format   let map = new Map<string, string>()      map.set(this.ge...