簡體   English   中英

USB設備存在時,將ADB脫殼到wifi連接的設備

[英]ADB shell-ing to wifi connected device when usb device present

我有兩個設備同時連接到我的工作站,一個通過USB連接,另一個通過wifi連接。

C:\>adb devices
List of devices attached
Cxxxxxxxxxx2            device
192.168.60.69:5555      device

我不確定在存在USB的情況下如何將其裝入wifi連接的設備。

我嘗試了以下

C:\>adb shell
error: more than one device and emulator

C:\>adb -s 192.168.60.69 shell
error: device not found

C:\>adb -s 0xxxxxxxxxxxxxx1 shell
error: device not found

其中0xxxxxxxxxxxxxx1是wifi連接設備的硬件ID

唯一可行的方法是斷開USB連接的設備。 但是,我最終將要有多個wifi連接的設備,我仍然不知道在嘗試安裝時如何區分它們?

編輯(6/13/2014)

我明白了為什么我省略了端口,b / c connect命令在嘗試連接時會返回以下錯誤,並且無法(例如,設備wifi意外關閉)

C:\>adb connect 192.168.60.69:5555
unable to connect to 192.168.60.69:5555:5555

這使我認為adb將附加基於ip的端口。 但是事實並非如此,因為在目標設備上啟用wifi后,上述命令確實起作用

C:\>adb connect 192.168.60.69:5555
connected to 192.168.60.69:5555

我需要提到一些東西來表明我至少了解tcp / ip連接基礎知識(ip和端口)。 有點尷尬...

嘗試:

C:\>adb -s 192.168.60.69:5555 shell

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM