yashsingh1/xdaforums huggingface dataset:
[One (M9) General] Nima78600:
If you have time can you please check something for me?

From a file manager like es file manager, go to device /system /build.prop and scroll down the page to see "ro.aa.taskid=xxxxxx"

Just tell me what is this number now?
[One (M9) General] Djomla87:
Hey guys, i've read this entire thread, but i have few questions because i'm a newbie when it comes to HTC m9 stock return, i dont wanna get something wrong :). I run 1.32.401.15 its rooted, i did not back up stock (retard) and i wanna return it to stock in order to get the latest OTA and reroot it again with backup :). I ve flashed stock recovery, someone suggested that i will get OTA with that but of course i didnt ( it wont instal) i saw here that there are 2 versions of .15 which one is correct, i'm on Telenor Serbia. I've seen here that the safest way is placing original rom on mem card and flash it from there, thats the part i dont understand, how do i start the flash. I forgot to add S-On i dont wanna S-Off. Thx
[One (M9) General] Nima78600:
You can try R1 version as some users did that and were successful. If it didn't work for you then you can use the R2.

Instructions:

1) After downloading the file rename it to 0PJAIMG.zip and place it to the root of your external sdcard(formatted in FAT32 and no bigger than 32GB )

2) put your phone on download mode and follow the instructions.(you'll be offered to press volume up to confirm flashing)

That's all you need to do...

Cheers, you're on stock
[One (M9) General] Djomla87:
Ok i will do that, thx for the info, i will let you know what happend :)
[One (M9) General] Jwtiyar:
So sorry bro, i gifted my m8 to my sister so the phone was not with me i didn't know u posted to me, bro the taskid is = 435816
[One (M9) General] Nima78600:
No worries bro, thx for replying. That's the correct answer that I was looking for that.
[One (M9) General] Jwtiyar:
u welcome bro , (correction: m9 not m8 ).
[One (M9) General] 12890:
s-off

But my question is,I'm s -off my phone

If I restore Stock Backup and Stock Recovery and re lock

can i get OTA Updates ?

is not necessity to s-on?
[One (M9) General] nkk71:
1- Rule #1,

once S-OFF you stay S-OFF

, don't go s-on because you may end up on a patched firmware and wont be able to s-off again

2- UNLOCKED bootloader is fine on the M9 with or without S-OFF (on previous HTCs, you needed to relock bootloader

only if

you are S-ON)

3- stock backup + stock recovery, and you should be able to get OTA just fine

4- but why? (if it's just to update firmware, then you can flash firmware separately)
[One (M9) General] Jwtiyar:
should be relocked .
[One (M9) General] czifraj2:
I can install with stock recovery?
[One (M9) General] nkk71:
nope

1- for OTAs (re)locked was never needed (irrelevant of S-ON or S-OFF)

2- on M9, you can even flash full ruu without (re)locking (irrelevant of S-ON or S-OFF)

on previous HTCs you needed (re)locked for RUU mode flash

if you are S-ON

.... not if you are S-OFF
[One (M9) General] slvrhwk:
Can you please help me with the steps I need to perform for updating to 5.1? I have a dev edition, with stock rom, stock firmware (1.32), S-On but rooted. Does the rom come with latest firmware, or do I need to flash that separately?

I've asked this question on another thread, but this seems like a more appropriate place. Thanks.
[One (M9) General] slvrhwk:
Update:

I flashed stock recovery (phone still rooted) and I'm trying to flash the latest update file. When I select apply from phone storage in recovery, I get the following error:

Please help.
[One (M9) General] Nima78600:
Because your system is already rooted you can't apply OTA.

You can either flash Stock system back up and recovery for your phone, or find stock rom and flash it. ( RUU or 0PAIMG.zip sdcard method)

, then you can apply OTA.
[One (M9) General] slvrhwk:
Can I unroot it and apply? If not, is there a guide to installing the RUU? Also, will the RUU installation wipe user data?
[One (M9) General] TheShadowZero:
I found a system image for the new update (I'm on a developer edition) here: https://www.androidfilehost.com/?w=files&flid=28824

If I flash that over my system partition, do I need to worry about anything else? I'm trying to avoid having to go through the hassle of flashing the stock recovery, flashing an old system image and RUU, updating via OTA, then re-rooting, etc. I'm S-OFF for what it's worth, and I'm rooted and I've installed the 2.8 firmware already
[One (M9) General] Nima78600:
No even if you unroot you can't apply OTA.

Flashing stock rom using RUU or sdcard method is easy, you just need to find the stock rom for your device, then I can tell you what you should do.

And yes, flashing stock rom will wipe your user data.

It's possible to keep your user data as I did already for myself. You can do a back up before flashing stock rom, and then after applying OTA, you can root your device again, flash twrp and restore your user data(just data).

---------- Post added at 01:10 PM ---------- Previous post was at 01:08 PM ----------

Just keep your back up in a safe place like your external sdcard or pc.

---------- Post added at 01:27 PM ---------- Previous post was at 01:10 PM ----------

I guess yes you can do it, but I think then you need to flash the new firmware separately.

Also need to restore your user data if it is important to you.
[One (M9) General] TheShadowZero:
Well, I did it, and it bricked my phone. And now it won't even reboot even if I hold the power button down for a minute. I did "fastboot flash system [system img]" and rebooted and i just see the HTC bootsplash. It won't respond to adb reboot or fastboot devices or anything. I already had the new firmware installed before I installed the system img

EDIT: Okay...randomly started working? I got to the bootloader so I should be able to restore a system image. Wonder why it didn't work though.
[One (M9) General] Nima78600:
Actually I didn't test this kind of system image, but if you're sure that the flashing process was successful, flash the firmware again. I'm not sure but I think if you flash the boot.img as well, may solve your issue.

At the end of the day, if both didn't work for you, just flash Stock rom and everything would be ok.
[One (M9) General] clsA:
Sorry that file was not complete (Fixed)

Stock untouched system.img and recovery.img for returning to Stock

I just finished re uploading it and tested it

2.8.617.4_system_image.emmc.win

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

MD5: B44C01502C6D47EB13FBAE24DD4B62FC

2.8.617.4_OTA_Stock_recovery.img

https://www.androidfilehost.com/?fid=24052804347769334
[One (M9) General] Djomla87:
I restored my HTC to stock, got the update. Thx for the help :)
[One (M9) General] jollywhitefoot:
Which method did you use?
[One (M9) General] Djomla87:
I place the ruu on my mem card, restored from there, it took a while but its done, after that i updated it to 1.40.401.8. Now i'm looking for 1.40.401.8 ruu and i cant find it.
[One (M9) General] marriusf81:
wright recovery

hi guys! can you please tell me what stock recovery should i use for cid H3G_001? thanks a lot!
[One (M9) General] marriusf81:
Hi! I believe there is no use to tell me which recovery is correct for me as long as I rooted my phone and the system was modified. So, maybe you could tell me what I have to flash to go back to stock so I can update the phone. I am rooted, unlocked, s-off and my cid is H3G_001. Thanks guys!
[One (M9) General] Nima78600:
If your system is modified even if you flash Stock recovery, you won't able to apply OTA. In your case you can either find a proper stock ruu or 0PJAIMG.zip for your device and flash it to get back to completely stock or,

If you can't find your rom then you can change your cid to an unlocked European version and flash the ruu.

Just in case back up your current rom and place it to your external sdcard or laptop before flashing new rom.
[One (M9) General] marriusf81:
Seems easier to change the cid and find a more popular European ruu. What cid do you think I should use and what ruu? With my old m7 was very easy with supercid. Is it possible now to? Anyway this cid is European to, is Three UK. Thank you!
[One (M9) General] Nima78600:
I suggest HTC__001 that I use myself. For m7 supercid works but for m9 it doesn't work.

---------- Post added at 05:53 PM ---------- Previous post was at 05:43 PM ----------

Here you can download the latest official rom for unlocked European version (1.40.401.8) and flash it via sdcard method.

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

Instructions.:

1)Rename the downloaded file to 0PJAIMG.zip and put it in your external sdcard (size of sdcard should be 32GB or less)

2)put your phone into download mode and follow the prompt to flash it.
[One (M9) General] hamud.q:
Can I do this while s-on ?
[One (M9) General] Nima78600:
If you have the similar firmware yes.
[One (M9) General] hamud.q:
How can I know my software ?
[One (M9) General] Nima78600:
Check your firmware version. If you put your phone on download mode then you see your cid and firmware version.
[One (M9) General] marriusf81:
thanks!

thanks mate! thanks a lot! i will give it a try.
[One (M9) General] marriusf81:
Before I start making some crazy things I have a few more questions if it's possible. I need to change mid too? what about the recovery? must be custom or stock? I need to know something about the firmware? thank you!
[One (M9) General] tasos12:
That is a nice way to do it but wont we get an official OTA anyway?
[One (M9) General] osiedacz:
recovery_signed_ATT_Cingular_US_1.32.502.31

Here is the stock recovery for the ATT ROM version 1.32.502.31

modelid: 0PJA11000

cidnum: CWS__001
[One (M9) General] robstunner:
does anyone have the stock backup from the 5.1 software version?
[One (M9) General] teddy0209:
Anyone

I don't find my CID in the OP...

My CID and MID are as follows,

CID: HTC__622

MID: 0PJA10000

If I want to take an OTA update, what is the right recovery to use?

version-main: 1.40.708.9

Thanks in advance, just new to HTC!!! =)
[One (M9) General] exocetdj:
Noop u will need to:

Restore stock nandroid backup from the first post (1.32.401.15) in twrp, - place unzipped backup folder in your internal storage in twrp, backups, #folder with long number#

Flash stock recovery - 1.32.401.15 if it's on the first page

Then apply ota by putting it on internal storage and rebooting to stock recovery and selecting apply update

You need to be s off
[One (M9) General] exocetdj:
cheers buddy much appreciated! added to OTA post:good:
[One (M9) General] Dangermous79:
I'm s on so can I do the above then wait for the system update to come through.

Would I have to relock the bootloader.
[One (M9) General] exocetdj:
yep just restore stock backup and stock recovery then wait for OTA
[One (M9) General] snowfree52:
Hello,

I rooted my phone a while ago. And to install the new OTA (1.40.401.8) I flashed the stock recovery like I did when I had my M8 but I still have an error :

[IMG="htc M9 update not working"]https://dl.dropboxusercontent.com/u/16802699/HTC%20M9/IMG_0005%20%28Copier%29.JPG[/IMG]
[One (M9) General] exocetdj:
Are you s off? U also need the correct firmware installed 1.32.401.15, also have u made any alterations to the stock 1.32.401.15 rom you should be running to install the update? Needs to be completely stock rom, no alterations. Root and super user are OK but ota won't instAll if you have made any system app deletions. Also the firmware needs to be completely stock (no non red text modifications etc)
[One (M9) General] snowfree52:
Hello,

Rom is completely stock, just rooted that's all. Never touched the firmware.

I am S-ON
[One (M9) General] Nima78600:
M9 is not like m7. As long as I know When you root your phone then system will be modified. Unless you used latest twrp and backed up your system img before rooting your phone.

So that in your case I think you need an untouched nand back up and stock recovery oe an ruu.
[One (M9) General] exocetdj:
Yep u need to be s off to flash ota in stock recovery dude ;)
[One (M9) General] exocetdj:
Roots fine, it will just be erased by new ota

To flash ota,

S off needed

All system apps as out of the box on stock unmodified rom (root is OK)

Matching unmodified firmware and stock recovery to CURRENT rom version
[One (M9) General] snowfree52:
that's the only way really ? What are the drawbacks being S-OFF ?

When I'm S-OFF can I just lauch again the update or do I need to do anything else ?
[One (M9) General] Nima78600:
I think no. Because on m9 when system changes to r/w, then system img will be modified.
[One (M9) General] exocetdj:
No drawbacks with being s off mate u just have to be extra careful what u flash really. If u are only dealing with 401.# roms and firmware u will be fine

To get s off flash twrp and root with super user then install the sunshine app. It will charge u if it's going to work but everyone who is s off had paid including me.

Once s off reflash stock 1.32.401.15 recovery and try installing ota again
[One (M9) General] exocetdj:
Not heard of this but only just picked up m9 have u got a source for this info mate? Could be handy
[One (M9) General] exocetdj:
[MENTION=5888345]snowfree52[/MENTION] can u try with root once s off and let us know?
[One (M9) General] Nima78600:
Please head to the link and go through post 3 and read question 9

http://xdaforums.com/one-m9/orig-development/recovery-twrp-touch-recovery-t3066720

---------- Post added at 05:26 PM ---------- Previous post was at 05:23 PM ----------

On m9 stock back up works if used twrp beta before root.
[One (M9) General] exocetdj:
Ah question 6 says u may be bang on

[MENTION=5888345]snowfree52[/MENTION] u will need to restore a stock nand backup from the first page 1.32.401.15 before reflashing stock recovery
[One (M9) General] snowfree52:
allright, even if my rom was untouched ?

How do I do that without loosing my data ? I remember I had to do that once on my M8 but don't really remember how
[One (M9) General] Nima78600:
Yeah but the stock nand back up should be done by twrp beta before root. Because for restoring we need to flash system_imge.emmc.win
[One (M9) General] exocetdj:
Once s off

Stock restore in twrp

Reflash stock recovery

Flash ota in recovery
[One (M9) General] YANGHY:
M9 OTA hTC_Asia_TW_1.40.709.4-1.36.709.3

OTA zip file

1.36.709.3

->

1.40.709.4

modelid: 0PJA10000
cidnum: HTC__621

OTA_HIMA_UHL_L50_SENSE70_hTC_Asia_TW_1.40.709.4-1.36.709.3_release_431852
[One (M9) General] YANGHY:
M9 OTA hTC_Asia_TW_2.10.709.1-1.40.709.8

OTA zip file

1.40.709.8

->

2.10.709.1

modelid: 0PJA10000
cidnum: HTC__621

OTA_HIMA_UHL_L51_SENSE70_MR_hTC_Asia_TW_2.10.709.1-1.40.709.8_release_444117

.
[One (M9) General] ferhatugur:
is there a stock backup for O2__102 cid?
[One (M9) General] Asselalf:
https://www.androidfilehost.com/?fid=23991606952596581
[One (M9) General] richierich:
[MENTION=6367128]Denis Meissner[/MENTION] see post above yours for link.
[One (M9) General] Denis Meissner:
i cant move it to externel SD. not in twrp filemanager, not with es file explorer and not on my pc, so how can i get this to work??
[One (M9) General] sidjohn:
I also had trouble moving a ruu to my external SD - size limitation I believe, but this was good resource for me for fastboot flashing. Hopefully you can find information there to help you also.

http://xdaforums.com/one-m9/development/firmware-t3068243
[One (M9) General] ferhatugur:
thanks. and is there a stock recovery too? :D
[One (M9) General] Asselalf:
https://www.androidfilehost.com/?w=files&flid=28379
[One (M9) General] ferhatugur:
twrp backup

hi everyone!

does anyone have a STOCK O2___102 1.40 TWRP backup???
[One (M9) General] Amr Nasser:
Important

Can i flash this zip via twrp recovery even i'm unlocked and s-on ??

my base is 1.40.709.8 ??
[One (M9) General] YANGHY:
First, let me quote some notes from TWRP from http://xdaforums.com/one-m9/orig-development/recovery-twrp-touch-recovery-t3066720

Which means to get OTA successfully installed, you have to get (1) untouched system partition, plus (2) stock recovery.

The stock recovery is zipped inside the OTA file, and it's easy.

But for untouched system partition, you have to create by yourself according to TWRP instruction.

My device was upgrade to 2.10.709, and did not have any untouched system backup.
[One (M9) General] Flippy498:
Edit3: Some people still seem to be using these instructions. Please be aware that they are obsolete since the backups they were made for do not exist anymore. The updated instructions can be found in the google sheet that is linked in my signature. The revised backups can be found there, too.

Since [MENTION=6367128]Denis Meissner[/MENTION] and [MENTION=4497561]Amr Nasser[/MENTION] both have/had more or less the same problem and there seemed to be no working RUUs or TWRP backups I decided to flash their corresponding firmware versions (1.40.206.8 and 1.40.709.8) and to create the missing backups. (I needed to reflash my phone anyway so this little "detour" didn't bother me that much.) Those system images are fully stock, unrooted and in a read-only state. Besides the backups will override TWRP with the correct stock recovery for the particular firmware version during the restoration.

If you follow my instructions all your data will be erased so backup everything that is important (e.g. contacts, pictures, etc.).

Instructions for S-OFF phones:

Format your SD card with a PC to exfat and put it back into your phone.

Boot into TWRP.

Create a backup on your external SD card. (Backing up "Boot" is more than enough. We only want TWRP to create the needed directories on your SD card.)

Download the correct file.

Unzip the downloaded backup.

Copy the unzipped backup folder to "TWRP/BACKUPS/<YourSerialnumber>/"on your SD card.

I recommend wiping everything except "Micro SDcard", "USB-OTG" and "SD-Ext".

Check the "Mount system as read-only" box in the Mount menu.

Restore the backup.

Boot to system. (May take a while!)

Congrats! Your system is now stock and able to receive and install official OTAs, again.

Download Link (Files only tested with TWRP 2.8.7.1-CPTB-B1)

Sidenote:

Further information about TWRP, backups and restoring the capability of installing OTAs can be found in Captain_Throwback's TWRP thread.

Reading at least the first three posts is highly recommended so that you know how to make a backup like the ones I'm providing here before you start re-rooting your phones.

Edit: I think I'm going to enlarge my stock backup collection when I have time in the future (

NO ETA's!

). At least I'm goint to create backups for the already available firmware versions 1.40.709.4 and 2.10.709.1 and for the SKUs 111 (T-Mobile) and 161 (Vodafone). Besides all the stock files I used to create the backups can be found here.

Edit2: [MENTION=6367128]Denis Meissner[/MENTION] told me that the instructions don't work. Reason: I totaly forgot that my phone flashes the kernel (boot.img) automatically since it is S-OFF. I revised my instructions for S-ON phones (see post below) and uploaded the needed kernel files. Sorry for the hassle.
[One (M9) General] exocetdj:
Got these added cheers guys :good:
[One (M9) General] tasos12:
Sorry to ask as I haven't been following the thread for quite some time is there any news regarding this infamous update? Will we get an OTA? I have CID HTC_32 and nothing has come for a lo.g time now.......
[One (M9) General] exocetdj:
Not until early August as far as I'm aware for the 401 release
[One (M9) General] hamdir:
5.1 confirmed tomorrow for Europe M9

https://mobile.twitter.com/wheelergd/status/628252767409295360
[One (M9) General] Flippy498:
Edit2: Some people still seem to be using these instructions. Please be aware that they are obsolete since the backups they were made for do not exist anymore. The updated instructions can be found in the google sheet that is linked in my signature. The revised backups can be found there, too.

As already stated in my previous post, the old version of my instructions doesn't work on S-ON phones. I created a new post since I think chances are higher now that people notice that I corrected them.

The backups can still be downloaded here. The folder with the kernel (boot.img) files is here. The stock files I used to create the backups can still be found here.

Nevertheless:

If you follow my instructions all your data will still be erased so backup everything that is important (e.g. contacts, pictures, etc.).

All files are still only tested with TWRP 2.8.7.1-CPTB-B1

Instructions for S-ON phones:

Format your SD card with a PC to exfat and put it back into your phone.

Boot into TWRP.

Create a backup on your external SD card. (Backing up "Boot" is more than enough. We only want TWRP to create the needed directories on your SD card.)

Download the correct backup and the corresponding "boot_x.xx.xxx.x.img".

Unzip the downloaded backup.

Copy the unzipped backup folder to "TWRP/BACKUPS/<YourSerialnumber>/"on your SD card.

I recommend wiping everything except "Micro SDcard", "USB-OTG" and "SD-Ext".

Check the "Mount system as read-only" box in the Mount menu.

Restore the backup.

Copy the "boot_x.xx.xxx.x.img" into your ADB/Fastboot folder on your pc.

Rename the "boot_x.xx.xxx.x.img" to "boot.img".

Boot to Download Mode and flash the kernel using the following command

fastboot flash boot boot.img

Boot to system. (May take a while!)

Congrats! Your system is now stock and able to receive and install official OTAs, again.

Again, sorry for all the hassle.

Edit [MENTION=4497561]Amr Nasser[/MENTION]: The changes might be important for your problem, too.
[One (M9) General] ducey:
I hope this is true! The charging bug is really annoying me now.
[One (M9) General] richierich:
Yup its true,

Got the 5.1 update installing right now, will let y'all know how it is a little later!!!

So so glad I changed my CID from EE UK to WWE, otherwise im sure I'd still be waiting for the 1.40 firmware update let alone this one!
[One (M9) General] hamud.q:
5.1 finally here
[One (M9) General] darkmantra:
Finally..got here also from Oman...downloading later..
[One (M9) General] ducey:
HTC_001 is getting the update, seems to be nice and smooth so far. But completely hammered my battery when installing it!
[One (M9) General] DarkAlpha:
5.1 OTA Update 2.401.1 (831.88 MB) in progress

CID HTC__102
[One (M9) General] tasos12:
OTA Android 5.1+system bug fixes and fast charge improvements just landed in Greece. Anyone care to comment what's new about this OTA?
[One (M9) General] CaseyChaos666:
Three branded phone, 5.1 is here in UK.
[One (M9) General] Mutasek24:
OTA 1.40.401.8 --> 2.10.401.1
[One (M9) General] Amr Nasser:
Important

just to make things clear in this step " I recommend wiping everything except "Micro SDcard", "USB-OTG" and "SD-Ext". " that means i wipe the following :

dalvik cache

cache

system

data

internal storage

android secure

??

i'm using TWRP 2.8.7.0 too , couldn't find 2.8.7.1
[One (M9) General] tasos12:
Add CID HTC_034 to your list
[One (M9) General] Mutasek24:
This letter is copied from the OTA / firmware.zip / android-info.txt, so unfortunately it was not there and your CID (HTC__034) so ​​I do not know if I will be consistent?

Did you try to install the .zip file on your CID?
[One (M9) General] Flippy498:
Yes, thats correct. I recommend wiping Dalvik Cache, Cache, System, Data, Internal Storage and Android Secure. TWRP Version 2.8.7.1_CPTB-B1 can be found at the end of post #3 in the TWRP thread or here if you prefer a direct link to the download.
[One (M9) General] tasos12:
OTA came to me and I have already installed it.
[One (M9) General] ferhatugur:
[MENTION=5872674]Flippy498[/MENTION]

i returned to stock with Flippy498's way.

S-ON

cid : O2___102

using TWRP 2.8.7.0 without a problem...

thank you!
[One (M9) General] marchitecto:
any update on CID HTC_044?
[One (M9) General] sandrivl:
Got it in Albania. 5.1 version.
[One (M9) General] warci:
[MENTION=4366077]exocetdj[/MENTION]

For the collection:

1.40.111.8 TWRP-Backup

incl. boot image, system partition (read-only) and Stock-Recovery
[One (M9) General] exocetdj:
cheers mate, whats the cid for that??:)
[One (M9) General] exocetdj:
added :)

also further link by [MENTION=823171]cporeaux[/MENTION]:good::good: