yashsingh1/xdaforums huggingface dataset:
[T-Mobile HTC One (M7)] funks:
Here's how I got it working on T-MOBILE (S-OFF with this RUU)

Couldn't do it in windows, kept getting (Windows 7)

"FATAL: Download updated package at www.rumrunner.us"

Even though

* Windows Firewall Disabled

* No Anti Virus Program (in my case, I uninstalled Microsoft Security Essentials)

* HTC Sync Installed for Drivers (then uninstalled, ADB and FASTBOOT command worked without issues)

* RomRunner 0.5 used (ran it as "administrator")

Finally got it to work by doing the following (had to do it in LINUX)

1) Ran T-MOBILE RUU (which restored it back to stock with HBOOT 1.55, and 3.24 OS)

2) Went to HTC DEV and got my Unlock Code

3) Unlocked bootloader in FASTBOOT (fastboot flash unlocktoken Unlock_code.bin)

4) Flashed Recovery in FASTBOOT (fastboot flash recovery openrecovery-twrp-2.6.3.3-m7.img)

5) Let it reboot to Android

6) adb push UPDATE-SuperSU-v1.80.zip /sdcard/Download

7) adb push Bulletproof-m7-6.1.zip /sdcard/Download

8) adb reboot recovery

9) Using TWRP - install UPDATE-SuperSU, and also install the Bulletproof Insecure Kernel

10) Let it reboot to Android

11) Made sure fastboot was disabled

12) Made sure usb debugging was enabled

13) Made sure "Verify Apps" was unchecked

14) Made sure "Unknown Sources" was checked

15) Made sure supersu "automatically" granted ROOT REQUESTS

16) Made sure there is no lock screen

17) Boot with UBUNTU Live CD (13.10 i386- burn it to a DVD and boot with it - and pick Trial)

18) Downloaded RomRunner 0.5 for Linux using firefox

19) Opened up terminal (by going to search, then terminal)

20) Typed the following in the terminal

> cd Downloads

> tar zxvf romrunner_HTC_0.5.0.tgz

> sudo ./soju

21) Let it do it's thing - got S-OFF and able to flash different firmwares without issues.

---------- Post added at 07:56 AM ---------- Previous post was at 07:30 AM ----------

To remove S-OFF (and removed RE-LOCKED, or TAMPERED info from BOOT LOADER screen) - here's what I did (coming from S-OFF setup)

> flashed - Guru_Reset_M7_1.27.531.11.zip

(from twrp)

> relock the device

fastboot oem lock

> flashed - T-Mobile firmware 1.27

fastboot oem rebootRUU

fastboot flash zip firmware.zip (probably have to do this command twice)

> reboot it and let it reconfigure, then push revone to it

(remove relocked) with revone

revone -l

(removed tampered) with revone

revone -t

> Run this RUU (which complete restores the device to stock with HBOOT 1.55 and OS 3.24) then immediately did

> fastboot oem writesecureflag 3 (only do this command if you restored let the RUU run complete and your device is completely stock).
[T-Mobile HTC One (M7)] thecityboy781:
will this RUU work with a HTC one that has no OS?
[T-Mobile HTC One (M7)] emd2009:
when i run the ruu, nothing happens
[T-Mobile HTC One (M7)] wolfepakt:
So I am reading this right. since I am S-OFF this will totally return me to stock. Re lock and everything EXCEPT changing the S-OFF.

Right?
[T-Mobile HTC One (M7)] sshede:
Yeah. Fastboot oem lock, run the ruu, flash the unlock token again. Retain S-Off.
[T-Mobile HTC One (M7)] Ebojager:
Im on stock 4.4.2 s-on etc. No root. I couldn't run this ruu to get back to 4.3 could I? Sorry for stupid question.
[T-Mobile HTC One (M7)] harshdev:
Hi [MENTION=5362940]trjlive[/MENTION] were you S-OFF earlier on 3.06.1700.10 when you did this or you were S-ON. I am having same issue currently having GPE 4.4.2 but I am unable to go back to 4.3. RUU 4.1.2 installs and runs flawlessly as it is based on hboot 1.44 but when I OTA or directly flash 4.3 RUU (zip/exe) it is hung on htc screen. My primary doubt is that in 4.3 the hboot is upgraded to 1.55 and that is creating a problem. However as per [MENTION=2605798]nkk71[/MENTION] he said that it might be kernel. Any thoughts or help is much appreciated.
[T-Mobile HTC One (M7)] trjlive:
When I was 3.06.1700.10 I was s-on. This was the whole point of my process, was to get to version 3.24.531.3, because there was a Rumrunner for that specific version. Once I got to that firmware, the rest of the s-off was easy. It was just tricky figuring out the intermediate steps, using what firmwares and RUUs I had available. But I think now Rumrunner works with any 1.54/55 hboot and firmware, so this process shouldn't really be necessary anymore. You say you can run RUU for 4.1.2 with hboot 1.44? Then just run that, and then use Revone to s-off hboot 1.44. Once you s-off 1.44, then you can install any firmware/hboot you want. Once you get s-off, you'll have it unless you specifically turn security back on.

Also, I think you are mixing up different version numbers that have nothing to do with each other. The version of Android (4.1, 4.2, 4.3, etc) have nothing to do with the hboot and firmware. So to answer your question, 4.3 is not upgrading the hboot to 1.55. The firmware package is what includes the hboot. I assume you are trying to get s-off? So just forget about the Android version numbers, at this point they're irrelevant. What is important is simply matching the firmware/hboot to the s-off tool you are using (Rumrunner, Revone, etc). Figure out what firmware options are available for your device, then choose which tool to use. Run the RUU you need, then run the s-off process.

The only reason I had a difficult process is that I had flashed a mismatched firmware with s-on, which prevented me from running RUU that matched my device's CID and MID, since they were mismatched. I had to get everything matching again. If you're not in that situation, then this is much easier than you're making it.

So here are my questions. You can run the following command with your device in fastboot mode to get all these numbers:

fastboot getvar all

1) What is your current firmware?

2) What is your current hboot?

3) What is device MID and CID?
[T-Mobile HTC One (M7)] harshdev:
Ok I was on 4.3 Sense with hboot 1.55. I used rumrunner to achieve S-OFF.

1. My current firmware is 4.4.2 GPE (3.62.1700.1)

2. Current hboot is 1.54 that gets installed stock from 4.4.2 GPE RUU

3. MID is 07130000 | CID is Supercid | I am on Wind Mobile Canada

(bootloader) version: 0.5

(bootloader) version-bootloader: 1.54.0000

(bootloader) version-baseband: 4T.21.3218.21

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 3.62.1700.1

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

(bootloader) serialno: ##########

(bootloader) imei: ##########

(bootloader) meid: 00000000000000

(bootloader) product: m7_ul

(bootloader) platform: HBOOT-8064

(bootloader) modelid: PN0713000

(bootloader) cidnum: 11111111

(bootloader) battery-status: good

(bootloader) battery-voltage: 4286mV

(bootloader) partition-layout: Generic

(bootloader) security: off

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: dirty-0e82187e

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.063s
[T-Mobile HTC One (M7)] trjlive:
Your firmware is 3.62.1700.1. The Android version 4.4.2 has nothing to do with firmware.

You need to separate these two things in your mind. This will only lead to confusing yourself and others trying to help you. Firmware/hboot and ROM have nothing to do with each other.

You should say: "My current firmware is 3.62.1700.1". That's it, that's the firmware number.

Also, your hboot has nothing to do the Android version. The hboot 1.54 gets installed from 3.62.1700.1 RUU.

You should say "Current hboot is 1.54, from the 3.62.1700.1 firmware."

The RUU you installed just happens to have Android 4.4.2, but keep in mind that there are other Android 4.4.2 RUU's that install other firmwares/hboot versions. There are 4.4.2 RUUs that install firmwares in the 4.x.x.x range with hboots 1.55 and 1.56.

So you already have s-off? Then I am confused as to what you are trying to accomplish. If you have s-off, and especially since you have super-CID, then you can flash any firmware you want. You're already running the GPE firmware, hboot, and ROM.

So let me ask you this: What do you want your end result to be? What version numbers are you trying to get to?
[T-Mobile HTC One (M7)] harshdev:
Thanks alot for the clarification, I will keep that in mind. What I want to achieve is go back to stock. As you see I am on Wind Mobile and there is no stock rom available for wind mobile I installed T-Mobile RUU from here:

http://www.htc1guru.com/dld/ruu-zip...0-20-10-40-1150-04-release-324846-signed-zip/

Which installs correctly and the phone is up and running perfectly fine.

After above installation I changed my CID to TMobile CID to get the OTA. The OTA downloads properly. No errors during installation. However, the phone gets stuck on htc logo and does not proceed with the boot.

Next I tried the Tmobile jb43 RUU directly

http://www.htc1guru.com/dld/ruu-zip...157-04_release_336982_signed_2_decrypted-zip/

RUU the phone sits there on HTC logo and does not boot. I tried waiting for over 30 mins.

So what I am not sure of is why the phone is getting stuck and is not booting.
[T-Mobile HTC One (M7)] trjlive:
Ok let me see what I can find for your device and carrier. I have to run out and pick up dinner for me and my girlfriend, but when I get back I'll do a little research. We should be able to get you back to stock pretty easily since you're s-off. Just don't flash any different firmware until I figure out which direction to go. :) Because there's no stock for Wind Mobile, it won't be 100% like you bought it out of the Wind Mobile store. But we should be able to get you back to stock International condition, which is as close as can be done without an OEM RUU available. So are you wanting stock HTC Sense, or stock Google Play Edition? Both are possible, just different routes. Give me an hour or so and I'll try to have some direction for you.
[T-Mobile HTC One (M7)] harshdev:
Oh thank you man, I really appreciate your help. I am already on stock Google Play Edition so i want to go back to HTC Sense. I know that people are switching very easily between RUU's as they are soff and unlocked bootloader. However, I am unable to do the same thats what is p** me off :). Sure take your time. I am on eastern tzone so if its late will sleep but will keep checking the thread.

Thanks once again for all the help sir.....
[T-Mobile HTC One (M7)] harshdev:
Hi [MENTION=5362940]trjlive[/MENTION] did you have a chance to look into? Also just wanted to say I won't be flashing any other firmware until i hear from you. Thanks.
[T-Mobile HTC One (M7)] trjlive:
Sorry, we had an earthquake here in LA last night, another this morning, and even several more today and tonight. They just keep coming, and there have been some power outages. My Internet at home as been out until about an hour ago, so I wasn't able to do any research about this. Now that I've got it back up, and before (if) it goes out again, I have to finish up a project for a client that I had been planning to do earlier today, so I'll have to take a look at this tomorrow. Again, sorry for the delay, I'll try to get you some answers tomorrow (if the big one doesn't hit overnight). They were relatively moderate earthquakes, 5.1 or something like that, so damage has been fairly mild, but here in Orange County, there've been power/cable outages and water/gas leaks and shutoffs. So it's been more just a pain in the ass than anything else. The last 24 hours have been lots of earth-rumbling all around LA/OC. Just hoping they stay moderate, and nothing big!
[T-Mobile HTC One (M7)] harshdev:
Hey sorry! Came to know after I had sent this message. Hope friends/family are ok. Take care man...this can wait.

[MENTION=5362940]trjlive[/MENTION] friend did you get a chance to look into this.
[T-Mobile HTC One (M7)] harshdev:
Hey buddy [MENTION=5362940]trjlive[/MENTION] if you have time can you please help me? Can you please point me I am directionless as of now.
[T-Mobile HTC One (M7)] KingRedmer:
Could someone point me in the direction of a 4.19.531 ruu if available? My device is soft bricked and I used this last night to fix it. After trying to install a rom it bricked again, but after doing an ota update, so now this one doesn't work. Am I thinking about that right? Or is there some other method I'm not thinking of. Thanks for any help
[T-Mobile HTC One (M7)] Behold_this:
http://d-h.st/gCR
[T-Mobile HTC One (M7)] KingRedmer:
Thank you very much. I'll update this if I get it working. I really appreciate it.
[T-Mobile HTC One (M7)] detox702:
Trying to get this working for a co-worker. So far, I get the HTC screen, the T-Mobile screen, then the "HTC O1ne" splash. It just sits there. Phone has never been unlocked/rooted/anything, completely stock. RUU in the op crashes at "couldn't verify", and the most recent posted by Behold_this gets to step 1/5 and then crashes. No error numbers. Win 7 Home Premium. I've installed and removed HTC Sync, and the phone itself is installing Fastboot drivers. It reboots "to bootloader" but it's just the black screen with HTC in the center.

Trying to flash because it appears there's no OS on the phone. No idea what he did, possibly dropped it or something. At post time, it's been stuck on the "HTC O1ne" screen for 5 minutes after a factory reset attempt from fastboot.
[T-Mobile HTC One (M7)] gustav30:
I had no idea there was an official 4.19.531.xx ruu for T-Mobile. Is this the real deal, or did someone make this? Has it been tested?
[T-Mobile HTC One (M7)] revoc3:
I had no idea as well! But its from Behold_this, (who I sorely regret losing to the M8 threads :P) so I trust it. I have no idea how he got his hands on it considering its not up anywhere else. Since its a signed exe, I would be highly doubtful it was cooked, but I don't know anything is possible. I think Behold must have connections! :D
[T-Mobile HTC One (M7)] Behold_this:
Lol I'm nobody special. On a related note, I haven't seen anybody post this yet, but stumbled across it, so...One last thing:

http://d-h.st/CKA
[T-Mobile HTC One (M7)] krook6023:
This looks to be the 5.14.531.1 RUU....nice!
[T-Mobile HTC One (M7)] krook6023:
Yes this is in fact the 5.14 RUU and it works great. I was on the 4.19 hboot and firmware s-off and running insert-coin.

The 3.24 RUU would not work...it might have worked if I had downgraded my firmware to match and or relocked my bootloader but I really did not want to do all that.

Was going to try the 4.19 RUU then I saw this...worked great...no need to relock the bootloader or flash stock recovery...just ran the 5.14 RUU and I was back to stock.
[T-Mobile HTC One (M7)] CB620:
Will be flashing this in a little while. Gonna just root.
[T-Mobile HTC One (M7)] metropical:
will this RUU work for me?

currently

I'm unlocked/rooted and S-Off with TWRP 2.6.3.3.

HBOOT 1.55

FW 3.24.531.3

CID TMOB010
[T-Mobile HTC One (M7)] chillybean:
When I run the ruu on my winblows 7 box it just crashes :/ im native to Linux so not sure wtf is happening ...the setup loads then just stops when the progress bar fills ..then a prompt comes up saying the program didn't install correctly ...tried changing comparability etc ..and nothing...it doesn't even give me an error number. Traveled through the post and saw nothing relating..is there anything to return me to stock made for Linux ?

M7_UL PVT SHIP S-OFF RH

CID-T-MOB010

HBOOT-1.55.0000
[T-Mobile HTC One (M7)] majmoz:
Your RUU might be corrupted. You could try to download that one again or get the latest RUU at this post! I would also reboot the computer before running the RUU. Sorry, I don't use Linux so I can not help you there.
[T-Mobile HTC One (M7)] chillybean:
Thanks after a brutal battle with winblows I finally got it going..reason why I have to return to stock....I plug my phone to charge n it over heated so bad it cracked the uni-body where the metal meets the plastic near the camera..now my camera is near sighted and my volume buttons are shifted so they dont work...i had to refrigerate the phone for awhile so i can turn it on n get all my stuff off...I've only heard stories of this n now it happens to me ..fml
[T-Mobile HTC One (M7)] metropical:
anyone have a .zip for this?
[T-Mobile HTC One (M7)] PodgeD:
Hey, I'm SIM unlock my phone but I changed it to CM11 so need to return to stock. I've tried running the above RUU but it always stalls on the second reboot and stays at the HTC screen. I've read earlier in this tread it could be because I'm using windows 8.1. Fastboot and everything else I use works tho? I can't get s-off because I have hboot 1.57.

CID: T-MOB010 (PN0713000)

Kernel: 3.4.82

Recovery: CWM 6.0.4.8

Would it work on windows XP?
[T-Mobile HTC One (M7)] crazyloco:
i keep getting the 155 error and i don't really know what to do next... i re-locked my bootloader, and i still have twrp installed... i just can't flash anything and it says cannot mount system

also does anyone have a mirror to the 4.19 ruu or the 5.14?
[T-Mobile HTC One (M7)] majmoz:
Here is the RUU 6.10.531.9. The 155 error means you are running the wrong RUU, it is lower than the version you have on your phone.
[T-Mobile HTC One (M7)] darkmeridian:
Latest RUU

I looked through the previous threads and didn't see a link to the most up-to-date RUU for the T-Mobile HTC One M7. It is available straight from HTC at this link:

http://www.htc.com/us/support/htc-one-t-mobile/news/

The RUU can be downloaded directly here:

http://dl3.htc.com/application/RUU_...4_10.33E.1718.01L_release_387953_signed_2.exe

I can confirm that this RUU works as advertised. You only need to get your device into fastboot.
[T-Mobile HTC One (M7)] tonyzoc:
Same here...and my current rom is Viper 7.0.1
[T-Mobile HTC One (M7)] majmoz:
Did you see this post? And if you are S-ON you will have to lock your bootloader first.
[LG Optimus 4X HD] penguin449:
Dude, i think you missed out the clarification for the users on whether or not they need to use the EPRJ Kernel and if anykernel will still work or normal kernels will work etc. Because your bound to have the first person to ask a question will either be, "How do i declare java paths" and "Will 'kernel name here' work with it", this isnt me asking, more of an fyi post (Y)

I do apologize about it, but saves you the time and effort of answering the question every day ;)

MOD EDIT: watch your language please.
[LG Optimus 4X HD] Flying_Bear:
np, thanks for the tip. i'll add in OP that it works with any kernel ;)

MODERATOR EDIT: [MENTION=5102939]penguin449[/MENTION] watch your language
[LG Optimus 4X HD] sir_fz:
I flashed Vanir nightly 171013 with Optimus Prime 2.70 kernel and telephony was completely disabled. I was not able to find or register to the mobile network. I tried modifying the RIL file as explained in this post; initially with the "new" file which didn't seem to solve the problem (still didn't get signal) but I didn't wait I immediately tried flashing the ROM with the "old" RIL instead. Initially there was no signal although I was able to find networks, but after a reboot the phone finally managed to connect to the mobile network.

I'm not sure whether it would've worked after a reboot with the "new" but I'm guessing if it's working with the "old" RIL I got nothing to worry about right?
[LG Optimus 4X HD] Flying_Bear:
Vanir is 4.3.1 while OP is for 4.3, i think thats your problem. Different RIL would not help in that case. Flash Anykernel version of OP, or find a version repacked with 4.3.1 ramdisk. Good luck!
[LG Optimus 4X HD] sir_fz:
As far as I understood, the 171013 version did not have the RamDisk issue so I figured the CM10.2 version of Optimus Prime kernel should've worked correctly?

So I get it from you that if I flash the original rom with the AnyKernel version of OP it should work fine? (no need for any RIL modifications?)
[LG Optimus 4X HD] Flying_Bear:
Yep, anykernel versions of all our kernels xcept iodaks should work on any android version without any modifications.
[LG Optimus 4X HD] MilkyJoePD:
Is there a way to do this with Linux?

If not, how about uploading modified telephony-common.jar for CM ROMs?

I tried just replacing the whole telephony-common.jar file but I couldn't send or receive any messages. Everything else seemed to work though.
[LG Optimus 4X HD] Flying_Bear:
not sure really, since i havent worked on linux systems.

and i dont think telephony-common.jar is universal for all roms (i might be mistaken though), so there's no use to upload it. however, if you want, upload your original telephony-common.jar file here and i'll do my best to mod it for you!
[LG Optimus 4X HD] MilkyJoePD:
I meant it would be a good idea to have a place to download the modified files for specific ROMs.

Here's the (unmodified) file for Vanir.

https://app.box.com/s/embcq9kuemfdkdb1qw63

Thanks.
[LG Optimus 4X HD] Flying_Bear:
well, we have way too much roms for me to download each one and replace the RIL ^^

anyway, here's your modified telephony-common ^^ enjoy!
[LG Optimus 4X HD] MilkyJoePD:
I suppose there is a lot.

I'll test the Vanir one and report back.

If it works then there's a start. I can send messages so it works so far. The only thing keeping me from staying on a CM ROM is the random signal loss.
[LG Optimus 4X HD] Flying_Bear:
check it out, this should fix that issue completely. and report when you have time ^^
[LG Optimus 4X HD] penguin449:
If you want some 4.3.1 repacks done i can do them? or if you want some experience, i have the tools to swap ramdisks on windows in my signature that you could use...
[LG Optimus 4X HD] MilkyJoePD:
In CM ROMs I get crazy data switches from 3g to E and G. Everything is good so far. Time will tell...

---------- Post added at 01:22 AM ---------- Previous post was at 01:08 AM ----------

If you can then that would be great. A download for each CM ROM would open up custom ROMs like never before.

Sort out the SD card/internal memory paths and stock ROMs would be not worth installing.
[LG Optimus 4X HD] Flying_Bear:
if you've got the time and the will, be my guest - however, i don't think it's quite worth it. Not many people have this issue, and those that do would be better off fixing it by themselves then downloading aged nightlies for the rom they're looking for.

hm, switches from 3g to 2g seems to show that there is a bad connection where you're at. try enabling 2g only or 3g only in custom rom options or quick tiles, most roms support it these days. that should save your battery for few more %.
[LG Optimus 4X HD] MilkyJoePD:
Just wanted to say that since replacing the file I haven't had to reboot once to get SMS or network to work.

That's over a month, whereas I was having to reboot about every 2 days.

The G/3G switching has improved, but still more sensitive than stock.
[LG Optimus 4X HD] gerciolisz:
hey what if.... there is no x3ril.smali?XD there is only ril.smali or many others

edit: its ok there just x3ril was missing
[LG Optimus 4X HD] ottomanhero:
I'm on a odexed ROM (mokee 4.2.2 release) so I don't know what to do with classes.dex file multitool generates.It was meant to be used for deodexed telephony-common.jar files.So I tried these steps:

1_)deodex the ROM (using deodexer 4.3),

2_)implent RIL

3_)odex the ROM(using universal odexer 6.3.1) again which I failed to do as something was wrong with decompiling before odexing.This is probably happening due to deodex process.

I got bootloop after odexing the ROM.So I'm curious if there is a way to do this on an odexed jar file without having to deodex first.

I also tried to simply delete the odex & jar file and replace it with deodexed and eprj RIL implented jar file but the rest of the ROM was odexed so it gave me a bootloop.

I don't know much about these stuff, but I did my best searching for a solution and I'm out of ideas.All I want is to have an odexed rom with EPRJ RIL implented, I'd appreciate any help
[LG Optimus 4X HD] Flying_Bear:
unfortunately, i encountered the same issue, and it's beyond my knowledge on what to do with odexed roms. i bypassed the issue by using a nightly which came after the stable was released (not sure if there are any for mokee though)
[LG Optimus 4X HD] ottomanhero:
There are a few nightlies which are actually newer than the release version I'm using.Well hope they're stable, thanks. :)