Issue
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.
Solution
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
Answered By - Andrea
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.