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.
问题:
回答1:
Follow the below steps to do so_
- Rename your APK file(e.g., rename your APK file to .zip Ex- test.apk -> test.zip) & extract resultant zip file.
- Copy your .dex file in to dex2jar folder.
- Run setclasspath.bat. This should be run because this data is used in the next step.
- 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
- enjoy!! Your jar file will be ready in the same folder with name classes_dex2jar.jar.
Hope this helps you and All reading this... :)
回答2:
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
回答3:
- Download dex2jar https://code.google.com/p/dex2jar/downloads/list
- Run dex2jar on apk
d2j-dex2jar.sh someApk.apk
- open jar file in JD GUI http://jd.benow.ca/
Follow this guide: https://code.google.com/p/dex2jar/wiki/UserGuide
--Update 10/11/2016--
Found this ClassyShark from Google's github pretty easy to view code from APK.
https://github.com/google/android-classyshark
// make sure that you downloaded release https://github.com/pxb1988/dex2jar/releases (for the ppl who coldnt find this link in /dex2jar/downloads/list
回答4:
Simple way
- Rename your test.apk => test.zip
- Extract test.zip then open that folder
- Download dex2jax & Extract
- Copy classes.dex file from test folder
- Past to dex2jar Extracted folder
- if use windows press Alt & D keys then type cmd press Enter(open to cmd)
- run the command d2j-dex2jar.bat classes.dex
- Download JD-GUI
- Move classes-dex2jar.jar file to JD-GUI
- Everything Done..
回答5:
If anyone is still looking for an easy way to decompile an APK (with resource decompiling), have a look at the tools I have created: https://github.com/dirkvranckaert/AndroidDecompiler
Just checkout the project locally and run the script as documented and you'll get all the resources and sources decompiled.
回答6:
You can decompile your .apk files and download online.
http://www.javadecompilers.com/
回答7:
- Download latest dex2jar from here -> dex2jar
- Run this command on linux -> sh d2j-dex2jar.sh classes.dex
- Download java decompiler from here - > JD-GUI
- Drag and drop the classes-dex2jar.jar file to JD-GUI
回答8:
If you're looking for the version for windows get it from source forge: https://sourceforge.net/projects/dex2jar/
It has the d2j-dex2jar.bat file you need
回答9:
- Download Dex2jar and Extract it.
- Go to Download path ./d2j-dex2jar.sh /path-to-your/someApk.apk if .sh is not compilable, update the permission: chmod a+x d2j-dex2jar.sh.
- It will generate .jar file.
- Now use the jar with JD-GUI to decompile it
回答10:
After you extract the classes.dex file, just drag and drop it to d2j-dex2jar
回答11:
The below url is doing same as above answers. Instead of downloading some jar files and doing much activities, you can try to decompile by:
http://apk-deguard.com/