yashsingh1/xdaforums huggingface dataset:
[One (M8) Q&A, Help & Troubleshooting] Einwod:
Whatever you do, DO NOT ACCEPT THE OFFER OF ROOTING FROM WITHIN TWRP. You MUST download and flash SuperSU from elsewhere and flash it through TWRP. You can also use Magisk which has it's own SU built in. If you don't flash a SU, you will lose the recovery next time you boot the device.
[One (M8) Q&A, Help & Troubleshooting] ahmed.ismael:
1- unlock the bootloader

2- flash the latest twrp ( 3.1.0-0 )

3- flash the latest supersu.zip in recovery

i think this option was removed from twrp since v 3.0.0-0 came out ( only if running marshmallow )

from twrp 3.0.0-0 changelog

and if booted to twrp once after flash it will patch the current rom to prevent the replacing

from twrp website
[One (M8) Q&A, Help & Troubleshooting] Arsinn:
Hi. Does full wipe means cash dalvik data wiping or system wipe is also necessary for a clean custom rom flashing ?
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
You definitely need to unlock the bootloader before flashing TWRP. You can't flash an unsigned (non-HTC) recovery (and that includes TWRP) unless the bootloader is unlocked. This is the very purpose and meaning of having a locked bootloader.

---------- Post added at 09:31 AM ---------- Previous post was at 09:23 AM ----------

What does this question have to do with this thread?

But to answer the question, I personally recommend only doing the default wipe in TWRP when flashing ROMs, which wipes cache, Dalvik and user data.

Also,

before

doing any wipes, I would recommend to make a backup in TWRP of your data and current ROM (system and boot), in case you need or simply want to revert.

Some folks will swear by wiping system when flashing a new ROM. But I don't personally recommend this. Reason being, many folks will wipe system, then have problems installing the new ROM (fails to flash). Then they are stuck with no OS (and they didn't take the time to make a backup of their "old" ROM) and panic about what to do next.

Wiping system manually is also redundant. The ROM install script will wipe it before it installs the new ROM. So doing it manually doesn't normally gain you anything. On the other hand, if the ROM install fails before it reaches the point of wiping system, you still have a working OS from which to troubleshoot (as mentioned in the previous paragraph).

If after flashing the ROM, you run into problems, you can always decide to reflash after wiping system (again, making sure you have a "known good" TWRP ROM backup, or otherwise knowing how to put such a ROM on the phone and get it back up and running). But to be honest, after years of dozens (maybe hundreds?) of ROMs flashed on several different Android device; the number of times I've felt the need to wipe system is maybe 2 times.
[One (M8) Q&A, Help & Troubleshooting] Jowivk2804:
Thanks again, all OK

Hi again,

thanks to your hints and links, thanks to Ahmad and last ot least redpoint73 I am all set now. Really doing things step by step helps! ;)

So first I flashed the current MM stock zip by renaming it to "OP6BIMG", Restarted stock revovery, it installed the current stock Marshmallow like a charm. Then I unlocked using the HTCDEV method with the token, then I installed TWRP and then I flashed SuperSU.

Now I am trying out some custom ROMs: ice-8.2.2_M8_UHL_MM60_SENSE80GP_HTC_WWE_6.12.401.4.zip

ViperOneM8_6.1.0.zip

S.ROM-JW-3.0.0.zip

Let's see what suits me best.

And in any case I will have a M8 running a current firmware and a current rom.

Thanks to all the guys who contributed all the information and apps.

:good::D:good:
[One (M8) Q&A, Help & Troubleshooting] Flanman2000:
Great Thread! - Some feedback to help others

Note to help others: For the above step I found that TWRP failed to load the backup. I needed to first enter "MOUNT" from the TWRP menu, and enable write-access to the phone system partition by 'de-selecting' the "Mount System Partition Read Only" check box near the bottom of the screen. This first displayed a warning screen which made my heart rate increase! (as a total noob-this is my first android phone edit :eek: )

Once allowing write access, the transferred stock backup restored as expected as per step 9. :)
[One (M8) Q&A, Help & Troubleshooting] Jowivk2804:
Good advice

I didn't have these problems, because in the end I went another way:I got the stock image as an zip file, renamed it to "OP6BIMG.zip" and put it in the root folder of my SD. Started the bootloader, started hboot, and presto, the update worked like a charm. My only issue was that before doing this I had to my get my bootloader "relocked". But then it worked fine, in site of the "security warning". So my steps were:

1. Download appropriate zip file.

2. Rename it to OP6BIMG.zip

3. Start into bootloader

4. Start into fastboot only, and do the relock procedure

5. Start hboot.

6. Watch the flash process.

Good luck!
[One (M8) Q&A, Help & Troubleshooting] gordrak:
Hi all,

i'm trying to get back on stock but i haven't a TWRP backup.

I'm installed Lineage OS 14.1 Android 7.1 but i would like to restore my phone.

I would like to know the exactly TWRP backups for my CID HTC__405 because i didn't find the download link that work correctly.

version: 0.5

version-bootloader: 3.19.0.0000

version-baseband: 1.29.214500021.12G

version-cpld: None

version-microp: None

version-main: 6.12.401.4

version-misc: PVT SHIP S-ON

product: m8_ul

platform: hTCBmsm8974

modelid: 0P6B10000

cidnum: HTC__405

battery-status: good

battery-voltage: 0mV

partition-layout: Generic

security: on

build-mode: SHIP

boot-mode: FASTBOOT

commitno-bootloader: 76df2b54

hbootpreupdate: 11

gencheckpt: 0

When i downloading it, i have to only TWRP backups?

Regards

Roberto
[One (M8) Q&A, Help & Troubleshooting] Einwod:
You need to follow the instructions on post #1. Download the backup, extract it to a folder on your computer. Make a backup of the boot partition only in TWRP so you can find where it will be saved. Place the extracted folder into the same location and restore that backup with TWRP. If you want a stock recovery, then download the one that matched your OS version.
[One (M8) Q&A, Help & Troubleshooting] shuvendu1987:
i actually didn't have 5.07.720.1 , but 4.30.720.8 stock recovery and OTA to be applied after, by which you can recieve the update of 5.07.720.1. i have PM the CKPV5 the links for both if interested you can ask him for the same. he will update the list by including this stock or else here are the links

https://www.dropbox.com/s/bvgo66u0px...4yiq9.zip?dl=0

https://www.dropbox.com/s/yc6r6ibdrh...-keys.rar?dl=0
[One (M8) Q&A, Help & Troubleshooting] Andyï¼Œxu:
But the latest version of the twrp application installation process feels much more trouble than before:(
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
How so? Can you explain?
[One (M8) Q&A, Help & Troubleshooting] Andyï¼Œxu:
Find the reason, I found in the Google play on the market two different applications can be installed twrp recovery. Seemingly one of them is officially released, while the other is unofficial. But I think the unofficial use of more convenient, so I have been using the unofficial app.
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
You don't need an app from the Play store to install TWRP, just flash with a single fastboot command, as clearly indicated in the instructions in the first post of this thread. It's more complicated, since you are making it more complicated.

Plus, such apps will do you no good if you find yourself in the condition where you need to flash TWRP, but the phone doesn't boot into OS. But the fastboot command will do it, if you know how.

Also, I'm skeptical of the "unofficial" TWRP app, as I don't know if they are associated with the TWRP team (don't appear to be) and are making money (in-app purchases) from something that is mostly not their work. And for something that (again) is not even needed.
[One (M8) Q&A, Help & Troubleshooting] Andyï¼Œxu:
The application of twrp recovery is not installed security there is no doubt that, for some of the equipment it is a relatively simple. The lazy approach, this method for those who do not will brush white is very good. But for some of the BootLoader lock device which can cause equipment brick or completely scrap, is that what you mean what you said? Some devices may be limited because the BootLoader version of the recovery version or can not install twrp recovery. Thank you for reminding me！
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
I didn't say anything about bootloader or bricking the device, so I'm not sure what you are referring to. It's also pretty clear that English is not your native language, so I'm trying to understand as best I can.

Installing TWRP using fastboot command is the same as what the app is doing, it's not any more risky. Using an app just adds a needless additional failure point. The other problem with relying on an app to install TWRP, is that you can only do it if the phone can boot into OS. There are plenty of situations where the phone cannot boot to OS (but also not bricked) where you may want/need to install (or re-install) TWRP. An app can't do that, but the fastboot method can.

Older firmware versions will require older TWRP builds. But it's highly recommended to update to the latest (Marshmallow) firmware, which is compatible with the current TWRP builds. This is a simple way to remove the TWRP version questions, as well as prevent a lot of other problem (old firmware not compatible with current ROMs, etc.).
[One (M8) Q&A, Help & Troubleshooting] Andyï¼Œxu:
Thank you, I'll give you a try.
[One (M8) Q&A, Help & Troubleshooting] Anar8888:
Please, can you send me firmware 6.13.1500.7 ?
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
You're looking too hard. It's already posted with the other firmware near the top post of this thread:

https://xdaforums.com/showpost.php?p=60218734&postcount=5
[One (M8) Q&A, Help & Troubleshooting] Anar8888:
i have seen this link thank you, but i want to RUU.exe file. Do you know where can i download file?
[One (M8) Q&A, Help & Troubleshooting] xunholyx:
There are no Canadian RUU.exe released, so you won't find one
[One (M8) Q&A, Help & Troubleshooting] mrrocketdog:
damn canadians!!
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Download the RUU file here : https://www.androidfilehost.com/?fid=24686681827312185

It's not really a 6.13.1500.7 RUU.exe, it's a 7z file, you need to extract it with 7-zip

Inside the folder, run ARUWizard.exe, you'll see the familiar RUU.exe interface ..
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
But they are available as RUU.zip ... only problem is mostly available on paid site.
[One (M8) Q&A, Help & Troubleshooting] xunholyx:
I've seen a couple old ones for Rogers and Bell, not Wind/Freedom Mobile though. But I'm pretty sure there are some out there somewhere, I just haven't come across them

EDIT: Not "pretty sure" anymore after your post a couple up. :D
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
Then don't say "firmware" when you mean RUU. RUU is a very specific thing, and "firmware" or "ROM" doesn't cover it. Also, on this device, "firmware" usually is meant to refer to the firmware.zip which only contains hboot, radio, boot.img, etc. (not the full RUU, nor does it contain the ROM).

If ckpv5's file doesn't work for you; and in absence of an RUU (a number of versions don't have an RUU) you can fastboot flash the firmware.zip, then unlock bootloader, flash TWRP, and install a stock nandroid backup. That is the whole point of this whole thread.
[One (M8) Q&A, Help & Troubleshooting] noblanq26:
urgent help?!?!?

i have 1.54.161.10....and iwant to update but i cant...i just dont get all these versions...they're not for the same phone? or can anyone please explain to me ...i cant update because cwm and i want to go back to stock...so i can update....i have the stock rom now...but i accidentally flashed twrp_6.12.161.4 and now i ended up with a red alert emoticone of a htc with a red arrow pointing down

:eek::victory:
[One (M8) Q&A, Help & Troubleshooting] Einwod:
You need to start at the beginning and re read the thread. You have Vodafone branded device. Make sure you download the correct version of TWRP. You didn't accidentally flash twrp_6.12.161.4. That is not an option. You either tried to flash the wrong version without flashing firmware, which is detailed in post #5. So, update the firmware first, update your TWRP version and then flash the latest version for your device. That should have you back to stock.
[One (M8) Q&A, Help & Troubleshooting] noblanq26:
...

I have the stock Rom and fixed the recovery mode....I just want to unmodify it.....it's s'on ...and operating system altered
[One (M8) Q&A, Help & Troubleshooting] Einwod:
That's not possible without S-OFF.
[One (M8) Q&A, Help & Troubleshooting] noblanq26:
Here you go

Software status Modified

***UNLOCKED***

MS_UL PVT SHIP S-ON

...DEC 1 2015 .....

WHAT DO YOU THINK? And I have the cwm recovery ...I

Did an completely unroot from #su app...and still won't take the update...it is saying that is corrupt...I tried flashing it as a zip and img...nothing but fail:(:crying:
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Post here fastboot getvar all result (delete serial & imei no.)

We'll see what you need to do. Unrooting from su app won't work.
[One (M8) Q&A, Help & Troubleshooting] noblanq26:
Okay

I am now fastbooting ...

---------- Post added at 06:34 PM ---------- Previous post was at 06:19 PM ----------

version-microp: None

(bootloader) version-main:

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

(bootloader) serialno: SH43GWM09645

(bootloader) imei: 358714055969236

(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

and also...i unlocked my phone from servide operator...vodafone...and ihate all the **** that they add on the android...will it keep unlock if i change to original stock android?

thanks for the help mate
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
I said delete serial & imei no. and this info lack of baseband info.

Which unlock that you're talking about ? Bootloader unlock or SIM unlock ?

Bootloader unlock can be remain unlock. SIM unlock, I believe you have the unlock code with you. Should be usable when it is needed.

Is 1.54.161.10 really your current version ?

What you need to do ... read post #1

1. You need to install TWRP 2.8.1.0 - download & install - https://eu.dl.twrp.me/m8/

2. Download the non-rooted 1.54.161.10 stock backup - https://mega.nz/#!AB4UjABL!Uzz0ddLc1KxBXCW8hIghSqXrrPmgXhEFIPkBHy4DIVg

3. Download 1.54.161.10 stock recovery - https://mega.nz/#!AZ4CXa4C!V0wWplfrZ3Uhk2it_LSlky2gGCcTnD39IEPSq060Izs

4. restore 1.54.161.10 backup

5. install 1.54.161.10 stock recovery

6. reboot & do multiple OTA

7. Once completed up to the latest 6.12.161.4, you can root again if you want to, to remove all voda bloatware.

Note : to do all these, NO NEED to relock bootloader, leave it unlocked.

Again ... read post #1 thoroughly
[One (M8) Q&A, Help & Troubleshooting] noblanq26:
both unlocks,...and i am talking about sim unlock.,,,if keeps active if i put another os on it after i unlocked it...cuz if it is like that...i can always goback to nougat 7 lineage...or cm14.1
[One (M8) Q&A, Help & Troubleshooting] noblanq26:
problem again

everytime i try to flash the recovery img...i get a red icon with the phone without recovery...with an arrown pointing down.,,, i get this for 2.8.1.0 ,,, ...and....

\Data>fastboot flash recovery twrp-2.8.1.0-m8

target reported max download size of 1826414592 bytes

error: cannot load 'twrp-2.8.1.0-m8': No error

---------- Post added at 09:22 PM ---------- Previous post was at 08:53 PM ----------

so....i figured out how to open cmd to get the flashing working ,,...but the flashing of the recovery,,,i flashed it like that ...

C:\Users\Lenovo\Downloads>fastboot flash recovery 1.54.161.10_recovery.img

target reported max download size of 1826414592 bytes

sending 'recovery' (15236 KB)...

OKAY [ 1.383s]

writing 'recovery'...

OKAY [ 0.616s]

finished. total time: 2.005s ...and now its stuck in htc boot image...what i do wrong ? i can't figure it out...
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Did you follow instructions accordingly ?

You need to restore stock non rooted backup after twrp is installed. After restore backup then only install stock recovery.

First boot will take time, wait about 10 mins
[One (M8) Q&A, Help & Troubleshooting] noblanq26:
info

how does the screen look while waiting? the stock htc image? without the animation?

:confused:
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
If after 10 mins and still bootlooping, the backup restoration was not done correctly.

Can you tell what you did from step 1 until you start to boot the device ?
[One (M8) Q&A, Help & Troubleshooting] noblanq26:
I followed the steps on #1.... And some didn't work... I am gonna try again in about a hour when I get home...and it wasn't bootlooping... It was just the power on HTC image... Nothing booting or loading.. I left it like that 20 minutes
[One (M8) Q&A, Help & Troubleshooting] noblanq26:
hey there my friend....as you said....i had TWRP 2.8.1.0....from last night....i \advance wiped Dalvik cache,cache, system and data....i succesfully restored the backup ....pressed back and in reboot ..reboot in bootloader....cmd/ fastboot the x.xx.x.x.x.x.x bla bla recovery....and now its stuck like before.

https://drive.google.com/open?id=0B0955E4oT-3udS1iMzZrNWZXd1U
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
I don't know how to help you ... when you said you successfully restored the backup .. that's the 1.54.161.10, right ? To make sure you did restore the right one, you can make a backup of boot as mentioned on step 5, then take the files that you extracted, not the folder but all those 8 files (if I remember correctly) and place them (and replace) in the same folder that you make the boot backup.

This is to ensure you restore a right one.

And assuming it is a bad download, you can try another one here - https://www.androidfilehost.com/?fid=745425885120703618

This is a rar not zip but still same procedure, extract the rar .. copy the files and place/replace in the folder of your boot backup then restore.

Or this one - https://www.androidfilehost.com/?fid=95747613655048650

This happened to few people before, they restored wrong one.
[One (M8) Q&A, Help & Troubleshooting] noblanq26:
so...i have no idea and a migrane

hey there my friend....as you said....i had TWRP 2.8.1.0....from last night....i \advance wiped Dalvik cache,cache, system and data....i succesfully restored the backup ....pressed back and in reboot ..reboot in bootloader....cmd/ fastboot the x.xx.x.x.x.x.x bla bla recovery....and now its stuck like before.

https://drive.google.com/open?id=0B0955E4oT-3udS1iMzZrNWZXd1U

---------- Post added at 07:04 PM ---------- Previous post was at 06:38 PM ----------

i have the adb aio toolkit ....can i try and flash the stock succesfully with it?

also...what does this means? https://drive.google.com/open?id=0B0955E4oT-3uNkRYYkhEbEpubmM
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
I don't advise aio toolkit ... most people have problem because of this.

You can restore after TWRP is installed then reboot, no need to install stock recovery yet. Just reboot .. if successfully booting, you can install stock recovery later.

If you don't mind relocking bootloader, I can give you a RUU.zip

You can always re-unlocking bootloader with htcdev unlocked token.

If you want the RUU .. I get back to you with the link tomorrow as it is almost 3.10 am here .. need to rest now.

That show you have stock recovery installed
[One (M8) Q&A, Help & Troubleshooting] noblanq26:
thanks

here is 8:30...thank you so much mate....chat with you tomorrow...also...it diesnt lockthe bootloader...i remember that when i installed something else with it....it worked...and they have the unlock comand as well:P so...its a child's play

...im gonna try different methods...and tell youp if i get one just right....i am using it to flash the 2.8.1.0 after 2.7.0.2 i think it was...and use usb storage mounted.....copy the files into backup folder and just flash restore it....and not doing the recovery img...doing that is just gonna brick it over and over again
[One (M8) Q&A, Help & Troubleshooting] noblanq26:
Np mate
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Are you saying the one higher version recovery installed and you managed to boot and now doing OTA ?
[One (M8) Q&A, Help & Troubleshooting] noblanq26:
Ruu

Hey there my friend... Can you send me that ruu that you where talking about... But I have s-on.... Is it safe?
[One (M8) Q&A, Help & Troubleshooting] noblanq26:
No hopes

I tried to install a new recovery but didn't work thru fastboot... Dunno why.... And the ota still bugging me showing up on the status bar... Any idea about how I could get rid of that and put stock recovery? Or I can try putting a newer version of the cwm and flash the stock recovery img... Cuz this one 2.8.1.0 can't flash img... Only rar
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
There must be wrong somewhere ... you're supposed to install stock recovery thru fastboot not using the TWRP. And TWRP can't flash rar, never will.

If you can't install stock recovery, you can never solve your problem. Don't know how to help you further.

The other way is install the HTC signed RUU as your device is S-On.

I have 4.19.161.3 RUU.zip as I can't find any free way to get the latest Marshmallow RUU anywhere -

https://mega.nz/#!jdolkaiC!b16ltLkl1OBD0QgvAUVgkI3AcHFNUGQjpMq9A9-q3AU

What you need to do :

1. Relock your bootloader with fastboot commands

fastboot oem lock

fastboot reboot-bootloader

1. Download the RUU and rename it to 0P6BIMG.zip (note that is a zero (0) not alphabet O and make sure your PC extension is not hidden so you won't accidentally rename it as 0P6BIMG.zip.zip

2. Place in on root of your microsd, not in any folder

3. Boot to bootloader, select hboot and the system will scan the zip file and ask you whether to update. Volume up to update .. let is do its update until it is completed and ask you to reboot

4. After reboot, you can OTA to latest Marshmallow

Or .. you can follow this guide - https://xdaforums.com/showpost.php?p=64926626&postcount=6

BUT use this RUU.zip not the one in the guide

After all done ... you can unlock bootloader again with htcdev unlock_code.bin and install latest TWRP version 3.x.x.x and do anything what you want to do like install a Nougat custom ROM.

Good luck
[One (M8) Q&A, Help & Troubleshooting] noblanq26:
wish me luck.. thank you!

Should I wipe everything before all of this?
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
No need to wipe anything ... just relock bootloader and install RUU, the RUU will wipe everything on your device. So... make backup of any important files like photos, musics, docs & etc to PC first before you run the procedure.
[One (M8) Q&A, Help & Troubleshooting] noblanq26:
dude ! DUUDEEE !!! you're the best! you just got over 9000!!!!! THANK YOUS...do you know where can i get folder "root"? should i create it? or i can find it in .android?
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Sorry ... don't understand what you're asking ... can you rephrase it ?
[One (M8) Q&A, Help & Troubleshooting] noblanq26:
its about second step... 2. ...2. Place in on root of your microsd, not in any folder

...directly on my SD card?
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Yes, directly on microSD not in any folder
[One (M8) Q&A, Help & Troubleshooting] noblanq26:
OK.. Thank you... Give you the details in about a hour... Still downloading.. 60% UK internet is **** at its finest
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
It's already 1.06 am here ... it's a working day tomorrow I have to rest.

I'll check your progress tomorrow if I'm not available later.