Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Since the term "brick" is used to mean different things by different people, a bit more detail about the state of the device and how it got like that will help in giving the best answer.
(For example, if I ever say a device is "bricked" I mean that nothing short of a jtag rig will revive it. But it's really hard to get an M8 into that state without putting some serious effort in).
whenever i factory reset it , it still stays at the htc boot up screen.Try holding down the power button and the volume down rocker at the same time to do a factory reset. HTH
Look into* installing RUU for HTC One M8 (Stock Software)
You will get your RUU here.
http://www.htc.com/us/support/rom-downloads.html
Edit*

