Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android emulator - Don't save state by default

In the latest update for Android studio, the emulator has started saving snapshots of the current state of the device by default and going back to that snapshot when reopened, which is not the behavior that I want. How can I disable that and go back to the previous behavior, where it just closes and resets the emulator?

UI after hitting the X button to close

enter image description here

Android Studio 3.0.1, with Emulator version 27.0.2 and HAXM 6.2.1

like image 969
Patrick Beagan Avatar asked Dec 29 '17 15:12

Patrick Beagan


People also ask

How do I change Android Emulator storage?

On Android StudioClick Edit Icon to edit the AVD. Click Show Advanced settings. Change the Internal Storage, Ram, SD Card size as necessary. Click Finish.

How do I close all terminals from an emulator?

Simply select the active emulator and click on x to stop it. It just closes that sub-window for me on Mac. The device is still running.


2 Answers

disable that and go back to the previous behavior

Unselect quick boot as shown below

This is default behaviour from update of Android Studio 3.0

Please unselect quick boot if you don't want to save state and select cold boot

Check quick boot emulator in details

Steps

1> Choose device like phone - pixel 2

2> select your system image

3> Verify configuration - show advance setting - emulator performance check cold boot to disable

4> Finish

enter image description here

OR

you can also change it from

Emulator --> More --> Settings --> Change quick-boot state --> Save

enter image description here

like image 184
Amit Vaghela Avatar answered Sep 28 '22 02:09

Amit Vaghela


Updated thanks to @James KO Steps are very similar:

... (on the right panel) -> Snapshots tap -> Settings (top tab on detail view) -> Auto-save current state to Quickboot dropdown

updated image

end update

In the latest version of the Android Studio (I am running 3.1.2), it is no longer in the AVD Manager settings. I found it under Extended Controls on emulator itself.

  1. Start emulator
  2. Click three dots (...) on emulator panel enter image description here
  3. Go to Settings -> General, towards the bottom "Save quick-boot state on exit for AVD:" enter image description here
like image 39
mike.tihonchik Avatar answered Sep 28 '22 02:09

mike.tihonchik