yashsingh1/xdaforums huggingface dataset:
[One (M7) Q&A, Help & Troubleshooting] Narship:
Well,

Honestly it is very difficult for something to go wrong following the guide.

In my case there is no RUU support. and have a rare CID (HTC__332)

For this reason I could only use the NANDROID option in two ways:

Note: Unlocked Bootloader, Custom recovery (TWRP), Root and S-OFF previously.

1) HBOOT 1.55+ (limited fastboot commands)

- Delete the entire system, cache, data, dalvik (Full WIPE)

- Restore NANDROID backup (TWRP)

- Delete TAMPERED flag / LOCK BOOTLOADER (Using Guru Bootloader Reset ZIP)

- Back to STOCK RECOVERY, flash in RUU mode (Because we can not modify the bootloader locked once).

- Check OTA and do it a full FACTORY RESET

- S-ON (Not recommended but it is a possibility)

2) HBOOT 1.44 (this was my choice)

- DOWNGRADE HBOOT to 1.44 (Look for one specific to your version of MAIN or modify an existing)

- Delete the entire system, cache, data, dalvik (Full WIPE)

- Restore NANDROID backup (TWRP)

- Back to STOCK RECOVERY or closest version (Flash in fastboot)

- Use temporary custom recovery with fastboot commands "fastboot boot CWM.img" (Download CWM recovery and rename)

- Delete TAMPERED flag / LOCK BOOTLOADER with Guru's ZIP (Previously copied into memory or use ADB commands)

- Check OTA and do it a full FACTORY RESET

- S-ON (without fear this time) in HBOOT 1.44.

Thank you very much @nkk71 for all the help and all the files that you modified for me (including special stock recovery to flash in RUU mode).

I hope that this process will serve more users to tide like me :D

PD.: Not get into trouble and if they need my NANDROID backup (HTC ONE Claro Perú - Latin America 4.3 JB CID 332) let me know, GOOD LUCK!

PD 2.: Sorry if I do not speak English well xD
[One (M7) Q&A, Help & Troubleshooting] nkk71:
"So I want to return to sense and try some custom based sense rom" -> no need to LOCK, no need to S-On!!!!!!

This guide is mostly about returning to stock for warranty or selling the phone.

If you're staying on custom ROMs, then just go ahead and flash Sense firmware and then a Sense ROM. that's all. (unlocked bootloader and S-Off)

No need to go all the way back to zero (there's no harm in doing it, but why bother)
[One (M7) Q&A, Help & Troubleshooting] nkk71:
If you want your phone to be back to T-MOB101, then receive the OTA as T-MOB101, otherwise your phone is going to be a HTC__001 model.
[One (M7) Q&A, Help & Troubleshooting] nkk71:
Well, Good luck mate, hope all goes well with the repair :fingers-crossed:
[One (M7) Q&A, Help & Troubleshooting] Kahbrohn:
NKK71...

Your guide and help worked perfectly! I took my phone in to have the microphone checked out and AT&T changed my phone (I suppose for a refurbished one)... no questions asked. I even get to keep the remaining warranty from my original phone so I have like 4 months still left. OTA are installing right now before I move on to re-rooting it.

Important thing is that I have full communications capabilities again.

Thanks...
[One (M7) Q&A, Help & Troubleshooting] nkk71:
Glad everything worked out :)

Happy flashing!

BTW: 52.0 is online and syncing ;)
[One (M7) Q&A, Help & Troubleshooting] Kahbrohn:
Well all right then! By the time I re-root, I hope it will be up and ready for downloading!
[One (M7) Q&A, Help & Troubleshooting] harshdev:
Hi nkk71, thank you so much. One last question. When you say flash a sense based firmware you mean 4.19.401.8. Currently I have GPE firmware which is 3.62.1700.1. Wouldn't I have to lock the bootloader to flash 4.19.401.18? Also when I have 4.19.401.18 and I want to return to GPE can I reflash 3.62.1700.1 and restore nanroid?

Appreciate all your help. Thank you so much.
[One (M7) Q&A, Help & Troubleshooting] nkk71:
1- with S-Off, no need to lock bootloader (check post #1 under "Not so FAQ #2" what can and can't be done)

2- you can keep firmware as it is, right now, it's "recommended but not necessary" to update firmware, but since you're S-Off, it only takes a few minutes so why not ;)

3- yes, if you want to go back to your nandroid, just reflash whatever firmware works best for you and restore nandroid

If you just wanna try Sense ROM, then go ahead, do a nandroid, and install a Sense ROM (with wipe during installer), if you like it, you can always change/update firmware later.
[One (M7) Q&A, Help & Troubleshooting] harshdev:
Again Thank you. You have been amazing.
[One (M7) Q&A, Help & Troubleshooting] nkk71:
No problem, glad to have helped :)
[One (M7) Q&A, Help & Troubleshooting] coelhooliveirar:
Awesome guide and thanks so much to [MENTION=2605798]nkk71[/MENTION] . Very nice guy and showed no limits to help!
[One (M7) Q&A, Help & Troubleshooting] Ethan_93:
Thanks a lot nkk71.

I returned to stock :good:. and S-ON. Perfect, now I can send my phone to repair:victory:

Will update to kitkat before :cyclops:.
[One (M7) Q&A, Help & Troubleshooting] apd:
Thanks for this brilliant guide. I have a quick question. I have now returned to stock (4.1.2). I want to run the OTAs. The first is a small OTA (said to be an error fix) and runs fine. Then it looks to run a 400 or so Mb OTA to go up to 4.2.2. But that always stalls about a quarter of the way through. Id there any way around this - i want to sell the phone on the latest software.

Thanks

UPDATE: when I try to run the OTA and it fails, I then reboot and it tries to run the OTA again and takes me a to s black screen with a red triangle and exclamation mark. Holding down the power switch forces the phone to reboot back into android. Very frustrating!
[One (M7) Q&A, Help & Troubleshooting] nkk71:
Hmm, well first thing: an OTA is an upgrade, whether it's small or large doesn't matter, so if the first OTA went through fine, then your phone "has proven itself" to be 100% stock, so there shouldn't be a problem with any future OTAs.

Only the first one could get stuck, and needs a manual reboot, if the stock recovery being used is not the same as your actual version (this is expected behaviour), any OTAs after the first one, should have no issues at all.

Second, the red triangle coming up, means either there is something non-stock about the ROM, or the download was corrupt... have you tried downloading it again?

Can you tell me which method and files you used, and post a fastboot getvar all (excluding IMEI and s/n).
[One (M7) Q&A, Help & Troubleshooting] apd:
Thanks - I'll try going S-Off again and doing the last few steps again with re-downloads to see if that help and then will send the details (I have win 8.1 at work it doesn't play nicely with my HTC so I'll do it over the weekend and send the getvar all results if there's a problem). Now you're making me wonder whether the first OTA did in fact work as I did a factory resent and the small OTA came up again, suggesting it hadn't taken. I am now wondering whether the recovery I chose was just too new.

I'll report back over the weekend but thanks in the meantime.
[One (M7) Q&A, Help & Troubleshooting] apd:
Thanks - I'll definitely start with that. I did wait for a long time for the OTA to complete - I left it running overnight!!!

One other point on a separate issue - when you mention in the instructions adb pushing things to /data/media during the process, I found that I couldn't access those files from CWM. I found it better in the end simply to copy the zips to SD Card/Download with the phone booted up.
[One (M7) Q&A, Help & Troubleshooting] nkk71:
1- no overnight OTAs, if it doesn't get stuck, it should be around 10mins.

2- yes you can do that, BUT, how do you achieve step 5 after step 4?? you should look at FAQ #2, that's probably the problem of adb you were having; and that needs to be fixed to be able to use step 4

then

step 5!!
[One (M7) Q&A, Help & Troubleshooting] coelhooliveirar:
When I did push the files the CWM didn't show the files, only in the first time I pushed the folder.

Push once and twice and you'll find the files in CWM.
[One (M7) Q&A, Help & Troubleshooting] apd:
I'd read ahead so I copied the files for steps 4 and 5 to the phone at the same time!

I don't think I had an adb driver issue - Win7 never reported a driver problem.

On the way back now so will start the process again soon. Thanks so much for the help so far
[One (M7) Q&A, Help & Troubleshooting] nkk71:
even with all the files on your phone, you can't do step 5 without "fastboot boot CWM.img" so make sure that's working.

Let me know if you have problems with Guru Bootloader Reset hanging... thinking of writing an adb shell script instead. (I didnt have too many problems but [MENTION=4718524]coelhooliveirar[/MENTION] had a hard time getting it to work).
[One (M7) Q&A, Help & Troubleshooting] apd:
Yep it worked each time

Will do, although I think I remember it working

---------- Post added at 07:58 PM ---------- Previous post was at 07:49 PM ----------

Could you have a look at this please - a curious result? Should I be worried:

(bootloader) version: 0.5

(bootloader) version-bootloader: 1.44.0000

(bootloader) version-baseband: 4A.13.3231.27

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 1.28.401.7

(bootloader) version-misc: PVT SHIP S-ON

(bootloader) serialno: XXXXXXXXXXX

(bootloader) imei: XXXXXXXXXXXXX

(bootloader) meid: 00000000000000

(bootloader) product: m7_ul

(bootloader) platform: HBOOT-8064

(bootloader) modelid: PN0710000

(bootloader) cidnum: HTC__001

(bootloader) battery-status: good

(bootloader) battery-voltage: 4183mV

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: dirty-5d8b0f7651bb88c960f701ae91477674a

getvar:all FAILED (unknown status code)

finished. total time: 0.062s
[One (M7) Q&A, Help & Troubleshooting] nkk71:
no this is perfectly normal.

1- the commit is always dirty, not matter what

2- when you get the FAILED during a getvar (hboot 1.44) [also normal], just unplug & replug the phone to get it working again.

EDIT: though usually it says, "too many links" or something like that
[One (M7) Q&A, Help & Troubleshooting] apd:
UPDATE

I used the Nandroid method last time. This time I used the RUU.zip method. It has successfully taken one proper OTA already and is downloading the second so fingers crossed.

Thanks again for the help - you have been great.

Two points I discovered this time: (1) the destination of /data/media still doesn't work with the recovery you link to. It works perfectly if you use /sdcard/ (or I suppose people could sideload). (2) the Guru Reset doesn't work on that recovery for some reason - it hangs at 0% forcing you to adb reboot. I downloaded CWM recovery from this thread and it worked perfectly.

Thanks again. Will update again when the next OTA has gone through (it was the one which was refusing to go through before but it was the first OTA then)

Final Update - now on 4.3 through OTAs. Phone will now go on Gumtree!
[One (M7) Q&A, Help & Troubleshooting] nkk71:
Thanks for the feedback

Regarding (1) it worked for me, but you have to be in custom recovery not booted up ROM, otherwise you may get "permission denied"

(2) happens sometimes, it's an Aroma thing.... maybe I'll just write a script instead

but both worked for me, as you can see in Post #7
[One (M7) Q&A, Help & Troubleshooting] muhammad.uzi1994:
Taiwan Based Stock Rom

hi all, i'm currently on CID HTC__621 with MID PNO711000 and hboot 1.56 , s off and running ARHD 51, i want to revert to stock Taiwanese ROM that can take OTA updates, i changed my CID to Taiwanese (HTC__621) successfully, and now i'm going to install this stock Taiwan ROM http://www.htc1guru.com/dld/guru_reset_m7_2-24-709-1-zip/ , my question is this , do i need to downgrade my hboot from 1.56 to 1.44 in order to get this stock ROM to work? [MENTION=2605798]nkk71[/MENTION] any help will be much appreciated.
[One (M7) Q&A, Help & Troubleshooting] nkk71:
Why bother?

you can stock signed firmwares from here: http://xda7.androidrevolution.nl/db_mirror/Firmware/index.php?dir=HTC/HTC_One/

or custom ones from: http://xdaforums.com/showthread.php?t=2365506
[One (M7) Q&A, Help & Troubleshooting] muhammad.uzi1994:
i just want to be able to get stock HTC updates, i've changed my CID and downgraded my hboot to 1.44, next i will download a stock ROM for taiwanese cid , install it and flash stock recovery, then relock my bootloader to get OTA's , is that all or am i missing something? [MENTION=2605798]nkk71[/MENTION] much thanks for your help
[One (M7) Q&A, Help & Troubleshooting] nkk71:
1- since you're s-off, leave the bootloader unlocked

2- are you sure it's .709. not .707. ? (I'm not sure, so just asking)

3- if you're going to use the Guru Reset 2.24.709.1, then flash the corresponding firmware 2.24.709.1 from here: http://xda7.androidrevolution.nl/db_mirror/Firmware/index.php?dir=HTC/HTC_One/709/

Stay S-Off and Unlocked!!
[One (M7) Q&A, Help & Troubleshooting] muhammad.uzi1994:
it's .709 but i dont plan on Resetting the bootloader, i'll just relock it after installing the stock ROM (i've read somewhere that OTA's are only received if your bootloader is locked) , i have 1.44 hboot now, i just downgraded it , so will that be all (downgrading hboot, changing CID , installing ROM and relocking) or do i need to do some additional steps? thanks ^_^

---------- Post added at 09:43 PM ---------- Previous post was at 09:39 PM ----------

also , after downgrading my hboot to 1.44, there is no "OS" information in the bootloader, will the firmware be installed automatically once i install the stock rom ? or do i have to flash it in RUU mode via fastboot?
[One (M7) Q&A, Help & Troubleshooting] nkk71:
1- i would flash the firmware too, as it's stock 2.24.709.1 firmware, so exactly the same as the Guru ROM you're using.

2- you can stay unlocked, but if you're more comfortable relocking, be my guest, as long as you stay S-Off
[One (M7) Q&A, Help & Troubleshooting] nkk71:
That's strange, it should say 1.29.401.1 (or similar)

after

you install the Guru ROM, flash the firmware I mentioned and OS should then be 2.24.709.1
[One (M7) Q&A, Help & Troubleshooting] muhammad.uzi1994:
ok, so now i need to install the Guru ROM, then boot into bootloader and flash the firmware that you mentioned via RUU method (does it erase SD content too? ) and then relock my bootloader to get OTA's and i'm good to go? that's all? thanks a lot for helping out
[One (M7) Q&A, Help & Troubleshooting] nkk71:
yes

1- install Guru ROM

2- flash firmware.zip

[B]fastboot oem rebootRUU
fastboot flash zip <name of firmware>.zip
fastboot flash zip <name of firmware>.zip[/B] <- yes, twice!!
[B]fastboot reboot-bootloader[/B]

3- relock if you really want to, but it's not necessary

no it will not wipe internal storage (music, pictures, etc); (at least it should not, but why not make a backup in any case)
[One (M7) Q&A, Help & Troubleshooting] muhammad.uzi1994:
so even if i manually flash the 2.24.709.1 firmware via the RUU command prompt thing, i'd still be able to get OTA? Plus, is there any chance that the Guru Rom will automatically flash the 2.24.709.1 firmware? (guru rom installs stock recovery and radio within the aroma installer)

(hitting the Thanks button again)

---------- Post added at 10:19 PM ---------- Previous post was at 10:09 PM ----------

also , i should mention here that my stock CID was HTC__332 and i've changed it to HTC__621 (Taiwan CID) , and in the bootloader it shows HTC__621 too, will this Guru ROM work for me? (it's for Taiwan) i mean, the CID wont give me any trouble , will it?
[One (M7) Q&A, Help & Troubleshooting] nkk71:
The Guru ROM, will only install the ROM part (/system and /data) + stock recovery & radio (a small part of firmware) if you select them in installer, it will not update/downgrade the actual firmware, which in the case of 2.24.709.1 include all of these:
[One (M7) Q&A, Help & Troubleshooting] nkk71:
The ROM won't care about CID, but the firmware will:

modelid: PN0711000
cidnum: HTC__621
mainver: 2.24.709.1
[One (M7) Q&A, Help & Troubleshooting] muhammad.uzi1994:
i have model ID PNO711000 and cid is HTC__621, so the firmware will work for me, it wont give trouble , right?

---------- Post added at 10:38 PM ---------- Previous post was at 10:34 PM ----------

but my main question is that the cid HTC__621 wont give me any trouble, since my original cid was HTC__332 and i changed it to 621, is there a chance that the firmware might give me trouble because of changed cid? Also .should i use stock signed firmware or custom firmware? will stock signed firmware wipe my sd card?
[One (M7) Q&A, Help & Troubleshooting] nkk71:
you have model PN0711000 not PNO711000 (difference between a zero and letter o), and it doesn't matter what your original CID was, since you changed it.

But keep S-Off, if you ever want to unlock again, it's better to have S-Off since HTCdev may or may not work after a changed CID. (sometimes it does, sometimes it doesn't)

EDIT: no it will not wipe internal storage, for that the file has to contain "dzdata...." files:
[One (M7) Q&A, Help & Troubleshooting] muhammad.uzi1994:
oh yes yes , it's PN0711000 :) i accidentally almost always thought it to be an O instead of a zero D: but anyway , thanks for your help, i'm off to sleep now, i'll install the ROM and firmware tomorrow and i'll keep you posted with the results, thanks a lot for helping out, you're the best

---------- Post added at 11:24 PM ---------- Previous post was at 10:52 PM ----------

one tiny little last question, if i flash the firmware 2.24.709.1 after installing the rom, will my hboot also get upgraded to 1.54 or 1.56 or will it stay at 1.44? i've read somewhere that attempting to lock bootloader with hboot greater than 1.44 might result in a bricked device
[One (M7) Q&A, Help & Troubleshooting] nkk71:
it'll upgrade hboot to 1.54 as it should, and when you receive 3.xx OTA, that will update hboot to 1.55, etc.

and locking bootloader on any hboot is fine, no brick involved.
[One (M7) Q&A, Help & Troubleshooting] muhammad.uzi1994:
i just installed the Guru ROM Guru Reset M7 2.24.709.1 , and i'm receiving an OTA update to 3.18.709.2 , i didnt manually flash the firmware 2.24.709.1 and the OS part is still not present in the bootloader, i will fastboot getvar it all to see if my OS is present there, i tried to flash the firmware manually but it said "error (too many links)" something like that

EDIT: i just booted into bootloader and OS part shows 1.29.401.2 , i think it's fine now
[One (M7) Q&A, Help & Troubleshooting] muhammad.uzi1994:
D:\HTCONEROOT>fastboot flash zip firmware.zip

sending 'zip' (41194 KB)...

OKAY [ 3.417s]

writing 'zip'...

(bootloader) zip header checking...

(bootloader) shift signature_size for header checking...

(bootloader) zip info parsing...

(bootloader) checking model ID...

(bootloader) checking custom ID...

(bootloader) start image[hboot] unzipping for pre-update check...

(bootloader) start image[hboot] flushing...

(bootloader) [RUU]WP,hboot,0

(bootloader) [RUU]WP,hboot,99

(bootloader) [RUU]WP,hboot,100

(bootloader) ...... Successful

FAILED (remote: 90 hboot pre-update! please flush image again immediately)

finished. total time: 4.980s

D:\HTCONEROOT>fastboot flash zip firmware.zip

sending 'zip' (41194 KB)...

getting stuck on there while trying to manually flash 2.29.709.1

EDIT: i unplugged the phone while it was stuck, plugged it back in and ran the 'fastboot flash zip firmware.zip' again and it did the trick

---------- Post added at 07:55 AM ---------- Previous post was at 07:46 AM ----------

i successfully flashed 2.24.709.1 firmware, and i am receiving OTA updates and they download successfully but when i choose to install them, the phone boots into stock recovery and the light blue bar of progress goes halfway, then it remains stuck halfway and i get a red icon in the phone logo of stock recovery, can you tell what's wrong? and why i cant install the OTA ?

---------- Post added at 08:07 AM ---------- Previous post was at 07:55 AM ----------

i am now on OS 2.24.709.1 with hboot 1.54, unlocked and s off , running stock taiwanese 4.2.2 ROM, i receive OTA update to 4.3 and it downloads fine too, but when i choose to install it , the phone boots up into recovery, the progress bar goes halfway and then i get a red exclamation mark icon and i have to restart my phone, can you tell me what i'm doing wrong? when i press power button and volume up and down simultaneously to get the menu in recovery, i see error "cannot mount sd card, fail 1 times" upto 4 times and also there is a Tamper flag on the recovery menu , my bootloader is unlocked but Tampered and i'm on hboot 1.54...

will this OTA update work for me http://www.htc1guru.com/dld/ota_m7_..._3-63-709-3-3-18-709-2_r3_release_340275-zip/ the OTA version i'm receiving in my phone is 3.18.709.2 , coming from 2.24.709.1 , also, i cant seem to understand why my recovery is acting up weird, can you suggest any fix? thanks
[One (M7) Q&A, Help & Troubleshooting] muhammad.uzi1994:
Do i need to flash recovery 3.18.709.2.img stock recovery from this folder http://d-h.st/users/Guich/Stock Recovery i tried it with 2.24.709.1 stock recovery and it didnt work, please note that the OTA i'm receiving is 3.18.709.2
[One (M7) Q&A, Help & Troubleshooting] nkk71:
That's strange, the firmware.zip (it's original signed HTC firmware) contains stock recovery and should have worked.

Is the OTA still on your phone, try updating it manually:

-> reboot to bootloader

-> enter stock recovery

-> press POWER + VOLUP to get the menu

-> select apply zip (or whatever it's called), and select the OTA file

this should give you more detailed output as to why the OTA is failing
[One (M7) Q&A, Help & Troubleshooting] muhammad.uzi1994:
i get Patch Error (/system/customize/MNS/default.xml) something like that , it fails verifying it , i'll download the OTA from Guru's site and try to install it manually via recovery
[One (M7) Q&A, Help & Troubleshooting] nkk71:
"i get Patch Error (/system/customize/MNS/default.xml)" -> that means the file "default.xml" is not 100% stock and therefore the OTA cannot continue, nothing to do with recovery or firmware or the OTA

you need to check the MD5 (of that file) inside the Guru ROM and check if it's the same as in the updater script inside the OTA.

This is sort of off topic to this thread/guide, and I just saw your thread in Q&A, we'll continue it there...
[One (M7) Q&A, Help & Troubleshooting] randomA:
Hey [MENTION=2605798]nkk71[/MENTION], are you able to help me out with a new bricking/bootloop scenario ? Might even be sort of related to this thread !
[One (M7) Q&A, Help & Troubleshooting] nkk71:
hi, just saw your PM, since you already posted here: http://xdaforums.com/showthread.php?t=2671636&page=2

we can continue there...