How to view the APK package name and start activity

Source: Internet
Author: User

When doing app automation, it's often necessary to analyze the APK for its package name and start activity, and how to view the APK information through the tool without the installation.

Using the AAPT tool that comes with the Android SDK, AAPT (android Asset Packagingtools) is in the Build-tools directory of the SDK. The tool can be viewed, created, updated in zip format with document attachments (Zip, jar, apk). You can also compile the resource file into a binary file that needs to be used when the app is built and packaged.


Open the cmd window, switch to the SDK's Build-tools directory, and enter the following command:

AAPT dump Xmltree C:\app\app_prd.apk androidmanifest.xml > C:\Users\Desktop\app.log


Look for the keyword in the output log: Android.intent.category.LAUNCHER can be found, such as:

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/8A/EC/wKioL1g_rDHgm2SSAAESxqhL7Hg745.png "title=" Qq20161201125022.png "alt=" Wkiol1g_rdhgm2ssaaesxqhl7hg745.png "/>


This article is from the "alan_y (upspringing)" blog, so be sure to keep this source http://alany.blog.51cto.com/6125308/1878428

How to view the APK package name and start activity

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.