[One (M7) Q&A, Help & Troubleshooting] LibertyMarine:
Ok...

First flash a recovery(use Case 2):

No Recovery? No Problem​

​

Oh sh*t here we can have several kind of problems :eek: Still no problem ;) But let's first download the recovery.

http://techerrata.com/file/twrp2/m7/openrecovery-twrp-2.6.3.3-m7.img

(MD5 hash: 72067AEFB69541D40E8420D7AA46408D)

Case 1 - Normal error with unlocked and s off or s on:

Boot your phone into the fastboot mode

Eat a piece of cheese

Enter this command

fastboot erase cache

Followed by this command

fastboot flash recovery "C:\path_to_recovery\recovery_name.img"

And enter the recovery and follow the next piece of guide

Case 2 - For some stupid reason you are s off (that's a MUST) and Relocked:

Sorry, you need this recovery:

https://www.mediafire.com/?ni177radvko5xu7 (If it doesn't work, PM me)

(MD5 hash: F2893CDC17C788B2E49AECEA8C02DCB4)

Boot your awesome HTC One into fastboot

Change CID to superCID using this command (make sure you used 8 times a '1')

fastboot oem writecid 11111111

Enter this command

fastboot oem rebootRUU

Wait until your Pc recognized your phone again and enter this command

fastboot flash zip "C:\path_to_zip\firmware.zip"

(This may delete all your data)

Happy rebooting with this command

fastboot reboot-bootloader

Enter the recovery and let's unlock the bootloader...

You can unlock your bootloader using these commands(thanks [MENTION=3437245]scotty1223[/MENTION] for your thread!):

[how to] lock/unlock your bootloader without htcdev(s-off required)

If this doesn't work in recovery because you get superSU or permission errors, use this tool here instead:

http://www.htc1guru.com/guides/guru-bootloader-reset/

You can simply push the ZIP file to your HTC One using one of these commands:

adb push "C:\path_to_zip\zip_name.zip" /sdcard/bootloader_reset.zip

If this one results in supersu and permission errors, try these paths(Thanks [MENTION=1102297]Sneakyghost[/MENTION] for this advice!)

adb push "C:\path_to_zip\zip_name.zip" /storage/emulated/0/bootloader_reset.zip

adb push "C:\path_to_zip\zip_name.zip" /data/media/0/bootloader_reset.zip

Case 3 - You totally ****ed up your recovery and data partition:

Right now, I am pretty busy and I don't have time to develop this, check this guide there and post your question there, but pls don't spam [MENTION=1631739]mike1986.[/MENTION]

How to: fix a corrupted DATA partition on the HTC One

​

now you are unlocked and s off... so what we're gonna do depends on what you want to achieve... I didn't really get what you meant in the first post.. you want to be again 100% stock on a Asian ROM ?

with the unlocked bootloader and s off and the custom recovery you are pretty much able to flash the rom you want to the device... how to do this:

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

or:

Bootloop, No OS, Totally f*cked up OS? No Problem​

​

THIS WILL DELETA ALL YOUR APPS AND APP DATA BUT NOT SDCARD!​

First of all, make a factory reset in TWRP... then follow the next steps.

Now the key step here copying the rom.zip to your sdcard. You do this this way

Since you are in the recovery you should be able, no.. actually will be able to use adb commands

To copy the rom zip us this command:

adb push "C:\path_to_rom\rom_name.zip" /sdcard/rom.zip

If this one results in supersu and permission errors, try these paths(Thanks [MENTION=1102297]Sneakyghost[/MENTION] for this advice!)

adb push "C:\path_to_rom\rom_name.zip" /storage/emulated/0/rom.zip

adb push "C:\path_to_rom\rom_name.zip" /data/media/0/rom.zip

Now, in the recovery, choose install and select the rom you should've just copied and install/flash it.

After that make a factory reset, the standart when chosing wipe in TWRP.

Happy rebooting! :D

​

---------- Post added at 11:43 AM ---------- Previous post was at 11:39 AM ----------

ok, ok ok... wait with flashing RUUs... you'll mess up your phone if you continue flashing these RUUs