Also come and play with decompilation

I just decompiled an APP, and it is not as difficult as I imagined.
1. Open the apk file by decompressing it, and then you can see image resources and the like, but you can't read the xml, and then you need to open the xml. Download the AXMLPrinter2.S.jar thing, then put the xml that needs to be unlocked and it in a directory, open the cmd command, enter java -jar AXMLPrinter2.S.jar main.xml > main.txt. You can view the xml file
2, check the code, in the first step of decompression, we will find the file classes.dex in the directory, and then we need to download the file dex2jar-0.0.9.15, put classes.dex in In the dex2jar-0.0.9.15 directory, enter the cmd command into this folder and enter dex2jar.bat classes.dex. After that, there will be an additional jar file
3 such as classes_dex2jar.jar in the dex2jar-0.0.9.15 directory. In the second step, The classes_dex2jar.jar file is generated. We also need to download a file such as jd-gui.exe. After the download is complete, open it directly. Open the classes_dex2jar.jar as jd-gui.exe to see the code, and then the whole thing is almost complete. span

If you don't understand, welcome to exchange, welcome to correct

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325637592&siteId=291194637