yashsingh1/xdaforums huggingface dataset:
[Verizon HTC One (M7)] xaalfx:
hello im having a little trouble returning my device to stock. i followed the instructions up to the point where i failed the first time with error "FAILED (remote: 90 hboot pre-update! please flush image again immediately)" then i rebooted my device. now my computer wont recognize my device in fastboot. it says usb device not recognized.and its malfunctioning :(any help is much appreciated thank you.

---------- Post added at 02:50 PM ---------- Previous post was at 02:10 PM ----------

edit. i just noticed the RUU i tried pushing had an older hboot so now my comp wont recognize my device because of my hboot.
[Verizon HTC One (M7)] dottat:
That message you got was telling you that you needed to run the ruu twice ?

You should not have rebooted but issued the flash command again. Get it back to fastboot and ruu mode and flash it again.
[Verizon HTC One (M7)] xaalfx:
Yea I got it figured out, thanks. There was nothing I could do my Windows 8.1 machine would not recognize my device because of the older hboot so I just dual booted ubuntu on my machine and got it to work. Thanks for your reply I appreciate it.
[Verizon HTC One (M7)] dottat:
Good deal. Yeah Windows likes to instal a new driver each time the phone enters a new mode. Did you flash the kit Kat sense 6 ruu I had posted? It's hboot is current.
[Verizon HTC One (M7)] mcjca-droid:
I think I am out of luck

I was was using Viper Rom for some time and started getting weird behavior so i switched back to a Bonestock Nandroid that i had and started getting non stop force closes and apps not opening when pressing the icon.

Long story short, I have RUU using Santod's latest RUU Decrypted and everything went fine. Booted into the Stock OS and now it randomly reboots and the icons are unresponsive to touch. Sometimes if I restart I can get into a few apps but usually it is for a short time. When it reboots automatically it gets stuck at Verizon logo. I have to long press the power button a few times to get it back into OS.

Anything I can try? Not sure why the RUU is not taking. I am S-Off and Unlocked. I definitely want to keep s-off but I want to unlock it so I can get the latest OTA. THe other thing is that I cannot seem to unlock it using Scotty's method. It is saying I do not have permission. I am rooted (or so I thought) Is there a way to check if i am rooted?

Other Data:

Using Wondows 7 - never had connection issues with ADB

Cannot lock device. Saying I do not have permission

Now it is constantly rebooting after a few minutes in OS (if it acutally gets there)

bootloader says it is version 1.55.0000

Do I need to use the RUU that shipped with the device? It looks like there is only an enrypted one available so do I need to be locked to install that?

Ok, so I was able to install root checker and I am not rooted. Not sure how that happened. I think I need to be rooted to lock is that correct? What is the best way to root these days. I used rumrunner way back when.

Any help is appreciated as I am desperate...
[Verizon HTC One (M7)] Uzephi:
Do you have the stock recovery? If so, do a factory reset from bootloader menu
[Verizon HTC One (M7)] mcjca-droid:
I believe I do now. If you RUU, then that changes the recovery to stock, yes? THanks for your response.
[Verizon HTC One (M7)] Uzephi:
It should have. An ruu "should" factory reset, but do it again just in case there is some old data sticking around
[Verizon HTC One (M7)] mcjca-droid:
ok, did that and still rebooting when i try and update apps. Also when I try and take the OTA, it gives me a red exclamation when it actually tries to install. Most of the time it just says it cant install and no changes were made.

I am now locked and not rooted. I RUU'd a encrypted package taht what exactly what my phone came with when i bought it several months ago and this is still happening.

I am at a loss.
[Verizon HTC One (M7)] Uzephi:
Sounds like something hardware rated then. I would say return to full stock, relock and s-on and warranty it out.
[Verizon HTC One (M7)] whitedeacon:
Everything goes well until I type "Fastboot oem rebootRUU" then it gives me "waiting for device" and Windows 8.1 pops up with unrecognized device. Device manager shows no android device, but under Universal Serial Bus controllers I get a new line with "Unknown USB Device (Device Failed Enumeration)" Any suggestions?﻿
[Verizon HTC One (M7)] psychojv:
I have to send in my phone into HTC for repair. A bit of info, I am S-OFF and bootloader unlocked and running NuSenseSix-kitkat RC5.0. Before I began the process I just want to make sure I will be doing this right. Am I able to flash any decrypted RUU to return to stock? I was going to flash 1.10.605.8. Thanks in advance.
[Verizon HTC One (M7)] sopont:
Great and cool Thank you very much.
[Verizon HTC One (M7)] Uzephi:
Any ruu will be fine, just remember it will wipe your phone, so back everything up
[Verizon HTC One (M7)] 91ludesit:
Is there an ruu for the latest update? I'm trying to sell my phone but nobody wants to buy an unlocked/rooted phone so I'm looking at returning it to stock s-on bootloader locked. Its out of service so I don't think it will pull the OTAs.
[Verizon HTC One (M7)] Uzephi:
Yes there is,, check the development section
[Verizon HTC One (M7)] sopont:
Thank you very much :good:
[Verizon HTC One (M7)] pilincom:
I'm having a similar issue. I'm S-On with LOCKED bootloader. So the only way right now as I understand is to flash signed RUU. I'm on 3.11.605.1 an when I try to flash 2.10.605.1 I get the following error:

target reported max download size of 1514139648 bytes

sending 'zip' (1232586 KB)...

OKAY [ 45.194s]

writing 'zip'...

(bootloader) adopting the signature contained in this image...

(bootloader) signature checking...

(bootloader) rom parsing start ...

(bootloader) rom parsing finish ...

(bootloader) zip header checking...

(bootloader) zip info parsing...

(bootloader) Read zipped android_info fail

FAILED (status read failed (Too many links))

finished. total time: 172.661s

I guess that's because I'm on newer FW than the version of RUU I'm trying to flash. Does anybody have any idea what else I can do since there is no signed and encrypted 3.11.605.1 RUU available yet?

Here is getvar all if it helps:

C:\miniadb_v1031>fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: 1.56.0000

(bootloader) version-baseband: 1.13.41.0109_2

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 3.11.605.1

(bootloader) version-misc: PVT SHIP S-ON

(bootloader) serialno: FA3AZS901965

(bootloader) imei: 990001459349981

(bootloader) meid: 99000145934998

(bootloader) product: m7_wlv

(bootloader) platform: HBOOT-8064

(bootloader) modelid: PN0731000

(bootloader) cidnum: VZW__001

(bootloader) battery-status: good

(bootloader) battery-voltage: 4275mV

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: dirty-4dab9d12

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.187s
[Verizon HTC One (M7)] Uzephi:
Sadly, you cannot do anything without s-off. As s-on you cannot flash an older ruu.
[Verizon HTC One (M7)] pilincom:
Is there any chance that signed and encrypted 3.11.605.1RUU becomes avalaible any time soon?
[Verizon HTC One (M7)] jaredb03:
I'm getting this Error. It doesn't allow me to do anything after this error. I have to shut down the phone and start over.

C:\adb>Fastboot flash zip Rom.zip

target reported max download size of 1514139648 bytes

sending 'zip' (1232586 KB)...

OKAY [ 53.682s]

writing 'zip'...

(bootloader) rom parsing start ...

(bootloader) rom parsing finish ...

(bootloader) zip header checking...

(bootloader) zip info parsing...

(bootloader) Read zipped android_info fail

FAILED (status read failed (Too many links))

finished. total time: 61.442s
[Verizon HTC One (M7)] pilincom:
That error means that you have a newer SW version installed. If you're S-OFF then you can downgrade SW version first and then install this RUU.
[Verizon HTC One (M7)] jaredb03:
I have the 2.10.605.1 RUU. So downgrade to 4.3 then run it and i should be good to go?
[Verizon HTC One (M7)] jaredb03:
Ok I downgraded to Bonestock 4.3 v2.0.2 and still getting the same error message.

C:\adb>Fastboot flash zip Rom.zip

target reported max download size of 1514139648 bytes

sending 'zip' (1232586 KB)...

OKAY [ 54.761s]

writing 'zip'...

(bootloader) rom parsing start ...

(bootloader) rom parsing finish ...

(bootloader) zip header checking...

(bootloader) zip info parsing...

(bootloader) Read zipped android_info fail

FAILED (status read failed (Too many links))

finished. total time: 62.325s
[Verizon HTC One (M7)] pilincom:
Run 'fastboot getvar all' and paste the output here
[Verizon HTC One (M7)] santod040:
You just need to restart the PC and use the cable that came with the phone.

That error is typical, when using the wrong cable(non data transferable).
[Verizon HTC One (M7)] jaredb03:
I have restarted the PC, and am using the OEM cable.

Heres the output

C:\adb>fastboot getvar all

< waiting for device >

(bootloader) version: 0.5

(bootloader) version-bootloader: 1.57.0000

(bootloader) version-baseband: 1.13.41.0421

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main:

(bootloader) version-misc: PVT SHIP S-OFF

(bootloader) serialno: FA38VS904758

(bootloader) imei: 990001459707188

(bootloader) meid: 99000145970718

(bootloader) product: m7_wlv

(bootloader) platform: HBOOT-8064

(bootloader) modelid: PN0731000

(bootloader) cidnum: VZW__001

(bootloader) battery-status: good

(bootloader) battery-voltage: 4310mV

(bootloader) partition-layout: Generic

(bootloader) security: off

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: dirty-e47fb74b

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.069s
[Verizon HTC One (M7)] santod040:
Yeah, I don't know, should work.

I'm gonna link you to a post about RUU's and common errors/troubleshooting.

(Look around Point #5 in the OP, it's regarding the HTC Sensation, but the errors are fairly general and common across Htc/devices.)

It mentions the too many links error as well and mainly suggests rebooting the device, plugging and replugging the cable.

I assume you have tried another Usb port as well, maybe another PC if one is available...sorry I don't have more for you.

You may need/want to downgrade your firmware before that older signed RUU will pass checks.
[Verizon HTC One (M7)] pilincom:
It doesn't show version-main here. Probably because you're on a custom ROM. Did you try to install other RUU versions? There are three of them available at the moment.
[Verizon HTC One (M7)] jaredb03:
I didn't try any other ones. Im trying to get back to stock to send in for repair. If you can tell me a rom to install and which RUU i will try that.
[Verizon HTC One (M7)] santod040:
I mentioned this above and think this may help. ^^^

Grab the same firmware version as the RUU you are trying to flash or the one prior to it. (firmware specifically, not so much the rom)

But may as well grab the same version full stock rom and load it too, then try the RUU.

That's what I would probably do.
[Verizon HTC One (M7)] jaredb03:
Got it. I flashed the firmware to the same as the RUU and it worked like a charm. No hopefully when i send it in HTC will fix the purple camera. Thanks for all the help guys!
[Verizon HTC One (M7)] BABABANG:
I keep getting this error message when I try to go through the first portion of the guide.

C:\Users\Allen\Downloads\fastboot>adb shell

adb server is out of date. killing...

* daemon started successfully *

shell@m7wlv:/ $ su

su

1|shell@m7wlv:/ $ echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p3 bs=1

seek=33796

dd of=/dev/block/mmcblk0p3 bs=1 seek=33796 <

/dev/block/mmcblk0p3: cannot open for write: Permission denied

1|shell@m7wlv:/ $

C:\Users\Allen\Downloads\fastboot>

It keeps saying "cannot open for write: Permission denied

Does anyone know what I can do? I'm rooted and S-Off.
[Verizon HTC One (M7)] Uzephi:
You should have a superuser pop up on the phone. Check your su app, it most likely was denied due to time out and saved to auto deny now.
[Verizon HTC One (M7)] pilincom:
Are you sure you're rooted? When you run su your command line prompt should change from shell@m7wlv to root@m7wlv. Install Root checker and make sure you're rooted.
[Verizon HTC One (M7)] BABABANG:
Yeah I was rooted, but I suspect the problem may have been caused by the faulty micro-usb port on my phone (which is why I was returning my phone for a Verizon replacement).

Somehow I ended up succeeding though. Besides, I don't think Verizon checks returned phones that thoroughly.
[Verizon HTC One (M7)] macpro88:
Hey everyone, I'm kinda confused by the main post and some of the comments there, but I'm trying to return to fac default unaltered phone so I can turn it back to Verizon. I downloaded the "2.10.605.1 Signed RUU" from this post: http://xdaforums.com/showpost.php?p=46506621&postcount=2

So, I flash this is adb fastboot, still following the commands in the main post of this thread? And if it fails, just flash again using the same commands? What mode does the phone need to be in (hboot, fastboot, recovery, etc..)?

Or is there an easier way to get to stock other than RUU?

Thanks all
[Verizon HTC One (M7)] brymaster5000:
First go into fastboot. If in terminal in adb location, type: adb reboot bootloader. Then check to make sure you are in fastboot. If not, scroll into it. Type fastboot oem rebootRUU as the op states. This will put your phone into a black screen with grey HTC. This is where you use the flash zip commands.

Grey the wolf has a video guide. Worth a watch.
[Verizon HTC One (M7)] GrayBoltWolf:
Shameless interjection to post the link.
[Verizon HTC One (M7)] macpro88:
Sweet, thanks all.

I'm having another issue though now, my devices aren't recognized by adb when in bootloader mode, but are recognized when powered on. I've tried everything from re-installing the drivers manually and still, won't recognize my devices in bootloader. HTC One and N7 don't get recognized.

Started a thread here if any can help me out! http://xdaforums.com/android/help/help-devices-wont-adb-bootloader-t2818697
[Verizon HTC One (M7)] carngeX:
You need to use fastboot.exe instead of adb.exe when you're in bootloader mode.
[Verizon HTC One (M7)] truelies1:
I am very confused with the main post, it says

You will need the decrypted RUU from here

http://xdaforums.com/showthread.php...to download something called 'decrypted RUU'.
[Verizon HTC One (M7)] Noremacam:
Someone should recreate this thread with updated links and to take account of those who rooted from weaksauce and all that. I've been researching off and on for days on how to get back to stock from rooted/S-off, and I just can't find a concrete guide.
[Verizon HTC One (M7)] jlegros:
Quick question...I just sold my VZW M7 and was wondering before I ship it off, is there a way to remove twrp?Will it default back to stock recovery? I relocked the bootloader but I don't want twrp or root interfering with OTA's for the guy who bought it.Thanks.
[Verizon HTC One (M7)] GrayBoltWolf:
You relocked the bootloader and didn't return everything to stock?

Hmm... you need to unlock again (or go S-Off) and run the latest available RUU.
[Verizon HTC One (M7)] jlegros:
I tried multiple times but I was having driver issues when rebooted into the bootloader. It's still S-off. All I did months ago was root, S-off and unlock the bootloader. Never did flash a rom so it's still stock. My only question is will ota's still work? Heard they will.
[Verizon HTC One (M7)] raejr78:
Works Great

I've used this 3 times so far and it has worked flawlessly. Thanks!!!
[Verizon HTC One (M7)] longlostbro:
Stuck at "sending 'zip' (1178304 KB)..."

How long should it take to send the Rom.zip? mine has been going for about a half hour and still says "sending 'zip' (1178304 KB)..."
[Verizon HTC One (M7)] pilincom:
It shouldn't take that long.
[Verizon HTC One (M7)] longlostbro:
WORKED!

Worked great thanks!
[Verizon HTC One (M7)] audiv8:
OTA update

Thanks for this thread just went back to stock but kept s-off. Im currently the 4.2.2 RUU and have not received the OTA yet. Its been about 24 hours. Is this normal or is something up?
[Verizon HTC One (M7)] xFlawless11x:
ADB appears to be working fine but it won't let me use the drivers linked in the video from GreyWolf.

Thus when I adb reboot bootloader I just end up with fastboot and not fastboot usb.

Any help? Thanks!
[Verizon HTC One (M7)] santod040:
Once you are in hboot and fastboot is highlighted, press the power button to select fastboot and it should then say fastboot usb.

Unless you tried that already and it's not working...
[Verizon HTC One (M7)] xFlawless11x:
Yea, I tried that. Ultimately ended up going with a different computers that had windows 7 since every time I do something related to android on windows 8 it doesn't work. hah.

Thanks for the help.
[Verizon HTC One (M7)] Uzephi:
I think it is because bighard (Microsoft) wants us to go windows mobile
[Verizon HTC One (M7)] Alexcxvtr:
Hey guys.

I'm trying to revert my device to fully stock condition. Purple tint thing again!

So, my M7 is the international. Hboot:1.55, CID_001

Which ruu should i flash?

I'm assuming the one in the OP is the wrong one for me.

Right?
[Verizon HTC One (M7)] Uzephi:
Try the international HTC One section. HTC__001 is the common intl version
[Verizon HTC One (M7)] Alexcxvtr:
Yeah, my bad. I found it.

I was searching to the wrong thread.

I had 14 tabs open and messed up.

Sorry.
[Verizon HTC One (M7)] Uzephi:
It's all good, didn't yell at you, just letting you know this section won't have anything for the international variants
[Verizon HTC One (M7)] stompysan:
Wow, you really saved my butt. Just a heads up: I ran into a weird problem where after flashing the zip the first time (and it failing, like it should) my computer would no longer recognize my phone. Uninstalled and reinstalled drivers, rebooted my computer, and nothing. Would consistently say "malfunctioning usb yadayada". Tried my laptop with no success either. Finally, in a last-ditch effort, I jumped on my parents' machine with Windows 7, and it proceeded without a hitch. Guess Windows 8 really doesn't like adb and fastboot. Anyway, thanks again!
[Verizon HTC One (M7)] the_Damaged_one:
For those who need to do this and are looking for a working RUU, I wanted to share what I used that worked - thanks to synisterwolf and Uzephi for their help!

I was on the latest NuSense and drivers, and this is what I did to get back to stock:

Lock bootloader via the instructions in the OP of this thread

Flashed the "2.10.605.1 firmware.zip" from the second post on santod's thread: http://xdaforums.com/showthread.php?t=2485319

Flashed "2.10.605.1 Signed RUU" from the bottom of the second post on santod's thread: http://xdaforums.com/showthread.php?t=2485319

Note, these both need to be flashed twice per the instructions on the post...otherwise, it was back to stock and locked. Also, I tried just the RUU first, and got errors. After I reverted back to the older matching firmware it went fine.
[Verizon HTC One (M7)] prichable:
how do i make a zip file for the decrypted RUU??
[Verizon HTC One (M7)] dottat:
Why do you need that.?
[Verizon HTC One (M7)] infernoboy93:
Locked and S-off

Hi, I have attempted this to return my Verizon HTC One M7 back to stock and it did not work. When try to load the ruu zip I get this "target reported max download size of 1514139648 bytes

error: cannot load 'RUU': No error". At this time my phone is locked with S-Off. Can someone help me or point me in the right direction to get this phone back to stock. Thanks!
[Verizon HTC One (M7)] GrayBoltWolf:
Do the same command twice.
[Verizon HTC One (M7)] infernoboy93:
Hi, I tried what you said and I still ended up with the same results.
[Verizon HTC One (M7)] Uzephi:
Windows 8? If so, try a Linux boot disc
[Verizon HTC One (M7)] infernoboy93:
No, Windows 7
[Verizon HTC One (M7)] Uzephi:
Which ruu did you try, and are you on matching firmware with the ruu?
[Verizon HTC One (M7)] infernoboy93:
I tried this file RUU_M7_WL_JB43_SENSE50_VZW_MR_VERIZON_WWE_2.10.605.1_Radio_1.12.41.1112_2_NV_VZW_3.71_002_release_341019_signed_2

How do I find out if I have matching firmware for the RUU?
[Verizon HTC One (M7)] Uzephi:
http://xdaforums.com/showthread.php?t=2485319 flash the 2.10.605.1 firmware to remove that being the issue
[Verizon HTC One (M7)] infernoboy93:
Do I flash this through ADB or TWRP? Also, my bootloader currently shows locked w/ S-Off. Will this be an issue?
[Verizon HTC One (M7)] sockaplaya14:
Sorry for the dumb question, but after following these steps would get you back to valid warranty??
[Verizon HTC One (M7)] Uzephi:
Firmware is always flashed in ruu mode
[Verizon HTC One (M7)] infernoboy93:
Thanks, what should I expect when and if this works? Does this put it back to stock?
[Verizon HTC One (M7)] Uzephi:
All flashing firmware does is install hboot, radio etc. You would still need to ruu afterwards
[Verizon HTC One (M7)] schnob:
I'm having trouble finding the actual link to the RUU download. Your link obviously points to this thread: http://xdaforums.com/showthread.php?t=2437436

But I don't see the download anywhere, only some code used to recrypt the RUU.
[Verizon HTC One (M7)] Uzephi:
4.4.3 ruu linked below.

http://xdaforums.com/showthread.php?t=2867643
[Verizon HTC One (M7)] banderberg:
Uh, that's a ROOTED RUU, so it would not get anyone back to STOCK.
[Verizon HTC One (M7)] TonyStark R.I.P.:
I left the same message elsewhere... Please search Goole if you can not find what you seek here.

Stock RUU's
[Verizon HTC One (M7)] Uzephi:
Unroot and bam, stock.
[Verizon HTC One (M7)] dottat:
Root is an app and some binaries. As long as turning s on is the last step, you can choose full unroot within the app and it will be gone. Stupidly turning s on prior to that will make su a protected system app as s on means /system write protection is enabled.

I have use this method MANY times to get users back to stock to sell or return for warranty.

If you need further help on subject I'd be glad to discuss via pm.
[Verizon HTC One (M7)] prichable:
so i could get back to stock?
[Verizon HTC One (M7)] dottat:
There are ruus available. Perhaps I don't understand your original question. I have an RUU for the last two software versions that can be used to get you back.
[Verizon HTC One (M7)] xDanVitox:
Just so I'm clear, I restored with your 4.4.3 RUU, what should I do now to finish out becoming stock, unrooted, locked, S-ON? Can I run these commands:

adb shell

su (if needed)

echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796

exit

adb reboot bootloader

like in the OP and then

fastboot oem writesecureflag 3

and get the same outcome?
[Verizon HTC One (M7)] dottat:
Do full unroot from su app and reboot to verify before turning s on.
[Verizon HTC One (M7)] xDanVitox:
Do I still need to perform the above commands? Is that what locks the bootloader?
[Verizon HTC One (M7)] dottat:
The first one locks the boot loader

The second turns s on. You only need root for the first one. You need to remove root before the second one.
[Verizon HTC One (M7)] xDanVitox:
Okay, thanks so much! Trying to do it for a friend and don't want to be responsible for paper weighting it!