yashsingh1/xdaforums huggingface dataset:
[Verizon HTC One (M7)] gtofan350:
ok, full sail ahead. once the NEW verified correct RUU finishes downloading, then i will flash
[Verizon HTC One (M7)] selayan:
Take note once the download finishes. When you flash it, it will fail the first time with an error saying hboot-90 flush again or something like that. You should be rebooted out of RUU mode and back into it automatically. Wait a couple of seconds before issuing the second flash command.

Before going for the 2nd flash, do a fastboot devices and make sure the device comes up or fastboot getvar all and look for the bootmode: to say RUU, meaning when it did boot you out of RUU mode after the first failed attempt, that you are back into it. If it does not boot you back you will need to issue the fastboot oem rebootRUU command again before attempting to flash a second time for success.
[Verizon HTC One (M7)] gtofan350:
Right now it say bootmode UNKNOWN
[Verizon HTC One (M7)] selayan:
Yeah because of the wrong RUU flashed from the beginning.
[Verizon HTC One (M7)] gtofan350:
Do you use Hangouts?
[Verizon HTC One (M7)] selayan:
Yeah I do I can pm you my Gmail. I'm on the phone with Comcast right now about my internet speed which should have increased so I may or may not get booted depending what they need to do.
[Verizon HTC One (M7)] gtofan350:
Yea, if you dont mind. It would be a lot quicker. I appreciate it
[Verizon HTC One (M7)] selayan:
I sent you a pm
[Verizon HTC One (M7)] scotty1223:
any luck?
[Verizon HTC One (M7)] selayan:
I wasn't able to help much last night, he had to go to sleep. He was getting a parsing error last I remember.
[Verizon HTC One (M7)] gtofan350:
I'm gonna share my screen with selayan soon so he can see what I'm seeing.
[Verizon HTC One (M7)] gtofan350:
Hey Selayan, you wanna try team viewer?
[Verizon HTC One (M7)] selayan:
Currently I'm at work and I'm not allowed to access sites outside my company intranet. I'll be available tonite around 830 or 9pm eastern time.
[Verizon HTC One (M7)] gtofan350:
Cool, sounds good
[Verizon HTC One (M7)] arizonaomnia:
Will this work for sure to keep s-off?

---------- Post added at 04:42 PM ---------- Previous post was at 04:40 PM ----------

I feel as though this is an obvious answer, since I am flashing a ruu, but when it says "At this point you are stock unrooted and bootloader locked but still s-off" it makes me wonder - will this wipe my data or allow me to retain everything but simply lock the bootloader and allow me to take an OTA?
[Verizon HTC One (M7)] selayan:
When you flash an ruu your data is wiped.
[Verizon HTC One (M7)] arizonaomnia:
That's what I thought, but I was unsure based on the phrasing. Thanks.
[Verizon HTC One (M7)] santod040:
There is no need to relock....to take an OTA.

Not sure where that got started.

Full odex stock rom and stock recovery.

Flashing stock recovery will wipe internal storage.
[Verizon HTC One (M7)] gtofan350:
Any ideas on how to get my bricked verizon One back up? From what i can tell the bootloader is locked as i was following the instructions in the first post. With the help of Salayan and Scotty we have determined that I flashed the incorrect RUU for my One. Any ideas?
[Verizon HTC One (M7)] Gizmoe:
No you won't lose s off for sure.
[Verizon HTC One (M7)] scotty1223:
might want to post up anything other info you have. there are lots of smart folks here that can help you,if they can see what your doing
[Verizon HTC One (M7)] gtofan350:
Good idea.

This is what I have gathered so far about my current situation. Thanks to scotty we know that when I tried to flash a RUU for my VZW One, I accidently flashed a One Max RUU. After the flash failed (the failed message was the expected one, flush and try again) my phone went completely black. Pressing the power button does nothing, pressing and holding power and vol down does nothing. When I plug it into windows I get the device attached chime and fastboot recognizes it as ?????????? but adb doesn't see it at all. When I execute "fastboot oem redbootRUU" i get the message okay Verify: -1. When I try to flash the correct RUU with fastboot flash zip Rom.zip I get the waiting for device message. If I press and hold power and vol down fastboot sees the device but I get failed <remote: not allowed>. I followed the steps on this guide so I'm guessing my bootloader is locked but still s-off. When I execute fastboot getvar all this is what I get:

(bootloader) version: 0.5

(bootloader) version-bootloader: 2.46.0000

(bootloader) version-baseband: N/A

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main:

(bootloader) version-misc: UNKNOWN

(bootloader) serialno:

(bootloader) imei: 355195000000010

(bootloader) meid: 00000000000000

(bootloader) product:

(bootloader) platform: HBOOT-8064

(bootloader) modelid: *********

(bootloader) cidnum:

(bootloader) battery-status: good

(bootloader) battery-voltage: 2827mV

(bootloader) partition-layout: Generic

(bootloader) security: off

(bootloader) build-mode: SHIP

(bootloader) boot-mode: UNKNOWN

(bootloader) commitno-bootloader: dirty-14eb688c

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.033s

Any help will be GREATLY appreciated!! Right now my phone is dead and I don't expect anyone's help but will be very thankful for any.
[Verizon HTC One (M7)] Gizmoe:
It may be an actual brick. The wrong hboot usually means dead device. I don't know if a jtag can fix it or not as I've never gone that route.
[Verizon HTC One (M7)] gtofan350:
How can I get a hold of jtag?
[Verizon HTC One (M7)] Gizmoe:
You can buy them or make them. Just Google it. I've never used one.
[Verizon HTC One (M7)] santod040:
See if Sonic is still around and PM him.

His method may help, other then that, I don't see a lot of hope.
[Verizon HTC One (M7)] gtofan350:
I couldn't find sonics xda profile.
[Verizon HTC One (M7)] santod040:
There were some numbers involved, get creative, search scottys threads, you'll find what I'm talking about.

I'd have to search just the same. (Java card, sonic, and scotty123) should be enough keywords.
[Verizon HTC One (M7)] gtofan350:
I send him a pm the other day but haven't heard a response yet.
[Verizon HTC One (M7)] cmlusco:
Have you tried to fastboot flash the bootloader, or does fastboot flash not work.

fastboot flash bootloader name_of_file.img

Sorry didnt read the whole thread, ignore me if you already tried this. Heres an hboot img if u need it. I would also try the same with the misc.img. https://www.dropbox.com/sh/meql71ukq4mjwwc/8kTegPSvGb
[Verizon HTC One (M7)] selayan:
I did a teamvier event with him a day ago. He had originally flashed an ruu for the HTC one max. The ruu mode is broken, no recovery, no boot loader, still has s off. Hboot version reads 2.46 which is not the version for a Verizon HTC one.

Fastboot does not see the phone in ruu mode, it sees the device when not in that mode but does not recognize the device, shows ??????

Problem is he was following the return to stock guide and locked the bootloader in step one.

Phone shows nothing on the screen, completely black, no lights but pc notices when it is connected. Adb does not function as there is no os, partions are messed up and hence only fastboot kind of sees it.

If somehow he could get the bootloader unlocked, it would be possible to flash an hboot and recovery then ruu the correct ruu version.

Not sure if bootloader can be unlocked without hardware now since there is no fastboot shell command like you can do with adb and issue a command to lock or unlock bootloader.
[Verizon HTC One (M7)] gtofan350:
That's pretty much it.
[Verizon HTC One (M7)] cmlusco:
If its s-off it shouldnt matter if the bootloader is locked or not. S-off gives you all the perks of an unlocked bootloader plus a ton more. I understand that ruu mode dosent work, but can he do a fastboot flash bootloader bootloader.img? You dont need to be in ruu mode to flash an img file.

Edit: I read a little closer and noticed you said that fastboot recognizes it as unknown, but does that mean it wont accept a command? Couldnt hurt to try.

Edit2: On your pc in device manager, does it still recognize the phone as an android phone / adb device or unknown?
[Verizon HTC One (M7)] scotty1223:
Mobile tech videos. I gave you a link a few posts back

You can't fastboot flash anything with a locked,ship hboot. All partitions can be written to,but only via ruu mode.

If you can find a .exe file you could try running that with the phone in what appears to be fastboot.

Failing that,there's not much else to try. Call josh at mobile tech video and tell him your situation.
[Verizon HTC One (M7)] BelievingThomas:
I need to send my friends phone to HTC to have the camera fixed, does this still work? When they send it back will I still be able to achieve unlocked and S-off again?

sent from my Vipered HTC ONE
[Verizon HTC One (M7)] selayan:
Yes, still works. Read carefully and please flash the correct ruu. Flashing the wrong ruu will lead you to have a broken hboot/ruu mode/ recovery like the last user.

Check the software version you have and then download the correct ruu from santod's thread. If you are s off you can flash either decrypted or encrypted. If you are s on but boot loader unlocked you can only flash encrypted ruu.
[Verizon HTC One (M7)] BelievingThomas:
I've decided to faux the hboot to show locked and S-on, flashing the stock odexed Rom and recovery..... Hope it works.

sent from my Vipered HTC ONE
[Verizon HTC One (M7)] selayan:
You should be good now. Didn't know there was a fake s off command to run. Or did you actually do fastboot oem writesecureflag 3?
[Verizon HTC One (M7)] cmlusco:
It is just a hex edited hboot changed to say s-on and locked, even though its really s-off and unlocked. It also removes the red warning you get when entering recovery, or when booting with a custom boot img.
[Verizon HTC One (M7)] Gizmoe:
Do you mean signed RUU? Because if we actually had the original encrypted RUU.exe it could be used on a phone in any state.
[Verizon HTC One (M7)] selayan:
No I thought he meant he was s on and bootloader unlocked but I guess he wasn't. Yea if there was an official signed ruu exe the other user could have fixed his bricked phone.
[Verizon HTC One (M7)] Gizmoe:
I was referring to the encrypted RUU. We don't have one.
[Verizon HTC One (M7)] scotty1223:
-reset lock status and tampered flags

-run decrypted ruu

-stay s off

Phones came s off,so finding it is not proof that you've messed with it,and they don't care anyway when repairing a known hardware issue. People worry way too much about being s off for warranty work.

Imo its better/safer to be stock and s off than fake-stock with a patched hboot.

My 2 cents
[Verizon HTC One (M7)] the.snks:
Driving my self nuts trying return this thing to stock. I've tried two different computers (32 and 64-bit Windows), different USB cables, and every version of the HTC driver I could find.

Everytime I try to start an adb shell I get "Error: Device not found."

Is there a way to get back to stock without using a computer? I really don't have another three hours to waste on this.
[Verizon HTC One (M7)] bmt626:
nope because you can skip the setup wizard easily by hitting the home button on this phone so you should be fine with out a sim card in the device
[Verizon HTC One (M7)] jntdroid:
Worked like a charm, thanks again. You do need the sim in to take the OTA, but obviously that's no big deal.
[Verizon HTC One (M7)] tpierce67:
any other ideas of things to try? Or other resources I can check? This is the only forum I know of for this kind of situation.
[Verizon HTC One (M7)] jeepinwk:
Thank You!

Thank you very much for this. Really saved my a$$. Got a little confused about the part where you said to re-flash again but that's my fault for not reading it right. THanks again.:good:
[Verizon HTC One (M7)] brainchow:
In the same boat here... flashing went well but it's throwing up a security warning and won't boot. Can't reflash RUU because it's not encrypted and I'm locked/s-off. Bricked as of right now.
[Verizon HTC One (M7)] jeepinwk:
Sounds like you are where I was (locked with S-off) for 3 days. I'm a complete noob with this stuff and have no business messing with it but the part where I was screwing up was that I did not realize that I had to flash twice. Once I saw the "FAILED (remote: 90 hboot pre-update! please flush image again immediately)", I just assumed it stuck cause he said it was normal and started rebooting stuff and skipped over the next two steps. One thing I noticed in HBOOT is that I had "1.10.605.10" Displayed in red with "1.10.605.8" next to it in parenthesis. After you get the "remote 90" fault just flash again and it worked for me. Back to 1.10.605.8 and then OTA to 1.10.605.10.

Hope maybe this helps.
[Verizon HTC One (M7)] brainchow:
Thanks for the reply, but I can't flash anything again because I relocked my bootloader and went s-on. I'm seeing 1.10.605.8 in red, and the same thing in parenthesis. Nothing about the OTA or .10 at all, never took it in the first place. Trying to flash the ruu in hboot just throws up a signature error, and I'm not sure how to get an encrypted/signed ruu.
[Verizon HTC One (M7)] kdj67f:
You may contact sonic about s-off with his java card. Not sure how far into the OS the phone needs to boot, but it may be worth a shot if you have a bricked phone.
[Verizon HTC One (M7)] lmorenoe:
Worked perfectly.

Thank you!!!
[Verizon HTC One (M7)] Zwitterion:
Sounds like you bricked your phone - I would contact Sonic. Are you able to boot into recovery?
[Verizon HTC One (M7)] brainchow:
Nope, kicks me back into fastboot. I'm pretty sure I somehow managed to flash the stock recovery with the ruu too.
[Verizon HTC One (M7)] tpierce67:
Well I guess i'm dead in the water until we can get a stock encrypted RUU. I've tried every thing I can find and i'm still stuck in Fastboot mode. This really sucks. I paid full retail for the HTC One less than a week ago and it's now worthless. :(

Again, the phone is S-on and locked.....by my foolish mistake. I have the tampered flag, relocked flag, and security warning flag.

Is there any way to get S-off again from Fastboot?
[Verizon HTC One (M7)] gomorrah:
- Nevermind. It worked on the 4th try for some reason.
[Verizon HTC One (M7)] chens23:
mine says:

L:\Personal\HTC ONE>fastboot flash zip Rom.zip

sending 'zip' (1178272 KB)...

OKAY [ 54.790s]

writing 'zip'...

(bootloader) signature checking...

FAILED (remote: 12 signature verify fail)

finished. total time: 174.510s
[Verizon HTC One (M7)] spyderhex:
EDIT - Haha i had just woke
[Verizon HTC One (M7)] Rain__:
Just want to verify before I screw something up: This will work fine on a phone that has been S-OFF'ed with Beaups' Rumrunner; not just phones that have been S-OFF'ed by Sonic, correct?

(Too bad returning to stock isn't as easy on HTC phones as it is with Motorola phones! FXZ'ing is so easy...)
[Verizon HTC One (M7)] scotty1223:
your only option is to wait for a

signed

(not encrypted) ruu,or send the phone to sonic. the diag file should work wether it boots or not.

also id like to point out a couple of things that might be good to mention in or near the OP:

1)dont turn s on unless you have to for a legitimate warranty purpose. there are absolutely no advantages whatsoever to being s on. you can OTA while s off,its no big deal.

2)if you relock your bootloader,you can just issue the "lock command" its just changing those 4 values,theres no need to flash the unlock command first.

3)you dont need to use fastboot flash to install a recovery. you can easily install via fastboot and ruu mode with a locked or relocked bootloader. reference this thread,post 2

4)do not s on unless you have to for warranty purposes(see 1 again)

5)did i mention,

do not turn s on

? ;)

---------- Post added at 02:47 AM ---------- Previous post was at 02:44 AM ----------

yes. s off is s off. just dont make sure you screw up the order,as has been demonstrated ;) since the phone is not legitimately unlocked,you may be waiting for a signed ruu with an unusable device.
[Verizon HTC One (M7)] Rain__:
Awesome. Here goes nothing! I've gotta send my phone back due to battery problems outlined here: http://xdaforums.com/showthread.php?t=2479365

Edit: Worked great! Just like I took it out of the box, Locked & S-ON. Thanks!!
[Verizon HTC One (M7)] dobo84:
Ok I give up trying this.... It does not work. I have followed the steps down to a T and yet no dice. Keep getting a error when trying to flash the RUU zip. C:\ANDROID\sdk\platform-tools>fastboot flash zip Rom.zip

error: cannot load 'Rom.zip': Unknown error anyone have any ideas as to what is happening. Any help would be great
[Verizon HTC One (M7)] santod040:
Is your device in RUU mode? Fastboot oem rebootRUU

If it is in RUU mode after running that command, it should be a black screen with grey HTC on it.

That needs to happen first for this to work: Fastboot flash zip Rom.zip

Make sure you have CaPiTaLs where they should be as well, depending on your filename.
[Verizon HTC One (M7)] GrayBoltWolf:
What version of windows?
[Verizon HTC One (M7)] the.snks:
Windows 7.
[Verizon HTC One (M7)] the.snks:
Ok, so I'm an idiot. I got ADB working (long, shameful story), and then went through all the steps in the first post. Problem is, at the last step I wound up flashing a radio update file instead of the ruu file. So now I'm s-on, locked bootloader, but somehow still have rooted (?). Anyway, the problem now is that I can't flash the correct ruu file. When I try to flash the decrypted version the signature check fails. When I try with the signed version I get the following:

c:\ADB>Fastboot flash zip Rom.zip

target reported max download size of 1514139648 bytes

sending 'zip' (1232586 KB)...

OKAY [ 56.316s]

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: 166.429s

I got both files from the thread Santo linked a few pages back.

So, before I Hulk out and throw this thing out of the window, can anyone tell me what I should do to get this back to stock (and not make things worse)?
[Verizon HTC One (M7)] Gizmoe:
You will have to gain s off to run RUU via RUU mode. Only the original RUU from HTC would work on an s on device.
[Verizon HTC One (M7)] the.snks:
How can I do that? Rumrunner fails whenever I try to run it as well. Forgot to mention that too.

Is it possible to get the original RUU? Whatever is the easiest....
[Verizon HTC One (M7)] Gizmoe:
I don't know. You are kind of stuck in a tight spot. You say you still have root. Can you use scotties method to unlock using adb from booted Rom

to UNLOCK your bootloader,enter the following:

adb devices

adb shell

su (if needed to get a # prompt)

echo -ne "HTCU" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796
(i would very strongly recomend you copy/paste this)

exit
(exit a second time if you need to to get back to a normal > prompt)

adb reboot bootloader

verify you are now unlocked

Pretty sure s off is required but if it does work then flash recovery and a complete stock Rom and also fastboot flash boot img from stock Rom zip. Then try rumrunners again. The original RUU isn't allowed on xda and I have not been able to find it on the web.
[Verizon HTC One (M7)] cmlusco:
Have you tried firewater? It should be able to unlock you and get you s-off again.
[Verizon HTC One (M7)] the.snks:
I tried the post above yours but I had to run out while Rumrunner was going. If that doesn't work I'll try firewater. Thanks.
[Verizon HTC One (M7)] kenneu:
Alrighty then. I want to return my verizon HTC one to stock. Don't care if I have S-On or S-Off when I'm done, but I do want to get back to stock and take the latest OTA for the time being. I purchased this phone already S-Off and with a viper rom on it knowing I could go back to stock... The phone is currently on 1.10.605.10 according to bootloader.

On viper one 5.0.0 android 4.4.2.

Will the 1.10.605.8 file be OK to use as RUU to get my phone back to stock and then take the OTA? The instructions mention an older version and make sure to get the right one... The link in the thread goes to a broken link for the RUU.

Thanks in advance
[Verizon HTC One (M7)] gmariust:
Moved to HTC ONE General
[Verizon HTC One (M7)] scotty1223:
thats great that youre up and running,but not of much relevance since youre not using a verizon device. you might want to edit or delete your post so that folks dont think its ok to use the same file on a vzw device.

your main version has not changed,as the guru reset does not change it. you apparetnly had the 4.4 update prior to unlocking and whatever you did to cause your soft brick(or the OTA while rooted caused your soft brick),but if your phone is working,call it good there is no reason to flash the boot image from the reset.
[Verizon HTC One (M7)] gmariust:
Thank you man, I thought I am on HTC ONE General forum. Sorry for disturbance. I will move my thread there. Anyway the target now is to get Kitkat 4.4.2 on the phone, hopefully without brick it again :).
[Verizon HTC One (M7)] spider84a:
I did LOCKED and S-ON and there was no TAMPERED flag - i was happy, but when i did Hard Reset TAMPERED flag showed up... :confused: Why?
[Verizon HTC One (M7)] scotty1223:
something is not stock. your firmware,boot,system,or something is not what the phone is expecting in relation to the rest of it. wihtout any idea what state your phone was in,and what you attempted to do prior to s on,its hard to speculate.

i really wish you guys would quit turning s on on this device. :mad:

---------- Post added at 01:11 AM ---------- Previous post was at 01:09 AM ----------

no prollem,no disturbance. just didnt want folks flashing the wrong thing on this phone. thanks for moving it,if you need further help give me a link to your new thread :)
[Verizon HTC One (M7)] RickDR:
Ok, my issue is that ADB works fine, but once i am in fastboot, nothing works. Not a single command makes it to the phone. Command prompt says waiting for device and thats it. Im on windows 8.1 and honestly wondering if that could be an issue with the HTC drivers. When it goes into fastboot the computer says unknown device, disconnecting.... Any help?
[Verizon HTC One (M7)] Gizmoe:
Its a known and common issue with Windows 8.1. Just look up Windows 8.1 Fastboot issues online and try the many different methods of fixing it.
[Verizon HTC One (M7)] cmlusco:
Try these drivers, i was having the same issue till i found these. While in fastboot go to device manager on your pc and right click on the unknown device and select update driver. Then select let me choose and point it to the location of the unzipped folder. Should find and install the driver automaticly from there.
[Verizon HTC One (M7)] RickDR:
Which Drivers?
[Verizon HTC One (M7)] cmlusco:
Lol oops, i forgot to post the link. http://vzw1files.dyndns.org/ADB/ADB_Drivers.zip
[Verizon HTC One (M7)] GrayBoltWolf:
I've used these, and they do work.
[Verizon HTC One (M7)] xRogerxC:
Right On!!! Thanks to the OP for the informative and awesome post. Folks, this method still works perfect, you just need to follow the OP to the T and you'll be fine. For those that do not know how to install the Android SDK (ADB) on your PC, and those not familiar with ADB, I suggest you consult the knowledge of those who do!! Otherwise, you may fall to the fate of others who have experienced a bricked device. I was running stock rooted 4.4.2 with the latest firmware, radios, kernel, etc. just for info.
[Verizon HTC One (M7)] BelievingThomas:
<br />

<br />

I've decided to faux the hboot to show locked and S-on, flashing the stock odexed Rom and recovery..... Hope it works. <br />

<br />

sent from my Vipered HTC ONE[/QUOTE]

I know there were several people waiting to see if my friends phone was fixed, as it turns out they fixed it! It's on its way back now and I'll let you know if it's still S-off as soon as it arrives.
[Verizon HTC One (M7)] GrayBoltWolf:
Google "minimal ADB". Best thing ever.