How to create snapshots.img from the console?

When creating a new AVD through the AVD manager, you can enable the snapshot function by simply checking the correct option in the "Create New AVD" window.

enter image description here

After creating the AVD, you can find the file with the name snapshots.imgunder <user-home>/.android/avd/<avd-name>/. This is a snapshot storage file for the new AVD.

Does anyone know how to get the same result using command line tools?

I already tried to create a new AVD using the command android create avd, and also set the option snapshot.present=truein AVD config.ini, but the snapshot storage is not created.

+5
source share
2 answers

I managed to create a snapshot storage file.

- QEMU. , Linux qemu-img ( ).

snapshots.img, :

qemu-img create -f qcow2 snapshots.img 500M

+4

android create avd --snapshot, snapshots.img snapshot.present=true.

+1

All Articles