2

I am trying to clone my AVD to another computer with no much luck. I want all the application installed on it will be saved together with the data.

I tried to follow some instructions I found on the web but they don't work for me. Simply copying the avd files including changing the ini files simply causing the AVD to load in a 'vanilla' mode where all the apps and data is lost...

Note, that doing so on my computer works so i can save a copy in that manner. I guess there is another configuration somewhere that I am missing but it is not in the avd folder.

any pointers?

Thanks!

Amit Moran
  • 285
  • 1
  • 2
  • 8
  • You only need to copy the SD card image used by the virtual machine. Then you need to configure the other AVD to use that as it's hard drive – OneCricketeer Nov 03 '17 at 12:32
  • Only the SD card? What about the other img files? – Amit Moran Nov 03 '17 at 19:13
  • Can't remember what the names are. Assuming the data you want is on that IMG file, then yes. My main point is that you should only need to move those – OneCricketeer Nov 03 '17 at 21:43
  • I tried.. from some reason it ignores my img files. I edited the configuration files to inflict the path changes with no luck... I'll try again with a different AVD maybe... – Amit Moran Nov 04 '17 at 07:09
  • doesn't work. it seems that from some reason the original folders' path are embedded in the qcow2 files. when i run the emulator from a command line i get messages saying it is searching for files and doesn't find them. the original files paths are listed.... Any idea? – Amit Moran Nov 05 '17 at 13:07
  • Sorry, not really. Personally, I still use Genymotion as my emulator, which is just a vmdk file – OneCricketeer Nov 05 '17 at 13:32

2 Answers2

0

Finally i found my problem and answer here: PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value

apparntly the AVD has hard coded base files in the qemu image files. I had to use the HEX editor to solve it.

Amit Moran
  • 285
  • 1
  • 2
  • 8
0

I have solved same problem by creating same virtual device on same API, run it first time, than copy several ini-files from new AVD to transferred one.

kyb
  • 7,233
  • 5
  • 52
  • 105