dex2jar decompilation tool version 2.1 (download, use)

Overview:

dex2jar is a tool for decompiling apk, which can convert dex files into jar files to view the source code (obfuscation), and vice versa can also convert jar files into dex files

The reason for the birth of the article:

I used the dex2jar2.0 version before. When there are multiple dex files in the apk, the jar file cannot be decompiled normally, and an error will be reported, or even if the jar file is typed out, there is a problem, so we need to use the dex2jar 2.1 version to deal with this problem

If you need to know the version before 2.0, you can check the information on the Internet by yourself. There are already many, so I won’t introduce it here.

  1. Download (configuration environment)

official document

Unzip the downloaded zip into a folder (anywhere)

Configure it in the system and replace it with the variable Path, which is convenient for later use

That's it

  1. use

Open the command operator, win+R enter cmd and press Enter

dex to jar

input the command:

d2j-dex2jar <.apk target path> -o <jar output path + name.jar>

Remarks: This is the command of version 2.1. For versions below 2.1, replace <.apk target path> with <.dex target path>

In this way, you can see the generated jar file in the output path

jar to dex

input the command:

d2j-jar2dex <.jar target path> -o <dex output path + name dex>

After the compilation is complete, you can see the .dex file in the directory of the output path

legend:

Guess you like

Origin blog.csdn.net/lwh1212/article/details/129417508