Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Cold Boot Emulators Running API 27+ on Android Studio?

While working with emulators in Android Studio, I prefer to have them always cold-boot because:

1) I like it when the emulator window closes immediately after clicking "X-close" rather than beginning a new "saving state" procedure.

2) I find that many-a-bugaboo occurs when returning to a "saved state" with these emulators (connection timeout on bootup, weird graphics behavior, loss of logcat connection, garbled data retrieved from shared prefs)

So... what I have always done is to go into AVD manager and change the settings like this:

enter image description here

However, when I attempt this with an emulator running API 27 or higher:

enter image description here

...there appears to be no cold boot option:

enter image description here

I have googled to try to find how to configure cold boot on these newer API emulators but can't find anything.

Is it possible to cold boot emulators running API 27+ on Android Studio?

like image 843
Nerdy Bunz Avatar asked May 18 '18 23:05

Nerdy Bunz


People also ask

What is cool boot in Android Studio?

The first time you start an Android Virtual Device (AVD) with the Android Emulator, it must perform a cold boot (just like powering on a device), but subsequent starts are fast and the system is restored to the state at which you closed the emulator last (similar to waking a device).


1 Answers

Change config in:

%path_to_home%/.android/avd/%your_avd_image%/config.ini

Instead of

fastboot.forceColdBoot=no

you should set

fastboot.forceColdBoot=yes
like image 112
Max Elkin Avatar answered Oct 27 '22 00:10

Max Elkin