我如何把Android模拟器的状态的快照? [英] How do I take a snapshot of the Android emulator's state?

查看:992
本文介绍了我如何把Android模拟器的状态的快照?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我启动Android模拟器从 Android SDK和AVD管理我可以检查箱子从快照启动保存到快照等等当我关闭它的仿真器的状态保存,并再次恢复时我启动它。这是伟大的,因为我没有等待的Andr​​oid的模拟器启动,每次开机。不过,我也希望在会议期间采取仿真器的状态的快照,并随后在会议期间恢复到快照,例如重新运行我的测试。我该怎么做呢?目前似乎没有任何控制这在AVD管理。

When I launch the Android emulator from the Android SDK and AVD Manager I can check the boxes Launch from snapshot and Save to snapshot so that the emulator's state is saved when I close it and restored again when I launch it. This is great because I don't have to wait for Android to boot each time the emulator is launched. However, I also want to take snapshots of the emulator's state during a session and later during the session revert back to the snapshot, for example to re-run my tests. How do I do this? There do not seem to be any controls for this in the AVD Manager.

推荐答案

我找到了答案感谢<一href="http://stackoverflow.com/questions/4842612/how-do-you-save-android-emulator-snapshot/5980578#5980578">this评论。要采取并加载快照,启动Telnet会话到仿真器:

I found the answer thanks to this comment. To take and load snapshots, start a Telnet session to the emulator:

$ telnet localhost 5554
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Android Console: type 'help' for a list of commands
OK
avd snapshot save snapshot_name
OK
avd snapshot load snapshot_name
OK

Android模拟器冻结了几秒钟,同时节省/加载的快照。您也可以使用 AVD快照列表

这篇关于我如何把Android模拟器的状态的快照?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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