转储当前界面的 UI 层次结构(XML)
adb shell uiautomator dump 是「设置与属性」分类下的常用命令,作用是:转储当前界面的 UI 层次结构(XML)。
adb shell uiautomator dump
典型用法如下:adb shell uiautomator dump /sdcard/ui.xml。你可以查看本页上方同组的相关命令,或直接复制到终端运行。
adb shell uiautomator dump /sdcard/ui.xml