yashsingh1/xdaforums huggingface dataset:
[Verizon HTC One (M7)] bmt626:
yes it will not that the bootloader is unlocked you can flash a recovery boot into a rom like cm or a sense rom then run the s off command as follows

adb shell

su (if needed)

echo -ne "HTCU" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796

exit

adb reboot bootloader

at this point you will be s off and unlocked then just walk through the tut again

you only need to run the flash rom zip again if you get the error

FAILED (remote: 90 hboot pre-update! please flush image again immediately)

hope this helps
[Verizon HTC One (M7)] bmt626:
someone else will have to to this i left verizon couldn't take it anymore and have moved on to tmobile
[Verizon HTC One (M7)] one4thewings:
Unfortunately S-ON is enabled. So when I ran the command this is what I got.

E:\HTC>fastboot flash recovery openrecovery-twrp-2.6.3.0-m7vzw.img
sending 'recovery' (8504 KB)...
OKAY [ 1.119s]
writing 'recovery'...
(bootloader) signature checking...
FAILED (remote: signature verify fail)
finished. total time: 1.631s
[Verizon HTC One (M7)] bmt626:
what happens if you try and flash the ruu again
[Verizon HTC One (M7)] one4thewings:
E:\HTC>Fastboot oem rebootRUU
...
(bootloader) Start Verify: 3
OKAY [ 11.206s]
finished. total time: 11.206s

E:\HTC>Fastboot flash zip Rom.zip
sending 'zip' (1178272 KB)...
OKAY [ 48.938s]
writing 'zip'...
(bootloader) signature checking...
FAILED (remote: 12 signature verify fail)
finished. total time: 168.651s
[Verizon HTC One (M7)] bmt626:
instead of adb shell try fastboot shell not sure if that works or not but if it drops you in continue following the steps to s off the device
[Verizon HTC One (M7)] one4thewings:
Okay, thanks to my unlock.bins from HTC Dev, I was able to get things back on track.

Hey OP... could you mention that you need to run that ROM.zip command twice? The way it reads, to me, is that you only run it a second time if the RUU closed out. That was my issue.

Thanks for the tutorial though. Brilliant work.
[Verizon HTC One (M7)] scotty1223:
if youhave got bootloader unlocked:

1)flash a recovery

2)flash a stock rom

3)run rumrunner

4)start back to stock process over

your only other option is to send in the phone with a stock rom and recovery,and a relocked bootloader
[Verizon HTC One (M7)] one4thewings:
Yes, sir. That's exactly what I did. I sort of went brain dead for a minute panicking about the non-bootable state.
[Verizon HTC One (M7)] scotty1223:
Lol, yeah we have all been there. Sometimes it's hard to think when technically you have a paper weight in your hands ;)
[Verizon HTC One (M7)] :
OK So im a little worried, and kind of scared at the moment.

I am Showing ***TAMPERED*** and ***LOCKED*** but believe i followed the steps correctly.

What can I do from here?

---------- Post added at 08:28 PM ---------- Previous post was at 08:00 PM ----------

Im sorry, what do you do with the HTC Dev to fix what you did? I am stuck at the LOCKED TAMPERED screen and had the same issue as you in adb when trying to flash RUU again
[Verizon HTC One (M7)] scotty1223:
Check out this post:

http://xdaforums.com/showthread.php?p=46842884

And this post:

http://xdaforums.com/showthread.php?p=47177793
[Verizon HTC One (M7)] :
Thanks for your response. I was literally shaking and my mind and body went numb, as well as ignored my very sick wife.

I couldn't figure out how to do what needed to be done in those posts.

Luckily I just bought the phone a week ago from best buy. Went there 5 minutes before they closed, and they just saw it as something wrong and exchanged it for a new device. I'll probably hold off on rooting for a while. Maybe I've been away from the game too long, coming from a locked down S4.

Thank you again though!
[Verizon HTC One (M7)] msimpkins14:
this sucks...

Add me to the list of unfortunates that are now tampered, locked, and s-on with the security warning. Something went wrong at the Rom.zip step. :crying: I followed the instructions, too. But, didnt really know what to look for when flashing the RUU as far as if it had failed, etc.

Anyway, I have noticed that a lot of people are ending up relocked vs locked (which I am). Is there any hope I should have if showing as locked? Also, when plugging the phone into my computer and entering the command for adb devices, I sometimes am still able to get this message:

adb devices

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

List of devices attached

(this is where it stops before identifying device)

if I try adb shell, I get

adb shell

error: device not found

Is there any hope for my situation given the above? Or do I have to send in to Sonic? Please help!
[Verizon HTC One (M7)] one4thewings:
adb isn't going to work unless you are able to boot into Android with USB Debugging on.

So let's start with this. At any time have you got your bootloaders unlock.bin? Either through the methods in these forums or through HTC Dev? If so, you can unlock the bootloader, flash a custom recovery and then flash a stock backup. There is one in the forums. I actually just restored my Nandroid backup that I had taken immediately upon getting my S-OFF device back from Sonic.

In short, if you have your unlock.bin and can unlock your bootloader, you're in business. If not, you need to drop Sonic a message.

---------- Post added at 11:10 PM ---------- Previous post was at 11:05 PM ----------

I really wish the OP would just make one tweak to the instructions here to indicate that the Rom.zip needs to be applied twice. The first time produces the failure message that we are instructed will happen, but then the second application of the Rom.zip appears to be only if the device fell out of RUU mode. That isn't the case though. If you flash the Rom.zip again, you'll see it actually runs and succeeds.

I'd just like that clarified. If that was made clear, I believe the only issues would come from folks who didn't read. Those folks earn their trouble. It's the people who misunderstand the directions that they've actual read who benefit. I'm glad you got your phone replaced though.. I just sent mine back to HTC for camera issues. =/
[Verizon HTC One (M7)] :
This was exactly what happened with me. So long story short I would have never been able to fix what I was stuck on since I didn't have any unlock from htc dev.

I only did it once because I was in the ruu screen the first time.
[Verizon HTC One (M7)] masri1987:
Seems i'm stuck in Tampered situation as well

Was trying to get my friend's phone back to stock

and now i'm in tampered status. I too got confused by the instructions to flash twice and did the s-on command when i probably didn't have to,

what to do?

edit: so basically, after thorough research seems my friends phone is DOA
[Verizon HTC One (M7)] :
Maybe someone should Re-Write this thread and sticky it, with the instructions a little more clear for the one part, since most of us recently (at least me and the post above) are hard bricking their phones.
[Verizon HTC One (M7)] bmt626:
There is a chance it could work the first time or it could fail multiple times you have to keep doing it till it passes
[Verizon HTC One (M7)] :
See I read the instructions as "it may say fail, but if your on the RUU screen (HTC on black background) your good to go"

I think we just may need that to clear up for dummies to s off like myself
[Verizon HTC One (M7)] bmt626:
sorry for any confusing i thought it was clear that it will most likely give the error the first time and it normal dont freak just run again till it passes

my OP has been updated to hopefully help
[Verizon HTC One (M7)] :
Thank you. Hopefully this works out for future reference. Besides that one step, everything else was very clear fyi.
[Verizon HTC One (M7)] masri1987:
i got the failed message both times i ran the Rom.zip file. since he said it's all good i figured it was. No way i knew it was gonna end up bricking the phone.

So no way to get this restored? What happened to old school RUU.exe files? Of course HTC has made things much more difficult..
[Verizon HTC One (M7)] masri1987:
So can anyone point me in the right direction?
[Verizon HTC One (M7)] one4thewings:
If you still have your bootloader unlock.bin you can unlock the bootloader and install a custom recovery and then flash a ROM from the the development forums. If you don't have that unlock.bin then you are going to have to contact Sonic about purchasing a S-OFF unlock with his Java card.

I'm sorry if that's bad news, but hopeful you have that unlock.bin file.
[Verizon HTC One (M7)] masri1987:
don't remember getting a unlock.bin when i first unlocked my boys device, anyone have a link to this sonic character because this is basically the only option.
[Verizon HTC One (M7)] one4thewings:
Did you go through HTC Dev for the unlock code? Or did you just unlock after using the rumrunner S-OFF?

Also Sonic's profile can be found here: Sonic's profile

I had no problem getting my phone from him, the service was timely, but I sent him a PM 4 days ago and haven't heard a peep back. I hope you're able to get better results because I don't know of anyone else in the javacard game. You kind of have to deal with everything that comes along with working with a 15 year old because he was the only one that was willing to pay to buy a javacard before the S-OFF process went software based.
[Verizon HTC One (M7)] masri1987:
i used rumrunner s-off...

dam a 15 year old is on the come up!
[Verizon HTC One (M7)] one4thewings:
He's a sharp kid, but he also has to be somewhat trustworthy to have enough people come together to first help him buy a ridiculously expensive java card.. but then people had to take a chance on shipping their $600 phones to him. I took the chance. Like I said, he was timely with the phone using the S-OFF process, but I still haven't heard back from my PM asking him to help with another S-OFF because I botched this process the first time. -shrugs- So I have mixed feelings about continued business. That's all. Great first experience very disappointing follow up.
[Verizon HTC One (M7)] kdj67f:
Did you check his order site to see if he was still offering the service? Not sure what happened after the thread was closed and he shipped my second One back to me...

---------- Post added at 01:29 PM ---------- Previous post was at 01:26 PM ----------

Here is the link, hope I'm not infringing on xda policy by posting it... ;)

http://htc.s26tech.com/product/verizon-htc-one-s-off/

Appears to have 216 unlocks left so I have to assume he got his second card.
[Verizon HTC One (M7)] scotty1223:
it may be that he is just not checking his xda PMs. i am not here much and i am not generally here for long when i am. it sometimes takes me several weeks to even notice i have new pms ;)

if his website is still up id buy a credit and send him the phone,just make sure you get insurance in case he keeps it and runs off to mexico :p honestly what have you got to lose if your phone is not booting anyway?

to those whove screwed it up becasue of the directions mis-understanding,i honsetly dont see how the directions have mislead you,they look spot on to me:

-run ruu

-if you get a hboot preupdate fail,run again

:confused:

to me its pretty cut and dry. tehre is now even a disclaimer stating to make sure you are stock prior to turning s on. anyone that has blindly turned s on becasue they turned s on due to some confusion and failure to verify stock sustem and recovery,splash,etc. im afraid your bed is made youll have to lie in it.

again the options are:

1)re-unlock

2)wait patienely for official ruu that prolly will never happen

3)send phone to sonic

search back thru the thread,ive detailed this a couple of times now.
[Verizon HTC One (M7)] jfp2004:
Here's a potentially stupid question:

Back on launch day I used the unlock from HTC Dev and installed a custom recovery/superSU a few days later.

I'm not S-Off.

Is there a way to return to the stock recovery so I can run the OTA? I know this will remove my root but to be honest, I just don't have much time for flashing/modding these days and I'd like to be able to do the recent update OTA and the hopefully upcoming 4.3 update. Any help would be appreciated.
[Verizon HTC One (M7)] scotty1223:
that is not a stupid question at all. your best bet is to flash a stock rom(with all the bloat) and then install the stock recovery. do not modify the rom,or kernel. being s on,all your other firmware should still match.

i have OTAed while s on with an unlocked bootloader,so i personally wouldnt lock it until id tried to accept the OTA and was sure being unlocked casued the failure. if you do relock it,make sure to keep your original unlock_code.bin so you can re-unlock later.

haVING said that,id pretty strongly recomend to get s off first,its a good safety net. just:

-s off

-run decrypted ruu

-let OTAs happen

as long as you keep the stock recovery and bloat,s off will NOT affect your ability to recieve OTAs and run stock. then if you wish to re-root in the future,its easy :)
[Verizon HTC One (M7)] kdj67f:
I agree Scotty, s-off is like a huge safety net. Early on people seemed to be afraid if what s-of could harm, and I have no idea why. The only method to get back to completely stock requires s-off as of right now. I personally do not see the harm in leaving it s-off permanently. That leaves one last chance to flash the decrypted RUU and start over.
[Verizon HTC One (M7)] scotty1223:
i agree completely. soft bricks such as this are always easy to recovery from when the phone does no security checks ;) i think maybe some folks read the "phone may brick if you OTA while supercid" info,or just read warnings about "you have the power to brick your phone with s off" and paniced.

the whole thing makes me mad... nobody would be in this jam if vzw would just release an ruu,and/or allow unlock like every other carrier using the one. in either case,folks would not be stuck with their security warnings eff you,vzw!
[Verizon HTC One (M7)] one4thewings:
I can only speak for me, Scotty. But if they said what you said.. I wouldn't have screwed it up. Technically the directions said, run the command to apply Rom.zip, it'll probably fail. Which for all I know, may be the desired effect. I work in IT and hear "It's a normal error" all the time, but the important task is actually completed. So in this case, it says rum the Rom.zip. It then says, you may drop out of RUU, if so.. go back into RUU and run the command again. That makes it sound like a conditional statement. If you drop out of RUU, go back into it and then run the Rom.zip again.

Even if I made the jump to "it needs to be run a second time".. I wouldn't have imagined that it could take up to four times, per the new updated text. In my opinion, and it's just my opinion, it should have said run the Rom.zip until you get a message that looks like the following (output sample). Or until you don't see that same failure message. Something of that nature.

And it could be that I'm just sensitive to documentation. I write technical documentation often in my line of work and have to write to a very specific standard of "no one can misunderstand the doco."

Don't take this as a knock on the OP, he did us all a huge service. Obviously some folks got the right idea, but also some folks got the wrong one. It just needed clarification. I'm beyond grateful for the time taken to document (and update) this process for us all.
[Verizon HTC One (M7)] scotty1223:
hmm,once you explain it that way i can somewhat see it... but when i read it,i read it just the way i said it,lol... so me it was obvious,but in all fairness ive run more ruus on htc phones than i can prolly count :eek: when i write guides i try and give as much detail as possible,and give a codebox with my commands clearly marked in red,so folks can see the results of the inputs,so this sort of confusion is avoided. im not knocking the OP,either,all the steps are 100% correct. but,we did all somewhat underestimate the importance of getting everythign 100% correct on the first shot without an official ruu or being able to re-unlock to get out of a jam. if i were writing this same guide,i would ahve the user boot the phone and verify correct software,firmware,recovery,etc. prior to doing the s on command.

as i mentioned above,i dont know why folks turn s on anyway. pre-release phones and some release phones get sent out s off,so seeing an s off,locked phone with the correct stock software provides no reason to think its ever been messed with. i honestly would just send the phone in s off. it may make some lucky customer real happy if it makes it back out into the wild that way :D
[Verizon HTC One (M7)] kdj67f:
I can see how people could get confused, this is all command line looking stuff and we are all used to graphical interfaces... And again a big thanks to the OP. I would definitely add to the instructions a check for software version etc.. before turning S-on. I personally left s-off when I turned my warranty devices in. To each their own, but I didn't want to have an accidental brick and have to pay for a new one. I had a hardware failure so I am not doing anything unethical or fraudulent. I think we are lucky there is someone out there with a java card to *hopefully* help out these accidents.
[Verizon HTC One (M7)] yardi4life:
Anyone knows what the command is to change super cid 1111111 back to vzw__001 ?

EDIT:

fastboot oem writecid VZW__001. Thanks scotty1223
[Verizon HTC One (M7)] scotty1223:
yall stuck with a security warning and unable to re-unlock may be in luck.

check out this post,wich currently still has links you can follow to nos roms/m7_wlv/ruus: http://xdaforums.com/showpost.php?p=47398890&postcount=2

there are

SIGNED

zips for .8 and .10

im not sure why xda mods have closed that thread,keeping all you folks from being able to properly thank and discuss the ruus. it is not a duplicate thread at all :rolleyes:

i personally will vouge for ak074. the ruus are legit.
[Verizon HTC One (M7)] HypostaticOnion:
Apparently the signed ruus are bad though. Like corrupt

If I've helped, please hit the thanks button
[Verizon HTC One (M7)] scotty1223:
If you are saying that because of the error message that windows gives you at the end of the downloadwhn it cannot open the file, that is normal. It does not mean the files are corrupt or bad.
[Verizon HTC One (M7)] knights665:
im stuck with tampered locked and security warning which ruu do i use in that link? the sighned one at the top or an other one?
[Verizon HTC One (M7)] scotty1223:
What is your current software version? You will need to use whichever one matches that and says "signed"
[Verizon HTC One (M7)] knights665:
oh god i used the wrong one..... is that why its not working and giving me remote 12 signature verify fail? btw i s-on and locked with the tampered and locked security warning
[Verizon HTC One (M7)] kdj67f:
Seems to me that being a signed RUU, it should flash all stock partitions included in the package, regardless of version and revert to the package version (unless I am mistaken, of course)

My only concern is that the signature may be invalid for some reason. I'm not even sure how to check if the signature is valid to be honest, let alone of the complete package contents are complete. If someone was locked and s-on, booting to RUU mode and flashing the RUU should tell. Hard to diagnose over the internet, but I am just throwing out ideas here. I really don't feel like going all back to stock, tampered and locked just to test out.
[Verizon HTC One (M7)] knights665:
i keep getting this error

C:\Program Files (x86)\Minimal ADB and Fastboot>Fastboot flash zip Rom.zip

sending 'zip' (1178269 KB)...

OKAY [ 40.749s]

writing 'zip'...

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

(bootloader) signature checking...

FAILED (remote: 12 signature verify fail)

finished. total time: 674.366s
[Verizon HTC One (M7)] scotty1223:
you are using the wrong one. you are using a decrypted,unsigned version,either from the OP,or one of the top 2 at this link:http://nosroms.com/?developer=M7_VZW&folder=ruu

you need to use one of the bottom links,depending on your build. you can use the .10 if youre on .8,but not vice versa.

if youre using one of those 2,you may have a bad download(wich will also break the signiture)
[Verizon HTC One (M7)] kdj67f:
I am no expert by any means, but it seems the signatures are corrupted. Hopefully someone with more knowledge can chime in and help you out. I don't have the means to test, as I am s-off and hesitant to flash these on my One. Good luck and maybe try contacting Sonic about some javacard s-off action to get your device back in working order.
[Verizon HTC One (M7)] scotty1223:
when s on,the phone does several security checks,not the least of wich are htc's official signiture,main version,and hboot version. in short,you need to flash an ruu that is for your build or newer.

using an uncorrupt,signed ruu the only way to tell if the siginiture is good, is to flash it. the good news is that if the phone likes the siginiture,you can be assures the internals are fine.
[Verizon HTC One (M7)] kdj67f:
That makes sense, thanks Scotty! I do seem to remember having to flash a sequence of RUUs on the Rezound to roll back the hboot or mainver to get juopunut s-off to work. Thanks for clarifying that.
[Verizon HTC One (M7)] drblast:
Hi guys im a noob

welp like i said im a noob. i got all the way to were you 'fastboot flash zip Rom.zip' and now my phone is stuck in fastboot. My phone is currently showing Tampered, Locked, security warning s-on.. ive been trying to reflash but im guessing that cant happen with s-on... any help guys would be greatly appreciated
[Verizon HTC One (M7)] knights665:
so now it gave me the 90 hboot pre-update! error please flush image again immediately. so i got past one error only to hit another

UPDATE so i checked the md5 and it checks out and im pretty sure im using the right software version so im not sure where to go from here

UPDATE 2 ITS WORKING!
[Verizon HTC One (M7)] drblast:
i just read above posts

and i keep trying to use decrypted instead of the bottom link. should i download the bottom link and the try to flash the ruu with the way my phone is as of right now?
[Verizon HTC One (M7)] kdj67f:
run the commands a second time, or keep running the same commands until it completes. It will take a while... It took me twice in a row to get it to flash complete when I returned to stock for warranty.
[Verizon HTC One (M7)] drblast:
im using sdk manager with only Android SDK tools, Android SDK Platform-tools, and Google USB Driver. sorry for all these posts im just trying to get the most information i can so we dont have too much of a back and forth
[Verizon HTC One (M7)] kdj67f:
Yes, download the matching version that is SIGNED, then try as described in the OP of this thread. Reboot to RUU, flash the zip and if it says to flush image, run the flash command again until it completes.
[Verizon HTC One (M7)] drblast:
thanks for the reply

thanks i have an hour til the download completes...can you tell me where i should download the zip file to, do i unzip to a folder called "Rom.zip" within platform-tools or should i create a seperate fastboot folder and put the fresh downloaded zip file in and the type Fastboot flash zip Rom.zip?
[Verizon HTC One (M7)] kdj67f:
I personally have a folder in the root of my c: drive which I use for fastboot and adb. Basically, search the threads here by Scotty where he outlines setting up minimal adb and fastboot. Move the downloaded file to the folder where fastboot and adb are executed from. then make sure that you have fastboot connectivity, then run the commands. Do not unzip, as you will be flashing the entire archive. I leave the file names alone, so I can move them later out of my folders and organize them. So just copy the filename, then run commands. If your .zip is named blahblah.zip,

fastboot flash zip blahblah.zip
[Verizon HTC One (M7)] knights665:
SCOTTY YOU ARE THE MAN! it worked! thank you!
[Verizon HTC One (M7)] kdj67f:
That is great to hear! Glad that there is a signed RUU out there that works.