Current location - Quotes Website - Signature design - Android code obfuscation and how to determine whether an apk code has been obfuscated
Android code obfuscation and how to determine whether an apk code has been obfuscated

Option 1:

1. Download the dex2jar package and unzip it

2. Change the suffix of the apk package to .zip

3. Unzip the apk to get the classes.dex file and put it in the directory where dex2jar is located

4. Run the command dex2jar.exe classes.dex

5. Download jd- gui

6. Load the jar package into jd.gui, check the source code, whether the class name, method name and variable name in the source code have changed

Method two:

1. Download the apktool tool

2. Run apktool.bat d xxx.apk and decompile the apk into smali

3. If you want to further view the source code, you can download it smali2java

4. Use the file name of the smali file for analysis. If there is one or more smali files of resource class, it can be proved that the apk has not been confused.