[Desire 816 General] MihirSheth:
￼I was thinking to make a clean post about unrooting and here it is :)

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

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.

NO THANKS , I LOVE TO SOLVE PROBLEMS!!:D

￼￼