How to Cold Boot Emulators Running API 27+ on Android Studio?
Solution 1
Change config in:
%path_to_home%/.android/avd/%your_avd_image%/config.ini
Instead of
fastboot.forceColdBoot=no
you should set
fastboot.forceColdBoot=yes
Solution 2
Adding to Max's Solution,path of config.ini is changed.Please find below path where we can find config file.
C:\Users\**YourName**\.android\avd\"Select your AVD"
After going to above path, we can see config file.Right click and open with notepad++ and search for below parameter and change it to yes.
fastboot.forceColdBoot=yes
Nerdy Bunz
Hi. Coding and creating new things gets me excited like a fizzy drink, but sometimes I run into headaches, so I come here for help. But I make sure to help other people too, so I think it works out. Apparently my posts often contain language considered extraneous by the pool cleaning robots who dutifully scrub it away on their regular patrols. "Bzzzz! Bzzzz!!! Desaturate, desaturate!" Fortunately, it's ACCESS DENIED for any editing attempts on this lil' article. They'll have to re-route the encryptions... and good luck with that. Oooo! Butterfly!!!! Anyway... when I'm not on here, I like to spend time sniffing and paddling my way around the enchanted river-forest near my house... and knitting my very own apps.
Updated on June 11, 2022Comments
-
Nerdy Bunz almost 2 years
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:
However, when I attempt this with an emulator running API 27 or higher:
...there appears to be no cold boot option:
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?
-
Suleyman almost 6 yearsDo you have an option of
Cold Boot Now
in AVD manager when you click on an arrow next to the settings button? -
Nerdy Bunz almost 6 yearsNope. Android Studio 3.1.2 on mac.
-
Suleyman almost 6 yearsI have a Mac too, I'll see if I have it
-
flash76 almost 6 yearsCan't you shut down your AVD when you're done with it? When you need to use it again, it will cold boot.
-
Suleyman almost 6 yearsWanted to get back to you because I finally checked with Android Studio 3.1 having the same emulator that you mentioned API 27. It's true there is no Cold Boot in Settings, but in the AVD manager, where all Emulators are listed, if I click on the arrow button which is next to the settings (pencil button) I have an option of Cold Boot Now.
-
Nerdy Bunz almost 6 yearsThanks for getting back. That's wierd, mine just starts without asking me anything.
-
Suleyman almost 6 yearsAnd when you click on the arrow which options do you have?
-
Nerdy Bunz almost 6 yearsNone, it just starts the emulator without asking anything. :S
-
Nerdy Bunz almost 6 yearsOh crap I'm sorry I realized you meant the down arrow... not "play" arrow. DERP! Thanks!
-
Suleyman almost 6 yearsno problem :) glad I could help :) good luck!
-