When creating a new AVD through the AVD manager it is possible to enable the snapshot feature by simply checking the right option in the "Create new AVD" window.
After creating the AVD you can find a file named snapshots.img
under <user-home>/.android/avd/<avd-name>/
. It is the snapshot storage file for the new AVD.
Does anybody know how to obtain the same result by using the command line tools?
I already tried creating a new AVD by using the android create avd
command as well as setting the option snapshot.present=true
in the AVD config.ini
, but no snapshot storage is created.
Press Ctrl + PrtScn keys. The entire screen changes to gray including the open menu. Select Mode, or in earlier versions of Windows, select the arrow next to the New button. Select the kind of snip you want, and then select the area of the screen capture that you want to capture.
I finally managed to create the snapshot storage file.
The documentation to consider is the QEMU one. In particular, under Linux you can use the qemu-img
tool (documentation here).
I created the snapshots.img
file by using this command:
qemu-img create -f qcow2 snapshots.img 500M
You can also do android create avd --snapshot
which will create the snapshots.img file for you and set the snapshot.present=true
flag.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With