ADB Fastboot error when flasing rom 'FAILED remote unknown command'

Zach89 picture Zach89 · Feb 28, 2020 · Viewed 23.7k times · Source

I'm trying to flash Google factory image file on nexus 6P but it always stops at the same point. USB debugging is enabled, MTP mode also. Bootloader is unlocked and communicating with ADB Fastboot etc, is there something I'm missing? I've downloaded the zip file and extracted into the platform tools folder. Even installed google recommended drivers. PLEASE HELP if anyone can and accepts bitcoin or any other crypto I'll send it over for the help

(c) 2017 Microsoft Corporation. All rights reserved.

C:\Users\gemma\Desktop\platform-tools_r29.0.6-windows\platform-tools>fastboot reboot-bootloader
Rebooting into bootloader                          OKAY [  0.022s]
Finished. Total time: 0.022s

C:\Users\gemma\Desktop\platform-tools_r29.0.6-windows\platform-tools>fastboot flash-all.bat
fastboot: usage: unknown command flash-all.bat

C:\Users\gemma\Desktop\platform-tools_r29.0.6-windows\platform-tools>flash-all.bat
Sending 'bootloader' (3524 KB)                     OKAY [  0.116s]
Writing 'bootloader'                               OKAY [  0.209s]
Finished. Total time: 0.378s
Rebooting into bootloader                          OKAY [  0.107s]
Finished. Total time: 0.107s
Sending 'radio' (48120 KB)                         OKAY [  1.065s]
Writing 'radio'                                    OKAY [  2.140s]
Finished. Total time: 3.269s
Rebooting into bootloader                          OKAY [  0.000s]
Finished. Total time: 0.000s
--------------------------------------------
Bootloader Version...: angler-01.31
Baseband Version.....: angler-01.29
Serial Number........: ENU7N15C1700????
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'product'                                 OKAY [  0.019s]
Checking 'version-bootloader'                      OKAY [  0.018s]
Checking 'version-baseband'                        OKAY [  0.017s]
Snapshot cancel                                    FAILED (remote: 'unknown command')
fastboot: error: Command failed
Press any key to exit...


Answer

methodsignature picture methodsignature · Apr 7, 2020

Using an older platform tools didn't work for me. I had to extract the system image and flash one item at a time.

This is for Nexus 5x but should work for all Google provided system images downloaded at https://developers.google.com/android/images where this error occurs.

> unzip [downloaded zip file]
> cd [new directory]
> unzip image-[device specific].zip
  inflating: android-info.txt        
  inflating: vendor.img              
  inflating: boot.img                
  inflating: recovery.img            
  inflating: system.img
> fastboot flash boot boot.img
> fastboot flash bootloader bootloader-[device specific].img
> fastboot reboot-bootloader
> fastboot flash radio radio-[device specific].img
> fastboot flash recovery recovery.img
> fastboot flash system system.img

Reboot and cross your fingers.