If you understand the risk of rooting but still you need to root your device then you are most welcome to this guide.
Disclaimer - This will void your warranty.
To root your device you have to unlock the bootloader, which will also erase all your data in internal storage!
Please follow the link for how to backup all the data on your android device:
Step by step guide to take full backup of your phone data
After taking backup of your phone, go and unlock your bootloader here.
HTC official bootloader unlock page
HTC Desire 816 is not listed over there, so you need to select your device model as "HTC One"
(Don't worry, it all follows almost the same steps)
After unlocking the bootloader make sure that you have the following things in hand to start with the rooting method.
Required things:
- HTC sync manager (this has the Driver and other needed stuffs for your device)
- Fastboot and adb binaries
- SuperSu su binaries developed by Chainfire
- Custom recovery for HTC Desire 816
[Rooting guide for HTC Desire 816]
STEP by STEP ROOTing guide for your HTC Desire 816:
The complete process will be split into three things as following:- Unlocking the Bootloader (Which you have already done in the above step)
- Installing a custom recovery
- Installing the ROOT package using the custom recovery
Flashing a Custom Recovery:
STEP 1:---------
Copy the custom recovery file into the directory where you have extracted the adb and fastboot files.
STEP 2:
---------
Now type the following command to install the custom recovery image on your device:
$ fastboot flash recovery <recovery_image_file.name>
Place the recovery image name in the <recovery_image_file.name> field.
$ fastboot reboot
Rooting guide:
NOTE:Rooting guide will only work only after the custom recovery installation.
If you will SKIP the custom recovery installation process and perform only these steps then rooting will not be done.
STEP 1:
---------
After rebooting your phone, Copy the SuperSu zip file to your SD card(By using a USB cable or via adb push command).
STEP 2:
---------
After copying the SuperSu zip file to your SD card you have to go to the recovery and there you have to install this zip file.
To do so use the following command:
$ adb reboot recovery
STEP 3:
---------
Select the Install Zip from SDcard option.
Select the SuperSU zip file where you have kept in the SD card.
After successfully completing all the above mentioned steps your device will be rooted.
BUT WE ARE NOT DONE YET.
After rooting your device if it not able to write on the system partition then it is almost useless.
So after rooting done successfully, reboot your device and keep the wp_mod.ko module on your sdcard.
wp_mod.ko download link
This module lets you enable writing data on the system partition.
Run the following commands on a console on your phone:
$ su
$ insmod /location-where-you-copied-it/wp_mod.ko
Have fun and stay tuned to get more updates.