Sometimes we need to view .class files, such as interfaces, or enumerate compiled .class files. At this time we can use
jd- gui tool
download link:
https://github.com/java-decompiler/jd-gui/releases
There are two ways, one is the installation package, and the other is in the form of jar. I personally prefer the jar form.
The jar format can be opened directly using the jdk java command.
java -jar jd-gui.jar
For the Android .apk file, we first change its suffix to .zip, and then download the dex1jar tool Releases · pxb1988/dex2jar · GitHub
Drag the .dex file into the dex2jar file, in the same directory as bin, and then enter cmd to enter the bin directory.
Then execute d2j-dex2jar.bat classes.dex and the .jar file will be generated in the current directory, and then use jd- gui to view it.