apkToJava – Gem to convert apk file to java code

Hello Friends, Here I am with another cool ruby gem(apkToJava, github url) which will help you to improve your productivity while working on android project. This gem can convert apk file to java code and open it in a friendly GUI.

Steps followed to convert apk file to java code

  1. Convert apk to zip file
  2. unzip the file and extract classes.dex from it
  3. use dex2jar to convert classes.dex to a jar file
  4. use jadx to open the jar in gui

apart from the above mentioned steps it takes care of installing dex2jar and jadx on its own when you first time use this gem to convert apk to java code.

Installation

You just require ruby to be installed on your system nothing else. Then you need to install apkToJava gem with the below command.

See it in action:

How to use it!

To setup the environment

apkToJava_setup

To convert apk to java code

apkToJava_example

For help just type apkToJava and it will print the below usage.

Supported Operating Systems

Currently apkToJava supports below operating systems

  1. Mac
  2. Linux

I am yet to add windows support for it, but that will be derived from your requirements. If you want apkToJava to support windows as well comment below and let me know. You can even contribute to it here.

For more such tools subscribe to my blog or like my facebook page. Thanks!

4 thoughts on “apkToJava – Gem to convert apk file to java code

    1. NickD

      This tool appears to be great but unfortunately I have neither MAC or Linux, so a Windows version would definitely get my vote.

      I’m amazed that more people haven’t already asked for this – since APK->Java could be very helpful, in some cases.

      Reply
      1. Ajit Singh Post author

        Thanks for the suggestion. I would love to provide support for windows as well, but right now I am quite busy with other things. But whenever I get time, I will definitely work on this.

        Reply
    2. Ajit Singh Post author

      Hi Made Denis, coming from a ruby background, this was the easiest way for me to provide this functionality as a ruby gem. But do let me know if you have any suggestion to have the same tool in other format.

      Reply

Leave a Reply

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