Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Is it possible to use Nandroid to backup an AVD instance?

share|improve this question
    
should be, but why not just use the built in snapshot system? –  ewanm89 Oct 8 '12 at 19:37
1  
An AVD instance can be backed up, found in hidden directory called .android/avd.. –  t0mm13b Oct 8 '12 at 19:43
    
Because I would extract the system.img of the Nandroid backup and use it to create other AVD instances based on that backup. If I use the snapshot function I am not sure I can create new virtual devices with different HW and the same system image. –  Andrea Oct 8 '12 at 19:45
    
I've been looking into the .android/avd/ folder, but I didn't actually find any system.img file. Am I missing something? –  Andrea Oct 8 '12 at 19:47
add comment

1 Answer 1

up vote 3 down vote accepted

The system images system.img are located in the android SDK install directory under system-images/android-<platform-version>/<platform-type>.

Once you create the AVD, in the %USERPROFILE%/.android/avd/<AVD_NAME>.avd you will find the img files for /sdcard/ and /data/, but /system and such are loaded from the SDK path mentioned above.

In order to create an AVD you must install the system images from the SDK manager.

share|improve this answer
    
Ok, thanks for this clarification. Anyway I still don't get how I could for example install one application in the emulator, save its current state (the system state, i.e. the system.img file, I guess) and use it to create a new AVD. With the system.img I could just put it in one of the android-sdk/platforms/android-XX/images folders, and create a new AVD with that platform to have an exact system replication... –  Andrea Oct 8 '12 at 20:30
1  
you would basically copy the sdcard.img and userdata.img between the instances of the AVD. –  Ryan Conrad Oct 8 '12 at 20:39
    
Ok, I got where I was wrong. I was trying to backup the system.img file with Nandroid, while I actually needed the userdata-qemu.img file and I can easily grab it in the AVD folder. Thanks for your help. –  Andrea Oct 17 '12 at 10:25
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.