简体   繁体   English

Fastboot oem:命令失败

[英]Fastboot oem: command failed

I wanted to install a custom rom on my Xiaomi Mi A3, so I had to install the twrp.我想在我的小米 Mi A3 上安装自定义 rom,所以我必须安装 twrp。 I enabled oem unlock from the developer settings of the phone and rebooted into bootloader mode, but when I ran the command "fastboot oem unlock" it gave me as a result我从手机的开发人员设置中启用了 oem 解锁并重新启动到引导加载程序模式,但是当我运行命令“fastboot oem unlock”时,它给了我结果

FAILED (remote: 'unknown command')
fastboot: error: Command failed

(this on linux) (这在 Linux 上)

Then I tried on windows, but fastboot did not recognize my device, while windows and adb yes.然后我尝试了 windows,但 fastboot 无法识别我的设备,而 windows 和 adb 是。 Any solution?任何解决方案?

You have to use Xiaomi's unlock tool, not fastboot.你必须使用小米的解锁工具,而不是fastboot。 After 7 days you'll be able to unlock. 7 天后,您将能够解锁。 If your xiaomi is not recognized on windows, download an older xiaomi unlock tool (on their website there are lots on the faq), it will have a driver installer, then your xiaomi is going to get recognized so you can unlock.如果你的小米在 windows 上不被识别,下载一个旧的小米解锁工具(在他们的网站上有很多常见问题解答),它会有一个驱动安装程序,然后你的小米将被识别,这样你就可以解锁了。

As Guerlando OCs said, you will need to use Xiaomi's unlock tool to unlock your Xiaomi device (Windows only).正如 Guerlando OCs 所说,您需要使用小米的解锁工具来解锁您的小米设备(仅限 Windows)。 Also, you can use XiaoMiTool V2 if you are on Mac or Linux (on Windows will also work).此外,如果您使用的是 Mac 或 Linux(Windows 也可以),则可以使用小米工具 V2

fastboot oem unlock will not work, because OEMs set their own fastboot oem commands. fastboot oem unlock将不起作用,因为 OEM 设置了自己的fastboot oem命令。 Xiaomi unlock tool uses a modified version of fastboot which adds a command: fastboot flashing unlock_bootloader [UNLOCK_CODE] , that unlocks the bootloader of the device after obtaining the code from Xiaomi's servers.小米解锁工具使用修改版的fastboot,增加了一条命令: fastboot flashing unlock_bootloader [UNLOCK_CODE] ,从小米服务器获取code后解锁设备的bootloader。

If you need to install drivers, download MiFlash from here and install the device drivers from there.如果您需要安装驱动程序,请从此处下载 MiFlash 并从那里安装设备驱动程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM