How to reboot android device emulator in Genymotion

本小妞迷上赌 提交于 2019-11-28 21:30:46
eyal-lezmy

You can use the command line with adb reboot. It should restart your device.

To use adb you need to be inside the adb binary's folder. ie, <android SDK>/platform-tools/ or <genymotion folder>/tools/ if the android SDK is not installed. You can also these folders to your path to access it from anywhere.

works for me on mac:

  • open terminal
  • go to /Applications/Android Studio.app/sdk/platform-tools
  • make sure adb is in directory (use ls command)
  • ./adb reboot

Genymotion emulator restarts...

You can press emulator power button. When pressed, you will see option dialog. That dialog you can choose "Restart". Hope for help.

Found the solution using also the answer from @eyal-lezmy and other stuff on the web. If you have more than one device running, you can reboot a specific device in this way

  1. LIST DEVICES

From <genymotion-installer-path> launch genymotion-shell

Inside the shell, run devices, take note of IP address and port of the device you want to reboot and exit.

  1. REBOOT WITH ADB

From <android-sdk-folder>/platform-tools run

adb -s <device-ip>:<device-port> reboot

When on linux I found the adb binary in /path/to/genymotion/tools/adb

In my case:

~/genymotion/tools/adb reboot

Works like a charm.

Press and HOLD the power button on Genymotion's UI on the bottom right. That will pop up the menu to restart. The app will freeze up as it shuts down, but upon rebooting it you will see that it has restarted.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!