简体   繁体   English

如何完全不使用USB电缆通过TCP连接到具有ADB的Android手机?

[英]How can I connect to Android phone with ADB over TCP without using a USB cable at all?

Since my android phone does not connect via usb to my pc anymore (it just start charging), i would like to know if it is possible to install/debug apps (using Android Studio or Eclipse) via wifi (my device is NOT ROOTED). 由于我的Android手机不再通过USB连接到我的PC(它才开始充电),我想知道是否可以通过wifi(我的设备未旋转)安装/调试应用(使用Android Studio或Eclipse)。 。 I have another phone (LGP690) that is configured to be a wifi hotspot. 我有另一部配置为wifi热点的电话(LGP690)。 My PC and the other smartphone (an LG P880, the one with usb connection problem) are connected to it. 我的PC和另一部智能手机(一台LG P880,存在USB连接问题)已连接到它。 Note that the LGP690 phone can be connected to my PC via usb. 请注意,LGP690手机可以通过USB连接到我的PC。

Have you tried doing any of the options below with your LG P880? 您是否尝试过使用LG P880进行以下任何选择?

  • Connect your cellphone to your computer 将手机连接到计算机
  • Right click on your My Computer and go to Properties then Device Manager 右键单击“ My Computer ,然后依次转到“ Properties和“ Device Manager
  • Look for your device (It may be under Other Devices or under a separate branch maybe LG) 查找您的设备(它可能在“其他设备”下,也可能在LG的单独分支下)
  • When you find the device, right click on it and select uninstall 找到设备后,右键单击它,然后选择“卸载”
  • In the meantime, you can go to this link and download Universal Windows ADB Driver (This one worked for me) or if you want to use the one you downloaded from SDK Manager, just go to: C:/Users/(Username)/AppData/Local/Android/sdk/extras/google/usb_driver 同时,您可以转到此链接并下载通用Windows ADB驱动程序(该驱动程序对我有用),或者,如果您想使用从SDK Manager下载的驱动程序,只需转到: C:/Users/(Username)/AppData/Local/Android/sdk/extras/google/usb_driver
  • When you finish uninstalling the driver unplug it and plug it back in so the computer can recognize the device. 完成卸载驱动程序后,将其拔出并重新插入,以便计算机可以识别该设备。
  • When the computer recognize it, go back into device manager and look for the device that has an yellow exclamation point. 计算机识别出它后,返回设备管理器并查找带有黄色感叹号的设备。
  • Right click on the device with the yellow exclamation point and click Update Driver Software... 右键单击带有黄色感叹号的设备,然后单击“ Update Driver Software...
  • When the update driver window shows up, click Browse my computer for driver software 当显示更新驱动程序窗口时,单击Browse my computer for driver software
  • If you downloaded and installed the Universal ADB, the you must direct the path to C:/Program Files (x86)/ClockworkMod/Universal Adb Driver/usb_driver if not then to the other path which is the one I mentioned above 如果您下载并安装了通用ADB,则必须将路径定向到 C:/Program Files (x86)/ClockworkMod/Universal Adb Driver/usb_driver 否则 请定向 到另一个路径,即我上面提到的路径
  • Wait until installation finish then restart the computer (Optional) then give it a try. 等待安装完成,然后重新启动计算机(可选),然后尝试一下。

Connect android phone without using USB cable except XIAOMI PHONES 除了XIAOMI PHONES以外,不使用USB电缆即可连接android手机
== MAKE SURE THAT YOUR PHONE HAS USB DEBUGGING ENABLED == ==确保您的手机已启用USB调试功能==
== IP Address series should NOT be '0' like 192.168. == IP地址系列应该是“0”像192.168。 0 .10 0 .10
1. Connect your PC (Laptop) and Android phone to same wifi network. 1.将您的PC(笔记本电脑)和Android手机连接到相同的wifi网络。
2. Goto Android SDK folder > platform-tools and Open command prompt holding Shift key from folder. 2.转到Android SDK文件夹>平台工具,然后从文件夹中按住Shift键打开命令提示符。
3. Type command "adb tcpip 5555", and hit Enter, sometimes it gives error but ignore it and go ahead. 3.键入命令“ adb tcpip 5555”,然后按Enter键,有时会出现错误,但会忽略并继续。
4. Type "adb connect [YOUR PHONE IP]". 4.键入“ adb connect [您的电话IP]”。 example: adb connect 192.168.1.34 and hit enter, Your phone will be connected to PC. 例如:adb connect 192.168.1.34并按Enter,您的电话将连接到PC。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在没有 usb 电缆的情况下通过 wifi 网络连接 ADB? - How to connect ADB over wifi network without usb cable? 未连接 USB 电缆时,ADB over TCP/IP 无法正常工作 - ADB over TCP/IP not working without USB cable connected 如何在没有 USB 电缆的情况下 ADB USB 调试模式 - How to ADB USB Debugging Mode without USB Cable 无法通过TCP / IP连接Android ADB - Unable to connect Android ADB over TCP/IP 将计算机和手机与 USB 电缆配对一次,然后始终通过 WiFi 使用 ADB,即使在重新启动后也是如此 - Pair computer and phone with USB cable once, and then always use ADB over WiFi, even after reboot 我如何通过Adobe Air通过USB将Arduino连接到android? - How can I connect Arduino to android over usb with adobe air? 仅当手机使用USB电缆连接到计算机时,A​​ndroid应用才会启动 - Android app only starts if phone connected to computer using usb cable 当USB电缆循环时,Android ADB-over-WiFi仍会断开连接(?!?) - Android ADB-over-WiFi still disconnects when USB cable is cycled (?!?) 如何编写代码以使用XAMARIN中的USB电缆将硬件设备连接到Android移动设备 - How to write code to connect a hardware device to Android mobile using USB cable in XAMARIN 如何通过USB电缆从Android应用程序访问tomcat服务器? - how to access tomcat server from android app over usb cable?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM