View APK package information and APK Decompilation

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.