Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cmd cannot recognize dex2jar- Android Apk

Tags:

android

cmd

dex

i want to get source code from apk and use this solution Is there a way to get the source code from an APK file?

i try to dex file to jar and i used dex2jar; but cmd cannot recognize this command.

dex2jar classes.dex

"dex2jar is not recognized as an internal or external command"

is dex2jar deprecated?

what can i use to convert dex to jar?

like image 553
Anil Kocabiyik Avatar asked Feb 03 '13 23:02

Anil Kocabiyik


People also ask

What is dex2jar?

Dex2jar is a free application that allows you to convert APK files to JAR files and view the source code. Converting the classes. dex file of an APK to classes. jar or vice versa is the core feature of Dex2jar. You can view the source code of an Android application by Java decompiler.


1 Answers

None of the above answers worked for me, I was able to get it working in the following way, There is no need of the classes.dex file. So follow the following instructions carefully:

  1. Download the latest version of dex2jar i was able to google it and get the latest one from sourceforge. just in case if you didnt get it http://sourceforge.net/projects/dex2jar/
  2. drop your apk file inside the dex2jar folder.

  3. open command prompt[win user] and navigate to that folder where you dropped the apk file.

  4. enter this command d2j-dex2jar.bat someApk.apk and you will get the jar file[read the jar file using jd-ui tool] for mac users refer this[point 4 in the link] for suitable terminal command http://sourceforge.net/p/dex2jar/wiki/UserGuide/

like image 189
Mightian Avatar answered Oct 18 '22 08:10

Mightian