AndroidViewClient重启设备与每一个命令使用&QUOT后;触摸(X,Y)"命令一次 [英] AndroidViewClient restarts device with every command after using "touch(x,y)" command once

查看:167
本文介绍了AndroidViewClient重启设备与每一个命令使用&QUOT后;触摸(X,Y)"命令一次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用AndroidViewClient,就在最近的每一个动作我尽量让使用库莱布拉或任何相关的脚本只是重新启动虚拟设备。有没有人遇到过?

Using AndroidViewClient, just recently every action I try to make using Culebra or any of the associated scripts just restarts the virtual device. Has anyone ever run into this before?

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

**edit 1: ** More specifically, I get into this endless restart loop only after trying a command where I touch the device in a specific area.

即。如果我把下面进入我的脚本,它只会重新启动设备,然后所有进一步库莱布拉生成的命令只会导致设备重启

i.e. If I place the following into my script, it will just restart the device and then all further Culebra generated commands will just cause the device to restart

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

修改2:增加了更多的信息
我复制这种行为在几个不同的模型,但我主要的工作有以下几点:

edit 2: Added more information
I've replicated this behavior on a few different models, but I'm primarily working with the following:

设备:谷歌Galaxy Nexus的 - 4.3 - API 18 - 720x1280

Device: 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坐标重新启动设备,以及:

Different x,y coordinates restart the device as well:

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

修改3:截图后,登录到亚行外壳
这里的第二个命令后,手机再次重启

Edit 3: Screenshot after logged into adb shell
The phone restarts again after the second command here

推荐答案

我从来没有听说过这样的事情,那么我想是一些相关的特定环境,设备或版本(详细信息从你的问题丢失)。

I never heard of such thing, then I guess is something related to your particular environment, device or version (details missing from your question).

总之,而不是一个解决方案,我没有,因为我不知道这个问题,我会给你一些提示,以查找原因。

Anyway, instead of a solution, which I don't have as I don't know the problem I will give you some tips to find the cause.

首先,检查亚洲开发银行是工作,你可以连接到设备:

First of all, check that adb is working and you can connect to the device:

亚行外壳

AndroidViewClient /库莱布拉使用输入抽头命令发送触摸事件,再发类似

AndroidViewClient/culebra uses input tap command to send touch events, then send something like

adb shell input tap 173 1111

忽略DIP的时刻,只是把坐标PX。

ignore the DIP for the moment, just send the coordinates in PX.

此外,测试转储来确认可以得到画面的内容

Additionally, test dump to verify that the content of the screen can be obtained

dump -a

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

I hope this helps you detect the problem.

这篇关于AndroidViewClient重启设备与每一个命令使用&QUOT后;触摸(X,Y)&QUOT;命令一次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆