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

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


当前回答

在设备设置->“开发人员选项”->“撤销USB调试授权”。 通过USB连接设备并确保调试工作正常。 Adb tcpip 5555 adb connect <DEVICE_IP_ADDRESS>:5555 断开USB 亚洲开发银行设备

其他回答

通过USB连接设备并确保调试工作正常。如果您已经安装了adb并在environment varialbe中设置了它的路径,则执行这些步骤

打开CMD,输入以下命令 Adb tcpip 5555 使用adb shell IP route查找IP地址 adb connect DEVICE_IP_ADDRESS:5555 断开USB并进行无线调试。

>##    open command prompt with Run as Administrtor ##

    adb connect ipdevice:5037

android无线调试(MAC)

步骤1:进入sdk文件夹(常用路径“/Users/macname/Library/Android/sdk/platform-tools”) 打开CMD,运行"adb devices" output -附加设备列表

如果在CMD类型中没有找到adb命令 。/亚洲开发银行——的帮助 OS X / macOS:典型的~/。Profile或~/.bash_profile 在这里添加以下一行,并将其替换为安装platform-tools的路径:

步骤2: $PATH ="/Users/macname/Library/Android/sdk/platform-tools"

步骤3: $ adb设备 所附设备清单 ZH99FF7FTY设备

步骤4: $ adb tcpip 5555 以TCP模式重新启动端口:5555

步骤5: $ adb connect 10.124.32.18:5555 已连接到10.124.32.18:5555

下次重复步骤4和5重新连接 或者如果设备重新启动但没有连接,请再次执行步骤 祝你好运

使用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的消息

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