如何使用adb TCPIP没有USB调试启用? [英] How to use adb tcpip without USB debugging enabled?
问题描述
我读过已经在亚洲开发银行和TCPIP模式相当多的职位,我可以创建一个无线连接亚,但只有当USB调试上。
I've read quite a few posts already on adb and tcpip mode and I can create a wireless adb connection, but only when USB debugging is on.
我使用它的方式是像这样:
The way I'm using it is like so:
- USB调试启用
- 通话
ADB TCPIP
在计算机上(从USB切换到TCPIP模式,默认端口5555) - 通话
ADB连接PHONE_IP
,并建立连接
- USB debugging is enabled
- call
adb tcpip
on the computer (switches from usb to tcpip mode with default port 5555) - call
adb connect PHONE_IP
and a connection is made
使用或不使用USB电缆将上述工程连接,但只有当USB调试选项在Android设备上开发人员选项被选中。当我取消勾选选项,TCP连接丢失,无法重新建立重新启用USB调试选项,直到
The above works with or without the usb cable being connected, but only when the USB debugging option is ticked in Developer Options on the Android device. As soon as I untick the option, the tcp connection is lost and cannot be re-established until re-enabling the USB debugging option.
问题是我开始使用一个 IOIO OTG 设备,我需要禁用USB调试使用IOIO作为一个附属装置。这将是非常有用的,如果我能在同一时间使用IOIO和调试与亚行。
The problem is I'm getting started with a IOIO OTG device and I need to disable USB debugging to use the IOIO as an Accessory Device. It would be really useful if I can use the IOIO and debug with adb at the same time.
我使用的设备上的Android 4.1.2(API 16)。
我可以使用两个设备,都使用相同的操作系统版本,一是扎根,一个联合国根深蒂固。
I'm using Android 4.1.2 (API 16) on the device. I can use two devices, both using the same OS version, one rooted, one un-rooted.
是否有可能使用TCPIP模式ADB没有USB调试启用?
如果是这样,怎么样?
Is it possible to use adb in tcpip mode without USB debugging enabled ? If so, how ?
推荐答案
在你的根设备,安装的终端仿真器
On your rooted device, install a Terminal Emulator
输入苏
然后在开始adbd
(<一href=\"http://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp?rq=1\">source)
我已经试过这是我扎根的Android 4.0.4设备上。我可以在不启用USB调试正常连接。
几句话:
I have tried this on my rooted Android 4.0.4 device. I could connect normally without enabling USB debugging. A few more words:
- USB调试实际上是所谓的enable_adb内部。
- 如果您启用USB调试这通常发生(小装置
依赖): - 一个Settings.Secure值存储(ADB_ENABLED)
- (在某些设备上也是一个系统属性被设置)
- 亚行守护进程启动
如果该UsbManager只检查安全设置,一切都应该工作。如果它检查的实际运行守护进程你的运气了。
If the UsbManager just checks for the Secure Setting, everything should work. If it checks for the actual running deamon you are out of luck.
这篇关于如何使用adb TCPIP没有USB调试启用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!