Android apk package cracking
foreword
How to get the Android apk package and how to crack it. The process is as follows
1. Pre-work
-
Get an apk file and modify its suffix to zip
例如: test.apk => test.zip
-
Use the decompression tool to decompress. After decompression as shown in the figure
获取到原始文件目录,注意其中的 classes.dex 文件,后面会用到
-
Download tool
dex to jar:
https://github.com/pxb1988/dex2jar/releases
jar package class decompilation tool jd-gui
https://github.com/java-decompiler/jd-gui/releases/tag/v1. 6.6
jd-gui Download according to the system type, I am windows, the downloaded jd-gui-windows-1.6.6.zip can be used after decompression. -
Install dex and jd-gui
两个我都是下载的zip包,解压即可用
After decompressing dex:
After decompressing jd-gui:
Second, the official start
1. Configure dex environment variables for subsequent use
2. Find the classes.dex file in the apk package after decompression
在文件目录输入cmd 回车,进入cmd 窗口,使用命令
d2j-dex2jar classes.dex
如图:
Enter to confirm and generate
3. Obtain the jar file. Open the decompressed jd-gui and run the jd-gui.exe file. Drag the jar file into the window
目录中 android 就是apk程序的源码文件目录 。
自此得到我们需要的class文件,根据class文件可进行我们需要的操作
Continually updated…