I've been reading a lot of stuff since now but still have some unanswered questions.
I want to return to completely stock as for insurance or warranty purposes.
I originally got an german HTC One M8 with T-MOB101 cid.
I unlocked the bootloader as the temp-root variant did not work for me, s-off'ed, changed cid to Supercid and flashed ViperRom.
But now I have to send it in to insurance company because my display glass broke after dropping my htc one off about 1 Foot...
So how would be the optimal procedure to get as close to completely stock?
I know that after reverting everything the bootloader would still say relocked.
So my idea was to:
1. get an original T-MOB101 NAND backup and restore it (beforehand restore T-MOB101 cid)
2. flashing stock recovery
3. Removing Tampered (http://forum.xda-developers.com/show...20&postcount=1)
4. Setting Locked (http://forum.xda-developers.com/show....php?t=2708571)
5. play over an OTA firmware.zip
This would lead me to a stock rom with OTA capability, but would still show me the red warning as well as S-OFF.
As an alternative I read about hex edited hboots to get rid of the red warning or even Mask S-off as s-on.
However in the according thread i could not make out an hboot corresponding to the T-MOB101 CID. So I tried it on my own after having a look at stock and modified hboots.
I edited my own hboot according to those modification but am too scared to flash it as it could hard brick my phone....
So I ask you guys, am I on the right way and what would you do ?