无法通过 ADB 通过 wifi 连接到 Android - 我需要 root 访问权限吗? [英] Can't connect to Android via ADB over wifi - Do I need root access?

查看:31
本文介绍了无法通过 ADB 通过 wifi 连接到 Android - 我需要 root 访问权限吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我基本上是在尝试这样做:如何通过 TCP 通过 ADB 连接到 Android?使用 Droid X2.

我打开了 USB 调试,我的手机是通过 USB 插入的.IP 地址为 10.0.78.33(我已验证我可以通过该 IP 与手机进行 TCP 通信,并且可以 ping 通).

我转到命令行并执行以下操作:

<块引用><块引用>

>>adb tcpip 5555

在TCP模式下重启端口:5555

>>adb 连接 10.0.78.33:5555

无法连接到 10.0.78.33:5555

关于为什么这不起作用的任何想法?我是否需要 root 访问权限才能执行此操作?我试图避免生根电话.

谢谢!

解决方案

步骤 1 . 转到 Androidsdkplatform-tools on PC/Laptop

第 2 步:

通过 USB 连接您的设备并运行:

adb kill-server

然后运行

adb tcpip 5555

您将看到以下消息...

守护进程没有运行.现在在端口 5037 上启动它 *守护进程启动成功 * 在 TCP 模式下重新启动端口:5555

步骤 3:

现在打开新的 CMD 窗口,

转到 Androidsdkplatform-tools

现在运行

adb connect xx.xx.xx.xx:5555(xx.xx.xx.xx 是设备IP)

第 4 步:断开您的设备与 USB 的连接,它会像从您的 Android Studio 连接一样工作.

I'm basically trying to do this: How can I connect to Android with ADB over TCP? with the Droid X2.

I have USB Debugging on, and my phone is plugged in via USB. The IP Address is 10.0.78.33 (I have verified that I can do TCP communication to the phone on that IP, and I can ping it).

I go to the command line and do the following:

>>adb tcpip 5555

restarting in TCP mode port: 5555

>>adb connect 10.0.78.33:5555

unable to connect to 10.0.78.33:5555

Any thoughts on why this doesn't work? Do I need root access in order to do this? I'm trying to avoid rooting the phone.

Thanks!

解决方案

Step 1 . Go to Androidsdkplatform-tools on PC/Laptop

Step 2 :

Connect your device via USB and run:

adb kill-server

then run

adb tcpip 5555

you will see below message...

daemon not running. starting it now on port 5037 * daemon started successfully * restarting in TCP mode port: 5555

Step3:

Now open new CMD window,

Go to Androidsdkplatform-tools

Now run

adb connect xx.xx.xx.xx:5555 (xx.xx.xx.xx is device IP)

Step4: Disconnect your device from USB and it will work as if connected from your Android studio.

这篇关于无法通过 ADB 通过 wifi 连接到 Android - 我需要 root 访问权限吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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