Android中fastboot devices无法发现设备解决方案和adb remount问题解决

1. 问题描述

今天在对安卓设备进行fastboot解锁的时候,发现当调用adb reboot bootloader后,无法使用fastboot进行解锁,后来通过fastboot devices命令查看不到设备,经过分析和搜索后得知原因可能是因为PC的fastboot.exe的驱动版本太旧了,需要对其进行更新。

2. 问题解决

想要fastboot识别到设备需要安装adb工具和google USB驱动。

google USB驱动下载地址

官方platform-tools下载路径
下载对应的版本后,解压下载的压缩包,即可看到fastboot.exe。

在这里插入图片描述

在这里插入图片描述

将fastboot.exe 替换到PC中对应的位置,或重新设置环境变量,再次输入命令fastboot devices,查看是否有设备信息。

note1: fastboot.exe版本请尽量保持最新,每次Android版本更新,都会引入新的feature,使用旧的工具版本是不能支持这些新feature的。

note2: 如果使用fastboot.exe devices仍然读取不到设备,可以在 进行windows更新-查看可选更新-驱动程序更新-Google等驱动更新;
在这里插入图片描述

3. 对设备进行fastboot解锁

  1. 打开设置–关于手机–多次点击版本号,此时提示“处于开发者模式”,然后返回上一级进入系统–高级–开发者选项–打开发者选项中的OEM解锁开关
  2. 操作命令和步骤:
    adb reboot bootloader(进fastboot模式)
    fastboot devices(查看设备)
    fastboot flashing unlock(解锁)
    fastboot reboot
    

4. 对设备进行adb remount

一般要挂载root权限会进行如下命令:先是adb root, 然后adb remount

  1. adb root

  2. adb remount

    ~\ adb remount
    Skipping /system for remount
    Skipping /vendor for remount
    Skipping /product for remount
    No partitions to remount
    remount failed
    
  3. 很多遇到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中所示。

猜你喜欢

转载自blog.csdn.net/weixin_45676049/article/details/125995978
今日推荐