uiautomatorviewer不能直接截取手机屏幕信息

本身可以用sdk——>tools里自带的ui automator viewer截取
如果截取不了,采用以下方法:

新建一个文本文档,名字自己起如uni.bat(注意把后缀给改成.bat)

adb shell uiautomator dump /sdcard/app.uix
adb pull /sdcard/app.uix E:/app.uix
adb shell screencap -p /sdcard/app.png
adb pull /sdcard/app.png E:/app.png

 

posted @ 2019-07-11 10:59  爱吃橙子  阅读(754)  评论(0编辑  收藏  举报