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?
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.
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:
drop your apk file inside the dex2jar folder.
open command prompt[win user] and navigate to that folder where you dropped the apk file.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With