[One (M7) General] Dark Nightmare:
This is gonna be a lengthy tutorial, I'll be very clear and specific in my details and requirements, you are entirely responsible for what you do to your device, I can confirm here works and the end result is a completely stock device which is updateable, etc, any mistakes, missed steps and any other user error is your fault, so read and follow instructions carefully, that is all. Links for files, requirements, etc will be provided at the end of this tutorial.

Let's begin:

Requirements:

1. Nandroid backup of T-Mobile stock 1.27 rom, since we have no ruu to work with, link provided. (credit to whomever uploaded it)

2. CWM recovery along with ROM manager from the playstore, I may or may not make a flashable zip of the nandroid, depends on when I get time to do so.

3. Root and s-off

4. revone s-off tool (bin file to be specific)

5. a pc or some other way of unzipping the nandroid backup, do not use your device to unzip it, it may or may not unzip correctly, chances are you'll waste your time unzipping over and over pointlessly.

6. adb toolkit (mini kit at the end)

7. knowledge on how to use adb, etc is a plus.

8. KNOW HOW TO READ

9. An HTC one that's at least rooted.

10. Patience

Steps:

1. Gather all your required files, take the all in one toolkit I link which contains revone, adb, stock recovery and cwm. You can placed the downloaded nandroid wherever you want to.

2. Unzip the nandroid backup and place it on the internal memory of the device in the "sdcard/clockworkmod/backup/" folder, do not rename the unzipped file.

3. Run the cwm flash script to replace your recovery with cwm touch recovery, device needs to be in android, not fastboot, device will reboot to android upon successfully flashing cwm recovery.

4. Open rom manager and select "Manage and Restore Backups", it should detect the nandroid, select it and choose to restore, let the device reboot and restore the nandroid.

5. Once complete, do a factory reset(optional) and reboot

6. Next step would be to flash the stock recovery by using the script provided followed by the stock hboot, if hboot flashing fails look at the bottom for the step to fix this.

7. now that's we're on stock recovery and stock rom, our next step would be to lock the bootloader and put the device to s-on, this is where it get's technical:

Lock bootloader using revone:

1. open a command prompt then cd to the folder of your mini sdk, example: cd C:/Users/Random Name/Downloads/mini-sdk

2. In the command prompt window push the revone bin file via "adb push revone /data/local/tmp"

3. Open adb shell: adb shell

4. then: cd /data/local/tmp

5. followed by: chmod 755 revone

6. then: ./revone -P

7. once it reports success it should say whether it requires reboot or not: ./revone -s 0 -l (this changes the bootloader status to **Locked**, -t to remove tamper, -u to **Unlocked** and S-Off, -r for **Relocked**, use as required)

8. Bootloader is now back to locked status, type: reboot bootloader

S-On

Device will be in fastboot mode where you should see **Locked** follow below it by S-Off

1. To change it to s-on, in the command prompt type: fastboot oem writesecureflag 3

2. then fastboot reboot

3. Device will boot into android, you will be prompted by a software update, which you can do at your own leisure whether you'd like to or not, your call.

Voila, you're back on Official stock, completely untouched device.

Optional steps, if needed.

Back to Stock CID:

While in fastboot use the command: fastboot oem writecid T-MOB010 (this needs to be done before you s-off) (script provided)

Flashing stock firmware package

Now flashing this package may fail, it is to be done while you're s-off.

You may flash the firmware.zip package via command line by the following commands:

1. fastboot oem rebootRUU

2. fastboot flash zip firmware.zip (this is named tmo.zip in the package)

3. fastboot reboot-bootloader

(was it a success?, if yes, proceed to locking the bootloader and s-on)

IF flashing the firmware package fails, flash the hboot manually via the command below (hboot provided in a separate zip in case of this):

1. fastboot oem rebootRUU

2. fastboot flash zip boot.zip

3. fastboot reboot-bootloader

should this fail as well, run the super cid script, re-do the above steps, then run the stock tmo cid script.

Then proceed with s-on/lock bootloader. There are a few kinks to be worked out, sadly I have not the time to do this at the moment.

Nandroid backup: https://mega.co.nz/#!gpIFGR7L!c5o74Ex6k3wkVlWKWgSrJBrguShtjHXeB6YQPmoqAmM (credit to uploader, I'll look for the correct screen name as soon as I can)

In case of no signal: which shouldn't be flash a radio: http://xdaforums.com/showthread.php?t=2245615

Mini sdk with scripts: http://d-h.st/z8c

Revone: http://xdaforums.com/showthread.php?t=2314582

NOTE: Video coming soon, credits whomever until I give it accordingly, this was put together in a rush, so didn't get the chance to look see at all the screenies, screenshots and video to come.