Android的 - 运行/通过WiFi安装/调试应用程序? [英] Android - Run/install/debug applications over WiFi?
问题描述
我想有办法通过WiFi来测试您的应用程序的开发,这是准确的?我很想能够untether我的手机和无线发展。
I thought there was a way to test your applications in development over WiFi, is this accurate? I'd love to be able to untether my phone and develop wirelessly.
推荐答案
下面参见:<一href="http://forum.xda-developers.com/showpost.php?p=7594419&postcount=9">http://forum.xda-developers.com/showpost.php?p=7594419&postcount=9
- 在通过USB连接的设备,并确保调试工作。
-
ADB TCPIP 5555
-
ADB连接&LT; DEVICE_IP_ADDRESS&GT;:5555
- 断开USB和进行无线调试。
-
ADB -s&LT; DEVICE_IP_ADDRESS&GT;:5555 USB
完成后切换回
- Connect device via USB and make sure debugging is working.
adb tcpip 5555
adb connect <DEVICE_IP_ADDRESS>:5555
- Disconnect USB and proceed with wireless debugging.
adb -s <DEVICE_IP_ADDRESS>:5555 usb
to switch back when done.
没有根所需!
要查找设备的IP地址:运行亚行外壳
然后加上netcfg
。你会看到它。
To find the IP address of the device: run adb shell
and then netcfg
. You'll see it there.
@Sergei建议,第2行应该进行修改,评论:连接到USB设备时,其他连接仍然存在需要-d选项(例如仿真器连接或其它WiFi设备)
@Sergei suggested that line 2 should be modified, commenting: "-d option needed to connect to usb device when other connection persists (for example emulator connected or other wifi device)".
这信息可能是有价值的,以未来的读者,但我回滚到已收到178 upvotes的原始版本。
This information may prove valuable to future readers, but I rolled-back to the original version that had received 178 upvotes.
这篇关于Android的 - 运行/通过WiFi安装/调试应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!