yashsingh1/xdaforums huggingface dataset:
[One (M9) General] mykeli9s0:
hi can any one help me,

i followed the instruction on how to unlock the bootloader and also install twrp and root the device no problem.

however i decided to do OTA update. i followed the instruction and now i'm stuck on HTC splash screen but i have access to recovery mode and everytime i tried to reboot it tell me NO OS installed.

i tried my system.emmc.win.md5, no go.

tried flashing twrp 2.8.6.0 still no.

did i just bricked my device?

if any can please assist me. i have a canadian HTC m9 , bootloader unlock, twrp, rooted and S-on. and im stuck on HTC logo...

thanks in advance.
[One (M9) General] Nima78600:
Did you follow the instructions correctly?

Try this one, scrole down to post #3 and read question 9

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

However the easiest way is to use ruu if you can find your compatible version from AndroidRUU.com.
[One (M9) General] sishirbaid:
did you take a full phone backup(nandroid) before rooting your phone? if you did , restore only system and boot. wipe cache, dalvik-cache, data. once you have done that, reboot int system. you will notice a slightly longer startup. after which it will say android is upgrading. then it will boot into your htc setup screen. do the setup and once done,reboot to download mode and flash stock recovery.

you can now take an ota. if you find it troublesome to do all of this,find an appropriate ruu for you phone, lock you bootloader and start the process. let me know as to what you will be doing.
[One (M9) General] mykeli9s0:
thank to all.

i end up flahing ROM (viper) and i was able to boot up. however i still want to go back to my orignal setup.

i will try to attemp to flash system.emmc.win again but the recovery, do i need specific stock recovery file for my carrier or there is a universal recovery file?

as for the RUU i havent found any for my carrier. (canada rogers).
[One (M9) General] Nima78600:
Not hundred percent sure, but I think the recoveries are the same.
[One (M9) General] ragiut1:
My firmware is 1.32.401.8, and the system image in the OP is 1.32.617.30

Would OTA work if i flash the system image in the OP?

Many thnx
[One (M9) General] Nima78600:
The Rom Version(stock rom) and Firmware should be the same to get OTA and flash.
[One (M9) General] ragiut1:
Could someone uplaod the system image for 1.32.401.8.

Thnx
[One (M9) General] Nima78600:
Why don't download from AndroidRUU.com?

---------- Post added at 08:20 PM ---------- Previous post was at 08:17 PM ----------

Here is the link

http://androidruu.com/getdownload.php?file=M9/0PJAIMG_HIMA_UHL_L50_SENSE70_HTC_Europe_1.32.401.8_Radio_01.01_U11440261_56.02.50306G_2_F_release_425571_signed.zip
[One (M9) General] ragiut1:
Thank you

will give it a try
[One (M9) General] ragiut1:
Didn't work

Thank you anyway:)
[One (M9) General] sishirbaid:
you could flash the backup of stock system if you had taken one before tampering it. or you could give it to someone at an htc service station, he would make your phone back to normal to recieve an ota, what you could also do is install arhd , [MENTION=495487]Mike1968[/MENTION]. will keep the rom updated everytime htc pushes an update. ill leave the link to this rom bellow.

http://xdaforums.com/one-m9/development/rom-android-revolution-hd-3-0-art-t3068820
[One (M9) General] sishirbaid:
recovery should be the same, try flashing and rebooting into recovery, if it enters recovery, no problem , if it doesnt, you will have to hunt.

note:- remember to flash system.emmc.win from download mode after you have flashed stock recovery(and confirmed if itsworking)+wiped cache and dalvik cache before installing stock recovery.
[One (M9) General] mykeli9s0:
i tried flashing the system.emmc.win, i was able to do so and it did boot up, however my ROM is stock with Viper?

when i try to flash the System.img. i get a error fasboot.exe stops

i did find a RUU file and when i try to flash it i also get a fasboot.exe stop.

what could be the issue..

my device is still

Unlockboot loader

ROOTEd

twpr the latest one.

ROM (viper)

S-ON
[One (M9) General] ragiut1:
Solved it

I managed to extract system image from ROM, fastbooted it and got message "target reported max download size of 800000000 bytes" the device is stuck at boot.

Then i renamed the ROM to 0PJAIMG, put it in external SD, flashed the ROM and now the device is completely stock and OTA works.
[One (M9) General] sishirbaid:
heres what you can try .

reboot to bootloader/download (try both, nt sure which one works)

lock bootloader

if you have a ruu.zip , type fastboot oem rebootRUU and then fastboot flash ruu.zip

if you have an ruu.exe , just run ruu.exe with phone connected (run .exe as an admin)(make sure bootloader is locked and ruu is for your device
[One (M9) General] sssssbarn:
Hi everyone,

I just got an update notification for the 2.11.661.2 version. I am going to flash my stock system image but i have 2 questions:

I don't have an exact match for recovery, could only find 1.32.617.6, current software is 1.32.661.31 anyone know if this will cause issues?

Also, it is necessary to relock the bootloader?
[One (M9) General] xunus:
There is no need to relock the bootloader. You will need 1.32.661.31 recovery to update.
[One (M9) General] sssssbarn:
How about using the recovery from the new update ?

Nevermind, went the ruu route
[One (M9) General] ferhatugur:
hi,

firmware : 2.10.206.2

cid : O2___102

can i use the twrp backup file in the first post to return to stock if i root my phone?

found the backup : https://www.androidfilehost.com/?fid=24052804347789011

thanks to Flippy498
[One (M9) General] slvrhwk:
I have a dev edition on 2.8.617.4, rooted and s-on. I followed Extra Section to revert back to stock 1.32.617.30 in order to take the OTA update. Now, my phone is stuck on the htc logo screen. Please help.
[One (M9) General] sssssbarn:
Trying to take another ota, restored system, full unroot, flashed stock recovery, but update failed.

Can anyone help?
[One (M9) General] tf701mega:
I have a question to do with flashing custom roms with this device. I picked this phone up a little over a week ago. Aside from my dismay at the lack of custom roms, especially fully functioning AOSP or CM based ones, I'm really happy with my choice. I generally dislike OEM skins, and thought I would hate sense, but it's not so bad.. I've already rooted my m9 and have TWRP installed and a fully stock system image backup stored on my computer. Most roms have a certain variant or model listed; AT&T, International, verizon, sprint, and T-moble. Can somebody please explain what exactly is the difference between these models? Do they not have the same hardware across all variants of the M9? I'm in canada with Bell Mobility.. Would my phone be the international model, and how could I tell?

Thanks in advance for the clarification. Happy Flashing!
[One (M9) General] shivadow:
If the phone is network unlocked and doesn't come up with a carrier logo when booting you could very well have an international. Otherwise it's a locked variant and needs a specific carrier firmware.

Do not attempt cross flashing as you will bork your brand new phone. Htc is NOT samsung by a long shot.

I wish I stole my HTC M9.
[One (M9) General] tf701mega:
I'm well aware not to flash roms that are not intended for your specific model. I'm simply wondering how one is to know what variant your phone is. It doesnt say anything other than "HTC One M9" in the settings.. So if they all have the same hardware and model number, than how can I tell which variant I have.. I would think it safe to assume it isnt t-mobile, sprint, or verizon as we dont have any of those carriers in canada..

---------- Post added at 04:19 PM ---------- Previous post was at 04:18 PM ----------

I haven't tried any other sims in my phone, but no, there is no carrier label or splashscreen during boot. just the white and green HTC logo
[One (M9) General] shivadow:
Does your phone show a carrier logo when it boots up? If yes its locked and carrier specific. If no see next question.

Does your phone accept a sim card from another carrier? If yes its wwe (world wide edition). If no, it's locked to your carrier and could be carrier specific. Ask your retailer if their devices are locked to network or not.

I reckon it's wwe just by the fact there's no carrier logo. Mine is the same as yours and its a wwe and I'm in the United Kingdom.

It's quite unlikely to get a device that is locked to network and be a wwe/btu edition.

I wish I stole my HTC M9.
[One (M9) General] Flippy498:
[MENTION=5842654]tf701mega[/MENTION]: Boot into Download Mode. In the line directly under the line with "locked", "unlocked" or "relocked" (the status depends on the fact whether you already unlocked and/or relocked your bootloader or not) you will find the name of your device. The names are explained in sneakyghost's and behold_this' SKU and CID list. You have to look at the tab "HTC One M9 MIDs". The main differences between those models are the network technology (gsm vs. cdma) and the unlocked lte bands.

Edit: Or you boot into Download Mode and use the following fastboot command:

fastboot getvar mid

Explanations for the MID output can be found in sneakyghost's and behold_this' SKU and CID list, too.
[One (M9) General] tf701mega:
Perfect answer! thank you very much for your help. It's the WWE. I kind of figured it;d have to be, but still the question was gnawing at me. Big big help.
[One (M9) General] sishirbaid:
could you be a little more specific , as to what exactly you did , tell me what you did step by step and i might figure out what went wrong.
[One (M9) General] sishirbaid:
to make it even more easy :

A) if you are s-on -

you can flash any rom. from any htc one m9 family device as HTC one m9 has no hardware specific varients . the hardware is exactly the same.

B) if you are s-off-

if you have a cdma device , you can flash any rom of a cdma device

if you have a gsm device , you can flash any rom of a gsm device

if you are in any of the devices of group A you can flash roms for any device in group A, same for group B

Group A < Dev edition, Unlocked, ATT ,T-Mobile >

group B < Verizon , Sprint >

Hope i helped :D
[One (M9) General] akb3r:
HTC M9 rooted, want to revert to stock.

Well im newbie over here, i bought a used htc one m9 from a mobile shop, and later got to know that it is rooted, i just have a question it is on 1.32.401.8 system.. can i just use RUU this one(0PJAIMG_HIMA_UHL_L50_SENSE70_HTC_Europe_1.32.401.8_Radio_01.01_U11440261_56.02.50306G_2_F_release_425571_signed.zip) on my phone?

it is S-off, no idea about boot loader, just want to OTA but couldn't do that and realized that there was an issue in my phone.

Would be pleased to see a reply from xda-community..
[One (M9) General] akb3r:
btw i downloaded this RUU so would like to know about this .exe prospects (RUU_HIMA_UL_L50_SENSE70_ATT_NA_Gen_Unlock_1.32.617.30_Radio_01.01_U11440221_62.05.50320G_F_release_427069_signed_2)
[One (M9) General] akb3r:
anyone?
[One (M9) General] shivadow:
Read post #85.

I wish I stole my HTC M9.
[One (M9) General] akb3r:
Still couldnt get my answer, I once was a samsung S4 user and tried & tested rooting but now shifted to M9 and got a rooted device(my bad). Couldn't get the Cat A and Cat B argument.

Can anyone be more specific..
[One (M9) General] efrant:
If you are 1.32.401.8, and the CID/MID of your device matches that ROM, then yes, it will flash on your device. If your CID/MID don't match, it won't flash. So either way, you can try it and find out.
[One (M9) General] akb3r:
Thanks for your response, let me do it then..
[One (M9) General] sishirbaid:
Hi :D ,

yes you can , and you should . connect your phone to your pc , enter bootloader type " fastboot oem lock ", type " fastboot oem rebootRUU "

wait till you see htc written in grey/silver and then type " fastboot flash zip rom.zip " (rename the ruu file to rom.zip before)

thats all

since you are new and not experienced, i would recommend you to boot back into bootloader after flashing ruu and type in "fastboot oem writesecureflag 3 "

this will make your phone s-on and keep you safe from permanent bricks.

hope i helped :D
[One (M9) General] akb3r:
Query

Well, now i have got more into and got to know that my Cid is superCID, so before flashing should i revert it back to something else, and how should go about it as I don't know what was the original CID!

It could be 002 or 001.

Help.

P.S I just need to udpate my phone OTA, what is mandatory for me in this case.

---------- Post added at 07:22 PM ---------- Previous post was at 07:17 PM ----------

This is what I got from " fastboot getvar all"

http://i.imgur.com/JRqyshR.jpg
[One (M9) General] efrant:
I don't think it matters what the original CID was. What matters is you set it to the CID or the RUU you are flashing (which is the CID of the OTA update you want to receive).
[One (M9) General] akb3r:
Okay. Then I would be going with this one(

0PJAIMG_HIMA_UHL_L50_SENSE70_HTC_Europe_1.32.401.8_Radio_01.01_U11440261_56.02.50306G_2_F_release_425571_signed_3.zip), so should I set my CID htc__002 or htc__001?

And one more query, what should be done first setting cid or flashing?

Thanks for replying, btw.
[One (M9) General] akb3r:
Anyone?
[One (M9) General] shivadow:
Htc_001. 401 is European wwe (not carrier locked)

I wish I stole my HTC M9.
[One (M9) General] rloyd:
Device management
[One (M9) General] reyes27:
twrp

I am looking for some help with my M9 , unlocked my bootloader and I am ready to flash twrp, just that everytime i try < fastboot flash recovery twrp.img> it say error cannot load twrp.img . I tried changing the name to recovery, taking out the suffix and even installing htc sync manager and deleting it but it won't flash the recovery.
[One (M9) General] sishirbaid:
1) try this - go to the folder containing twrp.img , shift+right-click , select open command window here . and type the the same command you mentioned in .

let me know if that helped.
[One (M9) General] reyes27:
This is what I have been trying but it still gives me error: cannot load 'twrp.img'

I have windows 10 if that matters and my M9 is on the latest software on T-mobile. I just unlocked the bootloader a couple of hours ago. Thank you!
[One (M9) General] sishirbaid:
[MENTION=6440153]reyes27[/MENTION]

i dont know whats causing the problem but try these troubleshoots:-

1) uninstall and reinstall htc drivers and adb and fastboot drivers

2) try on a windows 7 or xp pc if one is close by .

30 try different ports and usb cabels.
[One (M9) General] LordVader1991:
Have a question, if it's a nooby one I apologise, I have my phone rooted and all, Custom ROM, and all. I did TWRP, but heard if I downloaded and flashed a STOCK RECOVERY I'd be able to get an OTA and then get back to complete stock, However that id not work. My question is, In the OPs post after where it says "EXTRA SECTION (VVVVVV IMP)(TO TAKE AN OTA update)" they are I think both for AT&T which is a US carrier.

I live in Ireland so my question is will that work for me? Or am I an idiot for thinking that? Also, if this does work for me will I bring me to stock Android? Unrooted etc etc...

PS: My phone says it is Build Number: 2.10.401.1 I read that was International Unlocked? I don't know if it is or not.

Any help on this matter would be awesome.
[One (M9) General] Nima78600:
Here you can find all you need with instructions.

https://docs.google.com/spreadsheets/d/15K6xhb6wtosp9j8yu4xHBZ6n9v5OaFSW6ZVWxC4u_qc/pubhtml
[One (M9) General] barashe:
Following this post, I used my pre-root backup and received the Marshmallow OTA. However, I failed to backup a system image before re-rooting (only cilcked on system, in the TWRP backup options). So I have a few questions, sorry if they're somewhat noobish:

1. Can I use my lollipop system image as I did before taking the OTA? My instincts say no, but I thought I'd ask anyhow.

2. Searching Nima78600's awesome link, I found TWRP backups matching my new version. Do I need any other file than system_image.emmc.win?

3. Will flashing this file affect my files and settings?

Thanks a lot!
[One (M9) General] Nima78600:
1)Actually it depends which version of twrp you have used ro take a backup and.... But as long as I know if you tooke a backup of stock rom before rooting, then you can use it later to restore and get back to stock( of course you need to flash stock recovery again).

2) If you would like to use that link's stoxk twrp backup to get back to stock, YES you need to flash stock recovery too.

3) I didn't get your third question. The idea of using this instructions is to flash rom and get back to stock to take and apply OTA update.
[One (M9) General] barashe:
Thanks for your answer!

1. So I can use it again even though my software number has changed (from an earlier Lollipop version to 3.35.401.12)?

2. Sure, I know I need to get a proper recovery.

3. I meant, will it delete any of my files, or system settings, if I use someone else's TWRP backup system image.
[One (M9) General] Nima78600:
1) Yes you can use it but remember that firmware version is important. So you can't downgrade your firmware. Therefore whenever you want to back to stock take care of your current firmware version.

3) Yes if you use that link's twtp backup , it will override your OS, so it's like a new phone.Unless you use your own backup that is included all your staff.
[One (M9) General] Flippy498:
1) Well you can restore and run a lollipop system on marshmallow firmware but I wouldn't try to use it for updating your phone if I were you.

2) No, you don't need to get it since it's already inside my backups. Just restore it. ;)

3) Read the instructions located above the download links in my sheet. ;)

Edit: Seems like Nima was faster than me.
[One (M9) General] barashe:
1. Ok then. That means I cannot use my old system_image.emmc.win, since it was made on a Lollipop OS, which had a different firmware number. Which means I'll have to download a more advanced system_image.emmc.win.

Thanks for your answers! Much appreciated!

---------- Post added at 02:28 PM ---------- Previous post was at 02:22 PM ----------

Always good to get multiple answers :D

1) Just to better understand, why not?

2) Yes. I've seen it. What I meant was, do I need any of the other files in your backup?

3) I just did the entire process to get my Marshmallow update. But I was surprised to see that nothing was wiped (or even slightly changed) when I flashed the system image. I just wanted to understand whether or not this will be the same if I use another person's system image.
[One (M9) General] Flippy498:
1) If I remember correctly there have been some hard bricks when firmware 2.10.x was out and people tried to restore a 1.32.x backup and updating it with their 1.40.x firmware.

2) You need all of them (Boot Image, Recovery, System Image and the md5 files for the System and the Boot Image). Otherwise I wouldn't have uploaded them. ;)

3) That depends on the way you restore a backup. (That's why I said read the instructions. ;)) The backup itself won't wipe anything. Nevertheless the update might fail if you don't wipe your phone before the restoration process due to some remnants of the modified system you try to get rid of.
[One (M9) General] barashe:
1) Indeed, not a risk worth taking ;)

2 + 3) So the method described in this initial thread is less safe (only flashing system_image.emmc.win and recovery.image)?
[One (M9) General] Flippy498:
According to the SuperSU version and the TWRP version that are linked in the OP I would say it's a bit outdated. (Not to mention that not every user is able to use the linked recovery and/or the linked backup.) There has been a time when you needed to restore your system via fastboot but you can use TWRP since (at least) last summer.

"Less safe" is the wrong wording. You won't harm your phone if you don't wipe it but there have been several reports that people haven't been able to install OTAs in that case due to some remnants of the modified system. If you decide to wipe your phone you need the boot image, too, or your phone won't boot after the system restoration.

The MD5 files in my backups are just a precaution to make sure that the system image and the boot image didn't get corrupted due to a bad download. TWRP creates them by default if you backup something. I don't have MD5 files for the recoveries since they're extracted from OTAs and not backed up with TWRP.
[One (M9) General] Celisias:
Just looking for some clarification before I mess something up.

I want to proceed with rooting my phone, but I am worries about messing something up and being unable to update my phone again (block based OTA stuff and what not)

I currently have an M9 that does not have an unlocked bootloader. Should I just unlock the bootloader, let it reset the phone, flash TWRP and make a backup, then proceed to rooting the phone?

I am unsure if this recovery will allow the OTA's, or is there another way to get the proper recovery image? I noticed you have links to recovery/stock images, but I am not sure how to go about this.

If anyone can help or guide a first-timer, it would be greatly appreciated
[One (M9) General] Guillermo095:
Hello guys, please help me, this command "mount -t ext4 /dev/block/bootdevice/by-name/system /system" is not working, it says it cannot find that path, but I just skipped that but made sure system was mounted, and flashed the root zip, but now I'm stuck on the HTC ONE logo screen, I tried going back to recovery and restoring System, and that works, but I can't get my phone rooted, what can I do? thanks!
[One (M9) General] mousemighty:
I would do just as you have indicated, unlock, flash TWRP, then backup. After that, then root. If you don't mind resetting your phone, if there is an update for your phone you can always use RUU to update instead of OTA, so i wouldn't be worried about that.
[One (M9) General] efrant:
Unlock the bootloader, but don't flash TWRP. Instead, "boot" it so that you can make a backup of the stock recovery. If you flash TWRP, your stock recovery will be overwritten by TWRP.

Rename the TWRP image file to twrp.img and use the command "fastboot boot twrp.img". This will boot your device with TWRP without actually writing it to your device. Make sure you keep system

read-only

when TWRP asks you. Then do a backup of the boot partition, the recovery partition, and a backup of system using the "system_image" option, not "system". Once your backup is complete, feel free to flash SuperSU.
[One (M9) General] stingerbs:
So I'm in a sticky situation atm. I wiped my stock backup that I had and now I want to unroot so I can take the OTA for Marshmallow. I'm currently on 5.1 (2.11.502.18). I downloaded the stock ATT TWRP backup zip and I managed to find a 2.11.502.18 stock recovery .img file on another XDA thread. Is this enough to unroot and go back to stock or am I missing something?
[One (M9) General] topbanana4:
i have rooted my phone but am having problems with the OTA part , I have a update to 6.01 ( I'm on EE UK ) but when I've downloaded the update and it reboots it goes to about 15% and I get a red cross ,

please help
[One (M9) General] conductive:
Thanks for the turorial.

I had a problem in section 3D

mount can't find /dev/block/bootdevice/by-name/system /system in /etc/fstab

I then tried to install SR4-SuperSU-v2.78-SR4-20161115184928.zip got caught in a boot loop and had to flash the recovery backup.

What is the best approach to root and install SuperSU
[One (M9) General] conductive:
I can mount /dev/block/mmcblk0p66 but it still boot loops when I try to load SuperSU from TWRP recovery.
[One (M9) General] barashe:
flashed system_image and recovery and phone froze

Hi,

I'm trying to get back to stock to get the new OTA.

I just flashed my own system_image.emmc.win and a downloaded fitting recovery.

I rebooted and my phone got stuck on the white HTC screen, not responding to anything. I'm letting the battery drain, to get into download mode and flash TWRP again.

Any thought on what I can do now?
[One (M9) General] barashe:
My bad

It was a very noob mistake. My battery was low, so the flashing failed and I just didn't notice. My M9 is being updated to Nougat as we speak :)