通过ADB调试我的Android手机让我:<此时出乎意料[关闭]


0

我想通过Android Debug Bridge向我的小米Redmi Note 4G发送命令,但每次我写一个命令如:

adb -s<3729749> <reboot-bootloader>

我收到回复:

< was unexpected at this time

什么似乎是问题?


你的手机是否处于调试模式?
Eric F

是的我打开USB调试,我在设备列表中看到了我的手机
Kelvin-elly 2015年

如果你输入adb<ENTER> 怎么样adb shell
barlop 2015年

Answers:


0
adb -s<3729749> <reboot-bootloader>
< was unexpected at this time

就像它说:你不应该指定<

当帮助说:

adb --help
...
-s <serial number>
    - directs command to the USB device or emulator with
      the given serial number. Overrides ANDROID_SERIAL
      environment variable.

...这意味着您必须指定序列号,而不是<...>

可选参数括在方括号中[...]。例如:

connect <host>[:<port>]
    - connect to a device via TCP/IP
      Port 5555 is used by default if no port number is specified.

...你会用以下东西:

connect 192.168.1.1
connect 192.168.1.1:5555 (same as above)
connect 10.0.0.1:123

并为:

adb reboot [bootloader|recovery]
    - reboots the device, optionally into the bootloader or recovery program
adb reboot-bootloader
    - reboots the device into the bootloader

...您可以选择指定其中一个给定选项bootloaderrecovery运行第一个命令。所以你的完整命令应该是:

adb -s 3729749 reboot bootloader
adb -s 3729749 reboot-bootloader

非常感谢Arjan。我已经明白,想你告诉我,它再次worked.Thanks
开尔文-埃利

好吧Arjan ....在这方面有点新
Kelvin-elly 2015年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.