我认为有一种方法可以通过Wi-Fi测试开发中的应用程序。这可能吗?
我希望能够解开我的手机,无线开发。
我认为有一种方法可以通过Wi-Fi测试开发中的应用程序。这可能吗?
我希望能够解开我的手机,无线开发。
当前回答
我通读了每一个答案,发现没有使用android和根的方法。(使用android 11)
1)。使用termux,我安装了android-tools包,这很容易遵循termux的wiki。
2)打开设置->无线调试:并切换无线调试
3.)单击“配对设备与配对码”。
4)。使用设置应用程序和termux启用分屏。在termux中(设置应用程序仍然打开)输入命令adb pair ip:port(这里的端口就是你在上面的分屏中看到的端口)
5.)它会问你一个代码,再次使用你看到的分屏设置应用程序。
6.)在termux中输入命令adb connect ip:port(确保端口是你上面看到的端口,因为它可能与你刚刚输入的端口不同)
整个过程可以自动使用任务器,我不会张贴在这里,因为我发现它快速和容易手动完成,但任务器的创造者有一个指南在这里的某个地方。
其他回答
对于Ubuntu / Linux:
Make sure your device is working for debugging: http://developer.android.com/tools/help/adb.html#Enabling Go to your sdk folder and find the folder platform-tools Use ./adb devices to list the connected devices. Make sure it is only one device connected and no emulator running. Find your device IP address, you can find it in your device: http://developer.android.com/tools/help/adb.html#wireless, or got adb shell like this: ./adb shell then netcfg. You will see a list of IP addresses. Find wlan0, in my case 192.168.100.3/2. ./adb tcpip 5555 Finally enter ./adb connect <Your device IP Address>:5555 in your terminal. You can now deploy the application to your device over 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连接你的手机,然后打开桌面快捷方式,断开你的手机…
最好的方法是使用ADBConnect (Eclipse插件)和ADB Wireless (Android设备应用程序)。
>## open command prompt with Run as Administrtor ##
adb connect ipdevice:5037
经过长时间的搜索,我发现:
我得走了
adb connect <device_ip_address>:5555
断开USB后。