“adb devices” command on host first starts the adb server and then tries to connect to Android device.
All of this above two things can be done using single “adb reconnect” command which,
- Disconnects previous connection from device
- Reattempts the new connection by restarting daemon
- Also lists the device serial number
$ adb reconnect reconnecting B2NGAA8831702707 [device]
There are some other options also with reconnect command as below which you may use if needed,
internal debugging: reconnect kick connection from host side to force reconnect reconnect device kick connection from device side to force reconnect reconnect offline reset offline/unauthorized devices to force reconnect