Home > Root

How to Fix FAILED (remote: unknown command) Error

In this tutorial, we will show you how to fix the FAILED (remote: unknown command) Error. Android ecosystem, thanks to its open-source nature allows for a plethora of tips and tricks to be carried out. Everyday users usually satisfy their taste with icon packs, themes, and custom launchers. But that isn’t it where the capabilities of Android is limited to. It’s just the tip of the iceberg. If you go ahead and unlock the bootloader of your device, you simply open the gate to tons of custom developments. For example, installing a custom recovery like TWRP, flashing custom ROMs, getting administrative privileges in the form of the root, flashing kernels, all this is now possible.

We get it. Not everyone is a fan of this, considering the risks associated with it. But now there has been a tectonic shift in the landscape. More users are changing ships than ever before. This change of guard has happened even more so in the past few years. Thanks to the ease with which one could easily repair even some hard-bricked devices, many users are now ready to take this giant leap forward and join hands with the developer community. And since you have landed on this page, you might very well be an esteemed guest of the same.

The thing is while performing these tweaks, you are bound to face an error or two. But as far as my experience and many others across the online community, the FAILED (remote: unknown command) Error is there most frequent one. But why does this error show up in the first place and more importantly how to fix the same? Well, today we are going to answer all such things in detail. Follow along.

Also Read:

An Important Note

The entire guide written below has taken into consideration the Command Prompt. We always like to maintain a safe distance from Windows PowerShell as there’s always been a love-hate relationship with it. furthermore, the commands in Powershell are slightly different (prefixing ./ before every code). So to be safe from all these complications, we use the Command prompt or the CMD window and will recommend our users to do the same. here is how it could be done:

  • Head over to platform-tools on your PC.
  • Inside the platform-tool folder, type in cmd in the address bar and hit Enter.
  • That is it. This will open the Command Prompt. Now follow the below steps to fix the FAILED (remote: unknown command) Error.

FAILED (remote: unknown command) Error: Everything you need to know

failed remote unknown command
Error Message

Although not limited to one domain, but we are seeing reports of most users facing this error while unlocking the bootloader or flashing a file. In the case of former, Motorola devices seem to be the major culprit (though it’s not limited to it). For the latter, booting a TWRP IMG file takes a major share of the blame. But again, these are just two of the ocean causes why this may happen. So fastboot oem unlock and fastboot boot recovery.img are the two most frequent times users face this error.

Furthermore, the strange thing is that your device gets successfully recognized, even when you face the FAILED (remote: unknown command) Error. For example, try executing the adb devices command when your device is connected in the ADB command. Or enter fastboot devices when the device is connected in fastboot mode. In both these cases, you will get the device code as well. So if the PC successfully recognizes your device in ADB and Fastboot Mode, why this error occurs? Well here is everything you need to be aware of and the potential fixes. Follow along.

When Unlocking Bootloader

We have seen many users, especially from the Motorola OEMs being greeted with  the following error:

C:\Minimal ADB and Fastboot>fastboot oem get_unlock_data
FAILED (remote: unknown command)
finished. total time: 0.000s

Apart from Motorola, you could also face this error on other OEMs as well. This is because the code in nearly all Android devices is either fastboot oem unlock or fastboot flashing critical. So here is what all you could try out as the fix:

Check ADB and Fastboot Binaries:

When: The Most General Cases

This is the most common error that many users end up committing. There are tons of ADB and Fastboot binaries present around. These include the 2Min ADB tools, the more popular Minimal ADB and Fastboot Tools, and many more. However, we would suggest you to never go for these tools. Only use the official Android SDK and Platform Tools provided by Google. The reason is these tools only contains a few files just necessary to carry out basis ADB and Fastboot commands.

While some times they work, most other times they wouldn’t. Likewise, these tools don’t even get regular updates. So we would request you to leave all the other tools aside and only go with the official one provided. However, if you are already using this build but even then facing the FAILED (remote: unknown command) Error, then refer to the next fix.

Check the OEM Unlock Toggle

When: While Unlocking Bootloader

Case 1

We have seen it happen in some cases that the OEM Unlock toggle might have been disabled. Why does this happen is rather unknown, but this is indeed the case for a few users. So reboot your device either by fastboot reboot command or using the hardware keys and then follow the below steps to enable OEM Unlocking:

oem unlock bootloader

  • Head over to Settings on your device
  • Go to About Phone > Tap on Build Number 7 times.
  • Navigate back to Settings > System > Advanced > Developer Options > Enable the OEM toggle.
  • Already enabled, but still getting the FAILED (remote: unknown command) Error? Please refer to the next fix mentioned below.

Don’t Miss: [Update: Added Magisk 20.4] Everything About Magisk- Manager, Modules and More

Case 2

It might also be the case that you are using the wrong command to unlock the bootloader. A very common cause of this error happened with the Nexus 6P users. Unknowingly they were using the fastboot oem unlock command and getting greeted with the said error. The thing was the correct command had been changed now and they had to enter fastboot flashing unlock and in some cases, fastboot flashing unlock critical.

FAILED (remote: unknown command) from Nexus6P

Once you use the new commands, please let us know whether the FAILED (remote: unknown command) Error gets rectified or not.

Case 3

Some devices have stopped the unlocking bootloader process all-together. Nokia and Huawei are two such OEMs that are really against the notion of custom development, it seems. Similarly, you could also see similar messages for other carriers (taken from one of the Motorola Community for one of their devices)

“Your phone is not unlockable as it is not on the unlock list, has a mediatek processor, and doesn’t support the unlock commands”.

“You can’t unlock the bootloader on most Verizon phones . This phone can’t be unlocked.”

Check the Build/Version of the File

When: While Dealing with TWRP and other flashable ZIPs

Since the inception of A/B partition, the recovery partition has been removed. So you no longer can directly flash the twrp file on those devices. As a result, you will first have to boot the img file via fastboot boot twrp.img and then flash the TWRP installer ZIP file to permanently get this custom recovery. However, if you are flashing an incompatible build of TWRP, then this error is bound to occur. If your device officially supports a TWRP Recover, then there is no issue as you could directly get a hold of the same from the TWRP home page. However, the problem stems out from unofficial builds.

Many sites are offering incorrect TWRP builds, which you might have flashed on your device, then the FAILED (remote: unknown command) Error is imminent. Regarding the unofficial build, we would only suggest you search on XDA. The unofficial recoveries that we share here at Droidwin are also taken from XDA as well.

That is the only source of trustworthy unofficial TWRP builds. Also, we would suggest not to flash one variant’s recovery on another. For example, in most cases, you might get success by flashing the Redmi Note 8 TWRP on Note 8 Pro, but in some cases, it might even brick your device. So always keep these points in mind, and you shouldn’t face this issue ever again.

Other General Fixes

When: No specific categorization. Can happen any time and while performing any tweak

If none of the above things worked out, you could also try these tricks. More of than not, it is not the above highly technical tips but the below-mentioned tweaks that do the job. So we would request you to give them a shot as well.

Case 1: Remove All Lock Screen Security Measures

First of all, before booting your device to Fastboot or ADB Mode, we would request you to delete all the security locks, including Fingerprint, Face unlock, pattern or Password. Set the lock screen to None, at least for the time being. Here is how it could be done:

screen lock android

  • Head over to Settings and go to Security
  • Tap on Screen Lock under the Device Security section.
  • Enter your current password and choose None from the menu.
  • In the confirmation dialog box that appears, tap on Yes. Remove
  • That is it. Now proceed with the ADB and Fastboot commands. Hopefully, you shouldn’t see the FAILED (remote: unknown command) Error. Furthermore, don’t forget to turn on the device protection in the end.

Check Out: How to Flash Various Files in A/B Partition Devices

Case 2: USB Drivers

Also, keep in mind that the correct USB drivers are installed. By USB Drivers, we mean both the OEM specific drivers as well as the Fastboot drivers. The former is needed when you connect your device to PC in a switched-on state. This is the case when you wish to execute ADB commands, as in ADB commands, your device remains in a switched-on state. The Fastboot drivers will be needed, as the name suggests when your device is booted to Fastboot Mode.

In that case, you will be needing the drivers from Android SDK and Platform Tools installed on your PC. If you face this error when your device is booted to EDL or Emergency Download Mode, then make sure that the Device Manager shows Qualcomm HS-USB QDLoader 9008, rather than the earlier QUSB_BULK. If that is not the case, then refer to our detailed guide on how to get these drivers. If you have successfully installed the above-mentioned drivers, then proceed with your ADB or Fastboot commands. The FAILED (remote: unknown command) Error might have been rectified by now.

Case 3: USB Port, Cable and Windows Version

Well, all these might sound too easy to be true, yet they sometimes end up doing wonders. All these three have managed to work out in my favor when everything failed. The thing is I was constantly getting bugged with an error or two. Dug up my brain, found out tons of tweaks lying in a corner, and tried them all. Unfortunately, nothing worked out.

Then I just simply switched over to another USB port (it doesn’t matter whether its USB 2.0 or 3.0 port), with another USB cable, and I finally achieved success at one-go. Likewise, you should also consider switching from a  Windows 10 laptop or PC to Windows 7. It was also able to fix the FAILED (remote: unknown command) Error one or twice. Just remember to install the SDK and Platform Tools on that Windows 7 PC.


So this is all from his guide on how to fix the FAILED (remote: unknown command) issue. We have mentioned all the different scenarios under which this error could show up. Likewise, their associated fixes are also given. If you have any queries concerning any of the above-mentioned steps. do let us know in the comments. Furthermore, if you are facing any other ADB or Fastboot error, do let us know in comments. We will let you know the solution to that as well.

  • Please what is the right command to unlock Infinix hot 10i PR652B bootloader.I have tried all in a command and I got adb device listed, fastboot device listed but interrupted by the final command ,fastboot flashing unlock or fastboot OEM unlock as Failed:romote unknown command.error.I need your help

  • Please what is the right command to unlock Infinix hot 10i PR652B.I have tried all in a command and I got adb device listed, fastboot device listed but interrupted by the final command ,fastboot flashing unlock or fastboot OEM unlock as Failed:romote unknown command.error.I need your help

  • ho questo problema e sono da un alcatel 1 s
    FAILED (remote: ‘unknown cmd.’)
    fastboot: error: Command failed

  • Hello!

    I have an Alcatel 1SE 5030D_EEA but I can neither unlock the bootloader nor, obviously, root the terminal.

    Could you help me with these two problems?

    As I am not fluent in English, I have written this with the help of the Google translator

  • Tomilola

    I’m having same failed (remote CMD) issue when I try to unlock my Nokia C10 bootloader. I try all these commands and non work: fastboot flashing unlock, fastboot OEM unlock, fastboot OEM get_unlock_data etc

  • I had this error when trying to unlock bootloader on ubuntu 20.04 for my LG G4:
    FAILED (remote: unknown command)
    finished. total time: 0.020s

    This was the right command:
    fastboot flash unlock unlock.bin

    Found here: https://appuals.com/root-lg-g4-marshmallow-easily/

  • Jeff Nickolite

    I have lg g7 and I can’t reset it get error saying can’t count system at system root can not open recovery log permission denied. No adb, have limited fastboot, get at all works but on anything else I get unknown command. No imei. Please help. No download mode.

  • Jorge Estrada

    Para el comando fastboot getvar all se muestra lo siguiente:

    (bootloader) max-download-size: 0x8000000
    (bootloader) variant:
    (bootloader) logical-block-size: 0x200
    (bootloader) erase-block-size: 0x80000
    (bootloader) hw-revision: ca00
    (bootloader) battery-soc-ok: yes
    (bootloader) battery-voltage: 4208mV
    (bootloader) partition-size:sgpt: 4200
    (bootloader) partition-type:sgpt: raw data
    (bootloader) partition-size:flashinfo: 1000000
    (bootloader) partition-type:flashinfo: raw data
    (bootloader) partition-size:otp: 2b00000
    (bootloader) partition-type:otp: raw data
    (bootloader) partition-size:userdata: c59cfbe00
    (bootloader) partition-type:userdata: ext4
    (bootloader) partition-size:product_b: fa00000
    (bootloader) partition-type:product_b: ext4
    (bootloader) partition-size:vbmeta_b: 800000
    (bootloader) partition-type:vbmeta_b: ext4
    (bootloader) partition-size:system_b: c0000000
    (bootloader) partition-type:system_b: ext4
    (bootloader) partition-size:vendor_b: 32000000
    (bootloader) partition-type:vendor_b: raw data
    (bootloader) partition-size:tee_b: 500000
    (bootloader) partition-type:tee_b: raw data
    (bootloader) partition-size:dtb_b: 800000
    (bootloader) partition-type:dtb_b: raw data
    (bootloader) partition-size:dtbo_b: 800000
    (bootloader) partition-type:dtbo_b: raw data
    (bootloader) partition-size:boot_b: 2000000
    (bootloader) partition-type:boot_b: raw data
    (bootloader) partition-size:lk_b: 100000
    (bootloader) partition-type:lk_b: raw data
    (bootloader) partition-size:gz_b: 1000000
    (bootloader) partition-type:gz_b: raw data
    (bootloader) partition-size:sspm_b: 100000
    (bootloader) partition-type:sspm_b: raw data
    (bootloader) partition-size:scp_b: 100000
    (bootloader) partition-type:scp_b: raw data
    (bootloader) partition-size:spmfw_b: 100000
    (bootloader) partition-type:spmfw_b: raw data
    (bootloader) partition-size:md1dsp_b: 1000000
    (bootloader) partition-type:md1dsp_b: raw data
    (bootloader) partition-size:md6img_b: 1e00000
    (bootloader) partition-type:md6img_b: raw data
    (bootloader) partition-size:md4img_b: 1e00000
    (bootloader) partition-type:md4img_b: raw data
    (bootloader) partition-size:md2img_b: 1e00000
    (bootloader) partition-type:md2img_b: raw data
    (bootloader) partition-size:md1img_b: 1e00000
    (bootloader) partition-type:md1img_b: raw data
    (bootloader) partition-size:elabel: 1400000
    (bootloader) partition-type:elabel: ext4
    (bootloader) partition-size:product_a: fa00000
    (bootloader) partition-type:product_a: ext4
    (bootloader) partition-size:vbmeta_a: 800000
    (bootloader) partition-type:vbmeta_a: ext4
    (bootloader) partition-size:system_a: c0000000
    (bootloader) partition-type:system_a: ext4
    (bootloader) partition-size:vendor_a: 32000000
    (bootloader) partition-type:vendor_a: raw data
    (bootloader) partition-size:tee_a: 500000
    (bootloader) partition-type:tee_a: raw data
    (bootloader) partition-size:dtb_a: 800000
    (bootloader) partition-type:dtb_a: raw data
    (bootloader) partition-size:dtbo_a: 800000
    (bootloader) partition-type:dtbo_a: raw data
    (bootloader) partition-size:boot_a: 2000000
    (bootloader) partition-type:boot_a: raw data
    (bootloader) partition-size:lk_a: 100000
    (bootloader) partition-type:lk_a: raw data
    (bootloader) partition-size:gz_a: 1000000
    (bootloader) partition-type:gz_a: raw data
    (bootloader) partition-size:sspm_a: 100000
    (bootloader) partition-type:sspm_a: raw data
    (bootloader) partition-size:scp_a: 100000
    (bootloader) partition-type:scp_a: raw data
    (bootloader) partition-size:spmfw_a: 100000
    (bootloader) partition-type:spmfw_a: raw data
    (bootloader) partition-size:md1dsp_a: 1000000
    (bootloader) partition-type:md1dsp_a: raw data
    (bootloader) partition-size:md6img_a: 1e00000
    (bootloader) partition-type:md6img_a: raw data
    (bootloader) partition-size:md4img_a: 1e00000
    (bootloader) partition-type:md4img_a: raw data
    (bootloader) partition-size:md2img_a: 1e00000
    (bootloader) partition-type:md2img_a: raw data
    (bootloader) partition-size:md1img_a: 1e00000
    (bootloader) partition-type:md1img_a: raw data
    (bootloader) partition-size:logo: 800000
    (bootloader) partition-type:logo: raw data
    (bootloader) partition-size:nvram: 4000000
    (bootloader) partition-type:nvram: raw data
    (bootloader) partition-size:proinfo: 300000
    (bootloader) partition-type:proinfo: raw data
    (bootloader) partition-size:sec1: 200000
    (bootloader) partition-type:sec1: raw data
    (bootloader) partition-size:persist: 3000000
    (bootloader) partition-type:persist: ext4
    (bootloader) partition-size:seccfg: 100000
    (bootloader) partition-type:seccfg: raw data
    (bootloader) partition-size:protect2: 878000
    (bootloader) partition-type:protect2: ext4
    (bootloader) partition-size:protect1: 800000
    (bootloader) partition-type:protect1: ext4
    (bootloader) partition-size:metadata: 2000000
    (bootloader) partition-type:metadata: raw data
    (bootloader) partition-size:nvdata: 4000000
    (bootloader) partition-type:nvdata: ext4
    (bootloader) partition-size:nvcfg: 2000000
    (bootloader) partition-type:nvcfg: ext4
    (bootloader) partition-size:frp: 100000
    (bootloader) partition-type:frp: raw data
    (bootloader) partition-size:expdb: 1400000
    (bootloader) partition-type:expdb: raw data
    (bootloader) partition-size:para: 80000
    (bootloader) partition-type:para: raw data
    (bootloader) partition-size:boot_para: 100000
    (bootloader) partition-type:boot_para: raw data
    (bootloader) partition-size:pgpt: 8000
    (bootloader) partition-type:pgpt: raw data
    (bootloader) partition-size:preloader_b: 40000
    (bootloader) partition-type:preloader_b: raw data
    (bootloader) partition-size:preloader_a: 40000
    (bootloader) partition-type:preloader_a: raw data
    (bootloader) partition-size:preloader: 40000
    (bootloader) partition-type:preloader: raw data
    (bootloader) serialno: ZE222CBHTL
    (bootloader) off-mode-charge: 1
    (bootloader) warranty: yes
    (bootloader) unlocked: no
    (bootloader) secure: yes
    (bootloader) kernel: lk
    (bootloader) product: blackjack_64
    (bootloader) slot-retry-count:b: 0
    (bootloader) slot-retry-count:a: 0
    (bootloader) slot-unbootable:b: yes
    (bootloader) slot-unbootable:a: no
    (bootloader) slot-successful:b: no
    (bootloader) slot-successful:a: yes
    (bootloader) slot-count: 2
    (bootloader) current-slot: a
    (bootloader) has-slot:sgpt: no
    (bootloader) has-slot:flashinfo: no
    (bootloader) has-slot:otp: no
    (bootloader) has-slot:userdata: no
    (bootloader) has-slot:elabel: no
    (bootloader) has-slot:product: yes
    (bootloader) has-slot:vbmeta: yes
    (bootloader) has-slot:system: yes
    (bootloader) has-slot:vendor: yes
    (bootloader) has-slot:tee: yes
    (bootloader) has-slot:dtb: yes
    (bootloader) has-slot:dtbo: yes
    (bootloader) has-slot:boot: yes
    (bootloader) has-slot:lk: yes
    (bootloader) has-slot:gz: yes
    (bootloader) has-slot:sspm: yes
    (bootloader) has-slot:scp: yes
    (bootloader) has-slot:spmfw: yes
    (bootloader) has-slot:md1dsp: yes
    (bootloader) has-slot:md6img: yes
    (bootloader) has-slot:md4img: yes
    (bootloader) has-slot:md2img: yes
    (bootloader) has-slot:md1img: yes
    (bootloader) has-slot:logo: no
    (bootloader) has-slot:nvram: no
    (bootloader) has-slot:proinfo: no
    (bootloader) has-slot:sec1: no
    (bootloader) has-slot:persist: no
    (bootloader) has-slot:seccfg: no
    (bootloader) has-slot:protect2: no
    (bootloader) has-slot:protect1: no
    (bootloader) has-slot:metadata: no
    (bootloader) has-slot:nvdata: no
    (bootloader) has-slot:nvcfg: no
    (bootloader) has-slot:frp: no
    (bootloader) has-slot:expdb: no
    (bootloader) has-slot:para: no
    (bootloader) has-slot:boot_para: no
    (bootloader) has-slot:pgpt: no
    (bootloader) has-slot:preloader: yes
    (bootloader) persist.radio.multisim.config: ss
    (bootloader) ro.build.version.incremental: 59c32
    (bootloader) ro.build.fingerprint[0]: motorola/blackjack/blackjack:10/QO
    (bootloader) ro.build.fingerprint[1]: DS30.163-7-17/59c32:user/release-k
    (bootloader) ro.carrier.ontim: tefmx_movistarmx
    (bootloader) ro.boot.hardware.sku: XT2055-2
    (bootloader) build_type: user
    (bootloader) product_name: blackjack_64
    (bootloader) unlock_raw_data: a23f63a8e6de5649d682758346fead1f
    (bootloader) raw_cid: 13014e53304a394e38101db0c4ab57ad
    (bootloader) gsm.version.baseband: MOLY.LR12A.R3.MP.V118.11.P9
    (bootloader) version-bootloader: blackjack_64-c2179c7-20210407165033-202
    (bootloader) version-preloader:
    (bootloader) version: 0.5
    all: Done!!

    Para el comando fastboot oem get_unlock_data se muestra lo siguiente:

    FAILED (remote: ‘unknown command’)
    fastboot: error: Command failed
    El celular es un moto g8 power lite

  • Hi,
    I’m trying to flash Twrp on my Realme 3 (RMX 1825),Once Its done I need to enter recovery directly from fastboot.
    I’ve tried “fastboot reboot recovery” and “fastboot oem reboot-recovery” but both the codes return unkown command error.
    Kindly help
    Thank You

    • Sadique Hassan

      Hi Ruthvik, you could also use the Volume Keys to bring up the Recovery option and then press the Power key to confirm it. This shall boot your device to TWRP. Or if you want a temporary boot, then try either fastboot boot recovery twrp.img or fastboot boot twrp.img command. This shall boot the device to TWRP (temporarily) and then you could permanently flash it (if needed).

      • this is where mine errors with unknown command. any thoughts?

  • LG’s official website says you must use “fastboot oem device-id”, but the real command is “fastboot devices”… thanks for giving me the idea that the command was wrong.

    • Sadique Hassan

      Yes Banco, fastboot devices is the universal command that should work for all the OEMs.

      • meu celular e um moto g8 power lite mediatek e nao econsigo nem a pau desbloquear-lo tentei de tudo e sempre da error

  • Robin Kebi

    I have Wiko (Y70) and trying to bypass FRP. I cannot bypass with FRP tools hence its giving error at fastboot which I need to unlock before I can perform the bypass..Am getting “Failed: (Remote:Unknown cmd.)
    please help

    • Sadique Hassan

      So are you getting this error when booting to Fastboot? If that is the case, then make sure to install the Android SDK Platform Tools, launch Command Prompt inside that folder, and then execute the adb reboot bootloader command (make sure USB Debugging is enabled). Furthermore, I would also recommend you to transfer the FRP Tool inside the platform-tools folder and then try using the tool. Keep these points in mind and retry with the FRP bypass process. Let me know if you got any success or not.

  • I have pixel 1 and its dead it’s only booting into recovery mode what should I do to flash roms please help me out

    • Sadique Hassan

      So you are stuck in the No Command Screen? If that is the case, then press and hold the Power button then press the Volume Up button once. Your device should boot into recovery mode. Now use the Volume keys to highlight the Reboot to Bootloader option and press the Power key to confirm this decision. Your device will then boot to Fastboot. Now download the full stock firmware and then flash it onto your device (it might wipe off data from your device). If you want a detailed guide on this topic, let me know, I’ll cover it up