我认为有一种方法可以通过Wi-Fi测试开发中的应用程序。这可能吗?
我希望能够解开我的手机,无线开发。
我认为有一种方法可以通过Wi-Fi测试开发中的应用程序。这可能吗?
我希望能够解开我的手机,无线开发。
当前回答
注意:-安卓手机必须是根,不需要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的消息
希望对你有所帮助,谢谢!
其他回答
通过USB连接设备并确保调试工作正常。如果您已经安装了adb并在environment varialbe中设置了它的路径,则执行这些步骤
打开CMD,输入以下命令 Adb tcpip 5555 使用adb shell IP route查找IP地址 adb connect DEVICE_IP_ADDRESS:5555 断开USB并进行无线调试。
在Android 11的开发者选项中,有无线调试。确保你的笔记本电脑和手机在同一个网络下,然后执行下面的2个命令。注意,pair的端口与connect的端口不同,第一次只需要配对(以后只需要连接)。
Adb pair ipaddr:端口
adb pair 192.168.1.6:42049
// will output
Enter pairing code: 696686
Successfully paired to 192.168.1.6:42049 ...
Adb connect ipaddr:端口
adb connect 192.168.1.6:37203
// will output
connected to 192.168.1.6:37203
除了 如果你在“platform-tools”目录下,这些命令将只在android studio终端上工作。cd C:\Users\username\AppData\Local\Android\Sdk\平台工具>
最好的方法是使用ADBConnect (Eclipse插件)和ADB Wireless (Android设备应用程序)。
>## open command prompt with Run as Administrtor ##
adb connect ipdevice:5037
1-为此,我认为你已经安装了最新版本的Android studio。如果没有,你可以从这里下载。
2 -可以在“环境变量”中设置平台工具路径(可选)。
3 -确保你的设备和电脑连接到同一个网络。
plug in the data cable from pc to device. Now, type adb tcpip 5555 remove data cable. Then type adb connect 192.168.43.95 here 5555 is the port number and 192.168.43.95 is the ip address of the mobile device you can get id address from the mobile settings . Then go to About device and go to status you can see the ip address of the device. You can connect multiple device from different ports which can give ease in development. Or you can go to this link for brief description with screenshots. http://blogssolutions.co.in/connect-your-android-phone-wirelessly-by-adb