打开.../sdk/tools/monitor.bat
注意:Android 9.0以上无法直接使用uiautomatorviewer.bat
获取截屏与.uix文件,并pull到电脑:
adb shell uiautomator dump /sdcard/screen.uix
adb pull /sdcard/screen.uix /Users/PCNAME/Desktop/
注明:新手机地址改成:/data/local/tmp/**.uix
adb shell screencap -p /sdcard/download/test.png
adb pull /sdcard/download/test.png /Users/PCNAME/Desktop/