AndroidViewClient 在使用 "touch(x,y)" 命令一次后使用每个命令重新启动设备

AndroidViewClient restarts device with every command after using "touch(x,y)" command once

使用 AndroidViewClient,最近我尝试使用 Culebra 或任何相关脚本进行的每个操作都会重新启动虚拟设备。以前有人 运行 参与过这个吗?

**编辑 1:**更具体地说,我只是在 尝试在特定区域触摸设备的命令后才进入这个无休止的重启循环。

即如果我将以下内容放入我的脚本中,它只会重启设备,然后所有 Culebra 生成的命令只会导致设备重启

self.vc.device.touchDip(173, 1111)

编辑 2:添加了更多信息
我已经在几个不同的模型上复制了这种行为,但我主要使用以下模型:

设备:Google Galaxy Nexus - 4.3 - API 18 - 720x1280

$ culebra -v
culebra 10.7.2

$ dump -v
dump 10.7.2

dump
android.widget.FrameLayout  
 android.view.View com.android.launcher:id/workspace 
  android.view.View com.android.launcher:id/cell3 
     android.appwidget.AppWidgetHostView  
        android.view.View com.android.deskclock:id/analog_appwidget 
     android.widget.TextView  Camera
....

$ adb shell date
Thu Aug 20 12:44:08 EDT 2015

不同的 x,y 坐标也会重启设备:

adb shell input tap 200 900 <--- restarts the phone as well

编辑 3:登录 adb 后的屏幕截图 shell
phone 在此处的第二个命令后再次重新启动

我从来没有听说过这样的事情,那么我猜这与您的特定环境、设备或版本有关(您的问题中缺少详细信息)。

无论如何,我没有解决方案,因为我不知道这个问题,我会给你一些提示来找到原因。

首先,检查 adb 是否正常工作并且您可以连接到设备:

亚行shell

AndroidViewClient/culebra 使用 input tap 命令发送触摸事件,然后发送类似

adb shell input tap 173 1111

暂时忽略DIP,直接发送PX坐标即可

另外测试dump验证是否可以获取到屏幕内容

dump -a

我希望这可以帮助您发现问题。