Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

One of the Appium command notes

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

View the APK package name and other information commands:

Aapt l, this command is to view the content of apk

Let's talk about the query command aapt dump in detail.

The basic format is aapt dump []

Here [] there are several choices:

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=' customers' icon=''

/ / start another APP

Public void startapp ()

{

/ / start the apt

Driver.startActivity ("com.zhihu.android", "'com.zhihu.android.app.ui.activity.MainActivity")

}

Use the scene:

1. Switching before use case

2. Scene switching and use

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report