Android场景 - 005 - App布局查看

时间:2022-02-05 05:51:05

打开.../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/

参考

https://www.cnblogs.com/graybird/p/11306817.html