注意:Android 9.0以上无法直接使用uiautomatorviewer.bat
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/
https://www.cnblogs.com/graybird/p/11306817.html
原文:https://www.cnblogs.com/neen/p/12109993.html