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