yashsingh1/xdaforums huggingface dataset:
[Sprint HTC One (M7)] lerenturk:
For rooting your phone you need to have a custom recovery, since you updated your phone via OTA you don't need this RUU. Make sure you have a unlocked bootloader and then flash custom recovery. Then you're good to go for rooting.
[Sprint HTC One (M7)] vishalsheth:
I was rooted during 4.3. I had loaded TWRP. Then to get OTA, I flashed stock recovery. Now I'm on lollipop but no root. So I'm confirming the procedure.
[Sprint HTC One (M7)] ccs86:
Can anyone confirm the correct baseband version for this firmware?
[Sprint HTC One (M7)] repl1ca:
1.01.20.1225
[Sprint HTC One (M7)] OMJ:
added another 6.16 firmware zip to OP...

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

if you already installed Lollipop, you don't need to flash any firmware, you already have it...so here's what you want to do...

1. make sure you're unlocked http://www.htcdev.com/

2. flash TWRP http://teamw.in/project/twrp2/171

3. boot into TWRP

4. flash SuperSU http://download.chainfire.eu/695/SuperSU/UPDATE-SuperSU-v2.45.zip

you're now rooted :D
[Sprint HTC One (M7)] neelabh75:
TWRP Updated and stuck

I updated the TWRP to 2.8.4.0 and now when I am trying to install a zip file, it gets stuck at "Deleting Cache and Dalvik Cache". I was trying to flash the stock ROM before going for Lollipop.

The bigger issue is that I have a Macbook. So I can not run RUU. exe file. How to run RUU through fastboot or adb?
[Sprint HTC One (M7)] OMJ:
I will upload the rom.zip from the RUU for flashing via fastboot
[Sprint HTC One (M7)] vishalsheth:
Yes. When I run su it pops up saying "there is no SU binary installed, and SuperSU cannot be install it. This is a problem!

If you just upgraded to Android 5.0,you need to manually re-root - consult the relevant forums for your device. "

Vishal Sheth
[Sprint HTC One (M7)] ccs86:
So, any new lollypop based Rom should include this, or it isn't a necessity? Worth flashing anyway?
[Sprint HTC One (M7)] OMJ:
here is the 6.16. rom.zip, I'll also add to OP...

https://www.androidfilehost.com/?fid=95916177934526591

only thing I would suggest is to re-flash SuperSU in TWRP

custom ROM's don't include firmware, so if u were on a older OS, like 4.4.2, and wanted to flash a 5.0.2 custom ROM, you would need to flash the 5.0.2 firmware 1st

if you installed the 5.0.2 OTA or RUU, then yes, you already have the needed firmware
[Sprint HTC One (M7)] ccs86:
Ah, that's right. I just flashed the 6.15 firmware earlier today.
[Sprint HTC One (M7)] anythingbutmine:
Sorry if this is a noob-ish question, but I'm on the Sprint M7, I have S-Off, TWRP 2.8.4.0, and the latest ViperROM 4.4.3 rooted.

I see that I will have to flash the radio and firmware first (minus the boot and minus the recovery? is that right in my case?)

But then, can you (or anyone) tell me the steps to flash to this 5.0.2 stock ROM and keep (or get back to) my S-Off, rooted, and TWRP setup?
[Sprint HTC One (M7)] OMJ:
the rom.zip is a RUU, just in another format to flash in fastboot/bootloader...I don't think this is what you want, as it will wipe everything
[Sprint HTC One (M7)] Apk07:
I'm a little lost. Do we have root yet? I've flashed the newest supersu but get nothing. And I can't remove stock apps.
[Sprint HTC One (M7)] OMJ:
This thread is for firmware only, I'm not sure about SuperSU on a stock ROM, I do not have the M7 to test...I can tell you root is working fine on our BadBoyz ROM, which will be released very soon.
[Sprint HTC One (M7)] jdjohn:
I think both you guys want a rooted stock Lollipop (5.0) ROM, but there isn't one posted yet. The RUU is stock and NOT rooted. It is what non-xda folks download over-the-air (OTA) if they choose the software update on their phone. There are a few CUSTOM rooted 5.0 ROMs in this forum, but no stock rooted versions yet...as of today.
[Sprint HTC One (M7)] gabedude:
I am working on a stock rooted rom.

So far I have:

De-crypted OTA.zip (contains 5 zip files that are also decrypted). This is the stock Odexed update RUU, let me know if anyone wants it.

My phone installed with root on the encrypted odexed rom that you cannot do much with as any root system or data customization files are removed after the device is rebooted by Android L.

Todo:

Deodex RUU.

Create rooted barebones rom (zip and maybe Aroma install).

Create Aroma installer with popular app options (maybe I am not really into the ROM development game I am doing this for a different project that needs more access than the regular SDK can give me).

Le me know if anyone wants any of the files I have created so far or plan to create.

I should note I do not use Windows tools, only Linux tools. I may create an application that is cross platform to make doing some of this easier.

-Gabe
[Sprint HTC One (M7)] ccs86:
I just wanted to mention that when I installed the 6.15 firmware over Viper One, I could no longer boot. I restored a nandroid and everything was good, someone else dirty flashed their ROM to fix it.

Not sure that it signifies anything being wrong, but just good to know.
[Sprint HTC One (M7)] repl1ca:
Did you flash the original firmware from the other day or the one posted today by [MENTION=506238]O.M.J[/MENTION] ? The original firmware from a few days ago had a new boot.img (kernel) and that's probably why it wasn't booting. [emoji481]
[Sprint HTC One (M7)] gabedude:
IF you want the OTA and Sprint Android L for now you will have to wait. You can wipe your device, update the previous version odexed rooted stock rom, Update to the previous version (make sure to use the right one if you are s-off or s-on) firmware, Update this RUU firmware (if you are s-off use modified, if s-on use unmodified);

for s-off:

boot to recovery, factory reset, flash update rom and you are done.

for s-on:

boot into previous stock rooted rom, copy the stock rom zip to root of your sdcard, go to settings and check for firmware update, wait for firmware to update and install, after first boot reboot into bootloader and factory reset, reboot into bootloader again and flash TWRP recovery image, boot into TWRP recovery, download latest SuperSu APK, use zip program to extract zip file from SuperSu apk and copy to sd, install supersu zip in twrp recovery, choose reboot system from recovery, say yes to root system.

You now have the latest rooted HTC Android L. No root apps really work though. But its nice to give the android system root access. It will learn your gestures faster, you will get more developer options to help the deep learning code, etc.

I personally like Sprint Android L over the ports from other HTC Android L roms.
[Sprint HTC One (M7)] ccs86:
Shoot, should have been more clear!

I flashed OMJs modified firmware with recovery pulled out.
[Sprint HTC One (M7)] FattySparks:
Does anyone have a copy of the Radio only firmware? Android Filehost seems to be down.

Thanks!

Edit: Never mind. It just came back up.
[Sprint HTC One (M7)] ccs86:
It looks like the latest has a version without boot. I'm assuming that overwriting the boot partition is what tripped me up.
[Sprint HTC One (M7)] benny3:
What do you mean a Odex update RUU?,
[Sprint HTC One (M7)] gabedude:
Since it is an OTA update install the previous stock Sprint Rom and firmware. This ota checks for the previous version firmware and Rom. There is a thread with the previous stock odexed Rom and firmware. Deodexed may pass the security check, but when I was trying to update the new firmware on my phone that had a custom Rom with the previous firmware the update kept failing. After installing the previous stock rooted odexed Rom plus the previous version stock recovery the new firmware was flushable via fastboot. I was unable to try just running the ruu in Windows as virtualbox was not mapping usb devices to my Windows xp vm. Vmware player does on my ubuntu with a my custom kernel and I am going to try releasing by just running the ruu exe tonight. I have no Windows boxes only virtual machines.
[Sprint HTC One (M7)] jayas.mayank:
Usb connection error!!

getting usb connection error everytime when i try to run ruu!! tried running the phone in Ruu mode ( by fastboot oem rebootRUU) !! also tried running in fastboot usb mode!! but no luck!! is there anything wrong with drivers as my device sows up when i tpe in the command fastboot devices but doesnt shows up when i type adb devices?? can anyone tell me what i have to do now?? do i have to install htc sync manager?? i have flashed latest full firmware!! also tried copying rom.zip from %temp% but still no luck!! thanks
[Sprint HTC One (M7)] tootone:
Try as I might I can't seem to get this damnable thing working;) anyone mind sending me a nandroid?
[Sprint HTC One (M7)] gabedude:
If you are rooted reflash your firmware with The stock recovery from your last firmware update. You have to fastboot oem lock your bootloader with all versions of firmwares matching a previous ruu. Then with the loader still locked fastboot flash the new firmware.

I'll post a nandroid on my Google drive later today.
[Sprint HTC One (M7)] bnasty06:
ok I'm s-on and always flash the modified firmware with no recovery or boot question is do I have 2 flash the full firmware now?

edit: tried flashing all 3 keeps saying FAILED (remote: 99 unknown fail)
[Sprint HTC One (M7)] Sloth:
You have to be s-off to flash the modified firmware.

Sent from a Glade Air Freshener
[Sprint HTC One (M7)] ezeuba:
Is there ANY kind of firmware that can be flashed s-on? I'm in a bit of a fix with my Sprint HTC One and on 5.0.2 now so Sunshine is not working for me now. Flashing a firmware could restore my radio/baseband which is the main problem I'm facing with the phone. Pardon the capitals, but it's for emphasis. Thank you.
[Sprint HTC One (M7)] repl1ca:
If you need to flash the latest radio from the new firmware, THIS should work for you.
[Sprint HTC One (M7)] bnasty06:
Ive never been s-off and have flashed every firmware just fine
[Sprint HTC One (M7)] ezeuba:
Thanks. I'll give it a shot right now. That would be "fastboot rebootRUU", then "fastboot flash zip firmware-radio-name.zip"?

Error:

fastboot flash zip 1.01.20.1225_6.16.651.2_radio.zip

target reported max download size of 1514139648 bytes

sending 'zip' (18557 KB)...

OKAY [ 2.179s]

writing 'zip'...

(bootloader) signature checking...

FAILED (remote: signature verify fail)

finished. total time: 5.035s

Flashed in CWM recovery. Still no show. Here's screenshot after flashing in recovery.
[Sprint HTC One (M7)] motoelliot:
Hey guys tried to update w modified firmware and got "FAILED remote 90 hboot pre-update! please flush image immediately. What's up with that?
[Sprint HTC One (M7)] repl1ca:
Actually you can just flash that through recovery, no fastboot needed :good:
[Sprint HTC One (M7)] davidkrocks:
How do you?
[Sprint HTC One (M7)] repl1ca:
Do you have TWRP recovery flashed on your phone? If you do, you will need to put the zip file onto your SD card, reboot into recovery, hit 'Install', and select the zip file. Reboot & profit :good:
[Sprint HTC One (M7)] copekyle:
So I keep trying to run the RUU zip and I get this message.

c:\adb>fastboot flash zip rom.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 [ 62.044s]
writing 'zip'...
(bootloader) zip header checking...
(bootloader) shift signature_size for header checking...
FAILED (remote: 32 header error)
finished. total time: 62.089s

When I go to look in the archive at the "android-info.txt" file, I keep getting a message that the archive is corrupt. I am using winrar to extract it. I have downloaded the RUU zip from multiple mirrors and all of them give the same error. Any idea what's up? I am S-off running HBOOT 1.44
[Sprint HTC One (M7)] Sloth:
Why are you extracting it?
[Sprint HTC One (M7)] copekyle:
The downloaded zip needs to be extracted to use. From the OP

So I am still trying to send a zip file, the download is a zip with in a zip.
[Sprint HTC One (M7)] Sloth:
That's for the encrypted zip use the exe the first link
[Sprint HTC One (M7)] copekyle:
Thanks. I'm in the process of making that work. I'm just not sure why I couldn't do it from fastboot like the OP said.
[Sprint HTC One (M7)] Sloth:
2 different sets of instructions
[Sprint HTC One (M7)] Sloth:
exe instructions

-Just run the .exe
[Sprint HTC One (M7)] copekyle:
I apologize but I don't think we are understanding each other.

I downloaded that file and did exactly this from the OP. This is the error given to me.

c:\adb>fastboot flash zip rom.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 [ 62.044s]
writing 'zip'...
(bootloader) zip header checking...
(bootloader) shift signature_size for header checking...
FAILED (remote: 32 header error)
finished. total time: 62.089s
[Sprint HTC One (M7)] Sloth:
I do understand....you are using the wrong file use this one

Sprint_HTC_One_m7wls_6.16.651.2_RUU.exe
[Sprint HTC One (M7)] thefritob:
So, here's a new one. I tried to relock my bootloader and it failed. It still says it "relocked" in the fastboot screen but the RUU still won't run.

C:\adb>fastboot oem lock
...
(bootloader) Lock successfully...
(bootloader) mipi display off
(bootloader) mipi_dsi_cmds_tx_ext
(bootloader) pm8921_vreg_disable function, vreg_id = 38
(bootloader) pm8921_vreg_disable function, vreg_id = 1
(bootloader) TZ_HTC_SVC_DISABLE ret = 534642044 (0x1FDDFD7C)
(bootloader) Use PSHOLD to reset device.
FAILED (status read failed (Unknown error))
finished. total time: 1.200s

Any ideas what my next step should be?
[Sprint HTC One (M7)] ccs86:
That's normal, just give the same flash command a second time
[Sprint HTC One (M7)] motoelliot:
Seems to have taken... Thanks
[Sprint HTC One (M7)] waqasr:
I have a question!!

Guys I am getting error when I tried to flash the modified firmware.

I am Son with unlocked bootloader. Do I need to be Soff to flash the latest modified firmware?

This it the error I get

(bootloader) read zipped android_info fail

failed (remote: 99 unknown fail)
[Sprint HTC One (M7)] xJedix:
Can the modified firmware be flashed through TWRP?

S-Off, HBoot 1.44, ViperOne 7.0.1

Thanks!
[Sprint HTC One (M7)] repl1ca:
Nope, it will have to be flashed via fastboot.
[Sprint HTC One (M7)] Aldo101t:
yes you need to be s-off
[Sprint HTC One (M7)] P_M_G:
Yes you have to be S-OFF...S-ON you need to flash the full firmware then re-flash TWRP since it will install stock recovery.
[Sprint HTC One (M7)] thefritob:
So here's what's happening.

I get to the update screen

Then after it wipes the phone I get this

My Bootloader currently says

*** TAMPERED ***

*** RELOCKED ***

*** Security Warning ****

S-on hboot 1.44.0000

I can unlock again using htcdev and it loads my rom (stock rooted) but i can't seem to get the firmware updated.
[Sprint HTC One (M7)] waqasr:
I am getting the same error when I try to fastboot flash the full firmware.

I don't know what is wrong!!
[Sprint HTC One (M7)] -MightyMouse-:
Could I possibly get the decrypted rom.zip? Looking to do some fooling around but I cant seem to be able to decrypt it.
[Sprint HTC One (M7)] motoelliot:
I updated my firmware and ROM now adb won't recognize my phone. Ideas? Please help?
[Sprint HTC One (M7)] ccs86:
Have you checked the MD5 of that download?
[Sprint HTC One (M7)] ezeuba:
Thoroughly, and no problem with the file itself.
[Sprint HTC One (M7)] ccs86:
Same here.[emoji52]
[Sprint HTC One (M7)] motoelliot:
Im updating my sdk tools,hope that works... gonna take a while. ..
[Sprint HTC One (M7)] ccs86:
Any luck?
[Sprint HTC One (M7)] niteNarmor:
These questions are probably going to look like noob questions. Met with ridicule and much laughter. The reasons for asking such questions though is knowledge. I want to learn about the processes and not just do. So here it goes:

1: What is the difference between the "normal" RUU and the "encryted"?

2. What does it mean to flash a modified firmware and modified Hboot?

3. Do you have to flash the previous RUU's to be able to flash the lastest RUU? (In case, your behind in firmware updates)

4. If S-Off, unlocked bootloader, rooted, and the such what does flashing a RUU do? Do you have to re-do everything?

Please forgive me. I am not new to flashing devices but with the HTC I am not as knowledgeable as I would like to be. The above questions have been plaqueing me for about a year now.

Thank you for anytime spent on answering these questions. Just keep the laughter to a dull roar.....
[Sprint HTC One (M7)] motoelliot:
Nope...
[Sprint HTC One (M7)] GeekasaurusWrex:
first time running a RUU and damn did this save my ass!

I inconsistently tried unlocking the bootloader, rooting and flashing a ROM using various methods and screwed up, on top of that, I accidentally deleted the entire OS off my smartphone lol. All good now, Keeping this tool with me and checking back for updates. Now to try it all again!
[Sprint HTC One (M7)] jblaze10:
Hey Benny or omj, I already had this modified firmware from a month or so ago. The one I had was smaller in size just a few mb. Just Wondering if you even know what was different about this one? I'm guessing cuz this is ruu MF,
[Sprint HTC One (M7)] FightClub:
Success!! Yes, this worked for me just perfectly. Thanks so much. You guys are the bestest! LOL
[Sprint HTC One (M7)] spacious:
Do I need S-Off to flash the modified firmware? It's unclear in the first post. It says you need S-Off or to relock your bootloader to flash the full RUU, but doesn't really say for the firmware.
[Sprint HTC One (M7)] letmeputdatipin:
Yes, u need s-off for the modified!
[Sprint HTC One (M7)] ayusharad:
i tried everything from updating drivers to flashing new firmware but RUU always fails at step 1/6 giving can't connect with device error and quit unexpectedly
[Sprint HTC One (M7)] smokin901:
is boot loader unlocked?

I always got error when tried to downgrade to 4.04 from 5.03 with 1.57 hboot

only option was to manually flash firmware then run RUU.
[Sprint HTC One (M7)] ayusharad:
Ya my boot loader was locked and I flashed firmware as well before RUU still no good
[Sprint HTC One (M7)] jstn76rs:
you could try a different cable, USB port on pc, or even a different PC.

Are you S-Off?
[Sprint HTC One (M7)] dafluke24:
Did you flash the full firmware or the modified firmware? I had to flash the full firmware and only then could I run the RUU successfully.
[Sprint HTC One (M7)] ayusharad:
I flashed full firmware

---------- Post added at 01:28 AM ---------- Previous post was at 01:27 AM ----------

Oj same PC and with same cable 4.06.... RUU worked fine when i tried tgat after this RUU failed and I'm S-ON
[Sprint HTC One (M7)] dafluke24:
Hmm I'm not sure what the problem would be then. I wonder if you can flash a previous version of the RUU? Just to make sure you're able to run an RUU successfully. Other than that, I'm at a loss
[Sprint HTC One (M7)] BiGsMiLeSKyLe:
Hey guys,

Quick question

I want to update to the new firmware,

I am on the 4.06.651.4 and hboot 1.55

I saw on the 4.06 Firmware thread that I should be on hboot 1.56 to do the update, but with the 5.03 firmware can I just fastboot flash the full firmware to have the updated firmware and hboot 1.57?
[Sprint HTC One (M7)] Tomqerz:
If you're S-Off'd,you can flash the modified firmware w/out worry about hboot version. But if your hboot is S-On,you have to relock your bootloader then flash the full firmware. You flashing higher version (4.06.xx to 5.03),hboot version is not necessary :D
[Sprint HTC One (M7)] benny3:
Make sure you have adb dubbing checked and fastboot unchecked...
[Sprint HTC One (M7)] ayusharad:
You mean USB debugging?
[Sprint HTC One (M7)] benny3:
Yes ...lol sorry bout that but you knew what i meant,:good:
[Sprint HTC One (M7)] Onethirtytwo:
Thanks for the firmware/radio, I

I just realized how out-of-date mine were, luckily im s-off as my Hboot is at 1.44...

Is this the most recent version of the firmware/radios for Sprint (I'm seeing a 6.x.x, but it seems to be UL only)?
[Sprint HTC One (M7)] Smac7:
Is there anyway to flash this through fastboot? I'm on a mac and i'm trying to unroot and return to stock.
[Sprint HTC One (M7)] benny3:
I think you can flash the decrypted in fastboot
[Sprint HTC One (M7)] P_M_G:
Are you trying to RUU? If so I'm pretty certain you need to use an RUU that is pre-lollipop (preferably one that matches your firmware IIRC).

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

1 - no idea so I won't hazard a guess

2 - modified firmware removes the stock recovery from the zip so you can keep your custom recovery (ie TWRP) if you are S-OFF. Modified Hboot usually is just something cosmetic like removing the red text that annoys everyone. There are other issues about the Hboot (usually involving the ability to gain S-OFF if you haven't previously) but they are over my head honestly.

3 - I believe you have to RUU based on your current firmware - seems like those trying to RUU with the new 6.16 are met with failure, again not sure why technically though.

4 - yes it wipes you completely so I'd avoid unless you really want a fresh start. I only use RUU to get phone back to stock in prep for selling or donating.
[Sprint HTC One (M7)] mikevillarroel:
Simple question here, just upgraded to firmware 6.16.651.2 but when I go check the build number shows 6.09.401.5, does it mean the update did go through? am I on latest firmware?
[Sprint HTC One (M7)] Sloth:
Build number is based on the rom you are using.

If you were to flash a 6.16.651.2 rom it would change
[Sprint HTC One (M7)] mikevillarroel:
Oh perfect thanks, so I'm good then, any way to check the firmware?
[Sprint HTC One (M7)] letmeputdatipin:
Boot into ur bootloader and check it there.
[Sprint HTC One (M7)] mikevillarroel:
I see the radio but no the firmware on the bootloader
[Sprint HTC One (M7)] letmeputdatipin:
U must flash a ROM with the new firmware.
[Sprint HTC One (M7)] muneebrocks:
same thing happened to me I flashed modified firmware without recovery