1.将界面元素pull 出来,获取id text
adb shell uiautomator dump
adb pull /sdcard/window_dump.xml
adb shell input tap 282 322
2.获取包名
adb shell dump activity activities
3.执行包名
adb shell am start -a android. intent. action. MAIN -n 包名
uiautomator
于 2021-08-20 14:56:30 首次发布