1.首先进入开发者模式 开机 OEM模式
2. 重启设备
adb reboot bootloader
3. fastboot 解锁
//直接执行 fastboot devices 查看设备是否可以连接
> fastboot devices
//如果出现 no permissions (user *** is not in the plugdev group); Android Fastboot //问题 则需要root 权限
> sudo ./fastboot devices
> 请输入密码:
> 验证成功
> 2c2009aac2a29ebe Android Fastboot
4.执行解锁命令 如果成功则重启即可
> sudo ./fastboot flashing unlock
> OKAY [ 38.167s]
> Finished. Total time: 38.167s
//重启
> sudo ./fastboot reboot
> Rebooting OKAY [ 0.000s]
> Finished. Total time: 0.101s
5.此时设备因该已经解锁
//第一步
> adb root
> adbd is already running as root
//第二步 执行 adb remount
// 如果出现 Use "adb disable-verity" to disable verity. 执行第三步
> adb remount
> dm_verity is enabled on the vendor partition.
> Use "adb disable-verity" to disable verity.
> If you do not, remount may succeed, however, you will still not be able to write > to these volumes.
//第三步 执行 adb disable-verity
> adb disable-verity
> Successfully disabled verity
> Now reboot your device for settings to take effect
//第四步重启设备
> adb reboot
//设备重启之后
> adb root
> adb remount
> remount succeeded