Search code examples
androidadb

How do I restart an android emulator?


I'm basically trying to do this: Changing the Android emulator locale automatically

Everything works up until 'start'. the emulator starts to boot but keeps loading at the shimmering 'ANDROID' screen forever. I must be missing something... How can I restart the emulator from ADB?

Okay, I should be more specific.

I am trying to do this from the command line using adb. I can use adb to setprop and I can stop the emulator. When I try doing 'start' in the adb shell, the emulator does begin to boot, but it never returns to the lock screen.


Solution

  • I'm pretty sure this will work:

    • Clear/Wipe the AVD to defaults or create a new one.

    • Start the AVD/Emulator from the CLI with the following command

      emulator -avd my_avd -prop persist.sys.language=en -prop persist.sys.country=GB
      

    change as needed. That way you are not messing with the system image which can cause hangs/crashes. And you can easily set it on boot for a variety of Locales.