The premise is that JDK has been installed.
Required tools: apkanalyzer
: Http://download.csdn.net/detail/koko7958/3803375
1. Get APK Information
View androidmanifest. XML to obtain the package name, activity name, and version.
Because androidmanifest. XML in the APK package cannot be directly decompressed and viewed, you need to use apkanalyzer to perform the following steps:
<1> decompress apkanalyzer
<2> open apkanalyzer. jar and open the APK file to be viewed in the package name. Then, an androidmanifest. xml file is generated in the apkanalyzer directory.
<3> run the CMD command to switch to the directory where apkanalyzer is located. Enter the following command:
> JAVA-jar axmlprinter2.jar androidmanifest. xml
You can see the content of androidmanifest. xml. Then we can use androidmanifest. XML to get the information we want, you know!
We can see that
Package name example package = "com. Google. Note"
Main activity name example
<Activity Android: Name = ". Note">
<Intent-filter>
<Action Android: Name = "android. Intent. Action. Main"> </Action>
<Category Android: Name = "android. Intent. Category. launcher"> </Category>
</Intent-filter>
</Activity>
Version info for example Android: versionname = "5.4"
2. decompile APK
The procedure is as follows:
<1> open apkanalyzer. jar, select the APK to be decompiled In The Decompilation, and generate a classes. Dex. dex2jar. jar file in the apkanalyzer directory.
<2> open jd-gui.exe in the jd-guidirectory and select the generated classes. Dex. dex2jar. jar in file to view the source code project of the APK package.