Android Emulator: How to Copy an Emulator / AVD?

10,363

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

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 XP: C:\Documents and Settings\zax.android\ on Windows XP

  • Linux/Mac: ~/.android

Steps for backing up your AVD:

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

  • 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)

  • Copy the compressed files to the new location

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.

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

Hope this has met your requirements.

Share:
10,363
SMBiggs
Author by

SMBiggs

Computer Scientist originally from Austin, Texas. Worked on computer games and the movie/film industry as both programmer and director/producer since 1991. Android developer with experience for both small and enterprise-level apps. Knowledge of over two-dozen computer languages and operating systems (yes, I learn quickly!).

Updated on June 19, 2022

Comments

  • SMBiggs
    SMBiggs almost 2 years

    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.

    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.

    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!)?

  • SMBiggs
    SMBiggs over 10 years
    Good enough for a check! However, for me (on a macintosh), all the AVDs are in the ~/.android/avd/ directory. Also, note that on my version of the AVD manager there is no import. But making a copy in the same directory with a different name will show up automatically by hitting the "refresh" button in the AVD Manager.