简体   繁体   English

无线部署Android Apps

[英]Deploy Android Apps wirelessly

I'm an Android Developer. 我是一名Android开发人员。

Usually, I'm developing the apps on my phone via eclipse and USB cable. 通常,我会通过Eclipse和USB电缆在手机上开发应用程序。 I'm wondering if there is a possibility to get eclipse installing the apps without cable, eg via internet or WLAN. 我想知道是否有可能在不使用电缆的情况下(例如通过Internet或WLAN)安装应用程序。

According to this post on xda-developers, you can enable ADB over WiFi from the device with the commands. 根据xda-developers上的这篇文章,您可以使用命令从设备启用基于WiFi的ADB。 The only caveat is that you must have a rooted device to do this. 唯一需要注意的是,您必须具有植根设备才能执行此操作。

setprop service.adb.tcp.port 5555
stop adbd
start adbd

And you can disable it and return ADB to listening on USB with 您可以禁用它并返回ADB以通过

setprop service.adb.tcp.port -1
stop adbd
start adbd

If you have USB access already, it is even easier to switch to using WiFi. 如果您已经可以使用USB,则切换为使用WiFi甚至更容易。 From a command line on the computer that has the device connected via USB, issue the commands 在通过USB连接设备的计算机上的命令行中,发出命令

adb tcpip 5555
adb connect 192.168.0.101:5555

To tell the ADB daemon return to listening over USB 告诉ADB守护程序返回通过USB监听

adb usb

There are also several apps on the Android Market that automate this process. Android Market上还有一些可以自动执行此过程的应用程序。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM