yashsingh1/xdaforums huggingface dataset:
[Sprint HTC One (M7)] mswlogo:
I'm lost. M8 went so smooth. This phone has been hell.

I'm S-OFF Unlocked had HBOOT 1.44 on there.

Tried to run RUU and it fell on it's face.

THEN I saw warning about needing newer HBOOT.

So I flashed FULL Firmware. That seemed to go OK and it shows newer HBOOT 1.56 I think.

RUU still won't run. Tried Relocking for Grin no change.

So I tried flashing recovery. That fails and gives warning of Max Size and Remote not allowed.

Not sure what to try next.

Change CID and Try RUU

Run old RUU first. That I think is dangerous going backwards. Might have been a Good Idea to do this first. Make it Pure stock before upgrade.

Try Flashing ROM with Fastboot

---------- Post added at 12:51 AM ---------- Previous post was at 12:00 AM ----------

I managed to recover.

Even with S-OFF your Unlock/Lock Status DOES Matter.

I had tried to relock to run the RUU (even though I should not need to with S-OFF) but the problem was my old HBOOT as warned in the OP.

Then I flashed the Full Firmware for updated HBOOT and then I was Stuck.

I tried SuperCID and it didn't help.

I tried to reapply my unlock token and would not work. I think I had the right file but I may not have.

So I went through the HTC Unlock procedure again and now I can flash Recovery again. Even though I was S-OFF I could not flash recovery.

All I can think of is when I upgraded HBOOT some things were no longer valid.

Possibly if I updated HBOOT and never I relocked I would not have got stuck.

I still don't understand why I can't run the RUU.

---------- Post added at 01:32 AM ---------- Previous post was at 12:51 AM ----------

Finally got RUU to Take. I really wanted to know everything was clean.

I noticed the "OS" in the Bootloader screen was STILL 4.xx when it should be 6.xx.

So I flashed the Modified No Recovery firmware and it did update to 6.xx (and I had to issue the command a 2nd time as it normally tells you too).

Then I ran RUU and it finally took.

When I ran the FULL firmware it did update HBOOT but did not update the rest of the firmware (it was LOCKED at that time though should not matter with S-OFF).

Maybe it takes a couple passes (i.e. you must reboot with new HBOOT for the rest of the firmware to flash).

That's what the RUU seems to do and does several passes if you watch it.

I did do the second pass that it tells you to do immediately but it did NOT fully update firmware. If may work fine if HBOOT is already updated.

So you need more than just HBOOT updated for the RUU to run. I always thought the RUU could handle old firmware.
[Sprint HTC One (M7)] jblaze10:
I just wanted to add if the boot.img was in firmware, you were flashing the stock kernel. that would possibly not allow system to boot. also may explain a dirty flash fix if rom included a custom kernel.
[Sprint HTC One (M7)] muneebrocks:
I had actually read your reply earlier so i was prepared with Kangroo kernel ready to flash

but it had no effective. I had to dirty flash viperrom again
[Sprint HTC One (M7)] cybridmonki:
I think I might be in serious trouble

I'm currently S-ON and my bootloader is relocked.

fastboot getvar all:

(bootloader) version: 0.5

(bootloader) version-bootloader: 1.60.0000

(bootloader) version-baseband: 1.01.20.1225

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 6.16.651.2

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

(bootloader) serialno: Removed by Moderator

(bootloader) imei: Removed by Moderator

(bootloader) meid: Removed by Moderator

(bootloader) product: m7_wls

(bootloader) platform: HBOOT-8064

(bootloader) modelid: PN0720000

(bootloader) cidnum: SPCS_001

(bootloader) battery-status: good

(bootloader) battery-voltage: 4014mV

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: dirty-91bb20e1

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.047s

I've already successfully flashed the firmware file, but when I flashed the RUU, I get this:

C:\Users\Andy\Desktop\Nocturnal_ADB_Fastboot\Nocturnal_ADB_Fastboot>fastboot fla

sh zip rom1.zip

target reported max download size of 1514139648 bytes

Invalid sparse file format at header magi

error: write_sparse_skip_chunk: don't care size 116912852 is not a multiple of t

he block size 4096

sending sparse 'zip' (1478648 KB)...

error: write_sparse_skip_chunk: don't care size 116912852 is not a multiple of t

he block size 4096

error: write_sparse_skip_chunk: don't care size 116912852 is not a multiple of t

he block size 4096

OKAY [126.114s]

writing 'zip'...

(bootloader) signature checking...

FAILED (remote: 12 signature verify fail)

finished. total time: 250.321s

Am I doing something wrong? Also I can't reboot into any rom for some reason, it just takes me back to the fastboot screen.
[Sprint HTC One (M7)] coal686:
I think this is your issue. Have you tried downloading the exe version of the RUU in the OP? It's the very first link.

P.S. I wouldn't post your serial number and IMEI as they can be used for notorious purposes.
[Sprint HTC One (M7)] v1ral:
I have a somewhat of a weird question.

I've flashed the modified firmware then the no red text modifier, all went well. However, when I try to flash roms on the newer base some things just don't work in them, let me try and explain. Before the updated firmware I was on the 5.xx.xxx*latest before the 6.xx.xx I installed the nuisense rom and that worked wonderfully, but now when I try to in stall say insertcoin or bad boyz rom, some aspects of the rom do not work. Like the pull down notification doesn't function like in the nuisense rom. I have made a back up of nuisense 10.2 while flashing back and fourth testing to see why it could be wonky the only thing I remember changing is firmware. Would firmware change mess up something when flashing a rom?

Also while trying to figure this all out I tried to RUU, I'm getting "error 158" or something like that, and the format is pretty different from running RUUs from before. What am I doing wrong?
[Sprint HTC One (M7)] cybridmonki:
I downloaded the RUU from OP's link, then got the rom.zip from the Temp folder, made sure everything was matching in the android-info.txt. As for the rom1.zip, I just renamed it when I copied the file into my fastboot folder, would it make a difference?
[Sprint HTC One (M7)] Devilish_Angel:
... No it will not matter. Only you would have to type in the same name (new) in the fastboot command ...
[Sprint HTC One (M7)] gabedude:
Yeah same thing with me, but I have some Nandroid backups. I made a boo boo and went S-ON. I have done some digging after pulling the full ROM from Sprint (not just the update, the full ROM plus firmware). I got as far as OMJ did but there is still more in there. I have it uncompressed to 5 files and can use zipinfo to see what is listed in the archives and I have been working on disassembling Sprint's packing method. Anyone who has run into this before I would appreciate the help!

I have verified that flashing Venom Viper One 7.0.2 works just fine with the new firmware. Also Team badboyz rom works; I pulled it from their source control to get it (instructions in badboyz post by OMJ, helps to use Linux as it is multi source control type friendly). :) If your bootloader is locked, you can unlock it with your unlock_Code.bin from htcdev. Even if it is relocked and you have TWRP installed ViperOne will still flash.

Here is as far as I have gotten inflating the full RUU. When I cat the zips together I get the same damn large encrypted zip. There is currently a bug filed with ruuveal about this very thing. Hopefully the developer of ruuveal will make an update. It looks like a pretty simple fix or just some weirdness in the archiving of system.img (mainly)...
[Sprint HTC One (M7)] benny3:
That is the decrypted rom zip and its flashed with fastboot in RUUmode.

If you are wanting to mess with making a rom you need to pull all the system imgs from each zip and combined them into 1 single system img with this cmd.

windows:

copy /b system_1.img + system_2.img + system_3.img +system_4.img + system_5.img newsystem.img

linux:

cat system_1.img system_2.img system_3.img > system_test.img
[Sprint HTC One (M7)] gabedude:
I am quite familiar with split archives and slamming them together in windows and unix(es). The problem I am having is my inability (or lack of time in researching) to figure out how to pull system_*.img. I am trying to get the full system.img and create a full stock flash zip (via android-info.txt) from fastboot or ruu. :) It errors on offsets (I have tried 7za, and a multitude of other ways to get at the right offset):

---------- Post added at 06:23 AM ---------- Previous post was at 06:07 AM ----------

Also I want to create a deodexed and odexed stock rom to flash via RUU as this has helped me in the past get out of some situations where I had no nandroid backup to create a rom flashable with TWRP or CWM. Once I can figure out how to extract each system_*.zip I can do the rest. :) Thanks for anyone who can give me a shortcut. I am new to android rooting and flashing but not at all new to all kinds of development.
[Sprint HTC One (M7)] benny3:
Just grab the system imgs and drag them out. If you knew as much as you say you do you would know that
[Sprint HTC One (M7)] gabedude:
Different archive programs use different packing methods. I've tried it with 7zip in windows and 7za in Linux like I said (along with a bunch of other archive options and ordering of the 5 "denrypted" files). I don't see anyone else who has posted the decrypted system.img. Like I stated there is already a bug filed (not by me) on one of the sites hosting unruu/ruuveal/etc Linux tools for 6.16.651.2 full RUU. It's one thing to flash the rom and do a system pull with adb. It's another to find the unpack method from the way HTC packed and encrypted the update. It just takes time. It looks to me like #5 is still encrypted. #1 has 4 errors with unzip. Those 4 errors are where the other files go. Time to fire up a hex editor I suppose.

I am only doing this to help other people like the post I quoted out. No need to get upset about me stating I know all about zip splits. I had to use those tools back in the floppy days (in Nix's and Windows). If there is a Windows or Linux gui you know of that works with this particular RUU, I would appreciate the share of knowledge.

-Gabe

Here is what I am seeing in #1:

#2, #3, and #4 contain 3 files and only the system_*.img will not unzip.

#5 looks like it may be encrypted still:
[Sprint HTC One (M7)] v1ral:
What does it mean "flash error too many links"...

I am trying to flash firmware/RUU but it's not working at all.

here is my getvar:

C:\Users\Aprilll\Desktop\Root_HTC_One_Sprint>fastboot getvar all

(bootloader) platform: HBOOT-8064

(bootloader) modelid: PN0720000

(bootloader) cidnum: SPCS_001

(bootloader) battery-status: good

(bootloader) battery-voltage: 4166mV

(bootloader) partition-layout: Generic

(bootloader) security: off

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: dirty-91bb20e1

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 25.486s
[Sprint HTC One (M7)] IronMogul:
I keep getting error 99. Doesnt matter how I try it.
[Sprint HTC One (M7)] benny3:
If you are trying to unzip the system img you can't you need to mount it or use one of the rom kitchens found on XDA . I will post a zip that will have the 3 system imgs and you can merge the 3 and then run the new system img though the kitchen

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

system img

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

---------- Post added at 01:20 PM ---------- Previous post was at 01:16 PM ----------

Have you relocked the bootloader?
[Sprint HTC One (M7)] v1ral:
Yes.. I've relocked boot loader, thinking it would take the RUU like what I had to do on the other RUU if I'm not mistaken. After numerous attempts I've almost given up on this, since I'm relocating. But this device has served me well will now, it still works but I'm getting weird errors.. now I get errors that I'm charging slowly using the default HTC charger, when it never gave me that error.

I have to unlock boot loader again? I'm still s-off right?
[Sprint HTC One (M7)] IronMogul:
I have not. i just went immediately to the side load for the firmware. I guess i missed a step.
[Sprint HTC One (M7)] gabedude:
Thanks benny. I was looking into the way android was using the fuse filesystem at times but I had not had the time to investigate it further. Thanks again!
[Sprint HTC One (M7)] v1ral:
Okay RUU was a success BUT this stock ROM is wonky for some reason.

I STILL can't use the settings tab in the pull down notification area.

I decided to RUU to see if it fixes this issue I am having while flashing newer based ROMs *badboyz, insertcoin and nuisense*... before updating firmware/RUU I had nuisense running fine, the pull down notification works, tapping the home brings me back to home. But flashing these new ROMs got me all messed up.

Any help or ideas would be greatly appreciated!!
[Sprint HTC One (M7)] benny3:
What stock rom ? Are you restoring anything or flashing any mods, xposed?
[Sprint HTC One (M7)] v1ral:
After doing the RUU.

Let me update whats happening actually.

I redid did the RUU it was successful BUT now I can't get root, this is all after booting up. To add though when I update binaries for superSU, it says it is unable to. What happens now is the phone is stuck in the "HTC One" boot screen, does it take that long to boot after updating binaries.

Before I said I wasn't able to, I tried flashing the 2.6.x and the 2.8.x version, I thought I had to "fastboot erase cache" the second time installing TWRP but I am still getting this stuck "htc one" boot screen.

1. For some reason, now the slide down notification works, home button works as intended. Which is good.

2. Getting root after RUU, this is where I am a little fuzzy about. I install superSU cause TWRP asks to, but to update it, it doesn't grant ROOT. It gives me binaries are unable to update.

3 I suppose, I'll add this as well, there isn't a TWRP folder while looking at it from the pc. Does having superSU issues cause this?

4. Only thing I've tried to get out of this stuck screen was to redo the RUU, but I can't seem to do anything else after.

As I type this I am still on that "htc boot" screen, I know I am not bricked or anything, is it still "updating" or something.

What causes this? I read that "fastboot erase cache" helps with boot loops, but I've done this already. Maybe I'm going about this all wrong.

Thanks for your time!
[Sprint HTC One (M7)] niteNarmor:
I seen this on my device as well. It was weird to me as well. I did everything you stated above.

I thought back to my s-on days and flashed the boot.img then Rom.

It booted up until I had to go back and redo something. Then got stuck on bootloop. So I held the power key to make this device shut down. Did that several times.

Finally while in bootloop it would not do the power down while holding the power on/off button. So I held the volume down key (first) then the power key. Finger slipped off the volume key after about 3 seconds or so (was trying to do this with one hand). But low and behold it came out of bootloop and loaded completely.

Hope this helps?!?
[Sprint HTC One (M7)] benny3:
Download the SuperSu zip and flash it in recovery, Lollipop can take some time to boot after clearing the cache or on the first boot

http://download.chainfire.eu/696/SuperSU/UPDATE-SuperSU-v2.46.zip
[Sprint HTC One (M7)] v1ral:
Okay so go ahead and flash recovery then flash the superSU zip in recovery....

Thanks I'll try that out now.

Thanks again Benny!!!

Edit:

Thanks benny that did the trick, dang Lollipop...

Now to set-up the phone....
[Sprint HTC One (M7)] lambofgod13:
Every time or way I retry to flash the modified firmware i get the error max size download cannot load firmware, I'm s-off hboot 1.56 rooted, twrp 2.8xx any clue on what could be the issue? I've redownloaded the firmware many times so it's not a bad download.
[Sprint HTC One (M7)] v1ral:
Do you a different usb cable you can try?

I was getting these kinds of errors till I change to a different usb cable, used it to successfully RUU
[Sprint HTC One (M7)] lambofgod13:
Yes I've tried different ones. This is getting frustrating.
[Sprint HTC One (M7)] v1ral:
Alright guys..

I am sorry for all the questions.

But why can't I see my nandroid twrp files?

I only see them if I go into twrp and attempt to restore.

I've tried the newest one 2.8.0.5
[Sprint HTC One (M7)] niteNarmor:
Try a different USB port. I was also getting those errors until I changed ports.

Also make sure your zip is in the root file of your fastboo.exe and not in a sub-folder.
[Sprint HTC One (M7)] lambofgod13:
Tried different ports and cables, still get the same error.

The zip file is in the right place also
[Sprint HTC One (M7)] lambofgod13:
The problem was naming the firmware.zip .zip if you just name it firmware then move into folder it'll flash, only problem when i flashed the firmware 6xxx it erased my os luckily i had a nan to restore.
[Sprint HTC One (M7)] v1ral:
How long does it usually take?

Whats happening with mine is that there isn't the "spinning" animation progress thing, it's just stuck or seems to be stuck after the sprint sound then hangs*I believe it hangs*.

Again thanks for your time and help!
[Sprint HTC One (M7)] mswlogo:
I had this issue for a while. I did a large post on it, earlier in this thread.

I believe re-unlocking from HTC is what fixed it. Even though I was s-off I had to re-unlock.

If that does not work go through my post, it was very long but detailed and I did run into this same issue and got past it. It's not a USB cable issue.
[Sprint HTC One (M7)] Jaxp3r:
So I'm a little new to firmware updates. I've flashed ROMs upon ROMs but never had a need to do any firmware changes (which is probably biting me in the ass right now). I've read up a little on it a bit recently to try to accomplish this but did not have any luck. I tried getting S-OFF to make some changes easier, but none of the methods worked for me - nor did running HTC's manual update itself.

I tried revone but kept getting errors. I tried firewater but it is no longer supported. I was even willing to pay for Sunshine, but that said I had something wrong with my boot and wouldn't run.

Would anyone be so kind as to point me in the right direction to getting my phone updated so I can flash Bad Boyz's Lollipop ROM? Please and thank you! Below is my bootloader info if that helps with the path I go down.

Tampered

Unlocked

M7_WLS PVT SHIP S-ON RH

HBOOT-1.44.0000

RADIO-1.00.20.0315

OpenDSP-v26.120.274.0202

eMMC-boot

May 8 2013,16:30:08:-1
[Sprint HTC One (M7)] Sloth:
Rumrunner should work to get you s-off
[Sprint HTC One (M7)] vishalsheth:
Thanks. I'm rooted now. I'm facing problem with storage. Anything I try to download it says there's no storage path. I guess I'll have to flash firmware? I also don't want the Sprint Activation Setup running. How can I get rid of that?

I've RUUd my phone. I'm back to normal functioning. Thank you.
[Sprint HTC One (M7)] Jaxp3r:
I thought I tried that, but I'll check it out again when I get a chance. Thanks.
[Sprint HTC One (M7)] gabedude:
Thanks benny. Those help. I narrowed down the issue to ruuveal by testing it against Sprint_HTC_One_m7wls_4.06.651.4_RUU.zip and Sprint_HTC_One_m7wls_4.06.651.4_RUU_decrypted.zip posted in this thread by OMJ:

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

I found ruuveal has not been updated in awhile and after spending a few hours on modifying the code, messing with the bruteforce branch, etc. I gave up as several of the files are not being decrypted by that tool correctly. I am sure HTC changes their AES keys from time to time. Can you share with me how you decrypted RUU so they would extract from the archives (preferably in Linux but if you use a Windows tool I can use that and port it to Linux)? I want to be able to decrypt them from the full RUU myself and gain that knowledge.

I have successfully used your files to make the full system.img. Thanks again for those and the link to the kitchen tool plus the links to mounting the system.img as filestsem(s) on a Linux box for modification.

Besides creating an odexed/deodexed stock rom for softbrick recovery I also have a few other projects in mind where I need to be able to work with the full RUU only without a particular phone. I want to add some of my own drivers to a custom kernel for a particular aftermarket automotive performance product I have been working on that will integrate with the move towards the Linux kernel taking over the automotive space. https://www.automotivelinux.org

If you could send me a link to the tool you use or the method you used to extract the system images I would be grateful. :)

Gabe
[Sprint HTC One (M7)] gabedude:
Nevermind. I found the branch for bruutveal and I am on my way now. Thanks for the links again!

Gabe
[Sprint HTC One (M7)] benny3:
Cool , Yeah you need bruutveal i guess i should have mentioned that earlier. Glad you got it going. So you plan to make a odex lollipop stock rom?
[Sprint HTC One (M7)] jziggy101:
rom.zip - Sprint_HTC_One_m7wls_6.16.651.2_RUU_encrypted.zip

How to use:

-extract rom.zip to your adb/fastboot/sdktools folder

-from bootloader

-fastboot oem rebootRUU

-fastboot flash zip rom.zip

-fastboot reboot-bootloader

Here is the extracted 6.16.651.2 Firmware:

Full Firmware from OTA (fastboot flashable): https://www.androidfilehost.com/?fid=95916177934523626

Modified Firmware....removed recovery (fastboot flashable): https://www.androidfilehost.com/?fid=95916177934523627

Modified Firmware....removed recovery & boot (fastboot flashable): https://www.androidfilehost.com/?fid=95916177934526577

Modified Firmware, radio only (fastboot flashable): https://www.androidfilehost.com/?fid=95916177934523666

Modified Hboot from 6.16.651.2 firmware (removes red text): http://xdaforums.com/sprint-htc-one/development/mod-remove-red-text-splash-screen-t2853966

Ok its been sometime since I last flashed/rooted or anything to my M7. I am running the following:

Bad Boyz Stock rooted Odex Android 4.4.2 Sense 5.5

S-Off

Twrp 2.8.5

hboot 1.44.0000

firmware? 4.06.651.4 CL303687 release-keys

Can I use the modified firmware without the recovery ( since I have twrp installed ) to bring up my firmware? The goal will be to be on the latest firmware and then get to 5.0.2 without losing root, having to relock my bootloader etc. Is this possible from my current state?
[Sprint HTC One (M7)] waqasr:
Yes you can since you are S-off!!
[Sprint HTC One (M7)] Supertacomonkeyexplosion:
I was looking for a flashable zip for 5.05.651.2.

I'm having a horrible time trying to use RUU. Its not working on my computer.

If someone has the file or link to a flashableRUU zip, that would help out a ton.
[Sprint HTC One (M7)] benny3:
Theres a rom zip in the OP you can flash using RUU mode. Instructions are there to
[Sprint HTC One (M7)] Supertacomonkeyexplosion:
I tried that post and a pull from anouther tutorial on the help section, but I get a "signature failure" .

I was under the impression that a full "ruu" has the ROM and fimware, radio, modem all included?

Am I missing something......? I have been reading and reading and reading.....

My (cheap) windows 8 machine hasnt let me run a full RUU, but I can push files to the device.

The phone boots but only stays on for a minute or so, so I'm not even sure that a RUU.exe would work.

I appreciate the help.
[Sprint HTC One (M7)] Supertacomonkeyexplosion:
Also in the "previous" ruu section the ruu zip and exe are labeled differently . wasn't sure if that is a typo or the 5.05 isnt available....

Edit: ended up digging up my old XP machine and the ruu worked. I could not find a solution for the problems with windows 8.1 ( or my errors)

Thanks for posting the RUUs very helpful.