亚行通过WiFi USB断开连接后死光了? [英] Adb over wifi killed off after usb disconnect?

查看:202
本文介绍了亚行通过WiFi USB断开连接后死光了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我的Nexus 5的IM很容易就能做这样的事情,以通过WiFi连接亚行:

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

,然后断开USB连接线。我有其他设备即时试图连接(戴尔Venue 8平板电脑),但它似乎来自亚行wifi连接断开USB被拉后第二次分裂。

and then disconnect the usb cable. I have another device im trying to connect (Dell venue 8 tablet) but it seems to disconnect from the adb wifi connection a split second after the usb is pulled.

我用同样的命令:

adb tcpip 5555 (<- without another device connected)
adb connect 192.xxx.x.xx (tablet ip here)

执行ADB设备这表明双方在WiFi连接亚洲开发银行以及USB连接,但与平板电脑后,只要我杀了USB连接,在WiFi连接亚行也将终止。

Executing adb devices after this shows both the wifi adb connection as well as the usb connection, but with the tablet, as soon as I kill the usb connection, the wifi adb connection also terminates.

有没有人对为什么这可能会发生什么想法?

Does anyone have any thoughts on why this may be happening?

推荐答案

尝试连接到它没有USB电缆。

Try to connect to it without the usb cable.

  • Step 1. Use wifi adb on your phone to get the ip (needs rooted phone, but because your on stackoverflow I guess you have one).
  • step 2. Type in your console adb connect (ip shown in wifi adb)

如果这dosnt工作,请尝试连接时,您张贴在控制台得到确切的消息。

If this dosnt work please post the exact message you get in your console when trying to connect.

<一个href=\"http://android.stackexchange.com/questions/6949/can-i-use-adb-without-connecting-over-usb\">Non-Rooted解决方法:


  • 启用开发商设置USB调试和手机通过USB连接到您的计算机。

  • 运行ADB命令, ADB TCPIP 5555 (确保端口5555没有被任何防火墙程序)

  • <一个href=\"http://android.stackexchange.com/questions/2984/how-can-i-see-what-ip-address-my-android-phone-has/2988#2988\">Get您的Wi-Fi IP地址分配给您的设备并运行ADB命令

  • Enable USB-debugging in the developer setting and connect your phone to your computer via USB.
  • Run the adb command, adb tcpip 5555 (Make sure port 5555 is not blocked by any firewall programs)
  • Get your Wi-Fi IP address assigned to your device and run the adb command

ADB连接&LT; IP_ADDRESS&GT; 。例如, ADB连接192.168.1.133

现在你可以断开USB连接线并运行亚行外壳 ADB安装亚行推通过您的Wi-Fi的命令。

Now you can disconnect the usb cable and run adb shell, adb install, or adb push commands via your Wi-Fi.

中序切换回USB模式和禁用无线模式,运行下面的ADB命令。

Inorder to switch back to USB mode and disable the Wireless mode, run the following adb command.

ADB USB

您也可以简单地重新启动您的手机切换到USB模式。

You can also simply reboot your phone to switch back to the USB mode.

这篇关于亚行通过WiFi USB断开连接后死光了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆