避免每次都必须执行adb tcpip 5555 [英] avoid having to do adb tcpip 5555 every time

查看:4233
本文介绍了避免每次都必须执行adb tcpip 5555的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢能够通过WIFI使用ADB与我的Android手机一起使用. 通过USB连接后,我运行adb tcpip 5555,然后可以断开USB并运行adb connect {phone's IP}:5555.

我不喜欢的是,每次必须重新启动手机时,都必须重新连接USB并重新运行adb tcpip 5555命令.

有什么方法可以使它记住5555设置,使其始终处于"TCP模式端口5555"?

谢谢

我的手机仅限Android 9.不扎根.在WIFI上尝试了ADB,但没有成功.

解决方案

在最新的Android 11开发人员预览版中,Android通过新的无线调试"功能支持将设备与Android Studio配对. >

请参见 https://developer.android.com/preview/features#wireless-亚行

对于较旧的设备,您可以使用Android Studio插件"Wifi ADB"作为临时解决方法.它模仿了此功能,并且效果很好.

I like being able to work with my android phone using ADB over WIFI. After connecting it via USB, I run adb tcpip 5555, and then I can disconnect the USB and run adb connect {phone's IP}:5555.

What I don't like is that every time I have to restart my phone, I have to reconnect the USB and rerun adb tcpip 5555 command.

Is there any way to make it remember the 5555 setting so it's always in "TCP mode port 5555"?

Thanks

EDIT: my phone is Android 9 limited. Is not rooted. Tried ADB over WIFI and it didn't work out.

解决方案

In the latest developer preview of Android 11, Android supports pairing your device to Android Studio via the new Wireless Debugging feature.

See https://developer.android.com/preview/features#wireless-adb

For older devices, you can use an Android Studio plugin "Wifi ADB" as a temporary workaround. It imitates this feature and works fairly very well.

这篇关于避免每次都必须执行adb tcpip 5555的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆