yashsingh1/xdaforums huggingface dataset:
[HTC 10 Guides, News, & Discussion] PhoenixPath:
Return-to-Stock for T-Mobile

Okay, I have a stock T-mobile HTC 10. Unlocked bootloader only (I have not flashed TWRP or anything else).

Is there any way I can help get you guys the stock recovery from this device without breaking anything? As I understand it, it's all we're waiting for to get a "complete return to stock" option, right? (allowing Jump! users to convert to US Unlocked while they use it, and convert back before returning it)

If someone knows of a way and is willing to walk me through the process, I would be happy to help.

I am familiar with adb and fastboot. I am running Windows 10 Pro x64 (and have all adb/fastboot drivers working - unlocked the bootloader on it).
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
http://xdaforums.com/htc-10/how-to/stock-stock-collection-recovery-ruu-ota-t3359297/post67139655
[HTC 10 Guides, News, & Discussion] l2icky:
I hope you do this. I really, really need the stock recovery. I haven't done it, but I'll try to help if I can.

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

HTC 10
[HTC 10 Guides, News, & Discussion] [Cruzer]:
[MENTION=2785886]PhoenixPath[/MENTION] +1 here as well
[HTC 10 Guides, News, & Discussion] hgoldner:
Yes.

There may be a signature on this sdcard somewhere.....
[HTC 10 Guides, News, & Discussion] yldlj:
Thank you! I think this should be in the op. I think we will get alot more ota files.
[HTC 10 Guides, News, & Discussion] puneet724:
And by unmodified system Image backup you mean RUU, which we do not have for Taiwanese variant...

Sorry for noob questions.. . Still learning
[HTC 10 Guides, News, & Discussion] yldlj:
No he means when you flash twrp keep read only and make a backup of your system.img and boot and you need stock recovery to flash ota
[HTC 10 Guides, News, & Discussion] greenza:
I currently have firmware 1.21.91.4 and want upgrade to 1.30.401.1

I have tried flashing the following OTA firmware '1.21.401.4 -> 1.30.401.1 (by [MENTION=1162986]Captain_Throwback[/MENTION])' as i know .401 is for the European region, however I get this error: 22 ru_header_error

Is this error due to the fact I'm coming from the wrong base? Can i just extract the firmware.zip from the above file and flash that?

S-OFF

CID: 11111111

MID: 2PS620000

Region: UK

Carrier: EE
[HTC 10 Guides, News, & Discussion] razrlover:
So am I correct that nobody has uploaded T-Mobile US 1.21.53.1.1 yet?

I have untouched system.img. and boot. Img, read only back up in twrp.

Just don't have stk recovery back up.

I have not created a zip before but will and I can upload to my drive account in next few minutes
[HTC 10 Guides, News, & Discussion] rav101:
Given that the hardware is the same (same mid). You could change your CID and use the RUU to get yourself on to stock 1.30? I think this would be the best way to change.
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Incorrect. Boot and system backup for stock T-Mobile are already in the OP.

EDIT:
[HTC 10 Guides, News, & Discussion] l2icky:
No stock recovery yet. ? I really need this over the next few days. I'll buy someone a beer or three if they can get this up.

HTC 10
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Oops, typo. Fixed now. Still waiting for someone to step up. It's a 5 minute process, so I'm not sure why no one has done it yet.
[HTC 10 Guides, News, & Discussion] l2icky:
I would have done it, but I'm returning my devices to T-Mobile and one will already have been modified, I don't want to send both back modified and take a risk of them charging me for them. That's why I need the stock recovery, so I can at least get mine back to basically a stock device and hope for the best.

HTC 10
[HTC 10 Guides, News, & Discussion] razrlover:
Thanks I am still trying to sort out all the variants and the build numbers.
[HTC 10 Guides, News, & Discussion] Zorachus:
I am on the T-Mobile U.S version, and I am dev unlocked, rooted, and running v1.30 of LeeDrOiD awesome ROM. But I keep reading about some update that T-Mobile will be pushing out sometime soon = 1.53, camera improvement, and other misc. bug fixes. Now I assume that number is a firmware upgrade ? My question being, does running this ROM mean I don't have to worry about some update like that, this ROM has those firmware changes baked in already ? Or do I have to somehow update my T-Mobile phone to that 1.53 to receive these changes ? If so, how do I do a firmware update ?

Does all of this require S-Off ? ( Haven't got around to that yet )

And is a firmware update something that can be flashed via TWRP Recovery ?
[HTC 10 Guides, News, & Discussion] jollywhitefoot:
If you're on 1.30 version of LeeDroid, then the system changes in the 1.53 update are not baked in.

The OTA is going to be 400-500 MB. About 80 of that is firmware files and the rest is updated system files, including Android security updates.
[HTC 10 Guides, News, & Discussion] Zorachus:
Ok thanks, so whenever this T-Mobile update comes out, how to upgrade to it, while still sticking on a custom ROM ? Are there firmware zips that can be flashed in Recovery ?
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Firmware is flashed via RUU mode, which is accessed through fastboot while the device is in Download mode/Bootloader. It cannot be flashed via TWRP.
[HTC 10 Guides, News, & Discussion] jollywhitefoot:
Unless you want to create your own custom rom, this isn't possible.

BadBoyz rom already uses the 1.53 base. Ice and Leedroid are still on 1.30 base because they are based in Europe and 1.53 hasn't been released there, yet. When 1.53 comes out on wwe (european model, 401) then Lee and Ice will update to that base. Honestly, I'd be surprised if T-mobile was updated before wwe, but stranger things have happened.

Edit: to clarify...as captain throwback said, you can flash the FIRMWARE portion of the update in RUU mode. But to update all of the system files that accompany the update, you will either need to wait for your rom dev to update his base or revert to stock t-mobile.
[HTC 10 Guides, News, & Discussion] Pfleiderer:
For everyone with the great HTC 10, planing the use of an custom ROM.

Give LeeDroid's ROM a try. http://www.leedroid.co.uk

Best MM ROM for HTC 10, M9, M8

Send from my LeeDrOiDed HTC ?
[HTC 10 Guides, News, & Discussion] Tiffany84:
I know, I can't believe nobody has either. I didn't realize you could boot TWRP like that or I would've done it right off the bat. So please, can someone that hasn't modified there T-Mobile device yet help us out. It's not hard at all and either myself or I'm sure someone else would help you out if you needed it.
[HTC 10 Guides, News, & Discussion] razrlover:
Looks like everyone jumped on root train, before making up stk recovery
[HTC 10 Guides, News, & Discussion] l2icky:
If anyone is on to help me, I can get the stock recovery. I'm unfamiliar with how to flash to the boot partition.

HTC 10
[HTC 10 Guides, News, & Discussion] razrlover:
Are you on stk tmobile?
[HTC 10 Guides, News, & Discussion] l2icky:
Yes.

HTC 10
[HTC 10 Guides, News, & Discussion] razrlover:
Will unfortunately I probability know less than you do about backup of a stk recovery. I thought there was instructions in this thread but could be another.

I am sure someone one wiser than I will come in soon. Thanks for being willing to help
[HTC 10 Guides, News, & Discussion] l2icky:
I've read the instructions, my thing is, I don't know how to fastboot flash to the boot partition.

HTC 10
[HTC 10 Guides, News, & Discussion] Tiffany84:
Hold on, I'm at work but I'm going to try to help if your still around
[HTC 10 Guides, News, & Discussion] Haldi4803:
Uhm...

On another Note.

If you unzip the OTA, and flash the Recovery.img from the included Firmware.zip via fastboot or recovery wouldn't it be possible to update via OTA?

It only Checks System for changes, then flashes the Firmware.zip and OTA Download itself does not care about the recovery at all.
[HTC 10 Guides, News, & Discussion] l2icky:
I got it. Just have to get it to someone or upload it myself somewhere.

Thanks [MENTION=4624131]Kratos90[/MENTION].

HTC 10

---------- Post added 07-06-2016 at 12:02 AM ---------- Previous post was 06-06-2016 at 11:37 PM ----------

This wasn't for the ota, I'm returning the devices and need it as stock as I can get it.

Here we go, T-Mob010 stock recovery: https://www.dropbox.com/s/wbw3z1ylftcmffz/recovery.emmc.win?dl=0

HTC 10
[HTC 10 Guides, News, & Discussion] greenza:
I ran the stock 1.30 RUU and all is good, thank you.
[HTC 10 Guides, News, & Discussion] Tiffany84:
First of all, sorry I just kind of ditched ya. As soon as I said I would help you, all hell broke loose at my job. Second of all, you are awesome. Thank you so much for doing that. All of us T-Mobile folk need to hit this guy's thanks button.

---------- Post added at 04:40 AM ---------- Previous post was at 04:33 AM ----------

So [MENTION=222052]captin[/MENTION]_Throwback, got a question. I've never been in this situation before so not sure how it works. But can I take the recovery.emmc.win file and place it in my system.img TWRP backup and restore it that way if I needed to and if so, does it need the md5 sum?
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Yes, you can. Either create your own md5 file or uncheck md5 verification and it'll work fine.
[HTC 10 Guides, News, & Discussion] [Cruzer]:
wait we can just fastboot flash the recovery too right..

Edit: NVM didn't realize its a twrp backup of stock recovery.. DUH!!!!!
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Of course you can fastboot flash it as well.
[HTC 10 Guides, News, & Discussion] [Cruzer]:
hrmm failed trying to twrp restore.. going to try to fastboot flash now.

damn no go either :

sending 'recovery' (69543 KB)...

OKAY [ 3.928s]

writing 'recovery'...

(bootloader) HOSD CL#737608

(bootloader) start@1

(bootloader) ERR partition_partial_update[ERR]: write failed. fd=17, n=-

(bootloader) 1, No space left on device

(bootloader) ERR partition_partial_update[ERR] lseek64 error!!, offset=6

(bootloader) 8157440

(bootloader) ERR partition_partial_update[ERR] lseek64 error!!, offset=6

(bootloader) 9206016

(bootloader) ERR partition_partial_update[ERR] lseek64 error!!, offset=7

(bootloader) 0254592

(bootloader) recovery@100%

(bootloader) Update partition OK

(bootloader) end@Done

OKAY [ 3.053s]

finished. total time: 6.986s

going to re-download. maybe bad download. Has anyone else gotten it to work???

edit: ok guess its a bad image.. will try it again later.. [MENTION=2636642]l2icky[/MENTION] thanks again for all your help.
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
There's something wrong with this image....it's too big. Can you try it again?
[HTC 10 Guides, News, & Discussion] l2icky:
I may be able to this evening. I'm not sure why it would be bad. I followed your directions. What could have caused it? It was like 68mb. Didn't think it would have been that big. If my wife didn't ship them back this morning, I'll try again after work.

Edit: I had a long day, I'll get to it tomorrow. She didn't ship them.

HTC 10
[HTC 10 Guides, News, & Discussion] JohnCorleone:
I am trying to send you a PM but I am getting an "error sending" message on XDA labs app. I will try from my laptop in a bit. I couldn't find someone local to get the T-Mobile stock recovery backup made. I am probably being overly cautious but I can't take a chance of being without a phone for a day or two. Will an OTA still complete with everything stock except for TWRP? is that why you are saying that you don't understand why I would be concerned?
[HTC 10 Guides, News, & Discussion] Tiffany84:
Does this still have to do with you making a backup for us of the stock T-Mobile recovery?
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
I've said this to you a few times - you don't need to find another person in order to make the backup. I posted the instructions for you several times but you seem to be ignoring them. Everything you need is in the OP of this thread. You don't need a local person for anything.

P.S. Just sent you a PM - you'll be able to reply via PM now and maybe we can finally get this worked out.
[HTC 10 Guides, News, & Discussion] MPenguin:
Thanks. I'm on 1.30.709.1 + TWRP + Root. Also running Xposed. Can I flash this and be good to go (it contains the firmware and all, right?)

Or do I need to go back to 1.30.709.1 stock (from backup/OP), reflash recovery (from OP), and then OTA/flash this?

Thanks again!
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
You can only flash that via TWRP if your system is completely stock (untouched) and set to read-only. And then you'll still have to manually flash the firmware.zip via bootloader in order to apply it, since TWRP doesn't handle firmware. That only applies if your device is the correct CID & MID for the region specified by the OTA.
[HTC 10 Guides, News, & Discussion] MPenguin:
Thanks. I'm rooted + TWRP, so I need to reflash to stock (from OP/backup), then reflash recovery, then I can flash it or take OTA, right?
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Not sure what you mean by "reflash recovery". You mean stock recovery? If you do that after restoring the stock backup, yes, you should be able to take the OTA without issue. You were asking about TWRP before, so I guess I don't understand how you're trying to flash it.
[HTC 10 Guides, News, & Discussion] MPenguin:
I'm trying to flash it/update the easiest way possible. I'm a little confused given the many directions floating around here. In the OP guide, it says,

I took that to mean that reflashing from backup would not restore the recovery, and that I would then have to restore the recovery, after which I could take OTA.

Since I have TWRP + root on 1.30.709.1, what's the easiest way to flash/update to 1.55.709.5 on htc_621?
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Just follow the OP method.
[HTC 10 Guides, News, & Discussion] razrlover:
So funny that it still aludes us. That sneaky stock tmobile US recovery.
[HTC 10 Guides, News, & Discussion] Tiffany84:
So has he responded to you or has he went silent again? [emoji6]
[HTC 10 Guides, News, & Discussion] morgy59:
OTA for Optus/Vodafone from 1.21.710.10 to 1.53.710.6 and also this update will work 100% to convert the Telstra device to Optus and start with the TWRP version of 1.21.710.10 backup you will have no data then install the stock recovery for 1.21.710.10 then you can use the OTA to go up to 1.53.710.6 and this will fix the radio and this link is correct because it the same that i got when i did it on the 20th May 2016

CID: HTC__039/OPTUS001/VODAP021/TELNZ001 | MID: 2PS620000

1.21.710.10 -> 1.53.710.6
[HTC 10 Guides, News, & Discussion] yldlj:
Thank you!!!!!! I have been waiting for someone to post this so i can pull the stock recovery.
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Haven't heard anything since my post and PM yesterday :rolleyes:. I really don't understand the problem.
[HTC 10 Guides, News, & Discussion] l2icky:
Sorry, I've been extremely busy the last few days. I'm about to grab some grub and try again. Let me know if anyone is around as I'm not sure what went wrong last time.

HTC 10

Edit: Well, I backed it up again, uploading now. However, I am having issues getting the device to boot again using the stock boot. How do I get the win file to an img file?

Edit: Got the boot to work.

Edit: Got the recovery to work, from my tests, anyhow. I placed twrp in boot and recovery, I restored both via twrp and it worked as it should.

https://www.dropbox.com/s/wbw3z1ylftcmffz/recovery.emmc.win?dl=0
[HTC 10 Guides, News, & Discussion] Tiffany84:
So you restored the recovery backup and booted into recovery and you were back on the stock recovery?
[HTC 10 Guides, News, & Discussion] l2icky:
Yes'm.
[HTC 10 Guides, News, & Discussion] Tiffany84:
Awesome. Thank you again for trying to help us out. I'll give it a go when I get home.
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
That one looks good! Thanks!

[MENTION=4470081]topjohnwu[/MENTION]

Looks like we finally have a good T-Mobile US 1.21.531.1 stock recovery backup. Sorry [MENTION=3344848]JohnCorleone[/MENTION] :rolleyes:
[HTC 10 Guides, News, & Discussion] [Cruzer]:
Can't download the file. always stuck at 98%.. anyone else have a mirror of this??

NVM: must have been my browser.. tried on firefox able to download now.

EDIT: ok got it to upload this time with no errors. now have icon with red triangle as recovery.. :good: so going to assume have stock recovery now.. as I've never seen it before :) ok now on to restoring stock image. Thanks again [MENTION=2636642]l2icky[/MENTION]
[HTC 10 Guides, News, & Discussion] l2icky:
Edit: Oops.

Looks like I was confused.

HTC 10
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
:confused:

Not sure what you mean. I was letting [MENTION=4470081]topjohnwu[/MENTION] know we have a good stock recovery so he can add it to the OP. And I mentioned [MENTION=3344848]JohnCorleone[/MENTION] because he was supposed to be getting us that backup but now it's no longer needed.

P.S. I quoted you, so no need to also mention you - the first thing I said was "Thanks", wasn't it? ;)
[HTC 10 Guides, News, & Discussion] [Cruzer]:
So there are no menus in stock recovery right?
[HTC 10 Guides, News, & Discussion] l2icky:
No. I had the same questions, so I checked a completely unmodded stock T-Mobile and it was the same. Comes up with a phone and the red triangle. I also tested factory reset from the OS, with stock recovery and twrp, just to make sure.

HTC 10
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Sure there's a menu. You just have to press Power+Volume Up to bring it up.
[HTC 10 Guides, News, & Discussion] Tiffany84:
Thanks for the confirmation and thank you to [MENTION=700439]I2icky[/MENTION] for getting it done for us. Started to think it wasn't going to happen.
[HTC 10 Guides, News, & Discussion] l2icky:
Holy crap, I didn't know that. My bad [MENTION=988593][Cruzer][/MENTION]. After you get the red triangle, hold volume up+power to get the menu up, just tested it to figure out which it is. It can be tricky though. Just a heads up.

HTC 10
[HTC 10 Guides, News, & Discussion] topjohnwu:
I posted an instruction to call HTC recovery menu in the first few posts :)

People really should read the information stated in the first few posts, it can help people a lot.
[HTC 10 Guides, News, & Discussion] JohnCorleone:
It's been a crazy busy week for me as well. You beat me by an hour. I had just pushed everything to my laptop when I got a PM from Captain Throwback that you got it done. Thanks :good:

---------- Post added at 05:41 AM ---------- Previous post was at 05:39 AM ----------

Whoa... I haven't seen you around the forums in a while! Good choice in devices!

---------- Post added at 05:47 AM ---------- Previous post was at 05:41 AM ----------

Lol.. How similar were our posts? We both had crazy busy weeks and we both were going to knock it out after we ate.. Lol. I am happy either way!
[HTC 10 Guides, News, & Discussion] l2icky:
Odd that I missed that. I did read through the posts.

HTC 10
[HTC 10 Guides, News, & Discussion] Haldi4803:
Tricky doesn't even begin to describe it....

You'd think this would work as soon as you see the red triangle?

Well I've tried all Buttons short or long press in all combinations.....

Sometimes works fine. And sometimes takes over 10 seconds. After 60 or 90 seconds Idle it automatically reboots.
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
[MENTION=1915408]phhusson[/MENTION] just mentioned on IRC that the process is:

That's slightly different than the process in the OP, but I'm not sure which one works better. I don't *think* the Volume Down is necessary at all, but I'm never on stock recovery :eek:.
[HTC 10 Guides, News, & Discussion] pro nexus:
I am completely stock right now, I would like to root and install a custom rom. I would like to return to stock to receive ota updates in the future. However, a stock recovery image and twrp backup doesn't exist for my hong kong bought device CID 622, X.XX.708.XX.How can I backup both the stock rom and stock recovery?
[HTC 10 Guides, News, & Discussion] [Cruzer]:
yah tricky :eek: took me 5 times to finally get the menu. all good at least can verify have stock recovery working. But to why I wanted stock recovery. Still no wifi calling grrrrrrr guess time to go to tmobile store and see if I can get a replacement.

edit: ok after about 1:30hrs on the phone with tech support they gonna send me a new unit. As wifi calling wouldn't work with all their steps. Have stock recovery, stock rom, all was good. Then I thought hrmm. might as well relock bootloader. hahahahaha after doing that, wificalling works again on stock rom. Go figure.. Even reunlocked just to see if it will brake it again.. but nope unlocked bootloader and wifi calling still works on stock rom. oh well, new phone still coming under warranty. :)
[HTC 10 Guides, News, & Discussion] tw1tch175:
It's hold power then tap volume up, not press both at same time. Just have to be quick because holding power too long will force a restart.
[HTC 10 Guides, News, & Discussion] TomF1979:
Must the bootloader be Unlocked or Relocked to flash the Stock Ruu 1.30.401.1 in Download Mode as 2PS6IMG. zip ?
[HTC 10 Guides, News, & Discussion] nipun1110:
[Deleted]
[HTC 10 Guides, News, & Discussion] 346L3:
German T-Mobile Backup?

Hi, also a request:

Does anyone have the possibility to create and post a Backup of the Stock Recovery and ROM for German T-Mobile Variant?

(CID: T-MOB101 | MID: 2PS620000, Firmware Numbering is 1.xx.111.x )

So far only the OTA File has found its way into the first Post, which is useless for phones not having the Base Version.

I'm trying to get VoLTE working on my T-Mobile SIM - the settings aren't there on 1.30.401 or 1.55.709, the only thing that worked (Settings were visible AND calling on LTE worked) were the US/branded versions which are missing the german language localisation...

So I want to switch to the T-Mobile Firmware variant and try my luck there.

Thanks to whoever can help!
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
US Unlocked OTA 1.80.617.1

CID: BS_US001/BS_US002 | MID: 2PS650000

1.53.617.5 -> 1.80.617.1
[HTC 10 Guides, News, & Discussion] Wonders_Never_Cease:
Thank you sir...:cool::cool:
[HTC 10 Guides, News, & Discussion] matekaneve:
Hmmm, US is already on 1.80 and we're still sitting on the ancient 1.30 base. I wonder if the 1.55 will be skipped in Europe and we will be updated straight to 1.80. For me that would explain the delay of the 1.55 update.
[HTC 10 Guides, News, & Discussion] drmoeed:
All Done ... :)

There I go ...
[HTC 10 Guides, News, & Discussion] cabb84:
So is this a zip that can be flashed in recovery?
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
It's the official OTA zip from HTC. The first page of the thread has the answer to your question.
[HTC 10 Guides, News, & Discussion] jayplusone:
You da man!
[HTC 10 Guides, News, & Discussion] Trunkton:
How to find your proper MID

So purchased an Unlocked HTC 10 direct from HTC's website. I'm about to return it and went into TWRP and did a 'wipe' and got rid of system, boot and data without knowing this would cause an issue. When trying to use just any of the RUU firmwares I get the following:

./fastboot-mac flash zip 2PS6IMG.zip
sending 'zip' (1764913 KB)... OKAY
writing 'zip'... INFOHOSD CL#748430
INFOERR Model ID not matched
INFOERR [SD_UPDATE_ERR] MODEL ID NOT ALLOWED
INFOERR [SD_UPDATE_ERR] sddownload failed: 10
INFOERR Update zip file failed.
INFOERR ZIP ERROR, exit read zip loop
INFOERR ZIP signature checking failed...
INFOERR ZIP ERROR CODE, 10
INFOend@Done
FAILED (remote: 10 RU_MODELID_FAIL modelid in android-info mismatched )

This lead to figuring out you can do this while the phone's in download mode:

./fastboot-mac oem readmid
... INFOmid: 2PS650000

Now that I know this device shares the same MID as a Verizon RUU file linked in the OP going to try that out and hope for the best!

UPDATE: I realized the CID should match as wellI "BS_US001" thankfully Captian Throwback posted a zip here might use that alternatively I see an RUU.exe option in OP that matches my phones values.