今天在对安卓设备进行fastboot解锁的时候,发现当调用adb reboot bootloader后,无法使用fastboot进行解锁,后来通过fastboot devices命令查看不到设备,经过分析和搜索后得知原因可能是因为PC的fastboot.exe的驱动版本太旧了,需要对其进行更新。
这里首先给出fastboot工具的下载地址
官方platform-tools下载路径
下载对应的版本后,解压下载的压缩包,即可看到fastboot.exe。

将fastboot.exe 替换到PC中对应的位置,或重新设置环境变量,再次输入命令fastboot devices,查看是否有设备信息。
note: fastboot.exe版本请尽量保持最新,每次Android版本更新,都会引入新的feature,使用旧的工具版本是不能支持这些新feature的。
adb reboot bootloader(进fastboot模式)
fastboot devices(查看设备)
fastboot flashing unlock(解锁)
fastboot reboot
一般要挂载root权限会进行如下命令:先是adb root, 然后adb remount
adb root
adb remount
~\ adb remount
Skipping /system for remount
Skipping /vendor for remount
Skipping /product for remount
No partitions to remount
remount failed
很多遇到adb remount失败后,会选择执行adb disable-verity
C:\Users\xxxx>adb disable-verity
Device is locked. Please unlock the device first
using overlayfs
Now reboot your device for settings to take effect
此时只需要对设备进行fastboot进行解锁就好,如3中所示。