[One (M7) Q&A, Help & Troubleshooting] Nitric07:
return to stock

Hope it was a mistyped.. concerning you cant connect to the pc/laptop....

however if you managed to have it recognised by your pc..

then these information already appeared on xda

http://xdaforums.com/showthread.php?t=2265618

Going back to stock

What you need to know before going back to stock:

Your bootloader will never be "LOCKED" again. You can't restore it. You can only relock it.

"TAMPERED" text in bootloader will disappear only after proceeding method 2.

There are 3 main methods. All three will be described below.

Method 1 - only for users with .401 devices (for more info click here - RUU variants)

Visit this thread - [ROM] HTC One *STOCK* ROM

Download stock odexed version of most recent firmware and recovery.img

Move recovery.img to c:\mini-sdk location

Boot your device in recovery mode (power off the device and turn it on using power + vol down buttons and select "RECOVERY")

In main menu, select "install zip from sdcard" and "choose zip from sdcard".

Navigate to the location of stock ROM (zip) package and confirm flashing procedure.

After flashing process is complete, reboot the device in bootloader mode.

Connect your device to the PC

Boot your device in fastboot mode (like you did during unlocking bootloader - power off the device and turn it on using power + vol down buttons and select "FASTBOOT")

Open up command prompt ( Start > Run > type cmd and hit enter ). The window that appears is called Command Prompt. <click here to see the image>

Navigate to where you unzipped "mini-sdk" package (type in Command Prompt: cd c:\mini-sdk). Note: make sure the path is not c:\mini-sdk\mini-sdk

In the Command Prompt type following command: fastboot flash recovery recovery.img

You have now stock boot, system and recovery partitions. Time to relock your bootloader.

In the Command Prompt type following command: fastboot oem lock

Method 2 - flashing RUU (ROM Update Utility)

Visit this or this thread.

Find proper RUU for your device

Connect your device to the PC

Boot your device in fastboot mode (like you did during unlocking bootloader - power off the device and turn it on using power + vol down buttons and select "FASTBOOT")

Open up command prompt ( Start > Run > type cmd and hit enter ). The window that appears is called Command Prompt. <click here to see the image>

Navigate to where you unzipped "mini-sdk" package (type in Command Prompt: cd c:\mini-sdk). Note: make sure the path is not c:\mini-sdk\mini-sdk

In the Command Prompt type following command: fastboot oem lock

Flash RUU and follow on screen instructions.

You have now completely stock software on your device.

Method 3 - flashing nandroid backup

In custom recovery restore nandroid backup you did after flashing custom recovery for the first time.

If you performed nandroid backup before permanently flashing custom recovery, your stock recovery should be now flashed.

If you still have custom recovery, extract recovery.img from your nandroid backup.

Move recovery.img to c:\mini-sdk location

Connect your device to the PC

Boot your device in fastboot mode (like you did during unlocking bootloader - power off the device and turn it on using power + vol down buttons and select "FASTBOOT")

Open up command prompt ( Start > Run > type cmd and hit enter ). The window that appears is called Command Prompt. <click here to see the image>

Navigate to where you unzipped "mini-sdk" package (type in Command Prompt: cd c:\mini-sdk). Note: make sure the path is not c:\mini-sdk\mini-sdk

In the Command Prompt type following command: fastboot flash recovery recovery.img

You have now stock boot, system and recovery partitions. Time to relock your bootloader.

In the Command Prompt type following command: fastboot oem lock