Tutorials

Decompile an Android Application with Dex2jar and Jd-GUI

For decompiling an android application, the open source tool which we’ll use is “dex2jar“.

  • Download Link – Dex2jar.zip (Extract in any location)
  • Sample Application – yeahhub.apk (Download & Extract/Move into dex2jar folder)

About the yeahhub.apk Application – The application is asking for a secret number, so your task is to decompile it and find that secret number.

As we all knows java executables can be decompiled and to decompile an apk into jar, just type the following command in your cmd windows:

Command: d2j-dex2jar.bat yeahhub.apk

If everything goes OK, then you’ll get a yeahhub-dex2jar.jar file in same folder.

Now open “jd-GUI” tool which you can download from this link.

Open yeahhub-dex2jar.jar file in jd-GUI tool and you’ll see something like this.

Now you can actually see the whole code behind that APK file. Furthermore the next step is to debug the application and extract the AndroidManifest file from the apk itself.

There are basically two ways through which you can extract this AndroidManifest file from the android application i.e. via Android Studio or via simply Winrar/Winzip Tool. Of course we’ll go with Winrar because its very easy to use.

After some modifications, you can rebuild your app and install back into any android phone via ADB installer which we’ll discuss in future.

Have something to say about this article? Comment below or share it with us on Facebook or Twitter.

H4ck0
Step by step hacking tutorials about wireless cracking, kali linux, metasploit, ethical hacking, seo tips and tricks, malware analysis and scanning.
https://www.yeahhub.com/

WHERE SHOULD WE SEND

HACKING TUTORIALS & INFOSEC NEWS?

Subscribe to Our Newsletter and Get Instant Delivered to Your Email Inbox.

We respect your privacy and take protecting it seriously.

Leave a Reply

Your email address will not be published. Required fields are marked *

one × five =