adb shell uiautomator dump 命令详解

转储当前界面的 UI 层次结构(XML)

命令语法
adb shell uiautomator dump
命令说明
转储当前界面的 UI 层次结构(XML)
示例
$ adb shell uiautomator dump /sdcard/ui.xml
设置与属性相关命令

adb shell uiautomator dump 用法说明

adb shell uiautomator dump 是「设置与属性」分类下的常用命令,作用是:转储当前界面的 UI 层次结构(XML)。

典型用法如下:adb shell uiautomator dump /sdcard/ui.xml。你可以查看本页上方同组的相关命令,或直接复制到终端运行。

常见问题解答

adb shell uiautomator dump 是什么?
adb shell uiautomator dump 用于转储当前界面的 UI 层次结构(XML),属于「设置与属性」相关命令。
adb shell uiautomator dump 怎么用?
在终端执行 adb shell uiautomator dump /sdcard/ui.xml 即可,具体参数请按实际环境调整。
还有哪些相关命令?
设置与属性分类下还有 14 条相关命令,见本页上方「相关命令」。

同类工具