我认为有一种方法可以通过Wi-Fi测试开发中的应用程序。这可能吗?

我希望能够解开我的手机,无线开发。


当前回答

最好和超级简单的方法是:-

制作批处理文件:-

亚洲开发银行设备 Adb tcpip 5555 adb connect 192.168.9.120:5555(您的电话ip xxx.xxx.x. com)。xxx: 5555)

将此文件放入android sdk platform-tool文件夹。 例子:C:\Users\当地的user_name \ AppData \ \ Android \ Sdk \平台工具 右键单击文件>发送到>桌面(创建快捷方式) 就是这样……

现在你只需要通过USB连接你的手机,然后打开桌面快捷方式,断开你的手机…

其他回答

使用ADB调试Android Wifi的步骤:

$> adb devices   // check all usb debuggable devices connected.

$> adb -d shell  // Access device shell.

shell> ifconfig  // Check and copy wifi ip-address eg:192.168.1.90

shell> exit      // Exit from android device shell.

$> adb tcpip 5000   // open TCP port 5000 (or any available)

$> adb connect 192.168.1.90:5000  // connect to device via wifi ip over specific TCP port.

$> adb devices   // you will get debuggabled android device over wifi.

必备:通过USB连接您的android设备到计算机 启用开发人员模式。同时将你的android设备和电脑连接起来 到同一个wifi路由器(或使用tethering)。

注意:-安卓手机必须是根,不需要usb线。

在android手机上安装wifi adb

链接:https: / / play.google.com/store/apps/details ? id = com.ttxapps.wifiadb

对于Windows

我用的是这个技巧,非常简单。

1)下载adb:

链接:https://www.dropbox.com/s/mcxw0yy3jvydupd/adb-setup-1.4.3.exe?dl=0

2)运行exe:—当你看到蓝屏时按y enter。

3)现在打开你的wifi adb apk,只需授予root权限,必须记住你的android手机和系统通过wifi或热点在同一个网络上。

4)打开Wifi adb apk,你会得到一些ip地址,比如adb connect 192.168.2.134:5555 注意这个ip可能非常不同于不同的系统,现在把这个信息放到命令提示符中,然后按Enter键。

5)在任意位置打开cmd,输入adb connect 192.168.2.134:5555。

6)最终您成功连接到adb。它会显示像这样的消息 连接到192.168.2.140:5555

对于Mac Os

这是最简单的方法,将提供自动更新。

1)安装自制程序

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2)安装亚行

brew cask install android-platform-tools

3)开始使用adb

adb devices

4)打开Wifi adb apk,你会得到一些ip地址,比如,adb connect 192.168.2.134:5555注意这个ip可能很从系统到系统,现在把这个信息输入到你的终端并按Enter。

5)在mac os中任意打开终端,输入adb connect 192.168.2.134:5555。

6)最终您成功连接到adb。它将显示类似于已连接到192.168.2.140:5555的消息

希望对你有所帮助,谢谢!

经过长时间的搜索,我发现:

我得走了

adb connect <device_ip_address>:5555 

断开USB后。

最好的方法是使用ADBConnect (Eclipse插件)和ADB Wireless (Android设备应用程序)。

对于安卓11手机和安卓工作室大黄蜂版本,有新的更新。你只需要从安卓手机上扫描二维码就可以了 繁荣!它是相连的。

节省复制粘贴过程的时间。 有用的官方文件在这里