Android模拟器:如何复制模拟器/AVD? [英] Android Emulator: How to Copy an Emulator / AVD?

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

问题描述

我目前正在对Google App商店(又名Google Play)中已有的现有应用程序进行升级.我想测试客户升级时数据转换是否顺利.

I am currently making an upgrade of an existing app that's already on the Google App store (aka Google Play). I want to test that the data conversions go smoothly when customers upgrade.

我有一个安装了旧版本应用程序的AVD.通常的事情是在此应用程序上运行新版本,然后查看它是否有效.但是问题在于,这样做之后,该特定的AVD不再模仿旧状态.

I have an AVD with the old version of the app installed. The usual thing would be to run the new version on this app and see if it works. But the problem is that after doing this, that particular AVD is no longer mimicking that old state.

我想制作此AVD/仿真器的副本(是的,整个过程!),以便进行重复测试.

I'd like to make copies of this AVD/Emulator (yeah, the whole thing!) so that I can make repeated tests.

这似乎经常发生,但我找不到这种情况的参考.还是我缺少明显的东西(我希望!)?

This seems like something that would happen often, but I can't find any references to this situation. Or am I missing something obvious (I hope!)?

推荐答案

如果要创建AVD的备份,请执行以下步骤:

If you want to create a backup of your AVD, then follow the below steps:

要在计算机上找到您的avd文件夹,请检查您的用户目录.对于我来说,用户名为"zax",这些位置是:

To find your avd folder on you machine, check your user directory. For me, with user name "zax", those locations are:

  • Windows 7:\ users \ zax.android

  • Windows 7: \users\zax.android

Windows XP:Windows XP上为C:\ Documents and Settings \ zax.android \

Windows XP: C:\Documents and Settings\zax.android\ on Windows XP

Linux/Mac:〜/.android

Linux/Mac: ~/.android

备份AVD的步骤:

  • 转到.android文件夹,然后选择要导出的avd.

  • Go to the .android folder and pick the avd you want to export.

压缩device.avd文件夹和device.ini文件. (在哪里, 设备是要备份的设备的名称.例如. mmx.avd和mmx.ini)

Compress the device.avd folder and the device.ini file. (where, device is the name of the device that you want to backup. Eg. mmx.avd and mmx.ini)

这些AVD,您甚至可以跨OS进行移动,唯一的事情是您必须在device.ini文件中更改用户名,因此Win和Linux的斜杠等语法是不同的.

These AVD, you can even move across OS, Only thing is you have to change the user name in the device.ini file and so syntax like slash is different for win and linux.

转到AVD管理器>导入>选择备份的.avd>如果显示x标记,请修复设备.

Goto AVD manager> Import > select the backed up .avd > in case x mark is show, repair the device.

希望这符合您的要求.

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

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