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

11,107

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
Share:
11,107
Nerdy Bunz
Author by

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, 2022

Comments

  • Nerdy Bunz
    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:

    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?

    • Suleyman
      Suleyman almost 6 years
      Do you have an option of Cold Boot Now in AVD manager when you click on an arrow next to the settings button?
    • Nerdy Bunz
      Nerdy Bunz almost 6 years
      Nope. Android Studio 3.1.2 on mac.
    • Suleyman
      Suleyman almost 6 years
      I have a Mac too, I'll see if I have it
    • flash76
      flash76 almost 6 years
      Can't you shut down your AVD when you're done with it? When you need to use it again, it will cold boot.
    • Suleyman
      Suleyman almost 6 years
      Wanted 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
      Nerdy Bunz almost 6 years
      Thanks for getting back. That's wierd, mine just starts without asking me anything.
    • Suleyman
      Suleyman almost 6 years
      And when you click on the arrow which options do you have?
    • Nerdy Bunz
      Nerdy Bunz almost 6 years
      None, it just starts the emulator without asking anything. :S
    • Nerdy Bunz
      Nerdy Bunz almost 6 years
      Oh crap I'm sorry I realized you meant the down arrow... not "play" arrow. DERP! Thanks!
    • Suleyman
      Suleyman almost 6 years
      no problem :) glad I could help :) good luck!