Android CTS 在模拟器上显示 ShellCommandUnresponsiveException
我正在 Android 2.2 上运行的模拟器上运行 Android CTS Android 测试计划。
但大多数测试用例都显示超时,并且错误显示 com.android.ddmlib.ShellCommandUnresponsiveException。
有什么办法可以解决这个问题吗?
I am running Android CTS Android Test Plan on an emulator running on Android 2.2.
But most of the test cases are showing timeout and the error shows com.android.ddmlib.ShellCommandUnresponsiveException.
Is there any way to solve this issue ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将 shell 命令超时设置为 5 分钟(而不是 5 秒:-))
Set shell command time out to 5 minutes (instead of 5 seconds:-))
对于像我这样的新手,请注意:
make cts
cts.jar
来替换库存文件。这修复了 CTS 超时问题,因为某些 adb 命令需要 20 秒以上才能在我的 MotoA953 设备上返回(其中之一是
am Instrument -w -e bundle true android.tests.devicesetup/android.tests.getinfo.DeviceInfoInstrument< /代码>)。
A bit more notes for newbies like me:
make cts
cts.jar
to replace the stock one.This fix CTS timeout problem because some adb commands needs more than 20 seconds to return on my MotoA953 device (one of these is
am instrument -w -e bundle true android.tests.devicesetup/android.tests.getinfo.DeviceInfoInstrument
).