Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Saving Android emulator snapshot via telnet fails on "KO: No block device can accept snapshots"

I launched Android emulator. I connected to emulator using telnet localhost 5554.

When I try to save a snapshot with avd snapshot save foo, I get KO: No block device can accept snapshots.

When I try to list available snapshots with avd snapshot list, I get KO: No available block device supports snapshots.

like image 751
Juuso Ohtonen Avatar asked Jan 31 '26 00:01

Juuso Ohtonen


1 Answers

The main reason of "no available block device" is that you do not assign the snapshot file to the emulator. You can restart your emulator with the following parameter:

emulator -snapstorage path/to/data/dir/snapshots.img

You can refer more information from "emulator -help".

PS: The snapshots.img uses a specific format and you cannot use just a blank file as the snapshot storage. You can see here for more information about creating a snapshot image:

How to create the snapshots.img from console?

like image 133
naizheng TAN Avatar answered Feb 01 '26 14:02

naizheng TAN



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!