to view the APK package name and other information commands:
AAPT L < your apk file; This command is to view the APK content
The following details the AAPT dump this query command
Basic format is AAPT dump [] <apk file >
Here [] The selection can have the following types:
badging Print the label and icon for the app declared in APK
Permissions Print the permissions from the APK.
Resources Print the Resource table from the APK.
Configurations Print the configurations in the APK.
Xmltree Print the compiled xmls in the given assets.
Xmlstrings Print the strings of the given compiled XML assets.
For example:
C:\users\lw>aapt d badging desktop\zhihu.apk |findstr "Package launchable-activity"
Package:name= ' com.zhihu.android ' versioncode= ' 507 ' versionname= ' 4.54.1 ' platformbuildversionname= ' 7.1.1 '
Launchable-activity:name= ' com.zhihu.android.app.ui.activity.MainActivity ' label= ' 鐭 workspace 箮 ' icon= '
Launch another app
public void Startapp ()
{
Start the APT
Driver.startactivity ("Com.zhihu.android", "' com.zhihu.android.app.ui.activity.MainActivity");
}
Usage scenarios:
1. Switch before use case
2, Scene switch use
This article is from the "Know the Ming" blog, please be sure to keep this source http://357712148.blog.51cto.com/6440370/1957817
Appium one of the command notes