[Verizon HTC One (M8)] scotty1223:
once you have recieved your stock,s off device back,your basic steps are:

1)change CID/MID back to stock

2)install a recovery

3)install a rom or root access

you have 2 options to install recovery:

1)unlock the bootloader and use fastboot commands

2)leave the bootloader locked,and flash a recovery as a zip file in RUU mode

either way works. i personally always keep my bootloader unlocked so i can use fastboot commands,but that is a personal preference.

to "root by recovery" is not a new concept. once there are no write protections,its easy to install a custom recovery,and use that recovery to either insert the superuser files into the stock rom,or replace the rom entirely.

1) change cid back to stock

this is actually very easy. simply put the phone in fastboot,change to fastboot directory,and enter in a cmd window:

fastboot oem writecid xxxxxxxx

in the case of vzw:

fastboot oem writecid VZW__001

yes,those must be capital letters,and there are 2 underscores.

2) install a recovery

via one of these 2 methods:

1)unlock the bootloader

your phone has come back from sonic with "supercid",wich will allow you to unlock the bootloader natuarally via the htcdev website. see this post for a bit more info on that.

unlocking the bootloader is fairly straightforward,just make sure you use a vzw one specific image. download from one of the following threads:

*links provided when available

the image is easily installed via an unlocked bootloader with the following command:

fastboot flash recovery imagename.img

for example,recovery named CW_touch_recovery:

fastboot flash recovery CW_touch_recovery.img

the image must be in your fastboot working directory.

if you need more specific help with unlock/recovery flashing you can use this guide.

2) keep locked bootloader

the bootloader can stay locked for this method. you can in fact use this to install a new image to any partition,as long as the image is packed up in a proper file.

this assumes a working adb/fastboot and drivers installed. if you dont have these things,you can use this guide from above,downloading the files in post 1,and following the set up adb and prepair to root part in step 2.

once you have adb and fastboot working,download one of the following recovery zip files. do NOT unzip or extract.

*links provided when available

your zip file is flashed in the following manner:

3) install a rom or root access

this is a simple matter of using recovery to either flash superuser,or flash a new rom. in either case,MAKE A BACKUP OF YOUR STOCK UNROOTED ROM!

flash superuser just as you would a rom,after a cache/dalvik wipe. theres tons of info out there on using recovery,so im not going in to great detail on that here.

i dont have this device(well,i dont have the vzw version) so dont ask me whats the best rom to flash. browse the development and original development sections and pick a couple out to try.

if you wish to just run rooted stock,i perosnally prefer superSU to other versions of superuser. you can download it from this thread

_____________________________________________________________________________________________

optional:

if you sent in your phone with a custom recovery installed,and it still is displaying the tampered banner,see this thread to remove it:

*link provided when available

if you want to lock,or unlock your bootloader without messing with htcdev,see this thread for those directions:

*link provided when available

if you want to restore your supermid from 0P6B2**** back to stock ,see this thread:

http://xdaforums.com/showthread.php?p=51677666

_____________________________________________________________________________________________

*work in progress. there will likely be some revisions,but i wanted to get something up for the folks whose devices are coming back