[GUIDE] Root your HTC Desire 816!

rumpleduskin

Member
Nov 13, 2015
39
24
0
Thanks for the fast response, I was wanting to try this today, seeing how yesterday I spent the entire day reading every thing I could find on it. And no, I haven't patched stagefreight yet. Should that be done first. Or is that the exploit they use to root? I don't know why I'm so nervous about this. I was the same way when I modded my ps3 and that went off without a hitch. I all ready have all the files on my pc, and not to worried a not command line stuff, been mess in with computers for years, so again why the nervousness over the phone? I think just cuz it's new.

Phone specs:
***UNLOCKED***
A5_CHL PVT SHIP S-ON
HBOOT-3.19.0.0000
RADIO-1.47.40.0224
Open DSP-v27.2.2.00546.0311
OS-2.33.652.5
eMMC-boot 1536MB
Aug 17 2015,22:55:45:0

So, with this info I'm good to go right. I think I just needed to find someone who could actually say this can be done on this make and model so I know it works.If I don't need to patch the exploit, I'm gonna go ahead and root this this afternoon.
Thanks for taking the time out to answer me. This site has been amazing so far with all the information, though there is so much on here it can be intimidating. I'm not too worried about custom roms just yet, just getting it rooted will be an accomplishment. And basically, you've explained it all very well in the previous posts, that it's just come down to following directions.

I'll let you know later today how it went.
 

thoctor

Senior Member
Aug 6, 2014
330
96
0
Texas
Thanks for the fast response, I was wanting to try this today, seeing how yesterday I spent the entire day reading every thing I could find on it. And no, I haven't patched stagefreight yet. Should that be done first. Or is that the exploit they use to root? I don't know why I'm so nervous about this. I was the same way when I modded my ps3 and that went off without a hitch. I all ready have all the files on my pc, and not to worried a not command line stuff, been mess in with computers for years, so again why the nervousness over the phone? I think just cuz it's new.

Phone specs:
***UNLOCKED***
A5_CHL PVT SHIP S-ON
HBOOT-3.19.0.0000
RADIO-1.47.40.0224
Open DSP-v27.2.2.00546.0311
OS-2.33.652.5
eMMC-boot 1536MB
Aug 17 2015,22:55:45:0

So, with this info I'm good to go right. I think I just needed to find someone who could actually say this can be done on this make and model so I know it works.If I don't need to patch the exploit, I'm gonna go ahead and root this this afternoon.
Thanks for taking the time out to answer me. This site has been amazing so far with all the information, though there is so much on here it can be intimidating. I'm not too worried about custom roms just yet, just getting it rooted will be an accomplishment. And basically, you've explained it all very well in the previous posts, that it's just come down to following directions.

I'll let you know later today how it went.
Your welcome. Your nervous because your smart and you know computers therefore you know that NOTHING with electronic devices is ever guaranteed! Also this is your main device for Internet access and that makes your nervousness totally understandable. I know the butterflies I had in my stomach when I finally hit enter in command prompt and flashed TWRP and waited for it to reboot. That was the longest few minutes of my life but I did it.

You have the single Sim version in a5_chl and that's good because that's what I have and I rooted mine. Full disclosure though, I had not done the Stage fright update patch before I rooted but everything I've read says your fine. I say YOUR fine because I checked your firmware version and yours is the Stage fright patched version but it was an MMS exploit it was patching not a root so you should be fine but I'm just letting you know your firmware version.

The reason I asked you that question didn't have anything to do with rooting. It had to do with the last part which was obtaining full or partial S off. Partial using the mod you spoke of and full using the paid Sunshine app. I read that the paid full S off had an issue with the most recent patch and couldn't get full S off with it applied. Not sure if that's totally true but even if it is there probably ways around it. Also if you choose the option of the mod for partial S off that's not an issue.

The bottom line to all this is you are good to go. You have an unlocked bootloader, total command of command prompt (see what I did there) and you have the guidelines v_superuser kindly wrote down here so with that you should be good.

P. S. You might just watch one or two if those last videos I linked for rooting. Not because you really need them but just to show you how close your are and the few visual steps it takes to get there. Good luck and let me know!
 
Last edited:

rumpleduskin

Member
Nov 13, 2015
39
24
0
You have an unlocked bootloader, total command of command prompt (see what I did there) very clever :) :)

So, after all the worrying and days of reading every possible forum and website, in the end it all went rather smoothly. Just needed that one person to give me a little push, thanks for that.

I was going to post a screenshot but no go, but root checker basic states that
Congratulations! Root
access is properly installed
on this device!
Device: 710c
Android Version 5.0.2

All that's left is the s on patch and it's good to go. When installing the mod file I don't suppose you can just boot into twrp and install like that can you? Look at me, I get root by following specific instructions and now I want to go off script.

So yeah, I also made the nanroid backup incase I screw something up. I did watch the videos you suggested and it helped having seen it done.

Just so I understand, I won't have full root unless I add the mod, correct?
 

thoctor

Senior Member
Aug 6, 2014
330
96
0
Texas
Root achieved!

You have an unlocked bootloader, total command of command prompt (see what I did there) very clever :) :)

So, after all the worrying and days of reading every possible forum and website, in the end it all went rather smoothly. Just needed that one person to give me a little push, thanks for that.

I was going to post a screenshot but no go, but root checker basic states that
Congratulations! Root
access is properly installed
on this device!
Device: 710c
Android Version 5.0.2

All that's left is the s on patch and it's good to go. When installing the mod file I don't suppose you can just boot into twrp and install like that can you? Look at me, I get root by following specific instructions and now I want to go off script.

So yeah, I also made the nanroid backup incase I screw something up. I did watch the videos you suggested and it helped having seen it done.

Just so I understand, I won't have full root unless I add the mod, correct?
That's great news! I knew you could do it but knowing and doing are two completely different things so congratulations! The short answer is no, you are fully rooted without the mod but HTC and a few other device makers lock their NAND storage partitions including boot, radio and system so that you can't change your phones MID or CID or radios. They say it's too keep you from bricking your phone but it's really because they don't want you to have the ability to flash other carriers firmware or custom radio zips or even change your phones main I. D. number, which I believe is illegal by the way.

HTC calls this S on and this mod changes the Selinux from enforcing to permissive and installs a script so that your system partition allows you to write to it and not just read. This is useful for installing root apps that makes use of Mount scripts at boot to allow their apps to work properly, I. E. Link2SD,Titanium Backup which installs Busybox on your system partition. Mind you that this will not give you S off. It's only a workaround for this one issue and some people swear by it. I'm not a fan of changing Selinux from enforcing to permissive, just Google"changing SElinux from enforcing to permissive "and read the reasons given.

Having said all that there's risk reward with everything we do to our phones that's not stock related I'm just letting you know all the info so that you can make your own informed decisions like I did. I used the paid Sunshine app from the Root ninja. Com and their license unlocked my NAND partitions and set my phone to true S off. I can flash radios, I won't, I can go backwards in Stock firmware, I don't, I can run any root app that needs access to these formerly locked partitions, I do, I can change my CID and flash other carriers roms, I won't. Point is you can do allot with true S off.

There are a few other things I've missed but to can just Google"benefits of S off" and read for yourself. I would suggest trying the free mod for lollipop which is linked farther down in the kitkat forum for this same mod and see if that works for you. If yes then great if not then contact the devs for Sunshine and let them know which firmware you have and if the app will work for you. You download the app after root and relocking your bootloader and run the app. It scans and reboots then tells you if the exploit will work I know for sure your bootloader needs to be relocked if you decide to pay and actually run the app but read their site about just running the test cause I can't remember if it needs to be locked for just the test part. It's $25 but to me it was worth it. Just 5 less Subway sandwiches for me. To others it may not be but that's everyone personal choice. Allot of cool mods and hacks are free here and in other sites but true S off isn't one of them right now. I spent more on my phone case and screen protector but that's just me. Any questions?

---------- Post added at 01:11 AM ---------- Previous post was at 12:58 AM ----------


Oh yeah I forgot something. Kudos to you for making a nandroid backup right after all that. I forgot to stress that. Most people don't and then they flash something bad and are looking crazy trying to find their stock firmware. In the U. S. we're lucky to have HTC supply the stock files on their websites but you shouldn't need them if you only did a nandroid backup. Keep the one you just did on your computer not on your phone as" stock root" and make another one you keep on your phones External SD card every week or so. Here's the most important part, always keep 2 weeks worth of backups not including your original stock backup on your computer. Sometimes one can be corrupted and you need the second which is only a week older. It shouldn't be when you use the MD5 check when backing up but I've heard of it happening. By the way when you backup don't enable encryption, do enable compression and do set the MD5 check to verify your backups aren't corrupt. You can shorten the name and customize it but always leave the date part intact to keep track and pick the Micro SD card as the place to keep your TWRP backups. It's safer there and more space than in internal SD.

---------- Post added at 02:00 AM ---------- Previous post was at 01:11 AM ----------

http://forum.xda-developers.com/des...ense-stock-t3091456/post60319883#post60319883

Here's the link to the lollipop Wp_mod. k. I have never tried doing this so I won't be much help to you im afraid but I think you know to get it figured out but some people have had problems. I think it's just different skill levels needed for this particular mod.
 
Last edited:
  • Like
Reactions: batmobile_bang

rumpleduskin

Member
Nov 13, 2015
39
24
0
I really appreciate all the advice you have been giving me, it's nice to know there's a place you can go to get help when you need it. Looks like though, for now anyways, I'm going to have to go with the mod to get S on. There's no other way to get link2SD and Titanium Backup to work on my phone. These two apps seem critical if your rooted. At least they seem that way from all the posts I have read. Like you said, I'll do some reading up on it and figure out if it works for me but in the meantime I went ahead and downloaded this:

http://forum.xda-developers.com/des...-disable-writeprotection-sense-stock-t3091456

through twrp and install. I really like how easy twrp makes it to install. Not sure if cwm does this or not, but I really like twrp.

When I made the backup, I forgot to compress it, so it's 3.5 gigs on my sd card(all ready backed one up on the computer) Thats a lot of space. I'll have to do another one with compression on, has to be smaller.
Thanks for the backup advice, doesn't take to long and I have seen the posts looking for stock images. I like to know I have some wiggle room if I mess something up.
But everything's working great, I have S on on the boot menu(I'm hoping this can be removed if I decide the other way is the way to go) and I'm rooted. Now it's just learning what apps I want, and what all I can do with my new setup. I don't know if it's me, but the phone seems snappier with root. Thanks again for your advice and effort. It really do appreciate it.

One more question. I'm getting pop ups asking for elevated privileges, or something like that, I forgot what it said in this short of time. But the question is, should I be granting it? I'm guessing yes with programs like link2SD.
 
Last edited:

thoctor

Senior Member
Aug 6, 2014
330
96
0
Texas
I really appreciate all the advice you have been giving me, it's nice to know there's a place you can go to get help when you need it. Looks like though, for now anyways, I'm going to have to go with the mod to get S on. There's no other way to get link2SD and Titanium Backup to work on my phone. These two apps seem critical if your rooted. At least they seem that way from all the posts I have read. Like you said, I'll do some reading up on it and figure out if it works for me but in the meantime I went ahead and downloaded this:

http://forum.xda-developers.com/des...-disable-writeprotection-sense-stock-t3091456

through twrp and install. I really like how easy twrp makes it to install. Not sure if cwm does this or not, but I really like twrp.

When I made the backup, I forgot to compress it, so it's 3.5 gigs on my sd card(all ready backed one up on the computer) Thats a lot of space. I'll have to do another one with compression on, has to be smaller.
Thanks for the backup advice, doesn't take to long and I have seen the posts looking for stock images. I like to know I have some wiggle room if I mess something up.
But everything's working great, I have S on on the boot menu(I'm hoping this can be removed if I decide the other way is the way to go) and I'm rooted. Now it's just learning what apps I want, and what all I can do with my new setup. I don't know if it's me, but the phone seems snappier with root. Thanks again for your advice and effort. It really do appreciate it.

One more question. I'm getting pop ups asking for elevated privileges, or something like that, I forgot what it said in this short of time. But the question is, should I be granting it? I'm guessing yes with programs like link2SD.


[/COLOR]
Sounds like you got it all figured out and that's great man I'm happy for you. Yeah that pop up is the SuperSU app asking you for permission to give these apps superuser permission. You can go into the SuperSU app, it's green with a hash tag, and in settings you can set it to not prompt every time once you have already given superuser permission the first time. That's fine but just don't set it to never prompt you at all because that allows any app that asks to get it. It's not a problem if you stick to the Google play store. Once you get that mod working then you can repartition your external SD card according to Link2SD website and move allot of your apps to there and free up internal space. I have the paid version which allows you to include data in the transfer. Well worth the few dollars to free up an already limited internal storage. If you want a list of the root apps I use I'll be happy to share it with you. They're all safe and work great. Also if you ever get to the point of flashing custom roms let me know and I'll walk you through that as well. I'm on Cyanogenmod 12.1 unofficial build but it's got a few bugs with workarounds I've found to fix most of the issues. I use it as my daily driver and it's stable for that but that's for a future project im sure. I liked stock with root also so you got time to play with things.
To answer your question about S off if you ever decide to get it the notification changes to read " S off" but it doesn't go away it just shows you the status of the locked partitions.
 
Last edited:

rumpleduskin

Member
Nov 13, 2015
39
24
0
I'm not sure if we should continue this thread since the question I'm wondering about is link2sd. One of the reasons I wanted to root was the space situation. Or should I start another thread, I'm sure there are threads started, been reading up in some of them, and there's lots of different opinions on going about it. I was just thinking I could partition my sd card through twrp boot screen. Then install link2sd and it should find the partition right?

You did say to ask if I had any questions, trying to figure most the stuff out on my own, but when it comes to things like partitioning, I try and make sure I get advice. I know that I would want ext. 4 but not sure. My cards 16 gig, with 3.5 for my backup. Was hoping to set it at 10. Any suggestions?
 

thoctor

Senior Member
Aug 6, 2014
330
96
0
Texas
I'm not sure if we should continue this thread since the question I'm wondering about is link2sd. One of the reasons I wanted to root was the space situation. Or should I start another thread, I'm sure there are threads started, been reading up in some of them, and there's lots of different opinions on going about it. I was just thinking I could partition my sd card through twrp boot screen. Then install link2sd and it should find the partition right?

You did say to ask if I had any questions, trying to figure most the stuff out on my own, but when it comes to things like partitioning, I try and make sure I get advice. I know that I would want ext. 4 but not sure. My cards 16 gig, with 3.5 for my backup. Was hoping to set it at 10. Any suggestions?
No, it's fine. You can find a link2SD forum if you want and let me know when you go there or we can PM. It's all about helping others so we try to put everything in these forums if we can. Let me see if I can quickly help with this though here.Link2SD needs to have the ext SD card, class 10 card if possible reformatted using your computer to about 10% of your total size.

For stock roms they recommend setting the data link2SD partition to ext2 format and the other larger partition to fat32 using Easeus partition tool free. Set both partitions to primary as well at formatting. This wipes the card so transfer all your data to your computer before reformatting. You can set it for more than 10% since your card size is 16ggb like 3 or 4 ggb. I have a 64 ggb class 10 SanDisk card and I set my data partition to 4.8 ggb and that that gave me plenty of room for my apps but I don't use games. I wouldn't set the partition too high at 16ggb but you'll use it faster then you think especially if you buy the payed version and move your data from your apps as well. Find a video tutorial or web tutorial on using EaseUS partition tool if you've never used it.It's easy but there's one step where you have to save changes before applying the partitions and I messed it up the first try and had to do it a second time. You'll need a card reader too but your computer might already have one to insert your SD card into.

When you can get a 64ggb class 10 card and skip the 32ggb. I think the Sandisks and Samsung's are like 24 dollars or so on Amazon or Newegg. Also before you do any of this verify that you applied the wp_mod.ko fix properly and use Titanium backup free version to install Busybox and set up to test it. When I was reading about the mod you have to use ES file explorer with root enabled from within the app and from SuperSU to change a file name in your system as well to set the script at boot every time so that Titanium backup can mount the script at every restart. Also in your settings you can see if the mod set your SE Linux permissions to permissive instead of enforcing as it needs to to work properly as a RW fix for your system partition.

http://www.link2sd.info/description

Use this link to link2SDs site and the faqs section to run you through how to partition and fix issues with link2SD . PM me or let me know if you switch to another forum if you need anything else. The more this stuff is saved here for others to follow the better but to be honest there's already allot of answers already here by people allot smarter than me.




---------- Post added at 09:56 PM ---------- Previous post was at 09:02 PM ----------




Also with the size of your card I would just transfer your extra TWRP backups to your computer and just keep one or none on your SD card but that's your call . You still need the space free to do backups but that way you won't have 2 taking up 6+ggbs .[/QUOTE]
Below is a link to TB faqs site. Some people have issues getting the backups to work and they recommend a folder structure that fixes that. I made my own by just first making a folder named "titanium backup" and within that folder made a sub folder named "backups" in my external SD card and then in preferences, backup locations in TB I was able to point and assign that folder for the backups in TB and it worked. They show a different way but this one worked for me.

http://www.titaniumtrack.com/kb
 
Last edited:
  • Like
Reactions: rumpleduskin

rumpleduskin

Member
Nov 13, 2015
39
24
0
Well this seems a little bit more complicated then I thought it would be. Yet, I now have a really good idea what needs to be done, and due to the size of this thread, it probably would be a good idea if I have any more questions to post in a link2sd post. I'll pm you where I end up, you've been very helpful up to this point, so give your self more credit. As you say, you may not be the most knowledgeable, but your taking the time out to share what knowledge you do have. I get why it's best to try and keep things on topic and not in pms, so the next guy who has the problem, can find the information.
 

thoctor

Senior Member
Aug 6, 2014
330
96
0
Texas
Well this seems a little bit more complicated then I thought it would be. Yet, I now have a really good idea what needs to be done, and due to the size of this thread, it probably would be a good idea if I have any more questions to post in a link2sd post. I'll pm you where I end up, you've been very helpful up to this point, so give your self more credit. As you say, you may not be the most knowledgeable, but your taking the time out to share what knowledge you do have. I get why it's best to try and keep things on topic and not in pms, so the next guy who has the problem, can find the information.
Exactly right. I reread that link to the wp_mod.k for lollipop and you should be good to go there. Seems like it was the kit Kat one that had more steps. Some people had write issues to the ext SD card in lollipop but they really didn't.They just weren't enabling write permissions through their apps and file explorers properly and pointing them to the correct folders for each app. Lollipop reenabled write permissions to ext SD card but only to each apps assigned folder. That's where people's issues happened. PM me when you get it done. As for Link2SD, it's allot of steps but their pretty straightforward and easy but yeah it's complicated but worth it in the end. Good luck my friend.
 
Last edited:

thoctor

Senior Member
Aug 6, 2014
330
96
0
Texas
rooting Desire d816w

hi, this works for HTC d816w?
I believe it will. That model shows to be the a5_dug dual SIM online and I'm pretty sure others here with that same phone have done it. I have videos linked a few pages back in this forum for downloading ADB/fastboot and unlocking bootloader then rooting. They should be universal and a couple videos are actually for the One M8 but the instructions are the same. I'm a visual person and these videos, along with a few tips to solve problems I posted in here, helped me with my single SIM model . I also link to TWRP custom recovery 2.8.7.0 instead of an executable version of Clockworkmod in the tutorial but that's a personal preference towards TWRP by me not v_superuser who was kind enough to start this forum and help alot of people including myself. Good luck.
 
Last edited:

manuel1992

Senior Member
Feb 4, 2014
413
53
0
Shkoder
I believe it will. That model shows to be the a5_dug dual SIM online and I'm pretty sure others here with that same phone have done it. I have videos linked a few pages back in this forum for downloading ADB/fastboot and unlocking bootloader then rooting. They should be universal and a couple videos are actually for the One M8 but the instructions are the same. I'm a visual person and these videos, along with a few tips to solve problems I posted in here, helped me with my single SIM model . I also link to TWRP custom recovery 2.8.7.0 instead of an executable version of Clockworkmod in the tutorial but that's a personal preference towards TWRP by me not v_superuser who was kind enough to start this forum and help alot of people including myself. Good luck.
thank you sir!
 

thoctor

Senior Member
Aug 6, 2014
330
96
0
Texas
root dual SIM Desire 816

i have unlocked bootloader please tell me how to root my htc desire 816 dual sim
You are almost there! Download current SuperSU flashable zip link from the beginning of this forum directly to your phone then using a file explorer move it from your downloads folder to the root of you're SD card, basically means to copy and paste it to your internal SD card but NOT in any folder or sub folder. Just by itself.

Then find the flashable versions , not executable, for either Clockworkmod recovery or TWRP custom recovery, 2.8.7.0 I believe is current TWRP, and download that to your computer and place it in your ADB/ fastboot folder. Then make sure your phones USB debugging in the developers settings is turned on. Then put your phone into hboot/fastboot mode and hook up your phone to your computer like you did to unlock your bootloader then open command prompt in your ADB folder and type," fastboot flash recovery" name of your TWRP or CWM recovery.img" and hit enter or just drag the file from your ADB folder down to the command prompt window after entering" fastboot flash recovery" and release it. It should flash on its own and reboot. If it doesn't reboot you can reboot it using command prompt or just reboot from the phones bootloader. Go back into your recovery, should be a custom recovery by now and using it's "install feature" find in the recoveries file explorer the SuperSU zip file and select it then flash it and then clear your Dalvik cache and reboot system . Your should have the SuperSU app installed and be fully rooted. You can use root checker from the play store to verify and that's it, your rooted with a custom recovery ! I prefer TWRP's touch recovery but your can flash either it or CWM. Whichever you prefer.

I have linked several videos several pages back in this forum that show how you flash TWRP and SuperSU. They are good visual aids and work on our phone even though they are for a different HTC model Just in case you want to watch then first but it's easy. You've already done the hard part in unlocking your bootloader.

---------- Post added at 06:52 AM ---------- Previous post was at 06:49 AM ----------


Here's the link for the SuperSU flashable zip file

https://download.chainfire.eu/696/supersu/

And here's the link for TWRP 2.8.7.0 . use the mirror link and follow the ADB/fastboot instructions not TWRP manager. That app has issues.

https://twrp.me/devices/htcdesire816.html

Final thing and most important. After your done with all this make a stock nandroid backup of your current stock rooted Rom, making sure you have at least 75% of your battery life, using your custom recovery. Enable compression and MD5 check but not encryption. Also rename your backup" stock rooted Rom " after the date that's already preset by the recovery and pick your micro SD card as the backup location due to the size of the backup, usually 3 plus ggbs . Then I would copy or move that stock backup to my computer and have at least 2 backups of it at all times then backup again once a week and keep your original stock rooted backup on your computer and erase all but the 2 most current backups you make. Basically you will have one original stock rooted backup on your computer and 2 weeks(2) worth of backups on your micro SD card. Sounds like alot but it's not if you ever need to restore a previous version of you're nandroid backups.
 
Last edited:
  • Like
Reactions: sharvinzlife

CSKA1990

New member
Dec 1, 2015
3
0
0
HTC 816 Dual

hi, i unlocked bootloader, then installed CWM, and finally a cannot enter recovery. It shows This build is for development purposes only.Do not distribute outside of HTC without HTC s written permission. Please help.
 

thoctor

Senior Member
Aug 6, 2014
330
96
0
Texas
stuck at screen before recovery

hi, i unlocked bootloader, then installed CWM, and finally a cannot enter recovery. It shows This build is for development purposes only.Do not distribute outside of HTC without HTC s written permission. Please help.
That's the screen that shows before it goes into you're custom recovery so ignore it but if it just stays there reboot into recovery , press power button and volume down and hold. Let it reboot and see if it goes into CWM recovery then. Power button and volume up just reboots the phone by the way if it ever gets stuck in a bootloop for future reference while the first reboots into your recovery.

If your still can't get into CWM try flashing TWRP custom recovery over it and see if that fixes things. There's a link to TWRP in my previous post. CWM is good but these steps might show you that TWRP works better for your model who knows. They both should work so try rebooting into custom recovery first then flash SuperSU zip from within recovery to complete rooting your phone

---------- Post added at 06:03 PM ----------


Also flash TWRP using ADB/fastboot method not using TWRP manager. If you ran the executable CWM at the beginning of this forum you might also try the flashable version of CWM instead and follow either my flashing instructions in the previous post or the instructions in the TWRP website in the link for using ADB/fastboot.
 
Last edited:

YouArePoop

Senior Member
May 22, 2011
275
30
0
Is Sunshine still the best method of S-Off?
My Desire 816 recently broke (bent it somehow, so screen is a colorful mess of pixelation), and wife ordered me a replacement a couple days ago.