• 周日. 5月 4th, 2025

adb -s 指定设备 进行连接

adb -s 指定设备 进行连接,主要是为了解决本机连接着多个设备,导致无法直接使用指令,比如 adb shell 指令。

这时需要使用adb -s 特定设备 然后再进行二级指令操作,如下多设备时 adb shell 操作:

Seven:~ Seven$ adb devices
List of devices attached
192.168.1.110:5555 device

 
1234567890 device

Seven:~ Seven$ adb shell
error: more than one device/emulator

 
Seven:~ Seven$ adb -s 1234567890 shell
shell@localhost:/ $

以此类推,比如 adb -s 1234567890 push,  adb -s 1234567890 pull,  adb -s 1234567890 remount 等。



发表评论

您的电子邮箱地址不会被公开。