'Fastboot oem: command failed

I wanted to install a custom rom on my Xiaomi Mi A3, so I had to install the 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

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

(this on linux)

Then I tried on windows, but fastboot did not recognize my device, while windows and adb yes. Any solution?



Solution 1:[1]

You have to use Xiaomi's unlock tool, not fastboot. After 7 days you'll be able to unlock. 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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Guerlando OCs