How to Unroot the HTC Desire 816

In case you aren’t excited to have root-access on your HTC Desire 816 and you want to get your device back to stock, our guide below should help you do exactly that. It’ll help you unroot your device and get it back to the stock firmware. It also opens up an opportunity for you to customize your device from the scratch.

Unrooting is the process of removing root access, a custom recovery (if you have one), and just trying to get the device back to as close to stock as possible.

Some of the reasons for unrooting your HTC Desire 816 are:

  • Sending in the device for warranty (most, but not all unrooting procedures reinstate the manufacturer warranty if you had one before rooting).
  • Starting over (simply undoing everything you did while rooted so you can have a clean slate to start over).
  • Fix any issues (Maybe rooting messed something up? No problem, unrooting will take care of it for you).

Ready to get started? Here’s how to unroot the HTC Desire 816:

I. Before You Begin

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

2. This flashes the stock firmware on your device.

3. This should only work on Windows based PCs.

4. You should’ve appropriate drivers installed on your PC. If you haven’t, you can download the latest drivers from here.

5. This procedure only works for the International version of the device.

II. Downloading Required Files

1. Download Fastboot and save it to your desktop.

Fastboot

2. Download Stock RUU .zip and save it to your desktop.

Stock RUU (Download link’s available in the first post)

III. Relocking the Bootloader on the HTC Desire 816

1. Extract files from Fastboot to your desktop by right-clicking on it and selecting Extract here.

2. Enable USB debugging on your device by heading to Menu > Settings > Developer options > USB debugging.

3. Plug in your device to your PC via USB cable.

4. Launch a Command Prompt Window on your desktop. To do that, simply hold down Shift and right-click on any blank area on your screen and select Open command window here.

5. Type in following command into the Command Prompt Window:

adb reboot fastboot

6. Your device should reboot into fastboot mode.

7. Next, issue the following command:

fastboot oem lock

8. It should relock the bootloader on your device.

9. You’re done!

Great! Your first step towards unrooting your device is now complete. Your HTC Desire 816’s bootloader is now relocked and you can flash the stock firmware on it.

IV. Unrooting the HTC Desire 816

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

2. Enable USB debugging on your device by going to Menu > Settings > Developer options > USB debugging.

3. Open a Command Prompt Window on your desktop. To do so, simply hold down Shift and right-click on any blank area on your screen and select Open command window here.

4. Type in following command into the Command Prompt Window:

adb reboot fastboot

5. Your device should reboot into fastboot mode.

6. Now issue the following command. Make sure to replace filename.zip with the actual name of the Stock RUU .zip file you downloaded earlier.

fastboot flash zip filename.zip

7. It should start flashing the stock firmware on your device.

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

9. You’re all done!

Brilliant! Your HTC Desire 816 is now unrooted and is running the fully functional stock firmware that the company has officially released for your device.

You can click here to find all of the HTC Desire 816 How To’s.

You can also find all of the HTC Desire 816 ROMs we have here.

102 thoughts on “How to Unroot the HTC Desire 816”

      1. i unlocked my phone and removed the root but didnt flash stock now while updating my phone it enters fastboot without updating

  1. If I am not wrong, the Stock RUU link provided is for single sim variant of HTC Desire 816. Mine is dual sim variant. Will it work?

      1. Is there a solution for Dual SIM variant? I’ve been searching a lot for one on various forums but no luck!! 🙂

          1. I already followed that thread bro. Unfortunately, that backup’s Radio and Modem apps version are out-of-date and it won’t allow ROM update unless they are updated. So no point in using that backup.

  2. i have desire 816 dual sim and it is showing sense version 5.5 🙁 🙁 and there is no option for sotware update 🙁 plz help how can i change this custom ROM

      1. Oh ok thanks mate first HTC I’ve owned everything else I’ve had I’ve installed the root program on my sd card an done it that’s way lol

          1. Yea mate installed the new software on sd card went into saver mode/ reboot and installed straight off that

  3. plz help me i think i ve rooted it improperly the screen is showing nothing n i m nt able to do anything its just showing a red ! mark within a triangle
    plzzz help me out

      1. When I press this link to download stock rom, [You can also find all of the “HTC Desire 816 ROMs” we have here.], comes up with a page with this error: Uh-oh, something went wrong! Error Code: 404

          1. Thanks Mahesh, the other link worked fine. Should have used the first XDA one in the first instance.

            Also came into this trouble while flashing RUU on command prompt, please advise:

            sending ‘zip’ (1033121 KB)… OKAY [ 53.016s]

            writing ‘zip’… INFOsignature checking…

            FAILED (remote: 12 signature verify fail)

            finished. total time: 128.338s

          2. did it twice with different machines. same issue. Third time, different one,

            sending ‘zip’ (1033121 KB)… OKAY [ 55.706s]

            writing ‘zip’… INFOzip header checking…

            FAILED (remote: 32 header error)

            finished. total time: 55.831s

          3. Weird.

            What I suggest you to do is download another stock firmware, maybe an older firmware, for your device and then try flashing it on your device. Let us know how it goes for you.

          4. Very weird and annoying. May be google doc is playing up, not letting me download in full. Any other place you could upload for me, Mega Download??

            And old firmware, yes, will definitely try it, please send me a link.

            My reason to unroot is, When i do factory reset, it reboots in recovery mode, and unless i do factory reset in recovery, it does not do factory reset from android/htc settings option.

          5. Already went through that post, it is dual sim and few issues here and there. damn, it is going to be tough 🙁

  4. Arun Ramakrishnan

    i cant unlock my relocked Hboot its says :

    D:>fastboot flash unlocktocken unlock_code.bin

    sending ‘unlocktocken’ (0 KB)…

    OKAY [ 0.109s]

    writing ‘unlocktocken’…

    (bootloader) signature checking…

    FAILED (remote: signature verify fail)

    finished. total time: 0.113s

    please help

          1. Arun Ramakrishnan

            i searched the whole web for stock frmware but i dint get one. if u know please give a link ….
            thanx…
            my mob is indian verson with dual sim

          2. Arun Ramakrishnan

            yes I have it is single sim European version. mine is “dual sim Indian version” …….. 🙁

  5. I rooted the device, but using stock OS, is there any way to unroot and lock boot loader without flashing the ROM?

    1. Arun Ramakrishnan

      Once again Lock your device and Unlock your device. It may remove root permissions .then again lock your Hboot…

      1. After relocking the bootloader is this possible to unlock the bootloader again? coz I,m still having the root permissions.

        thanks for your fast reply…

          1. I relocked and when trying to unlock I am getting an error “cannot load Unlockcode.bin”.
            please help…

  6. when i type the command fastboot oem lock it says waiting for the device for a long time and i can’t find anything on my cmd what will i do reply fast thnx dude…

  7. Hi Mahesh Makvana!

    I need your help please.

    I can not install a recovery because when i installed the recovery, reboot the phone on HBOOT mode and go to Recovery option but the phone does nothing and start at Fastboot mode.

    I am without Recovery and without a stable rom because when i restore to default settings the phone start at Fastboot mode and the rom no change.

    On my Fastboot appears the messages:
    *** TAMPERED ***
    *** RELOCKED ***
    *** Security Warning ***

    When I tried to flash Recovery on Fastboot comand “fastboot flash recovery recovery.img” does nothing and start at Fastboot mode.

    What I have to do?

    Best regards and thanks you!

  8. Can’t do anything.. HTC is pluged, debugging, after “adb reboot fastboot” – it says: “device is offline”. But in the same time, i got access to my HTC desire 816 in “My Computer”.. any help ?

  9. I locked as per your instructions. In the heading IV. Unlocking HTC Desire 816, you said to enter adb reboot fastboot, i entered this command, it reads
    C:adb>adb reboot fastboot
    error: device not found

    NOw tell me what to do??? I am stuck in the middle

  10. Nikunz Khanal

    Hey Mahesh..i luv ur work so far. right now to unroot as said, after giving “adb reboot fastboot” command, it displays as” device not found”. it seems to be problem faced by most of us. And i did it manually..going to the fastboot mode from the phone.. i hav relocked my bootloader. But while copying the file it says some kind of error. So can u plz upload a video on this? how to UNROOT htc desire and guide us thru step by step process? That would be appriciated alot.. thank you..

  11. hey mahesh… i got lolipop update , but i cannot intall it coz my phone is rootted . is there any way i could install the updates…
    help me plz………
    when i try to unroot it, abd is outdated and device offline msg pops up

    1. Hi Jacob,

      If it says ADB is outdated, please head to the ADB website and download and install the fresh version of the tool on your PC.

      Device offline message usually appears when you don’t have the device drivers installed on your PC. Install the HTC Sync tool on your PC and it’ll do the needful.

      Thanks!

  12. Rishikesh Bajpai

    plz tel me the procedure or file to get back my htc 816 desire from cyanogenmod to original stock rom or original htc license software.. my mobile show only boot mode

    1. Charge your Battery 100%.

      Download the Correct RUU from

      http://forum.gsmhosting.com/vbb/f485/htc-desire-816-official-stock-roms-always-updated-1948682/

      After download the correct RUU, Rename the Zip file as per your Model such as, mine is 0P9CIMG.

      Place this Zip file into your memory card.

      Then boot your HTC 816 into HBoot mode.

      It will start the process automatically. It will take about 10-15 Minutes.

      Finally you will get the phone on Factory version.

  13. Hi Mahesh,

    Recently I installed CM 12 lollipop on my HTC desire 816 but much of the features are not working as expected so I want to have the previous official kitkat of HTC I too dont have the backup & I lost everything even the OS now My phone has become a simple useless box. So its a request to please help me getting back my OS if possible. My device is htc_a5dug china made.

    1. Hi Satish,

      The above procedure should help you get your HTC Desire 816 back to the stock. It’ll unroot and remove the custom ROM from your device and will bring your device back to stock ROM.

      Let us know if you have any questions!

      Thanks!

  14. Hello,
    I really need a help over here, i’m trying to unroot (because my Phone keeps restarting after root and i can’t update SU binary) using your tutorial but everytime i get the same msg which is
    (bootloader) signature checking…
    FAILED (remote: signature verify fail)
    i turned off signature verification in recovery mode but i still get the same error.
    I really appreciate your help in this.
    Thanks.

  15. My HTC is stuck at boot screen.

    I didnot root it .. I guess it has some software problem.

    so wanted to reinstall stock rom.

    tried this method, but it failed saying

    bootloader checking…

    remote signature verify fail.

    so i downloaded anther RUU .. and this time it failed saying

    data length is too large.

    i dunno what to do anymore.

    the HBOOT code os the device is

    HBOOT 3.19.0 OS 2.34.720.1

    Radio_1.31.50.0215

    please help .. i am totally stuck here

  16. guys mine iss showing locked and i tried htc dev method but doesnot work and i cant install custom roms also phone storage and sd card not opening and restarts autometically pls anyone tell me de solution

  17. i have htc desire 816 daul sims .when i want make root to this phone i choice wrong app .and now my phone locked give me tampared unlocked……security warning ….what i do now for get my phone come back work

Leave a Reply

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