Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to use DEXtoJar

Tags:

decompiler

I find the solution to decompile a file dex to jar from this link http://code.google.com/p/dex2jar/downloads/list but i don't understand how to use it.

like image 818
fou Avatar asked Mar 10 '11 09:03

fou


People also ask

How do I download dex2jar?

Download the dex2jar zip file from https://sourceforge.net/projects/dex2jar/ and extract it after completion of the downloading. Open the extracted dex2jar zip file and access the command prompt from the same path.


2 Answers

 Step 1 extract the contents of dex2jar.*.*.zip file  Step 2 copy your .dex file to the extracted directory Step 3 execute dex2jar.bat <.dex filename> on windows, or ./dex2jar.sh <.dex filename> on linux 
like image 35
Nitin Nizhawan Avatar answered Sep 18 '22 13:09

Nitin Nizhawan


Follow the below steps to do so_

  1. Rename your APK file(e.g., rename your APK file to .zip Ex- test.apk -> test.zip) & extract resultant zip file.
  2. Copy your .dex file in to dex2jar folder.
  3. Run setclasspath.bat. This should be run because this data is used in the next step.
  4. Go to Windows Command prompt, change the folder path to the path of your dex2jar folder and run the command as follows: d2j-dex2jar.bat classes.dex
  5. enjoy!! Your jar file will be ready in the same folder with name classes_dex2jar.jar.

Hope this helps you and All reading this... :)

like image 171
Rupesh Yadav Avatar answered Sep 21 '22 13:09

Rupesh Yadav