Sunday, 24 July 2016

Flashing to stock Android NPD90G from TWRP error: "remote: unsupported command"



Fixed flashing error "remote: unsupported command" when flashing a Pixel C back to stock

I used TWRP and SuperSU to root and modify the buildprops to enable and get an early look at the windowing in Android N beta on my Pixel C release 5 ahead of time.

When Release 5 NPD90G was available I decided to flash back to stock from Developer Preview 4 NPD56N rooted with SuperSU and flashed with TWRP. I like root - I run Ubuntu and Win 7. I don't mind running a rooted device if it doesn't have all my work and financial data. When the final N release is out, the Pixel C will become my work machine. It's almost there.

I'm naturally paranoid. I change my long passwords frequently and use 2 factor authentication for everything. So if I can, I'll take a stock release. See my instructions for wiping Android devices: How to wipe an Android Phone: the paranoid editon

I could not flash the NPD90G stock bootloader because of an error "remote: unsupported command"

Here's how I fixed it.

Updated the SDK manager including SDK Tools and USB drivers.

With the Pixel C in recovery mode, {hold the power key and volume down}

In TWRP mount System and reboot to recovery

>ADB Shell.

From ADB Shell I ran

>fwtool vbnv write dev_boot_fastboot_full_cap 1 to reenable Fast boot.

Then I changed from TWRP to Fastboot mode {power button plus hold the volume up button}

>fastboot erase userdata
>fastboot erase boot
>fastboot erase cache
>fastboot erase recovery
>fastboot erase system

See Note 1. Below

>fastboot flash bootloader bootloader-dragon-google_smaug.7900.27.0.img
>fastboot reboot-bootloader
>fastboot flash bootloader bootloader-dragon-google_smaug.7900.27.0.img
>fastboot reboot-bootloader

Note 1.

The first time through I flashed the following line items which resulted in the resting robot Andi. I don't think I needed to do this, but if the above instructions don't work, run the following before continuing for {flash bootloader bootloader-dragon-google_smaug.7900.27.0.img}

>flash bootloader bootloader-dragon-google_smaug.7900.27.0.img
>fastboot reboot-bootloader
>fastboot reboot-bootloader
>fastboot flash system system.img
>fastboot flash boot boot.img
>fastboot flash recovery recovery.img
>fastboot flash cache cache.img



No comments:

Post a Comment