How to Unroot the HTC One (M7)


Want to unroot your HTC One (M7) smartphone and get it back to stock firmware? No problem, it’s not a big deal and the following guide will teach you how to do just that. Unrooting and getting your device back to stock will reinstate the warranty of your device and you will have the pure Android experience, no customizations, nothing. So, here’s how you can do it:

I. Before You Begin:

1. You should have rooted your device using the procedure given here.

2. Your device should have at least 70% of battery life left.

II. Downloading Required Files:

1. Stock Firmware (Download the appropriate firmware for your device)

2. Fastboot

III. Unrooting the HTC One (M7):

1. Download and place both the files onto your Desktop.

2. Extract files from the Fastboot archive to your Desktop. Leave the other archive as is.

3. Turn OFF your device.

4. Reboot your device into bootloader mode. To do that, press and hold the Volume UP+Power buttons together.

5. Connect your device to your PC using the USB cable.

6. Open a Command Prompt Window on the Desktop of your PC. To do so, press and hold the Shift button on your keyboard and right-click on any empty area on the screen, then select Open command window here.

7. Type in following commands into the Command Prompt Window:

fastboot oem rebootRUU
fastboot flash zip

8. Once it’s done, reboot your device.

9. And you’re unrooted now!

Great! You’re now back to stock firmware and you do not have root-access any longer. The warranty of your device has also been reinstated!

If this procedure helped you please thank/donate to the original developers here.

If you need help with this procedure, please ask in the comments below or in the forum.

This is part of our Android How To’s. We have how to’s on rooting, loading ROMs, and tons of other tips and tricks for your specific device or for Android devices in general! For all of our Android How To’s, head here.

Join 90k others & subscribe to my weekly, not annoying newsletter for more tech!

* indicates required
  • kaish

    99 unknown fails when trying to unroot.

  • htkareem

    Does this restore the stock recovery as well?

  • Penpen72

    this is BS and doesn’t come close to working or it needs a lot more info!!!

  • Ion

    How to flash?
    (bootloader needs to be relocked)
    Re-lock your bootloader (this will most probably wipe content of your device)
    Copy downloaded .zip to fastboot.exe location (e.g. c:/SDK/platform-tools/fastboot.exe)
    Re-name .zip file to
    Open command prompt
    Boot your device in fastboot mode (vol down + power ===> fastboot)
    Connect device to the PC
    In command prompt cd to fastboot.exe location
    Make sure you have correct modeid and cidnum (type: fastboot getvar all)
    Type: fastboot oem lock (if your device is not relocked yet)
    Type: fastboot oem rebootRUU and wait for device to reboot
    Type: fastboot flash zip and wait for process to complete
    Sometimes flashing for the first time doesn’t work, so flash again just to make sure.
    Type: fastboot flash zip and wait for process to complete
    Type: fastboot reboot
    Unlock your bootloader and flash custom recovery if you are going to use custom ROM.

    • maico

      “fastboot flash zip” leads to:

      target reported max download size of 1514139648 bytes
      Invalid sparse file format at header magi
      error: write_sparse_skip_chunk: don’t care size 123527759 is not a multiple of the block size 4096
      sending sparse ‘zip’ (1478638 KB)…
      error: write_sparse_skip_chunk: don’t care size 123527759 is not a multiple of the block size 4096

  • anonymous

    on giving the command ” fastboot flash zip ” i got an error of ” parsing android info failed “. what to do nw ?

  • Brenden

    when i do this i get signature errors (12 signature verify fails) please help