Skip to main content

How to decompile Android apk to Java source code

Requirements:

Eclipse IDE:
Download and install eclipse IDE from the link.
http://www.eclipse.org/downloads/

Dex2jar:

Dex2jar converts the DEX (Dalvik Executable) files to the Java source. Download and extract dex2jar from the link.

https://dex2jar.googlecode.com/files/dex2jar-0.0.9.15.zip

JD-GUI:

JD-GUI is used to see the soure Java Class files from the converted jar files.
Download and extract JD-GUI from the link.

https://innlab.googlecode.com/files/jd-gui-0.3.3.windows.zip

Decompiling Instructions:
1.Open Eclipse IDE and create a new Java project named Android2Java.
2.Create a new folder “libs” in the root of your Android2Java project.

3.Paste the jar files in the lib folder of extracted dex2jar to the newly created libs folder of Android2Java project.
dex2jar-0.0.9.15/lib/(All jar files) –(Copy)-> Android2Java/libs/

4.Right click on the Android2Java project and select Properties. In the Java Build Path select the Libraries Tab. Add all the jar files to the library and then OK.

5.Now paste a apk file in your project which is to be decompiled. Here I am using Facebook.apk
6.Now Right click on Android2Java project and select Run As->Run Configurations.
7.Enter the Main class as com.googlecode.dex2jar.v3.Main
and the arugment as Facebook.apk

Note:
You should enter the name of the apk pasted in your project as argument.
8.Then run the project, you will find a converted jar file in the project folder. Here the jar file is Facebook_dex2jar.jar

9.Now open the jar file with JD-GUI. You will see all the java class source files.

10.To decompile the xml layout files use Apktool. You can download apktool from the link.

https://code.google.com/p/android-apktool/downloads/list

Comments

raghu

super

Popular posts from this blog

Xiaomi Stock Rom for all models

Download Xiaomi Stock Rom for all models Xiaomi Mi 1 / 1S Stock Rom Xiaomi Mi 2 / 2S Stock Rom Xiaomi Mi 2A Stock Rom Xiaomi Mi 3 Stock Rom Xiaomi Mi 4 Stock Rom Xiaomi Mi 4i Stock Rom Xiaomi Mi Note Stock Rom Xiaomi Mi Note Pro Stock Rom Xiaomi Mi Pad Stock Rom Xiaomi Redmi 1 Stock Rom Xiaomi Redmi 1S Stock Rom Xiaomi Redmi 2 Stock Rom Xiaomi Redmi Note Stock ROM Download 😯😯😯

How to Upload MP3 Files to Flickr or Picasa Albums

While most people use Flickr for uploading photos and videos, one can also use photo sharing websites like Picasa or Flickr for hosting MP3 songs and other audio files. For instance, these Flickr pictures are identical but the one on right is actually an MP3 file. To hide an MP3 file into a JPEG image, copy the MP3 file and a picture into a folder. Open the command prompt window (Start > Run > cmd) and switch to this folder. Now run the following command: copy /b my_picture.jpg + my_song.mp3 my_new_picture.jpg Remember to replace my_picture and my_song with relevant file names. Next, upload the my_new_picture.jpg file to Flickr. The MP3 song picture will look just like any other regular photograph that you share on Flickr. When you want to download that MP3 file from Flickr, open the relevant photo page, go to “All Sizes” and download the original sized image (example). Change the file extension to MP3 and enjoy the music using Winamp. And not just MP3 files, you...

Increase Android Device Speed by Disabling Animation

Animation can actually make your device feel good but in long term if you see these animations conserve battery and even make your phone a little slower, if you are running a high end phone then these little difference won’t be noticeable but its there and on lower end phones you are going to face a lot of issues, so today I will show you how to disable the animations in android and make your device faster. Disabling Animation Scale in Android to Make it Faster Basically there are 3 types of animation scale options you can disable in android that’s is Window Animation Scale, Transition Animation Scale and Animator Duration Scale. So lets see how to disable all three and make your android pumped up. 1. On Android, Open the About Menu. 2. Now scroll down and press 3 times on Build Number to enable he Developer Options. 3. Now you will get those Developer Options. 4. Just open that and scroll that, until you find three options: Window Animation Scale , Transition Animati...