yashsingh1/xdaforums huggingface dataset:
[One (M9) General] Flippy498:
What is written directly under the sentence that explains that you can't install OTAs if you simply unroot and re-flash the stock recovery? And how should that second sentence get rephrased in simpler words than it already is?
[One (M9) General] teddy0209:
Under twrp backup section, download the system.img, boot, and recovery... Put them in the twrp backup folder on your phone, boot to twrp, mount system as read only, then restore those three, done... Now you're ready to take the ota... If still not clear to you, take time to read, pretty much everything has been written on the first few pages...
[One (M9) General] shivangshukla:
I understood that .

My question was what should i do now to install OTAs.

---------- Post added at 11:31 PM ---------- Previous post was at 11:28 PM ----------

Thank you thats what i wanna know.
[One (M9) General] Flippy498:
That's exactly what got written on page 1 in the twrp section and the sentence I'm talking about and which I can't rephrase simpler exactly tells you to look there (or alternatively to flash a RUU and therefore to look at the RUU section).
[One (M9) General] k3lcior:
Can someone point me to website that could show where the phone was made, manufacturing date etc. using S/N or IMEI?

Is there one specifically for HTC?
[One (M9) General] Flippy498:
Did you take a look at the further reading section of this thread?
[One (M9) General] k3lcior:
Question, got my phone few days ago and it's a bit weird. Im using it in EU and its working perfectly fine with EU sim card etc., but it looks like it was originally AT&T, does it mean it was converted?

On the back of my device its engraved "model: 0PJA100"

This is my current firmware and output of getvar:

C:\WINDOWS\system32>fastboot getvar all
< waiting for device >
(bootloader) kernel: lk
(bootloader) product: htc_himaulatt
(bootloader) version: 1.0
(bootloader) serialno:
(bootloader) current-slot:
(bootloader) imei:
(bootloader) version-main: 4.30.617.12
(bootloader) boot-mode: download
(bootloader) version-baseband: 01.01_U11440971_103.00.61018G_F
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 0PJA11000
(bootloader) cid: BS_US001
all:
finished. total time: 0.022s

So if my phone was converted, which RUU im supposed to get, in case i would like to go back to stock and which variant my M9 is?

I obviously want it as "International" or "Worldwide" version, so all the EU frequencies are supported..

Also is there an app that shows which LTE frequencies the phone is supporting? Like MTK engineer but for qualcomm SoC?
[One (M9) General] Flippy498:
The MID on the backside of the phone is the original one. That's the international MID in your case. The digital MID your phone is currently using is the US GSM one and it's current CID belongs to the dev edition firmware.

In other words, yes that phone got converted.

If you only want to restore the stock rom (e.g. after flashing a custom rom) then you only need to follow the instructions in the RUU section of this thread. Be aware that this will restore the stock rom of your current firmware (the dev edition one) and not its original stock rom.

You would need to follow the conversion guide on page 1 for being able to flash a different firmware. However, there is no world wide or international firmware on the M9 since HTC uses different SKUs for the different continents. The SKU you're searching for is 401 (Europe).
[One (M9) General] k3lcior:
Ok this is kinda confusing.. so in other words to convert my phone to non AT&T i would have to change MID to 0PJA11000 and then flash the 401 RUU?

Im currently unlocked using htcdev website if that makes any difference.

Also btw. the frequencies (LTE bands) which phone supports depends on the firmware we are using or it's hardware thing?
[One (M9) General] buttie:
It looks that device was converted to Dev Edition. You are using phone in Poland so you could convert it to International Edition (hima_uhl - MID: 0PJA10000, CID: HTC__001) with this RUU: https://www.androidfilehost.com/?fid=817550096634758268 (after changing MID and CID of course, phone must be S-Off).

Dev edition officially supports different LTE bands (2, 3, 4, 5, 7, 12, 13, 17, 29, 30) than Int edition (1, 3, 5, 7, 8, 20, 28, 38, 40, 41), but I wonder how it really works IRL. You can check if your phone connects on band 20, if yes then converting to Int edition won't have any benefits, especially that this FW has older security patch than Dev.

BTW: You may want to edit SN number from getvar listing as well.
[One (M9) General] k3lcior:
LTE discovery says im connected to Band 3.. didnt see it connecting to any other band..

Is there any "official" website that i could show to the seller, that AT&T variant does not support band 1 and band 20 as he keeps claiming it does support it?
[One (M9) General] k3lcior:
Could anyone help me return to stock?

I unlocked my phone, flashed twrp and rooted it (SuperSU) with the intention to s-off but i didnt realize it costs 25$ in sunshine app.

When i run twrp for the first time i didnt marked "read only" just swiped..

So now that i cannot s-off id like to go back to stock, so far i tried running "RUU_HIMA_UL_N70_SENSE80_ATT_MR_NA_Gen_Unlock_4.30 .617.12" RUU, with the phone in download mode, it starts then it says in the window that its veryfing the phone the window disappears and nothing happens..

Could anyone please point me what to do next? I already removed SuperSU (also restored boot.img while removing it), do i have to flash stock recovery now? If so which version, my current firmware version is 4.30.617.12. (i dont see this version in stock recoveries list..)

Im ok with using RUU.exe method i dont really care about losing data as i dont have any important apps.

Also for some reason i cannot backup my system image in twrp (sd card formatted as 20gb+ fat32 and 10gb ext3 partition), backup is failing every time.

Thanks...
[One (M9) General] Flippy498:
[MENTION=3707199]k3lcior[/MENTION]: Did you read the guides in this thread? Removing SuperSU is completely unnecessary since it'll get removed automatically by getting back to stock.

The RUU section explains what is needed for being able to flash a RUU and it contains more than one method for flashing them. There even is a troubleshooting part for RUU.exe files and the ARUWizard method with things that you should try if one of them doesn't work.

The Stock Recovery section on the other hand explains how to get a stock recovery if there is none available in this thread but a RUU for the same firmware. (However, by reading the RUU section you'll find out that you don't need the stock recovery.)

In addition, I'm not sure why you're always talking about AT&T since the dev edition has nothing to do with AT&T. It's the american equivalent of SKU 401. And since your phone got converted it now has the american MID (0PJA11000) and the international one (0PJA10000) is the original one of your phone.

[MENTION=3618186]buttie[/MENTION]: Are you sure about the security patch? If I remember correctly both (the European and the dev firmware) are on 1st february. (And please don't call SKU 401 "international", btw, since that might confuse some users. It's the European SKU. There is no international SKU on the M9.)
[One (M9) General] k3lcior:
But can you just confirm "RUU_HIMA_UL_N70_SENSE80_ATT_MR_NA_Gen_Unlock_4.30.617.12" is the correct RUU i should flash?

Also it's .exe file, if i want to use sdcard method im supposed to rename it with .zip extension or there are RUU's in .zip format im missing?

Sorry for stupid questions :good:
[One (M9) General] Flippy498:
Please re-read the RUU section. Both questions are answered there. (Additionally you may want to search for the key word "download links" in that post.)
[One (M9) General] buttie:
Connecting to band 20 might be tricky when you are in band 3 coverage. If you still have root you can install Network Signal Guru app and under "Lock Bands" it will show you LTE capabilities and let you choose band you want to connect to.

Yep, I'm pretty sure 4.30.617.12 has 1st April security patch.

Edit: you can see it even on screenshot posted by [MENTION=3707199]k3lcior[/MENTION] few entries earlier ('1 kwietnia' is '1st of April' in Polish)
[One (M9) General] k3lcior:
I dont see "Lock Bands" anywhere, i think its not available in free version..
[One (M9) General] buttie:
Just the thought: Did you try to run Sunshine? Your device have changed MID so had to be S-Off one time, maybe Sunshine will recognize the phone. It worked for me few years back with One m7. I've paid for Sunshine but had to go S-On to send device for warranty repair. After I got it back I've run Sunshine again and it recognized my phone and let me go S-Off without paying again.

Are you sure, I have also free version (screenshots from HTC 10, my m9 is not rooted any more).
[One (M9) General] k3lcior:
Thank you both for the help, i managed to flash RUU using sd card method.

As for the available LTE Bands the app shows me B2, B3, B4, B7, B12, B17... But on the single B3 band im able to watch 1080p youtube videos without buffering so i guess it's not as bad..
[One (M9) General] Kisakuku:
The MID on the backside of the phone is original to that back cover. There's quite a few frankenphones out there.
[One (M9) General] k3lcior:
For some reason im unable to backup system image in TWRP, every time it fails.

My MicroSD is 32GB so there is plenty of space, it's formatted as FAT32. But i also tried making 10GB ext3 partition, but the backup still failed.

What could be the issue? I can backup Boot partition with no problem, but System Image just wont backup. It fails on like 96% or so.

I did not tried formatting sd card as ex-fat yet, as im not sure if i will be able to access the sd card in Windows 10 with this file system.. should i try or the problem is elsewhere?
[One (M9) General] Flippy498:
So, you still haven't read the guides on the first two pages completely (e.g. the TWRP sections)? ;)
[One (M9) General] k3lcior:
I did read both.. is it failing because the system was mounted as read/write at some point?
[One (M9) General] Flippy498:
And what is written two points above step 1 in TWRP section 1?
[One (M9) General] k3lcior:
Ok currently im trying to temporarily boot to TWRP, to backup everything.

It is stuck on this for about 5 minutes now. Any suggestions?

Edit also tried with different adb/fasboot package:

Edit2:

Nvm.. fixed it, and the backup of the system image worked aswell.. ;)

I must say all of this is so much more complicated than it was back in the HTC Desire days..
[One (M9) General] Flippy498:
I undestand that you feel that way. Coming from the One S I had to learn a lot that changed with all the iterations between the One S and the M9.

In addition, it's not only HTC that changed a lot between the M9 and the M8. Google introduced a lot of changes on all phones that got shipped with android 5 and higher, as well.

Nonetheless, most of the important information that you might need in connection with the M9 can either be found on the first two pages of this thread or in one of the threads that are linked on those pages.
[One (M9) General] rezamiraza:
twrp stock back up (boot, system image, recovery) for HTC One M9 (HIMA) 4.30.709.12 (SKU: 709 - CID: HTC__621) as instructed by mr.

flippy498

temporary link until my account approved by AFH or someone reupload it to AFH

Stock_Backup_4.30.709.12.zip

MD5 Checksum :

9e e7 a3 65 e8 e5 1c 36 e8 03 65 da 9d e2 dd 85
[One (M9) General] zlebors:
Reading common information

(bootloader) kernel: lk

(bootloader) product: htc_himauhl

(bootloader) version: 1.0

(bootloader) serialno: FA54FYJ12003

(bootloader) current-slot:

(bootloader) imei:

(bootloader) version-main: 4.27.708.3

(bootloader) boot-mode: download

(bootloader) version-baseband: 01.01_U114401031_124.01.70203G_F

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 0PJA10000

(bootloader) cid: HTC__622

anyone have full ruu for this?

phone condition:

a. bootloop

b. S-ON with RELOCKED bootloader

c. I can't get it S-OFF or unlock the bootloader using XTC2Clip
[One (M9) General] rezamiraza:
just trying to help, i assume you still can access into bootloader mode according to your post, then you should be able to access download mode too.

if that can be done, then you can unlock bootloader and flash TWRP recovery #post4

and flash stock back up with TWRP recovery from #post9 using these stock below
[One (M9) General] zlebors:
Hi, thx for your response.. somehow i couldnt unlock the bootloader either, but finally i can get it S-OFF (not properly inset its smartcard on xtc2clip) downgrade to previous version and take OTA. (solved)
[One (M9) General] Flippy498:
Please don't recommend restoring a backup that doesn't correspond to the current firmware of a phone. If system/rom version and firmware version don't match then chances are high that the phone either doesn't boot at all or that it's laggy and buggy as hell since the files aren't meant to get mixed.
[One (M9) General] rezamiraza:
Noted,

my conclusion : cannot do flash twrp stock back up with different level of firmware (although same sku)

Thanks for advice
[One (M9) General] shivangshukla:
just confirming

my phone current information

Bootloader - UNLOCKED

Recovery - STOCK

Security - OFF

(bootloader) kernel: lk

(bootloader) product: htc_himauhl

(bootloader) version: 1.0

(bootloader) serialno: FA565YJ00859

(bootloader) current-slot:

(bootloader) imei: ********

(bootloader) version-main: 4.27.708.3

(bootloader) boot-mode: download

(bootloader) version-baseband: 01.01_U114401031_124.01.70203G_F

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 0PJA10000

(bootloader) cid: HTC__622

I wanna run AT&T RUU .exe file full name (( RUU_HIMA_UL_N70_SENSE80_ATT_MR_Cingular_US_4.27.502.7.exe ))

Here are the changes which I should do before executing it.

change CID to CWS__001

change MID to 0PJA11000

after that my phone information will look like this

(bootloader) kernel: lk

(bootloader) product: htc_himauhl

(bootloader) version: 1.0

(bootloader) serialno: FA565YJ00859

(bootloader) current-slot:

(bootloader) imei: ********

(bootloader) version-main: 4.27.708.3

(bootloader) boot-mode: download

(bootloader) version-baseband: 01.01_U114401031_124.01.70203G_F

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 0PJA11000

(bootloader) cid: CWS__001

now am I good to go ?
[One (M9) General] Flippy498:
Yes, you are.
[One (M9) General] shivangshukla:
If the recovery is not stock if its twrp do i have to flash stock recovery then run ruu or i can just leave recovery twrp ?
[One (M9) General] buttie:
You can just run RUU_(...).exe, it will flash all partitions, so you'll end up with stock recovery anyway.

Pro-tip: if RUU fails for some reason, install drivers from HTC Sync Manager. I've never been able to properly run RUU.exe on Google's/generic Windows' drivers.
[One (M9) General] k3lcior:
Is there any way to revert Software Status: Modified to Original in bootloader with S-ON?

What does it even mean, if im on stock OTA will fail because of it?
[One (M9) General] Flippy498:
Using the SD card method should revert that status.

It only means that you modified something on your phone at some point. However, it doesn't necessarily mean that you're unable to receive OTAs since the status doesn't get reverted by the other RUU flashing methods.
[One (M9) General] k3lcior:
Flashed 0PJAIMG.zip using SD card method just now but the status is still modified, is there any way to revert it with S-ON?

My bootloader is still unlocked, maybe that's causing it?
[One (M9) General] Flippy498:
Mhm... Mine always got reverted before S-OFF was available for this phone. I can only assume that HTC changed something with one of the OTAs that came afterwards.

Nonetheless, the status itself shouldn't matter at all.
[One (M9) General] warmanz:
is it better to upgrade to stock Nougat via OTA before flashing twrp and rooting then? my bootloader already unlocked its okay?
[One (M9) General] Flippy498:
Please read the guides on the first two pages. That question is already answered, there.
[One (M9) General] BAsifuina:
Totally mess up my M9 I think

I was tired of seeing "Update Software" on my M9, but I didn't know what to do to update to 6.0 (I'm not on ANY OS, but was 5.1 before) I'm on the T -Mobile version of M9, Unlocked, Modified Software, S-OFF.

I looked for everything on the forum, and nothing I find can help.

So wiped internal storage completly with TWRP 3.0.0.0 and I tried to boot and it said "No OS Installed"

Now I removed TWRP since I didn't know what I was doing and I have stock recovery.

Can I still bring my phone back to life?

What do I do?
[One (M9) General] Flippy498:
Yes, you can. The needed files and instructions can be found on the first two pages.
[One (M9) General] BAsifuina:
Thanks so much
[One (M9) General] Flippy498:
I don't know. Normally that shouldn't happen.
[One (M9) General] shivangshukla:
how do i change my BOOTLOADER STATUS from UNLOCKED to LOCKED

should i relock the bootloader and then run RUU ?
[One (M9) General] Flippy498:
That's impossible without S-OFF. There's a guide here in the General section which tells you what to do. Be aware that a typo in the used commands can turn your phone into a fancy paperweight.
[One (M9) General] Marko Indaco:
Upgrade request after unlock bootloader

Hey guys! As the title post, I was following the guide of this thread and that happens. I'm pretty sure that I've check if there's some upgrade for my phone before proceding with the unlock bootloader, but there's nothing, so I go and unlock but, soon after restart it prompt me for upgrade (see the screenshot), so, my question is: what should I do, keeping in mind that I have not yet TWRP nor root. It suggested to upgrade and after proced with TWRP and root? Surely it is a minor upgrade given the size, btw I wanna be sure about it.

Thanks in advance :D

images upload
[One (M9) General] Flippy498:
As long as you didn't modify anything you can simply install the OTA. OTAs don't check whether the bootloader is unlocked or not.
[One (M9) General] Marko Indaco:
Ok, i will procede this way. Then (next days) i'll go with TWRP and root.

Thank you very much for helping me in understand :good:

Edit:

Guys, I'm trying right now to flash TWRP but i got his error

It seems the S-ON the problem but I'm almost sure I read somewhere that was not necessary to S-OFF, it's correct? Or, in case I was wrong, ̶d̶i̶d̶ ̶s̶o̶m̶e̶o̶n̶e̶ ̶k̶n̶o̶w̶ ̶h̶o̶t̶ ̶t̶o̶ ̶S̶-̶O̶F̶F̶?̶ ... ok, got it.

Edit 2:

I'm proceding anyway to back-up my rom, loading TWRP as explained in the thread section

PS

[MENTION=5872674]Flippy498[/MENTION] is possible to add some extra info while upload rom into the AFH site?
[One (M9) General] Flippy498:
Your phone has been booted to download mode while you tried to flash TWRP (as described in my guide), hasn't it? S-OFF is absolutely unnecessary for flashing TWRP.

You can add text after uploading the file. There's an edit button which opens a new window where you can add a description and/or additional infos (those are two different fields you can fill).
[One (M9) General] Marko Indaco:
It was my mistake. Flashing TWRP in download mode it works. I also flash SuperSU successful :good:

Thank you again for support. I'll upload my stock rom tomorrow, giving some extra info needed. Indeed I ask you about it because i made some minor change, like icon dispositions, but the rom it's quite new, as I don't yet put any sim-card inside the phone, nor syncronize any accounts or whatever.

Great guide for HTC One M9 :good:

Now left only a mandatory step: how to XPosed HTC One M9
[One (M9) General] Flippy498:
Settings and such are saved in the data partition. Unless you back that one up, as well, (highly not recommended if you want to publish your backup since that partition contains personal data) your changes won't be included in the backup. Or are you modifying the backup on your PC?

Which firmware version are you using, btw? Did you check whether we already have a backup for that version on page 1?
[One (M9) General] Marko Indaco:
Yes, I got it what you mean, indeed, following you're guide I backup only "Boot", "System Image" and "Recovery". No sim-card was plugged nor any google account was syncronized. It shuold be ok. As I said, I made only a minor change like to enable dev mode and debug USB, btw, I allow my WiFi Lan Network... but I don't know if that data was included in the backup...

Firmware: 01.01_U114401011_117.00.61117G_2_F

Build number: 4.28.401.3 CL869604
[One (M9) General] Flippy498:
All that you mentioned is stored in the data partition. Nothing of it will be part of the backup.

Thanks for your willingness to contribute but we already have a backup for that firmware. Uploading another one would just waste your time. There's no difference between backups from different phones with the same firmware (if only boot, recovery and system image got backed up).
[One (M9) General] Marko Indaco:
Ok [MENTION=5872674]Flippy498[/MENTION], thank you for helping and the detailed guide. I'm proceding right now with XPosed. I add some info later about my procedure...

Edit:

Ok, I finally install XPosed and XPrivacy module, ̶b̶u̶t̶ ̶I̶ ̶g̶o̶t̶ ̶a̶ ̶p̶r̶o̶b̶l̶e̶m̶ ̶w̶i̶t̶h̶ ̶X̶P̶r̶i̶v̶a̶c̶y̶.̶ ̶I̶ ̶a̶l̶r̶e̶a̶d̶y̶ ̶s̶e̶n̶t̶ ̶t̶h̶e̶ ̶a̶u̶t̶o̶-̶d̶e̶b̶u̶g̶ ̶r̶e̶p̶o̶r̶t̶ ̶v̶i̶a̶ ̶e̶-̶m̶a̶i̶l̶ ̶t̶o̶ ̶t̶h̶e̶ ̶d̶e̶v̶.̶ (Edit: Android 7 Nougat it's actually not supported, this is why (I guess) for thats errors. To follow the (official) Xposed news go here. For XPrivacy support page go here

The version needed is the Xposed SDK24 ARM64 (scroll down at the middle of the first post, download links and instructions are there)

Here's the list of working - partially working - not working modules (consult it and report modules behaviour that you use)
[One (M9) General] Jooneed:
Hi guys, need some help.

Got an unlocked HTC One M9, gsm variant. already rooted previously and backed up stock recovery. Had an OTA update for some time pending and restored the stock recovery yesterday before applying the OTA. Worked fine. Now updated to version 4.28.401.3.

However, when I now try to re backup the recovery before rooting again, i get < waiting for device > after sending "fastboot boot" command in bootloader mode...

what's wrong?

can anyone advise

Thanks
[One (M9) General] amit_coolcampus:
Did you try the same in download mode?
[One (M9) General] Flippy498:
[MENTION=5197880]amit_coolcampus[/MENTION]

Fastboot boot only works in bottloader mode.

[MENTION=2397082]Jooneed[/MENTION]

You actually don't need to backup the recovery by yourself. Simply download either the twrp backup from page 1 for your firmware and only restore the recovery included for getting it or download the correct RUU and extract the recovery from it via the decryption tool.
[One (M9) General] Jooneed:
Yes, did that as well.

---------- Post added at 11:46 AM ---------- Previous post was at 11:44 AM ----------

so, then, i need to check the version of my firmware to know which twrp backup i need to download, and do so in download mode, fastboot getvar all, right?

thanks
[One (M9) General] Flippy498:
It's easier than that. Take a look at the guide in TWRP section II. ;)
[One (M9) General] Jooneed:
Guys, think my problem is something else. If i try to flash twrp, here also i get <waiting for device>. it never goes to the flashing process. Also, when in bootloader mode and i choose recovery mode, my screen goes to red exclamation mark and gets stuck, like there is no recovery... and i have to continuously press on power button to reboot the phone...

how do i proceed if i want to re-root my m9?

thanks
[One (M9) General] Flippy498:
That exclamation mark is the stock recovery (c.f. the FAQ of this thread).

Please take a look at the guide for setting up adb/fastboot/htc_fastboot correctly which is located on page 1 of this thread.
[One (M9) General] Jooneed:
Thank you for your patience Flippy498. It's working now. i forgot that since the time i rooted this phone, i think around february this year, i have reformatted my laptop and therefore there's no htc drivers anymore :)