How to Unroot the HTC One (M7)

UPDATE: NEW VERSION OF THIS PROCEDURE WITH VIDEO LOCATED HERE – 

https://theunlockr.com/2013/07/17/how-to-unroot-the-htc-one-video/

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 firmware.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.

9 thoughts on “How to Unroot the HTC One (M7)”

  1. 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 firmware.zip
    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 firmware.zip and wait for process to complete
    Sometimes flashing for the first time doesn’t work, so flash firmware.zip again just to make sure.
    Type: fastboot flash zip firmware.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.

    1. “fastboot flash zip firmware.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

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

      1. Ravi Kiran Gowda

        i want to go back to stock while relocking its not showing relocked its still sowing unlocked ..need exact firmware how to get it

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.