[One (M8) Q&A, Help & Troubleshooting] zlatan_k:
Stuck on HTC logo afte SuperSU flash through TWRP, flashed wrong ROM after -->STUCK

After last OTA in October phone developed a sort of dual OS/memory leak problem where even in my google acct. under devices I would see 2 of the same device performing activities 23min apart exactly. I suspect I may have also had a battery problem as it would shut down at 12-15% battery life remaining regularly and I mean just abruptly shut down (screen would go black and it would shut off immediately). If this was allowed to happen when the phone would get plugged in and powered back on it would take a long time to start up it would show the HTC logo for a good 3/4min as if it were attempting to find the OS to boot into then finally it would flash the HTC logo, dim the screen and make the startup noise and finaly display the home screen. Sometimes only things like SMS messages and contacts would be deleted, other times the phone would go though the Optimiznng App # of ## dialogue and it would be as if I had just loaded the rom. And sometimes *and most bizzarely* it would load the old HTC sense and parts of the old Android OS (app menu layout, homescreen layout, sense interface) along with parts of the new Marshmallow OS (settings menu layout, settings options and OS version would ALWAYS show 6.13). Finally it got so bad that it would reset the OS and apps to some ancient versions and wouldnt even allow me to use the phone constantly poppung up notifications "cannot open/needs to be updated" or something similar for everything from google play services, google play itself home sense etc. i would have to click to settings in between closing the notifications disable the apps causing the popups and manually load the update files onto the phone. To make matters worse my USB port was loose and could barely charge the phone let alone have a stable enough connection with my computer to allow me to try flashing a new ROM. 3r

Additionally, when I was unable to retrieve or create any backups from Google and the only back up that did work was an old one I had on the SD card created through HTC back up (an app which was no longer supported in Marshmallow). I ended up falling on the ice and smashing my screen and cracking my rear camera lense and decided to give the phone an overhaul and replaced the battery, screen, rear camera lens and usb port (this is one of the most tedious handheld devices I've ever had to take apart by the way the amount of double sided tape etc used is insane).

Anyways after I rebuilt the phone and had a functional USB port I decided that I would unlock my bootloader and attempt to root the phone. The bootloader unlock and TWRP flash went fine. Also using TWRP to wipe the Cache and Dalvik Cache and do a factory restore seemed to fix the weird double OS boot and memory leak problem. The phone would boot up in 30 seconds and functioned great.

Everything was working fine and OS was loading fine before I flashed superSU zip (from chainfire download link) using latest TWRP recovery off their website. Anyways I forgot to make a backup in TWRP before the SuperSU flash. After the superSU flash the phone hasn't wanted to boot the OS. I tried flashing the following ROM *0P6BIMG_M8_UL_M60_SENSE70_MR_HTC_Europe_6.12.401.4_Radio_1.29.214500021.12G_20.72.4196t.01_release_464360_signed* thinking it was the correct one but don't think it worked as it still shows Android version 6.13 that was previously installed which would make sense as the rom is 6.12. All it did is deleted TWRP and caused my phone to not show up on the computer (although laptop still made ding sound when plugging in and out and going into fastboot would show FASTBOOT USB). I had to reflash TWRP and my phone windows recognizes my phone again. So now I don't want to proceed further without some guidance as to what steps I should take to get my phone back up and running.

The phone still isn't booting past the HTC logo. I found this TWRP recovery here https://xdaforums.com/htc-one-m8/help/tutorial-how-to-stock-stock-twrp-t3086860

CID ROGER001

MID 0P6B16000

6.13.631.7

and am wondering if its the correct one if not which one do I need to install based on the info provided below and how do I correctly get rid of superSU (assuming thats whats causing it to not be able to load) or if I need to take any other steps. I just need my phone working, preferably with root user privileges so I can get rid of some of the annoying native google apps I don't use and other bloatware. I use my phone for work so I need email clients, document viewers and some networking/ip tools apps and home media server stuff and that's about it. All the other media and social media apps just slow down my phone and unnecessarily take up space. However, if rooting is going to be an issue like it has proved to be so far then I am fine without it and just going back to stock.. I am very new to using ADB and TWRP recovery (but do know the basics and have done a good amount of reading) so my apologies in advance if I ask a lot of questions or for step by step guidance for some things. Lastly, I am located in Canada and use my phone with Wind Mobile (now called Freedom Mobile) so whatever solution or workaround there is cannot screw up the radio files as I need it to work with WIND (now Freedom ) Mobile AWS bands.

Thank you.

C:\adb>fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.29.214500021.11G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 6.13.631.7

(bootloader) version-misc: PVT SHIP S-ON

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B16000

(bootloader) cidnum: ROGER001

(bootloader) battery-status: good

(bootloader) battery-voltage: 0mV

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: 76df2b54

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.030s