[Verizon HTC One (M8)] jcole20:
Below is a cheat sheet I've made to help others keep the commands they'll need and general information organized and consolidated in one place... When I first started using Android years ago I kept one of these so I could refer to it if I forgot a command or a small piece of info and I thought I'd share one for the m8.

Make sure to check out the note at the end of this post regarding Dottat's updated ADB files. They prevent the need to flash ruu's twice as you'll see outlined in this post.

Edit Note:​

I highly recommend running ruu's via adb. It may look more intimidating than the exe or hboot methods,

but if they were to fail you'd see exactly where it failed in the running log. You can avoid having to wait

for an initial boot of the stock rom if your intentions are to wipe to stock and then install a custom

recovery and whatever your rom/rom(s) of choice are. I personally wipe my phone from recovery, then

wipe via the adb commands below, run the ruu, and then factory reset from stock recovery. I'll then

install a custom recovery and my rom of choice. It's up to you, but I've found this to be the quickest

method of insuring a full-wipe to stock and then into my rom of choice. The wiping above is redundant

and not necessary, but I'll do it if I've got a problem I simply cannot figure out. To be honest the ruu should

wipe everything for you and then running a factory reset w/stock recovery installed should fix any

4g/LTE issues.
​

***Verizon ADB Information***

--MOST but NOT ALL of this is Universal (Not Carrier Dependent)--

All commands beginning with "fastboot" must be performed at Bootloader

All commands beginning with ADB are performed from a phone that is in Rom

-You may skip the "adb reboot bootloader" step if you're already

at the bootloader

Firmware/RUU/Recovery instructions are available in their specific threads

*This is just a cheat sheet*

Basic ADB Commands:​

Recovery Flashing: (TWRP Current Standard)

adb reboot bootloader

fastboot flash recovery recoveryimgname.img

Firmware Flashing:

adb reboot bootloader

fastboot oem rebootRUU

fastboot flash zip firmwarename.zip

*you should be prompted to flash a second time here*

fastboot flash zip firmwarename.zip

fastboot reboot-bootloader

HBoot Flashing:

adb reboot bootloader

fastboot oem rebootRUU

fastboot flash zip hbootfilename.zip

RUU Commands​

Wipe By ADB:*optional*(though a wipe is recommended either by recovery or adb)

adb reboot bootloader

fastboot oem task 28

fastboot oem task 29

Install RUU via ADB:

adb reboot bootloader

fastboot oem rebootRUU

fastboot flash zip 0P6BIMG.zip

Install RUU via HBoot:

Rename ruu .zip to 0P6BIMG.zip and copy to root of external sdcard

Boot to your bootloader and enter hboot if you're in fastboot mode

Hboot should automatically read the RUU file and begin unpacking (progress bar at top right)

Follow onscreen prompts after it unpacks...

*sdcard must be formatted to fat32 to read RUU* formatting the sdcard through the android os

will accomplish this. It will mount vfat when you read it by computer or in twrp this is okay.

SELinux Terminal Commands:​

1) Grant su level permissions via terminal by typing "su"

2) Enable SELinux status by typing "setenforce x" where x is the variable below

setenforce 0 =Permissive

setenforce 1 =Enforcing

GPE Install Instructions:​

Begin with SuperCID:***May no longer be necessary***

1) Get current cid information via;

fastboot oem readcid

Write down your current cid reading

2) Change your cid to 11111111 via;

fastboot oem writecid 11111111

(check cid again with fastboot oem readcid to varify)

3) Reboot to the bootloader

4) Following the reboot back to the bootloader

verify your cid is 11111111

And Then Install Rom Via:

5)Wipe /data; /cache; /system; Dalvik

6)Format /system; /data; /cache to f2fs -optional *Must use Elite Kernel for GPE 5.1*

7)Install Rom

8)Reboot

Remove GPE:***these are just my recommendations***

1) Revert CID via fastboot oem writecid (your stock cid ex: fastboot oem writecid VZW__001

2) Wipe everything /data, /cache, /system, /dalvik

Click Here for dottat's firmware and ruu master collection

Below, on this first page, dottat has linked a file containing updated adb files to be used when installing his ruu's. They correct the issues many have had requiring two flashes of his ruu's. Full information available through his posts in this thread. You can either replace the files in his .zip with your current adb folders files, or use it (after unzipping) as an updated lightweight adb interface folder.