yashsingh1/xdaforums huggingface dataset:
[One (M9) General] Snookers:
Hi there,

Brand new to HTC's scene (coming from a Nexus 4) and there's quite a lot that I'd like to know but couldn't find the right keywords to google.

My understanding is that HTC does not allow you to fastboot into recovery, and instead requires you to actually install TWRP. Then to get back to stock, I wipe the partitions and flash the older base with the correct CID? As well, the previous CM12.1 builds noted a base that was required but newer builds simply leave out this number. What was the reasoning for that?
[One (M9) General] SaHiLzZ:
Not following what you are trying to achieve. You CAN boot into stock recovery and do a factory reset. But can not wipe system/install roms with stock recovery.
[One (M9) General] Snookers:
Before, you were allowed to boot into TWRP without actually flashing it, like a one-time thing. I was also asking if going back to stock (system & recovery) is as easy as wiping partitions in TWRP and flashing the nandroid base without wiping. I have 2.11.661.5 for Telus, so once I get this straight I'd be happy to

I also read that there are hardware issues if your firmware does not match the firmware of the ROM (ex CM). If I happen to flash CM and all goes well, what would the firmware have to do with it?
[One (M9) General] tiberger:
I need help ... I have a Htc One M9 on Telus CID - TELUS001 1.32.661.31

Im unlocked and a have a custum Rom and twrp-2.8.7.0-hima.img S-ON ,

I need going back to stock for OTA Update but I do not know how.

i have download your recovery.emmc.win For Telus in the first page but i dont know how instal it :s

plizz help me
[One (M9) General] efrant:
Return to stock for Rogers M9

I also have a few questions about returning to stock. (Excuse my ignorance, but this is my first HTC device in 5 years.)

Here is the contents of my screen when in download mode:

*** LOCKED ***

htc_himaulatt PVT S-ON

LK-1.0.0.0000

RADIO-01.01_U11440221_59.04.50303G_2_F

OpenDSP-v20.2.6-00452-M8994_0216

OS-1.32.631.6

Mar 18 2015,20:24:24(493992)

Question 1:

What is the difference between these two files?:

0PJAIMG_HIMA_UL_L50_SENSE70_ATT_Rogers_WWE_1.32.631.6_R2_Radio_01.01_U11440221_59.04.50303G_2_F_release_426412_signed.zip

0PJAIMG_HIMA_UL_L50_SENSE70_ATT_Rogers_WWE_1.32.631.6_R2_Radio_01.01_U11440221_59.04.50303G_2_F_release_426412_signed_2_4.zip

Question 2:

If I get root, but want to return to full stock to take an OTA update, can I return to my original configuration using one of the two files above, and the OTA will complete successfully?

Question 3:

Generally, how long after an OTA gets rolled out, do we see the RUU files floating around?

Question 4:

Does the bootloader need to be locked to use an RUU?

Question 5:

If I get S-OFF, does that mean I can flash RUU's that are older than my firmware version?
[One (M9) General] SaHiLzZ:
1. Dont know the difference.

2. If your phone is S-ON, you can only use RUU of the same version or higher, but not of lower version. If your phone is S-OFF, as long as MID and CID match, you can flash ANY RUU to downgrade or upgrade.

3. RUU files are very hard to come by.

4. Bootloader needs to be relocked for RUU flash, if S-ON. If S-OFF, can be unlocked/relocked.

5. See #2.
[One (M9) General] besworks:
Could someone here please provide a link to just the recovery image from build 1.32.661.6? This is seeming to be impossible to find.

EDIT: Nevermind, I extracted the recovery image from the build 1.32.661.31 OTA zip and it did the trick.
[One (M9) General] natethefish:
Hey there, I have a Bell device with stock 2.11.666.2 but no clue how to extract it from said device.... been googling for hours trying to figure this out. If one of you guys would be able to guide/point me in the right direction I'd be happy to upload it.

Cheers!
[One (M9) General] Snookers:
Is the 1.32.661.6 recovery the same recovery as 2.11.661.2? I have a 2.11.661.2 stock system_img TWRP backup before it was mounted r/w, and currently running a different ROM. I would like to take the Telus OTA from 2.11.661.2 to the Marshmallow firmware when it comes out after reverting to stock 2.11.661.2.

Thanks!
[One (M9) General] Flippy498:
They're not the same. You will have to look for a 2.11.661.2 recovery since the Android 5.0 recovery cannot install OTAs on Android 5.1.
[One (M9) General] sssssbarn:
Use this, recovery from the ota

Link : https://drive.google.com/file/d/0B0US5WgszgfdaHZpU1FDVlI1LW8/view?usp=docslist_api
[One (M9) General] Snookers:
I found the OTA dump for Telus' 2.11.661.2 from the recovery you posted. However, I found out that I'm actually on 2.11.661.5 (blah sorry), and there doesn't seem to be anyone else that has this haha
[One (M9) General] Flippy498:
I'm not 100% sure but the 2.11.661.2 Recovery should be fine though. I don't think that HTC has implemented that much changes between version 2.11.661.2 and 2.11.66.5.
[One (M9) General] sssssbarn:
No worries, i have that one pending but won't install because of my root access. I'll extract the recovery tomorrow for you
[One (M9) General] Flippy498:
You quoted the wrong person. :p I don't need that recovery.
[One (M9) General] sssssbarn:
My bad flippy!

The 2.11.661.5 ota did not have a new recovery file, ota available here : https://drive.google.com/file/d/0B0US5WgszgfdUlplUXJibkJTUnM/view?usp=docslist_api

If you feel like doing me a huge favour could you pull an ruu for this version once back to stock? Ruus for Telus phones are quite hard to come by
[One (M9) General] Snookers:
Thank you very much!

Unfortunately, it might be a while before I return to stock as Telus releases their Marshmallow on January 21st. I'll be sure to brew an RUU for it then after I figure out how. Thanks!
[One (M9) General] sssssbarn:
No worries!

I actually went s-off since that post, converting to developper edition, but thanks
[One (M9) General] peekolo:
Hi [MENTION=4744082]TheMegosh[/MENTION],

Thank you so much for the wind nandroid! That's fantastic. However, I need the radio.img to go onto the 3G AWS for Wind. Do you happen to have it or could you pleeeease help me to extract it out and share it please?

THANK YOU very much in advanced!

peekolo
[One (M9) General] coolscat:
Recovery

I'm trying to relock my bootloader, but from what I know I need a stock recovery? This doesn't have the stock recovery does it? I'm also a little confused about if I can still get updates without a stock recovery. Do you know if that's possible and in what scenario that would work?

---------- Post added at 01:05 AM ---------- Previous post was at 12:41 AM ----------

Is your phone still locked? Did you flash a recovery yet? If you didn't that recovery file is gold. Please get back to me about whether you've flashed tarp recovery or not.

---------- Post added at 01:25 AM ---------- Previous post was at 01:05 AM ----------

If this guy hasn't rooted yet or flashed twrp recovery does this mean he has the recovery I need to get Ota updates? If that is the case how would he get a flashable copy of his recovery. It's been a while Since this post and it sounds like he was ready to root, but I'm hopeful that he hasn't yet.
[One (M9) General] efrant:
My current firmware is this:

hTC download mode

*** UNLOCKED ***
htc_himaulatt PVT S-OFF
CID-ROGER001
LK-1.0.0.000
RADIO-01.02_U11440601_77.04.50715G_2_F
OpenDSP-v29.2.6-00492-M8994_0702
OS-2.11.631.2
Jul 23 2015, 19:54:48(579410)

I have the corresponding stock recovery (and an untouched system image).

I also have these two RUUs:

0PJAIMG_HIMA_UL_L50_SENSE70_ATT_Rogers_WWE_1.32.631.6_R2_Radio_01.01_U11440221_59.04.50303G_2_F_release_426412_signed.zip

0PJAIMG_HIMA_UL_L51_SENSE70_ATT_MR_Rogers_WWE_2.11.631.2_Radio_01.02_U11440601_77.04.50715G_2_F_release_449106_combined_signed_2_4_7.zip
[One (M9) General] SaHiLzZ:
As your phone is S-OFF, you can use EITHER of the RUU to go back to complete stock. Do you mind PM'ing a private link for 2.11.631.2?
[One (M9) General] Flippy498:
Because it hasn't been stated since post #101: Combined RUUs can only be used with S-OFF. Those are not official and therefore lack the correct HTC signature. Edit: I missed the fact that your phone is already S-OFF.

(Where did you get that combined RUU from? I always look for new RUU sources and haven't seen that one before.)
[One (M9) General] efrant:
I'm just going to restore my system image backup and recovery once I get the OTA. Seems just as easy to me.

Will do.

Interesting, thanks. What is a combined RUU then, if it is not official? Is it just some user putting it together himself?

I contacted HTC (Canada/US) complaining that there are no RUUs for Canadian (specifically Rogers Wireless) devices, despite having so many American RUUs on the website. And they sent me a link to it. :) I can PM you a link to it if you want.
[One (M9) General] coolscat:
I was under the impression that I was unable to go s-off. I need to send my phone in due to stuck pixels in the middle of the screen. I was just going to relock And hope for the best, but if I go s-off that means I can get locked instead of relocked? Where did you find the steps To do it? Everywhere I loo. Its said there isn't a process for the Canadian version. Any help would be much appreciated. if anything, just sending a copy of the stock recovery would be enough if your not willing or able to help me with my main dilemma.
[One (M9) General] Flippy498:
That's at least my guess of their origin.

Thanks but living in Europe and using the WWE firmware I don't need Canadian RUUs. I thought there was a mysterious new source I didn't know. :p Nevertheless I can share some Canadian RUUs with you guys. ;) In around 1 hour I can give you a link to a "normal" 2.11.631.2 RUU and around 5 to 6 hours later one for a 2.11.666.2 RUU. But be aware that I didn't test them so I can't guarantee that they will work.
[One (M9) General] SaHiLzZ:
Hey, that will be excellent. Looking for forward to it, will help a tons of people who want to restore to stock. HTC Canada has announced releasing MM today for Rogers/Wind and Bell/Telus will follow soon.
[One (M9) General] efrant:
To get S-OFF, you need to either use SunShine (see here) or find someone with a javacard (I have one, so if you are in the Montreal area, I can do it for you.)

As for the recovery, which recovery version do you need??

EDIT: If you need the 2.11.631.2 recovery, you can extract it from the RUU that Flippy498 posted below. (Or I can post it later tonight when I get home.)
[One (M9) General] Flippy498:
There you go: 2.11.631.2 RUU

Edit: File removed since it seems to be broken.
[One (M9) General] coolscat:
I'm trying to extract the ruu but it says its unknown or damaged.

When i go into download mode it says I'm 2.11.631.2, but the backup i used to go back to stock was the one initially posted at the beginning of the thread, which is 1.32.631.31. I'm guessing its because my main ver is stuck at 2.11.631.2 now.

i live in Toronto so your offer is much appreciated but i cant afford the trip.

i would really appreciate if you could post the recovery later. as it stands my phone keeps rebooting everytime the screen goes off, but i haven't bricked my phone yet lol. i was able to relock the bootloader with no adverse affects, but it still says modified when i try to do the update. I used a random recovery that's not necessarily the one i should be using but its still booting into recovery and i can still use my phone albeit it keeps rebooting. i think I'm going to just live with the stuck pixels if after i call htc they refuse the warranty. its not that bothersome and ive never s-off'd a phone before and I'm guessing its complicated and than to go s-on again i hear is even more complex.
[One (M9) General] Flippy498:
You cannot unzip RUUs the way you would normaly unzip a *.zip archive. You need the latest 7-zip beta version. Right click on the RUU>7-zip>open (the second one from above)>#. Opening the file takes some time.

Edit: I would recommend you flashing the RUU. It's not a good idea to relock and/or to try installing OTAs if your phone isn't 100 % stock (which it isn't if your rom is version 1.x and your firmware 2.x). The shutting off is a result of that version mismatch, too. Besides 1.x roms don't have the OEM Unlock option which needs to be enabled if you want to re-unlock a phone with firmware 2.x. So you're stuck with that combination unless you flash a RUU or get S-OFF via java card.

Getting S-OFF is quite easy. Install Sunshine and activate the app. Done. I personally would not recommend reverting S-OFF back to S-ON due to the risk of bricks but almost everyone has a different opinion about that topic.
[One (M9) General] efrant:
To extract the recovery from the RUU, you need to use 7zip (version 9.35 or higher). Right click on the RUU and select "Open with". Note there are two "Open with" entries. You need to select the one that has the ">" sign, i.e., "Open with >", then pick the option with "#". You'll see a bunch of zips in there. The recovery is in one of them.

Could you not also just put the RUU zip on your sdcard and flash it?

As for S-OFF, the procedure is very easy, and going to S-ON is even easier.

EDIT: Ninja'd by [MENTION=5872674]Flippy498[/MENTION] :D
[One (M9) General] Flippy498:
That would be the easiest way. Or he uses fastboot...
[One (M9) General] coolscat:
I was under the impression that I needed s-off to flash zip files. can I actually just flash it right from the emulated sd card? I don't have an external one.
[One (M9) General] efrant:
With S-ON, you can flash zip files that have an firmware version the same or higher than what you currently have on your device.

No, you need to flash it from a fat32 formatted external sdcard.
[One (M9) General] Flippy498:
No, S-OFF is only needed for downgrading, SKU changes and combined RUUs.

The M9 won't recognize the RUU on the internal storage. Get HTC_fastboot if you don't have it, put the RUU into your ADB/Fastboot folder and use htc_fastboot flash zip 0PJAIMG_HIMA_UL_L51_SENSE70_ATT_MR_Rogers_WWE_2.11.631.2_Radio_01.02_U11440601_77.04.50715G_2_F_release_445147_signed.zip.

Edit: This time [MENTION=1566190]efrant[/MENTION] was faster. :p Here's a HTC_Fastboot download link, btw.

Edit2: I don't know why but xda always inserts a space into the naming of the RUU. Rename it to RUU.zip and use htc_fastboot flash zip RUU.zip. This way you can copy 'n' paste the command without having to correct it.
[One (M9) General] coolscat:
buying an sd card seems like the best route to go, but for the time being I will continue trying to extract this recovery, however I'm using #/e to extract because I don't see any option with > and all I keep getting are numerated zip files with no identification of what they are. and It shows over 400 zip files.

---------- Post added at 02:37 PM ---------- Previous post was at 02:15 PM ----------

Thank the heavens! i have fastboot and ive flashed numerous recoveries already so this option sounds amazingly easy. I'm doing it right now, just need to charge the phone to 30%. I'm crossing my fingers no issues arise.
[One (M9) General] Flippy498:
Be aware that HTC_Fastboot is not the same as Fastboot. ;) The flash will fail if you use the "normal" fastboot.
[One (M9) General] coolscat:
I think you just saved my life. I'm using minimal adb and fastboot. I will download the htc_fastboot right now. is there anything extra that needs to be done or will the drivers installed from the minimal adb and fastboot work for HTC_fastboot??

C:\platform-tools_rev23_incl._htc_fastboot.exe>htc_fastboot flash zip 0PJAIMG_HIMA_UL_L51_SENSE70_ATT_MR_Rogers_WWE_2.11.631.2_Radio_01.02_U11440601_77.04.50715G_2_F_release_445147_signed.zip

sending 'zip'... (205381 KB) OKAY

sending time = 10.876 secs

writing 'zip'... (bootloader) HOSD CL#579410

FAIL9: SD_SECURITY_FAIL zip from usb command in download mode

FAILED (remote: 9: SD_SECURITY_FAIL zip from usb command in download mode)

Execution time is 12(s)

is this because I tried extracting the zip? should I re-download it again and then try?

or do I have to lock the bootloader?
[One (M9) General] Flippy498:
If you had no problems with the normal Fastboot and the M9 then no. Otherwise you may need to install the HTC USB Driver Installer which is part of the HTC Sync Manager (or do you prefer the French-Canadian version?). Just install the Sync Manager and uninstall it afterwards since it may interfere with both Fastboot and HTC_Fastboot. (The Driver Installer won't be uninstalled.)
[One (M9) General] coolscat:
is there a specific name I need to name the zip file? I remember reading about having to change it to a specific file name so that your phone will allow it.

I was able to flash twrp recovery again with no issue.

1. you need to relock your bootloader before you flash a RUU : fastbook lock oem

2. you need to reboot into the RUU screen which is a black screen with a silver htc logo. From download mode type in Fastboot : fastboot oem rebootRUU

3. then you can finally flash the RUU on that screen

I'm in the process and its looking promising I'm giddy.
[One (M9) General] Flippy498:
Did you check the MD5 sum of the file? The correct value is stated on the download site. WinMD5 is a free programm you could use. If it matches can you please try to flash the RUU while your phone is booted to RUU mode? This way we may get a more detailed error log.

fastboot oem rebootRUU

You can leave that mode later with

fastboot reboot

The name is only important for the SD card method and it's 0PJAIMG.zip.

Edit: It's actually quite difficult to find out what you've done so far if you edit you posts without even marking the edits. Not to mention that xda only notifies me if there is a new post. :p
[One (M9) General] Flippy498:
The MD5 sum matched and you again used the HTC_Fastboot? Then I fear that the RUU is broken* and I need to remove it. Sorry for the hassle.

The good news: Since the flash failed before it actually started the RUU didn't harm your phone. Edit: Looks like you edited your post. It's strange that some partitions got flashed normally and that it didn't fail right at the beginning. Press and hold the power and both volume buttons. Your phone will either shut off or boot to bootloader (I always forget what exactly happens since I don't use that combination very often).

* That would be the second 2.x RUU from ir-file that is broken...

Edit: If we can't find a different solution there still is Llabtoofer's RUU service. Unfortunately it's not free.

Edit2: Ok. If the MD5 sum matches than the RUU is broken. :( I will remove it. Again, sorry for the hassle. That means there are two ways to recover your phone:

1) Restore a backup. (I read that [MENTION=1566190]efrant[/MENTION] has one that matches your firmware version. Maybe he can share it with you.)

2) Use the RUU service I linked.
[One (M9) General] coolscat:
I was able to get out and unlock the bootloader again and flash twrp recovery. so I shouldn't try flashing the ruu again and should just go back to a custom rom? I wonder if that guy would post his backup.

efrant
[One (M9) General] Flippy498:
Take a look at my second edit.
[One (M9) General] coolscat:
I believe your my last hope in getting this phone back in order. i would certainly appreciate if you could post your backup.
[One (M9) General] efrant:
I've PM'd you a link to the RUU I have (0PJAIMG_HIMA_UL_L51_SENSE70_ATT_MR_Rogers_WWE_2.11.631.2_Radio_01.02_U11440601_77.04.50715G_2_F_release_449106_combined_signed_2_4_7.zip)

What backup do you want me to post? Do you want my system and recovery from 2.11.631.2? I can do that, but they are the same files included in the RUU that I PM'd you.
[One (M9) General] coolscat:
okay i will try again with this zip file and let you know if i succeed.
[One (M9) General] Flippy498:
Since the Rogers RUU I posted earlier seems to be broken I'm not sure whether this BM (2.11.666.2) one is flawless. Be aware: I haven't been able to test it and I can't guarantee anything. If it doesn't work please contact me immediately so that I can remove the file.
[One (M9) General] efrant:
Here is the stock recovery from Rogers 2.11.631.2
[One (M9) General] efrant:
Here is the link to the boot image, recovery image and untouched system image for Rogers 2.11.631.2. Place them in the proper directory structure in /TWRP/BACKUPS/ and restore using TWRP. This should get you to fully stock Rogers 2.11.631.2.

https://goo.gl/yAsp3q
[One (M9) General] SaHiLzZ:
Hi, can I post this link on first OP?
[One (M9) General] efrant:
Hmmm. Maybe hold off a while.

I just tried testing it on my device: it flashes fine, but the OTA fails (saying that system was mounted R/W). Strange, because I'm pretty sure that system image file was when I backed up the system image when I first got my M9 (and prior to mounting system r/w).

In any case, tomorrow I will also try to extract the system image from an RUU and re-test.
[One (M9) General] coolscat:
optomizing apps as we speak. thanks again :)

up and running! it was a success :D

---------- Post added at 01:23 AM ---------- Previous post was at 01:18 AM ----------

what do you mean flash? aren't these specially made for twrp? are you talking about the system image without the changed name?
[One (M9) General] SaHiLzZ:
If the system thinks the image has been modified, it wont get you OTA. [MENTION=1566190]efrant[/MENTION] is going to redo one for you. However you can try to go to settings, updates, and see how your phone behaves..
[One (M9) General] coolscat:
ya I tried it and it didn't work :(
[One (M9) General] efrant:
So I just verified that the system, recovery and boot images I uploaded work perfectly fine. The system

is

untouched and the OTA installs just fine.

I was half asleep last night when I was trying it out on my device, and I forgot to change the setting in TWRP to keep the system read-only... :o

Yes you can! :)

Try re-restoring the system image and recovery using twrp-2.8.7.1_CPTB-B1-hima.img found here. BUT,

before

you restore them, select the option to only allow TWRP to mount system in read-only. The OTA will then install just fine. Note: the OTA takes a really long time to install (around 20 mins or so...).
[One (M9) General] coolscat:
I don't see any option that specifically says read/write only. are you talking about zip file signature? fix permissions?

nevermind, I found it, under mount.
[One (M9) General] efrant:
The option is in there somewhere, I can't remember where. It's a check-box all by itself. (My device is still upgrading, so I can't go into TWRP to check for you exactly where it is.)
[One (M9) General] Flippy498:
It's in the mount menu.
[One (M9) General] coolscat:
how do I convert a recovery to a twrp backup file? you said just rename it? I renamed it but it still says its an img file. what was th exact process

go to view in any folder and select file name extensions. :)
[One (M9) General] Flippy498:
Are file extensions visible on your PC?
[One (M9) General] coolscat:
they are now after enabling the option in view
[One (M9) General] efrant:
The files I uploaded are named correctly. No need to rename them.
[One (M9) General] coolscat:
I made back ups of each stage of the update too 6.0
[One (M9) General] efrant:
How did you back up the recovery from each stage?

Can you post your recovery for 2.11.631.180 and for 3.38.631.2?

EDIT: I managed to extract the recovery from 2.11.631.180. I'm updating to 3.38.631.2 at the moment. Hopefully I can pull the recovery from that as well.