Android apk package cracking

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

  1. Get an apk file and modify its suffix to zip

    例如:  test.apk   =>   test.zip	 		
    
  2. Use the decompression tool to decompress. After decompression as shown in the figure

insert image description here

	获取到原始文件目录,注意其中的 classes.dex 文件,后面会用到
  1. 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.

  2. Install dex and jd-gui

     两个我都是下载的zip包,解压即可用
    

After decompressing dex:

insert image description here

After decompressing jd-gui:
insert image description here

Second, the official start

1. Configure dex environment variables for subsequent use

insert image description here

2. Find the classes.dex file in the apk package after decompression

insert image description here

在文件目录输入cmd 回车,进入cmd 窗口,使用命令

d2j-dex2jar classes.dex

如图:

insert image description here

Enter to confirm and generate

insert image description here

3. Obtain the jar file. Open the decompressed jd-gui and run the jd-gui.exe file. Drag the jar file into the window

insert image description here

	目录中 android 就是apk程序的源码文件目录  。
	自此得到我们需要的class文件,根据class文件可进行我们需要的操作

insert image description here

Continually updated…

Guess you like

Origin blog.csdn.net/weixin_43480441/article/details/128645135
Recommended