How to root
Flash this http://download.chainfire.eu/372/Sup...erSU-v1.86.zip
in twrp recovery
S-ON Details on how to flash a rom
Download the rom and copy to your phone
Download fastboot tools if you don't have them
Extract the adb folder in the fastboot zip to somewhere (E.g. C:\adb)
Open the rom zip and extract the boot.img file to the adb folder
Connect your phone to your pc
Hold shift and right-click somewhere in the adb folder, select "Open command window here"
Restart your phone to bootloader, then select fastboot.
Type "adb devices" (don't type the " " for this or the others)
It should show your phone's serial number, if not download HTC Sync Manager and install
Type "fastboot erase cache"
Type "fastboot flash boot boot.img"
Type "fastboot erase cache" again
Type "fastboot reboot recovery" to get to CWM or TWRP, whichever you have installed
Backup your system, data, and cache
Factory reset, wipe cache, wipe dalvik cache, format system
Install the rom.
HTC ONE M8
HTC BUTTERFLY S 901S
HTC BUTTERFLY X920D
HTC WILDFIRE S