How to reboot or turn off the Genymotion device?

I follow the guide to installing Google Play on a Genymotion virtual machine. The manual says that it runs adb reboot . How to do it?

A comment on the guide asked the same question, and someone answered this: adb connect 192.168.56.101 , and then adb -e reboot . But entering the first command gives me an error:

 adb server is out of date. killing... cannot bind 'tcp:5037' ADB server didn't ACK * failed to start daemon * error: 

A long press button on the emulator displays an option on Android to disconnect the device, but when I try to disconnect the device this way (via Android), the emulator hangs on "Shutting down ..." and doesn’t turn off the device.

Linux Mint 17; Genymotion 2.3.1; Android 4.4.4

+5
source share
3 answers

If you have adb installed as part of your Linux distribution, then your PATH probably points there. Most likely, this is adb - version 1.0.31 (or earlier).

Genymotion comes with its adb in the tools/ directory, which is version 1.0.32 if you are using the latest version of Genymotion, currently 2.3.1. If you have not changed it in the settings, Genymotion will launch a bridge with this copy.

Since adb works in a client-server configuration, the client version must match the daemon version. In your case, they do not, and why you get the adb server is out of date. killing... message adb server is out of date. killing... adb server is out of date. killing... If the daemon is killed or dies, the Genymotion launcher automatically and immediately restarts adb (using its own copy) and therefore your client cannot start a new daemon associated with port 5037.

The solution is to make sure that the version of adb that you invoke on the command line matches the version that Genymotion brings up as a daemon when starting virtual machines. The easiest way to provide this is to simply use the adb binary in the Genymotion tools/ directory.

Note that if you changed the default Genymotion value using your own tools to use custom SDK tools, you will need to use the adb client that matches the version contained in the SDK that you are pointing to. As far as I can tell, KitKat (4.4.4) and earlier SDKs contain adb version 1.0.31, while Lollipop SDKs (5.0) have 1.0.32.

+4
source

Just go to the Genymotion installation directory:

For my PC: C: \ Program Files \ Genymobile \ Genymotion \ tools

Open a command prompt and change to this directory:

(cd C: \ Program Files \ Genymobile \ Genymotion \ tools)

C: \ Program Files \ Genymobile \ Genymotion \ tools>

and enter the command:

reboot adb

+8
source

I am having problems using adb, but if you press the power button for a long time, it will display the power menu and make a complete shutdown, not a snapshot and pause.

+3
source

Source: https://habr.com/ru/post/1208270/


All Articles