Adb over wifi killed off after usb disconnect?

前端 未结 6 1821
小鲜肉
小鲜肉 2021-02-13 06:28

So with my nexus 5 im easily able to do something like this to connect adb over wifi:

adb tcpip 5555
adb connect 192.xxx.x.xx

and then disconne

6条回答
  •  悲哀的现实
    2021-02-13 06:45

    My research results that it is some bug or unexpected behavior in Android Studio 2.3.1, which kills running adb server (with all open connections) in some situations. In example when you disconnect USB cable or close Android Studio application.

    Steps to reproduce:

    1. Create TCP connection to android device by console window (i.e. adb connect 192.168.0.96)
    2. Check device is connected (adb devices)
    3. Run Android Studio and load any project
    4. Open Select Deployment Target window
    5. Close this window and Android Studio
    6. Check that adb server was killed (adb devices).

提交回复
热议问题