yashsingh1/xdaforums huggingface dataset:
[One (M8) Q&A, Help & Troubleshooting] Nutlauncher:
Hi ckpv5,

I've just tried to root my device...unsuccessfully and now i trying to get the stock rom back on my phone. I've found the twrp backup for my vodafone phone (VODAP001) which is also on the current version that i have, 6.12.161.4 . I also found the firmware 6.12.161.4. Due to me attempting the root before, on my bootloader i have the software status as modified. Would i be required to do something with the firmware first because of this? Sorry for the lack of knowledge, i've never had any experience with this before.

This is what i get when i run the getvar all:

< waiting for device >

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.29.214500021.12G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main:

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

(bootloader) serialno:

(bootloader) imei:

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B10000

(bootloader) cidnum: VODAP001

(bootloader) battery-status: good

(bootloader) battery-voltage: 0mV

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: 76df2b54

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

could you give me a step by step guide please, i know you have the instructions in the post but i'm a bit hesitant to do it without checking first. Can't afford to mess my phone up anymore. Thanks
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
How about rooting it correctly, before trying to start over (back to stock)? I can tell from the main version being blank, that you used an outdated version of TWRP. If your issue is no boot after trying to root, this is usually due to using old version TWRP and old version SuperSU. Install the current version TWRP version from here, then flash a current stable SuperSU 2.76 from here, and you should be able to boot, and with root!

Next time, just make a TWRP backup before trying to root. Then if something goes wrong, all you have to do is restore that backup to get it working again.

If you still want to return to stock using this thread; I can't see how a guide can be any more step-by-step than already provided in the first post. Seriously, even this guide breaks it down into smaller steps than really necessary (since some folks seem to like that). At its core, all you have to do is download the file, unzip it, than place the unzipped folders on the phone (in the proper place - that is really the biggest challenge), and restore in TWRP.

Dozens of folks have already restored successfully using this guide. Instead of asking someone to write a special guide just for you; how about just taking some time to review and understand the info that is already given. Then, if you have specific questions, post them here, and we'll be happy to answer.
[One (M8) Q&A, Help & Troubleshooting] Nutlauncher:
Thanks for the answer, my phone actually works fine minus not being able to download anything to it (so not fine at all i suppose :crying:). I did originally use the latest version of TWRP but wasn't able to flash a version of SuperSU onto it through not being able to download the zip to my device.

I understand that, mostly just wanted to check that the two files i downloaded where the correct ones and whether i need to do anything with the firmware before or after the backup, if at all.
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
Ok, well those are 2 very specific questions, that don't require a step-by-step guide.

There is only one MM version for your CID, and as you already mentioned its 6.12.161.4, so that is the backup you want to use.

You don't need to flash the firmware in order to restore the stock backup. It would fix the (very minor) issue of your firmware number not showing up in getvar (version-main) or on your bootloader screen (OS number). Otherwise, I don't know if your download problem is anything related to firmware, my hunch would be NO. So I would say, don't mess with the firmware yet. Installing the firmware would add lots of extra steps (lock bootloader, flash firmware, unlock bootloader again, flash TWRP again) for what is probably not much value added.

I'd suggest starting with restoring the stock 6.12.161.4 backup, and see if that solves your download problem.
[One (M8) Q&A, Help & Troubleshooting] Nutlauncher:
Great thanks for your advice :) i didn't mean to sound demanding in anyway before either. I think i've managed to root it properly as you suggested before. Managed to find a micro sd card to put the superSU zip file on and then installed it from twrp. Just downloaded root checker and that says that it has been a success so thanks for your help.
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
No worries, you didn't sound overly demanding. You just asked for something (a step by step guide) that IMO was not needed, which I explained; then you subsequently explained what your specific questions were, which were perfectly reasonably. So its all good.

Nice to see you got it rooted. But did you try to restore the stock TWRP backup, and/or get the download issue fixed?
[One (M8) Q&A, Help & Troubleshooting] Nutlauncher:
I didn't have to in the end, just factory wiped my phone which fixed the download problem, put the latest version of twrp on the phone and the downloaded copy of superSU onto a microSD card and then installed it from there
[One (M8) Q&A, Help & Troubleshooting] dPlatypus:
Hi,

I am on CM 13 Nightlies and I want to get back on stock. I used this guide to return back to stock when mm update for m8 was released and then I flashed CM 13. Can you tell me which recovery and backup I need to use now?

here is information from getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.29.214500021.12G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main:

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

(bootloader) serialno:

(bootloader) imei:

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B10000

(bootloader) cidnum: HTC__032

(bootloader) battery-status: good

(bootloader) battery-voltage: 0mV

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: 76df2b54

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
cid htc__001, htc__j15, htc__e11, htc__203, htc__102, htc__405, htc__y13, htc__a07, htc__304, htc__032, htc__016, htc__m27, htc__k18, htc__002, htc__a48

mid 0p6b10000

--> 6.12.401.4

Make sure to use layest TWRP 3.0.x to restore, don't use that 2.7.0.2
[One (M8) Q&A, Help & Troubleshooting] Tharinduroshan:
thanks bro... but is version 4.16.401.13 a demo version?
[One (M8) Q&A, Help & Troubleshooting] :
it is not a demo version, that is a clean stock backup. i think you haven't done 8 & 9 steps on post #1 correctly. try once again.
[One (M8) Q&A, Help & Troubleshooting] Tharinduroshan:
Ive done both steps and im pretty sure about it. as soon as i restore the backup and reboot my phone turns on and displaying upgrading android, after that it comes to the setup. then after i finished the setup it it normal for a while and appears 'installed successfully". then my display comes to it full brightness and plays a demo video. after i close that there is an app named demo. and my phones functionality is limited for the user. i cannot add a pattern, reduce brightness , turn on flight mode and much more. and that demo is opening always automatically
[One (M8) Q&A, Help & Troubleshooting] :
if you can, post ''fastboot getvar all''. we can help you easily.
[One (M8) Q&A, Help & Troubleshooting] Tharinduroshan:
(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.25.214500021.06G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 4.16.401.13

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

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B10000

(bootloader) cidnum: HTC__002

(bootloader) battery-status: good

(bootloader) battery-voltage: 0mV

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: f063fb42

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0
[One (M8) Q&A, Help & Troubleshooting] :
at first delete your imei & serial number.

1) flash stock recovery. (4.16.401.13) next factory reset through bootloader.

if it didn't work,

2) relock bootloader then unlock again.
[One (M8) Q&A, Help & Troubleshooting] Tharinduroshan:
how to unlock the bootloader
[One (M8) Q&A, Help & Troubleshooting] :
http://www.htcdev.com/bootloader/
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Every stock ROM has demo inside the ROM and that is activated by CID HTC__002

CID HTC__002 is demo unit

The only way to fix this :

1. Spend USD25 to S-Off the device and change the CID to SuperCID 11111111

Or

2. Install the latest Marshmallow ROM .. http://xdaforums.com/showpost.php?p=64926626&postcount=6

then unlock the bootloader, install TWRP and install custom ROM

or root it, remove the DemoFLOPackageInstaller.apk then do factory reset.
[One (M8) Q&A, Help & Troubleshooting] Tharinduroshan:
Oh :(:(:( So that means Im stuck with demo Forever? :crying::crying::crying:
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Read what I wrote above - how to fix it
[One (M8) Q&A, Help & Troubleshooting] Tharinduroshan:
cant i do this to my existing lollipop version?
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Yes you can .. depends on which one.

No.1 is permanent fix and you can do OTA

No.2 is temp fix, cannot do OTA

You can unlock bootloader, install TWRP then install custom ROM on your current lollipop firmware.

Or root it and remove those Demo*.apk in system/priv-app and system/etc
[One (M8) Q&A, Help & Troubleshooting] Tharinduroshan:
If i rooted it where can i find that system/priv-app
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
You're going off-topic here, your questions are nothing to do with this thread.

It's best for you to continue your non-thread related in your own thread - http://xdaforums.com/htc-one-m8/help/root-problem-please-help-t3417587

I'll help you there as we don't want people get confuse with all these non-related questions
[One (M8) Q&A, Help & Troubleshooting] Nutlauncher:
I've just installed CM12.1 onto my m8, the gapps failed to install properly so i would like to get back to stock again. As i've been reverted to android 5.1.1 will i be able to just restore my backup which is on version 6? or would i have to flash the firmware and then restore from the backup?

Thanks
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Your firmware is still 6.12.161.4 no matter which ROM you already installed. ROM and firmware are separate item.

So .. to get back to stock, just restore 6.12.161.4 backup, no need firmware.zip

(unless you want to fix that blank version-main on bootloader and getvar, flash the firmware.zip after you restore the backup)
[One (M8) Q&A, Help & Troubleshooting] Einwod:
Just restore your backup. Unless you are s-off and downgraded firmware, all should be OK.

---------- Post added at 05:07 PM ---------- Previous post was at 05:06 PM ----------

Just restore your backup. Unless you are s-off and downgraded firmware, all should be OK.
[One (M8) Q&A, Help & Troubleshooting] Nutlauncher:
Great thanks a lot
[One (M8) Q&A, Help & Troubleshooting] :
it means, if bootloader is locked device works normally. (can get ota) if someone unlock bootloader, in factory reset does it install DemoFLOPackageInstaller.apk atomatically?

so is this a showroom device?
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Is your current bootloader unlocked or relocked ?
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Yeah .. HTC__002 will install Demo even after factory reset. If bootloader is unlocked and TWRP is installed .. Demo*.apk can be deleted while in recovery then factory reset, so they (two of them in lollipop) won't get installed

http://xdaforums.com/showpost.php?p=67785759&postcount=22
[One (M8) Q&A, Help & Troubleshooting] BorcheP:
It's unlocked.
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
You need to relock bootloader .... I give you two options :

Option 1 :

1. Restore the 6.21.401.1 nandroid backup that you can get from post #3

How -To : read the steps on post #1 but skip step 11,12 & 13

2. Relock bootloader and install the fw_6.21.401.1.zip that you can get from post #5 - read the instructions on post #5 on how-to

Option 2 :

1. Relock bootloader and install the fw_6.21.401.1.zip that you can get from post #5 - read the instructions on post #5 on how-to

2. Download the RUU zip 6.21.401.1 - http://xdaforums.com/showpost.php?p=67171740&postcount=1711

then follow this guide - http://xdaforums.com/showpost.php?p=67314040&postcount=1749

Make a backup of all your important files like photos, musics & etc from Internal Storage to PC as the above procedure will wipe all your data.
[One (M8) Q&A, Help & Troubleshooting] CylonWolf:
Im attempting to get my phone back to stock that is currently running a custom Rom (SkyDragon) with TWRP 3.0.2.0. The phone is encrypted, and TWRP will not accept my PIN. Ive looked everywhere for a solution, as it seems to have came up for many others, and have tried both older and newer TWRP versions, to no avail. Is there a fix for this? Or a way to bypass needing to use TWRP? Apologies if this has been covered prior.
[One (M8) Q&A, Help & Troubleshooting] mrrocketdog:
there are others much much more smarter than i , hello [MENTION=830797]ckpv5[/MENTION] ; & not quite sure if this thread would help

http://xdaforums.com/showthread.php?t=2776609

but maybe ¿

"err on the side of kindness"
[One (M8) Q&A, Help & Troubleshooting] BorcheP:
Going to try option 2 cause I have already downloaded all required stuff (I was trying earlier but couldn't succeed)

Going to relock my bootloader and everything else is in my pc already.

Edit: Should I unlock my bootloader after I complete? Does it make any changes?

Edit2: Should I install Firmware ?

Edit3: MY DEVICE ISNT TURNING ON WHAT
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
That's personal choice. If you want to be on pure stock don't unlock.

If you want to install TWRP and root it or install custom ROM, you need to unlock bootloader.
[One (M8) Q&A, Help & Troubleshooting] CylonWolf:
Thanks...Im not sure if that method was actually what I was looking for or not, but it somehow got me to where I needed to be (TWRP did a reset and I currently have a "fresh" install of a custom ROM with no encryption). Should be able to jump back into the method in the OP from here. Thanks again!
[One (M8) Q&A, Help & Troubleshooting] BorcheP:
Dude my device ****ed up it doesn't start, it makes a little noise like "zp" and the screen is black, nothing works, when I hold Vol UP + Power shows HTC and freezes again black screen.
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Explain the steps that you taken ...

After which step that you have this problem ...
[One (M8) Q&A, Help & Troubleshooting] BorcheP:
I locked my bootloader ( it said **RELOCKED** ), I downloaded the firmware.

Started CMD,

fastboot oem rebootRUU

fastboot flash fw6.21.401.1.zip

Failed, it says repeat, so I did.

Then my device turned off, not actually off but only black screen and nothing did work. The CMD said that it's finished, tried

fastboot reboot

CMD said <waiting for device>. Since then nothing works on my phone. Totally useless black screen and the device is hot. Vol UP + Power, Vol Down + Power, Power button, nothing works. When I hold Vol UP + Power the HTC logo appears and everything is same.
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
You need to clarify what method you tried, how far you got, what specific step this issue started, any error messages, etc.
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
I hope that is your typo in writing the commands (because they're wrong)

What for is the Vol Down + Power ? Why do you press power button only ? Why only Vol UP + Power ? Then you said nothing works... they are wrong combinations

Try this ... connect to PC then you can hear a connection sound. Press and hold both Vol UP + Power button until you hear disconnection sound, release both buttons but press & hold Vol Down button only, this should get your device to hboot.

If you can then get to fastboot/bootloader screen .. start again with correct commands :

Test the connection first - fastboot reboot-bootloader

See whether it restart in fastboot mode

then try again to flash the firmware - check your downloaded firmware.zip or redownload the firmware.zip, make sure you have the right md5 -

4209c77c2a156ce7b2928b7e3628ae28

if correct

fastboot oem rebootRUU

fastboot flash zip fw_6.21.401.1.zip

you'll see failed again repeat

fastboot flash zip fw_6.21.401.1.zip

Damn ... it's not easy to write .. my laptop display connection is burnt, I have to connect to TV to write these ... and this hurt my neck .. I may need to rest early.

Cool down ... don't be panicky.
[One (M8) Q&A, Help & Troubleshooting] BorcheP:
I had typo while rewriting what I wrote in CMD, I did everything fine there, btw I did what you told me. The device went to grey HTC and there was a full green bar. I did

fastboot reboot

looks like still not turning on.
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Why fastboot reboot ?

Edit : I see you followed the instructions on post #5 (I need to edit it so people won't follow it blindly, case is different when you want to install RUU after firmware flashing)

It should be fastboot reboot-bootloader

then you need to install the RUU zip

then only you can fastboot reboot after you install a OS for it to boot.

There are 3 options that you can choose on how to install RUU as I linked before. Make sure you follow it correctly.
[One (M8) Q&A, Help & Troubleshooting] BorcheP:
I started tthe installation on the RUU zip, let me see.

Edit: More help here? What to do now? After I finished your steps actually.

Edit: Tell me what to do now. Still frozen here. Give me more explained tutorial after I finish the steps u said earlier
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Depends on which step that you take :

When it successfully completed,

MicroSD method - press power to reboot

fastboot method - fastboot reboot

ARUWizard method - it will restart your device, you just need to close the RUU screen
[One (M8) Q&A, Help & Troubleshooting] BorcheP:
No, I completed the step with fastboot flash zip fw_6.21.401.1.zip

What now, I'm not that sure about RUU zip so I actually was about to do something but Instantly asked for help.
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
I wrote everything you need before and I am too tired to write all those again ..

please read what I wrote in the two options and you selected option 2. Without properly reading, you're going no where.

Try this guide but use the RUU zip that you already have not the one in the guide.

I hope you did downloaded the RUU zip that I mentioned here : http://xdaforums.com/showpost.php?p=67171740&postcount=1711

http://xdaforums.com/showpost.php?p=64926626&postcount=6

I need to sleep now, it's almost 1.40 AM here ..

Again I said, don't be too panicky .. calm down, read and take note if necessary.

Good night
[One (M8) Q&A, Help & Troubleshooting] BorcheP:
I do have the RUU downloaded, renamed it RUU.zip (It's not RUU.zip.zip), same folder as adb, followed your steps, it was unsuccessful.

Edit: Okay a deep tutorial would be welcomed on skype / facebook while I'm doing it. (If the device is still at me)
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
Can't troubleshoot that, as you don't give much meaningful information. "it was unsuccessful" doesn't tell us anything about what happened.

What were your exact commands? What were the error messages or specific results? Do a screenshot of your computer's command prompt window and post it, if that is easier than typing it out.
[One (M8) Q&A, Help & Troubleshooting] BorcheP:
1. Firstly I had to relock my bootloader, bootloader was **UNLOCKED** with S-ON, did

- fastboot oem lock

- fastboot reboot-bootloader

-- Successful, device was working, at bootloader it was saying **RELOCKED**

2. Downloaded fw_6.21.401.1.zip (ckpv5 told me to download that firmware), followed his steps as much as I understood.

- fastboot oem rebootRUU

- fastboot flash zip fw_6.21.401.1.zip

-- Failed, did again

- fastboot flash zip fw_6.21.401.1.zip

-- Successful, device was at grey HTC icon with full green bar, did

- fastboot reboot-bootloader

3. Device went into black screen instead of bootloader, device didn't give any sign of life.

CKPV5 told me the way how to get into bootloader through pc (Vol UP + Power, disconnected sound, release keys hold Vol Down). It works I still can get into bootloader. I downloaded the RUU. I need detailed help. I'm like lost, device isn't working. All I can do on my device is bootloader.

*I'm 15 my parents know about my device issue they insist to send it to the company we bought it from and see if they can fix it, tomorrow I'm supposed to send the phone, if they give me the device back all I have left is to follow this tutorial You are going to give me cause I'm sure they're gonna give me my device back.*

4. I have htc_fastboot, and the RUU is renamed RUU as much as I saw in his tutorial.
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Unsuccessful how ? No error report ? Error code ?

First I posted this

The you answered this

But it seems you didn't read at all the link that I posted above with details on what to do the RUU zip

http://xdaforums.com/showpost.php?p=67314040&postcount=1749

The guide even have pictures for you to see the progress and it use the 6.21.401.1 RUU zip in the process - the same that you need

We don't know how to help you without you helping yourself to read and make report on which step that you have error

and today I realize your further edit on your post ...

I really don't know what actually you did by not reading the guide properly
[One (M8) Q&A, Help & Troubleshooting] BorcheP:
I didn't have enough time I had to try it fastly, I have downloaded the RUU, htc_fastboot and firmware. What else I need to download? (ARUWIZARDMM or?) More help from here. I know the first steps for the firmware. I need next steps now.

Edit: Since I understand It's my fault I'm not blaming You, I might look panicky ofc cause this is my newest device.
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Next step is reading ... read the detail steps that I just wrote above.

Do I really need to rewrite everything again and again ?

Read and see the pictures - http://xdaforums.com/showpost.php?p=67314040&postcount=1749

This is the 3rd time I posted the same link for you.... can you at least read ?

start from "what you need" .. ignore all the other thing above "what you need".

You failed with the fastboot method ... now try this method ... if you read the link before when I first posted it for you, you should see there are 3 different methods that you can try.

I say this again ... read, read, make note before you try

Frankly speaking it should be easier with option 1 but you chose option 2 which require some skill and knowledge.
[One (M8) Q&A, Help & Troubleshooting] BorcheP:
Before you replied I tried this method, got error message ERROR[171]: USB CONNECTION ERROR

Nothing's wrong with my usb, it's connected normally.
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
It's clearly said USB CONNECTION ERROR so it is USB CONNECTION ERROR.

Do you really read "what you need" ?

If you don't have USB2.0, then try with the microSD method mentioned on the same link.

I got to go now ... I won't be around for about 4-5 hours