[GUIDE] How to revert back to stock Android. VERY EASY!

For the last two days I tried to revert my HTC One V back to stock android. As in, the way I got it when I first booted it up. I experienced that this progress was pretty difficult. Maybe this was because I was used to the AOSP niceness of Google's LG NExus 4 or because HTC made it very hard to say the least to downgrade/upgrade to their own stock ROM.

I may not have the original sources for all files because I deleted some original .zip files and only have the extracted files.
First off, I wouldn't do any of this if you have important files on your device, I wiped everything from my phone a dozen of times in the process and it didn't care because I didn't had any important files on their.

Alright, so what we want to achieve is to get to the latest version of HTC's RUU version "2.22.401.7". The RUU I could find was "2.22.401.1" so we're gonna have to d/l some OTA's later on via our device if everything is set up.

So obviously everyone who is trying to revert back has somewhere unlocked their bootloader by doingfastboot oem get_identifier_token
andfastboot flash unlocktoken Unlock_code.bin

Please remember this: ANY RUU will fail every single time if your device is LOCKED. It will ONLY work if it's unlocked or relocked.
So first off what we gonna have to do is relock/unlock our device. You can relock your device by going into fastboot[1] mode and running the following command:fastboot oem lock

And check the locked status at the top. If it says "RELOCKED", succes! If it didn't, retry the command above.

Next, we're relocked so we can run the RUU. Please look at the text file at the RUU source [2] for the download links. In this .zip file are the files inside the RUU wizard. You can run the wizard by executing "ARUWizard.exe" and you can view the contents of the actual ROM in "rom.zip extracted" and you can find the original ROM in "rom.zip". Since these are the files the wizard will be using (except rom.zip extracted folder) please do not touch them.

Alright, so we've got the extracted files of the RUU and we're ready to update. Please boot your phone in fastboot mode and connect it to your computer via USB. Now run the "ARUWizard.exe" file and let it update. I couldn't think of a situation where this could go wrong, so please ask below if you face any problems.

The wizard will flash stock radio, recovery andsystem.img (the actual ROM you all know) so by doing this you lose your custom revovery.

I recommend not flashing a custom recovery right away because when you install/download OTA updates it isn't able to flash it right. In the meantime if you want root[3] use this command:
adb install -s supersu.apk

When you're on the latest version you have to unlock your bootloader, otherwise you cannot flash a custom recovery or kernel or whatever. You can do this via HTC[4]. I think there are enough guides on how to do this, but in short:
- create an account with an legitimate email address
- Select "all other supported devices" from the list
- follow on screen instructions.
Seriously everything is on there, HTC made it really easy.

If you want to install a custom recovery I recommend using TWRP[5]. Please flash TWRP by booting into fastboot and running the following command:
fastboot flash recovery twrp_recovery.img

Troubleshooting

There isn't really a lot that can go wrong if you do this. But when you're stuck on a screen or you think your device is "bricked" or stuck in a bootloop do these things:
- First off, hold the power and volume down button till the device goes down. If it's down, release the buttons and then hold the same buttons again till you're in bootloader
If that doesn't work do either of these commands (make sure your device is connected via USB, hehe)
Make sure fastboot and/or adb is working first:fastboot devices
adb devices
If fastboot is working:fastboot reboot-bootloader
If ADB is working:adb reboot bootloader
adb reboot recovery

If you have any questions, please ask me. I did a dozen of things these two days, I may forgotten something because I did a crapload of things all at once.
Cheers!

XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality.Are you a developer?