• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Trying to restore an old HTC One M7 to stock

Search This thread

ZaLiTHkA

Senior Member
Jan 14, 2008
937
133
Redmi 9
Greetings,

Going through some boxes the other day I found my old HTC One M9, which I had previously unlocked and flashed with various different ROMs.. Basically, this was the first device I ever actually tried any custom ROMs. That said, it's been so long, I don't have any of my old files left and I don't remember exactly what I did.

At this moment in time, the device is booting and running Xiaomi MIUI 8 (Android 6), but I'm unable to get into TWRP (constant bootloop) and I can't flash a new recovery image.

After a "fastboot reboot bootloader", I see the following details:

Code:
*** UNLOCKED ***
M7_UL PVT SHIP S-OFF RH
CID-11111111
HBOOT-1.54.000
RADIO-4T.36.3218.06
OpenDSP-v26.120.274.0202
OS-
eMMC-boot 2048MB
Apr 28 2015,09:16:24.0

When I try flash "twrp-3.3.1-1-hima.img", I get the following:

Bash:
> fastboot flash recovery twrp-3.3.1-1-hima.img
Sending 'recovery' (21852 KB)                      OKAY [  2.072s]
Writing 'recovery'                                 FAILED (remote: 'image update error')
fastboot: error: Command failed

I'm hoping to flash LineageOS from this thread, either 16.0 (as per the thread details) or the 17.1 or 18.1 available in the linked repository, but I can't do so until I get the recovery partition sorted out.

Please can someone help me fix whatever it was that I broke here..?

---

Please note: originally, I accidentally posted this in the M9 forum. I'm now creating this to replace that thread...

There was a suggestion to just try flashing the boot image first, and effectively worry about recovery later. So I will jump on that, as soon as I have this annoying "no permissions" issue with fastboot. But I do want to post this here in the meantime, just in case somebody has any other bright ideas.
 

ZaLiTHkA

Senior Member
Jan 14, 2008
937
133
Redmi 9
..and I just realised I was trying to use the "hima" recovery, which is the codename for the One M9. 🤦‍♂️ I'm really out of the Android flashing game these days..

Suffice to say, this is somewhat embarrassing. Let me go try this again, using the proper files this time. I'll update things again soon..
 

ZaLiTHkA

Senior Member
Jan 14, 2008
937
133
Redmi 9
So guess what, with the correct files, things actually flash.. Amazing how that works hey? :LOL:

Anyways, after all that, I got it sorted. Flashing LineageOS now.