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!

Leave a Reply

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