HTC ONE M8 root and flash

nrbnrb

New member
Dec 18, 2018
4
0
0
I tried to use Os lineage 15 in my device. For that, first I tried to unlock my Bootloader, which I think went well.
The Loader screen says UNLOCKED with M8_WHL PVT SHIP S-OFF
After then I tried to Flash TWRP which took a while through various ways, now to my dismay it wont flash by any means.
Then I tried Windroid toolkit APP. which produces this log and failed.

System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WinDroid_Toolkit.MainWindow.<DownloadFile>d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WinDroid_Toolkit.MainWindow.<Window_Loaded>d__19.MoveNext()

11:04:58 AM[INFO]:Microsoft Windows NT 6.2.9200.0 64Bit
11:04:58 AM[INFO]:WinDroid Toolkit 3.1.0.0
11:04:58 AM[INFO]:mscorlib 4.0.0.0
11:04:58 AM[INFO]:presentationFramework 4.0.0.0
11:04:58 AM[INFO]:System.Xaml 4.0.0.0
11:04:58 AM[INFO]:System 4.0.0.0
11:04:58 AM[INFO]:MahApps.Metro 1.2.4.0
11:04:58 AM[INFO]:AndroidLib 1.5.2.0
11:04:58 AM[INFO]:WindowsBase 4.0.0.0
11:04:58 AM[INFO]:presentationCore 4.0.0.0
11:04:58 AM[INFO]:AutoUpdater.NET 1.3.2.0
11:04:58 AM[INFO]:System.IO.Compression.FileSystem 4.0.0.0
11:04:58 AM[UPDATE]:AutoUpdater started.
11:05:00 AM[DOWNLOAD]:Download of Drivers started.

What Should I do????
 

redpoint73

Recognized Contributor
Oct 24, 2007
15,259
6,946
113
I tried to use Os lineage 15 in my device. For that, first I tried to unlock my Bootloader, which I think went well.
The Loader screen says UNLOCKED with M8_WHL PVT SHIP S-OFF
After then I tried to Flash TWRP which took a while through various ways, now to my dismay it wont flash by any means.
Then I tried Windroid toolkit APP. which produces this log and failed.
First off, be aware you have the Sprint version M8, which has a lot of peculiarities you need to be careful with. Please provide additional information about the phone by doing fastboot getvar all, and post the output (delete IMEI and serial numbers before posting).

Second, I'd advise not using any of the toolkits. If you are trying to flash the TWRP included with the toolkit, that version TWRP is very old (obsolete), and is going to cause you a lot of problems. Even is trying to use the toolkit to flash a current version TWRP, you are adding a needless layer of complexity, and an additional possible point of failure. All the toolkit does, is provide a GUI for a single line fastboot command, which you can easily enter yourself "manually" (without the toolkit). Fastboot error messages (when done manually) are also easier to troubleshoot. In this case, the toolkit log isn't telling me anything, and therefore useless.

What version number TWRP did you try to flash?

When you say you tried to flash TWRP "through various ways, now to my dismay it wont flash by any means", this doesn't mean anything to me; since you haven't actually described any of the methods you tried (except the toolkit). The standard way is to flash by fastboot command. If that is what you tried, please post the command you tried, fastboot error messages or other results, and as many details as possible. Copy and paste within the command prompt window, is handy and easy way to do this.

If you tried some other means, please describe that as well (in as much detail). Although fastboot really is the only way I advise.

Essentially (aside from the toolkit method) you staying you tried some stuff (to flash TWRP), and it failed. So you can see it's difficult for us to troubleshoot, if we have no idea what methods you tried, resulting error messages, etc.? I see you're new to the forums. Therefore, you are probably unfamiliar with the best way to post, and ask for help. So help us help you, by providing more detailed and specific info.
 
Last edited:
  • Like
Reactions: nrbnrb

nrbnrb

New member
Dec 18, 2018
4
0
0
I think My HTC is gone

Since yesterday, I went through numerous ways and successfully Arrived at the TWRP Flash on my screen.
Whole process I went through as suggested in HTC Developer Options.
The problem now is, Just after wiping the system, cache and another option at TWRP Flash, the phone booted and restarted and after then my phone has freezed in the HTC Logo White screen.
Numerous times I tried POWER button, it won't switch OFF; POWER and VOL BUTTON combination and Nothing happens; POWER and VOLUME UP combination, the phone Turns Black and again the same screen.
Now, the phone even don't connect to HTC Sync.

Suggestions?????? PLEASE !!!!
 

redpoint73

Recognized Contributor
Oct 24, 2007
15,259
6,946
113
Since yesterday, I went through numerous ways and successfully Arrived at the TWRP Flash on my screen.
Whole process I went through as suggested in HTC Developer Options.
I don't know why you are trying "numerous ways" when in my last response I advised to only use the fastboot flash method (or maybe you tried "numerous ways" before reading my response?).

I don't know what you are talking about, "Whole process I went through as suggested in HTC Developer Options". Are you talking about bootloader unlock option in Developer Options?

The problem now is, Just after wiping the system, cache and another option at TWRP Flash, the phone booted and restarted and after then my phone has freezed in the HTC Logo White screen.
Why did you wipe system? You clearly don't know what "system" is. The system partition contains the Android operating system! So it should now be obvious, that in wiping system, you no longer have an operating system installed. So obviously, it can't boot to the OS, if there is no OS.

Simple rule which I strongly advise you to commit to memory: do not wipe ANY PARTITION if you don't know what that partition is, or what the result will be. It clearly says in TWRP that the default wipe (data, cache, Dalvik) is the only one you need most of the time. It says that for a reason. You must have gone into the "Advanced" wipe options in TWRP. All due respect, I think it is fair to say your knowledge is not "advanced" therefore you had not business messing around with those options. I would strongly not advise not going into the Advanced wipe options (or wiping anything there), unless someone knowledgeable specifically instructs you to do so. None of this is meant as an insult. We all had to start somewhere, and you only know what you know.

But are you following any sort of guide? it seems like you are bouncing around, trying different stuff. Which is not a good idea, possibly a great way to destroy your phone. Especially since it is Sprint and S-off. Some mods meant for other versions of the M8 can permanently brick the phone! And if you don't know what those are, we are basically talking about a land mine waiting for you to (possibly) step on it! I would strongly advise to only proceed with information we specifically give you on this thread.

What exactly are you trying to do? Root, or flash a custom ROM?

You also did not answer any of my questions, or provide the information requested. Hard to help, if you don't provide the info requested. Especially fastboot getvar all, and what version TWRP is installed.
 
Last edited:
  • Like
Reactions: nrbnrb

nrbnrb

New member
Dec 18, 2018
4
0
0
HTC ONE M8 Lineage OS Update Problem

Thank You all for your Help.
I successfully managed to get Lineage 14.1 on my device.. :)
Now, I am getting used to this forum also.

The problem now stands is after flashing 14.1, my cellular network do not supports. And also, I need to get updated ROM , like 15 or 16.
So, I again installed Lineage 16. Also Tried 15.1
But to my dismay, every time, I got this error message

Skipping MD5 check: no MD5 file found
Warning: No file contexts
E3004: This file is only for HTC One M8, ............ Your device is .
E: unknown command (Log)
E: error executing updater binary in zip.
Error flashing zip

I tried different versions of TWRP and also changed download file of Lineage OS also.
But, no solution.

PLEASE HELP ME ON THIS ONE !!!!
 

redpoint73

Recognized Contributor
Oct 24, 2007
15,259
6,946
113
PLEASE HELP ME ON THIS ONE !!!!
I can't help, since you ignored my requests for info.

We know very little about the status of the device. As I previously requested twice, you need to do fastboot getvar all, and post the results (delete IMEI and serial number before posting).

This is the 3rd time I've asked for this information. I don't like repeating myself. I won't ask again, and if you continue to provide the info, I will ignore your posts thereafter. We can't help you, if you don't provide the requested info. If you don't know how to do getvar all, then ask. Otherwise, I can only assume you are willfully or negligently ignoring what I typed. In which case, why should I respond at all?

What version(s) TWRP did you try? Also something I've asked multiple times. We need to have specific version numbers, for your comment to mean anything. Otherwise, saying you tried different versions, means nothing. Also, I already warned against trying things randomly. You need to stick with specific instructions we give you. Flash the wrong thing, and you will brick your phone. Not sure why you are ignoring the previous warning.

I seriously doubt your ability to heed my warnings, respond to requests for information or follow instructions. I seriously doubt this thread is going to progress in a positive way, or that you will be able to get the phone working properly; unless you change your path drastically.
 

nrbnrb

New member
Dec 18, 2018
4
0
0
I can't help, since you ignored my requests for info.

We know very little about the status of the device. As I previously requested twice, you need to do fastboot getvar all, and post the results (delete IMEI and serial number before posting).

This is the 3rd time I've asked for this information. I don't like repeating myself. I won't ask again, and if you continue to provide the info, I will ignore your posts thereafter. We can't help you, if you don't provide the requested info. If you don't know how to do getvar all, then ask. Otherwise, I can only assume you are willfully or negligently ignoring what I typed. In which case, why should I respond at all?

What version(s) TWRP did you try? Also something I've asked multiple times. We need to have specific version numbers, for your comment to mean anything. Otherwise, saying you tried different versions, means nothing. Also, I already warned against trying things randomly. You need to stick with specific instructions we give you. Flash the wrong thing, and you will brick your phone. Not sure why you are ignoring the previous warning.

I seriously doubt your ability to heed my warnings, respond to requests for information or follow instructions. I seriously doubt this thread is going to progress in a positive way, or that you will be able to get the phone working properly; unless you change your path drastically.




Sorry!!

Getvar gets me this info.

(bootloader) version: 0.5
(bootloader) version-bootloader: 3.19.0.0000
(bootloader) version-baseband: 1.09.20.1112
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main:
(bootloader) version-misc: PVT SHIP S-OFF
(bootloader) serialno:
(bootloader) imei:
(bootloader) imei2: Not Support
(bootloader) meid: 99000499156438
(bootloader) product: m8_whl
(bootloader) platform: hTCBmsm8974
(bootloader) modelid: 0P6B70000
(bootloader) cidnum: 11111111
(bootloader) battery-status: good
(bootloader) battery-voltage: 0mV
(bootloader) partition-layout: Generic
(bootloader) security: off
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: 205bdca3
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!

I am using TWRP version 2.8.7.0 as I experience this is best for my device.
I used many OREO Rom but none worked. Some have problem of MD5 but every ROM tells me the ERRROR 3004 and ERROR executing updater binary in zip.

I think I made myself clear. ANy information needed i will post. HELP me
Thanks in advance...
 

redpoint73

Recognized Contributor
Oct 24, 2007
15,259
6,946
113
I am using TWRP version 2.8.7.0 as I experience this is best for my device.
I used many OREO Rom but none worked. Some have problem of MD5 but every ROM tells me the ERRROR 3004 and ERROR executing updater binary in zip.
Check the desired ROM(s) are compatible with the Sprint M8. The Sprint version uses a different kernel, so compatibility of the custom ROM(s) in question should always be checked. Or stick with ROMs intended specifically for the Sprint M8: https://forum.xda-developers.com/sprint-htc-one-m8/development

If the ROM is failing to install due to MD5 check, then make sure MD5 check is disabled in TWRP (MD5 check is usually not necessary when flashing custom ROMs).
 

Nebster7

Member
Nov 21, 2015
15
5
0
I tried to use Os lineage 15 in my device. For that, first I tried to unlock my Bootloader, which I think went well.
The Loader screen says UNLOCKED with M8_WHL PVT SHIP S-OFF
After then I tried to Flash TWRP which took a while through various ways, now to my dismay it wont flash by any means.
Then I tried Windroid toolkit APP. which produces this log and failed.

System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WinDroid_Toolkit.MainWindow.<DownloadFile>d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WinDroid_Toolkit.MainWindow.<Window_Loaded>d__19.MoveNext()

11:04:58 AM[INFO]:Microsoft Windows NT 6.2.9200.0 64Bit
11:04:58 AM[INFO]:WinDroid Toolkit 3.1.0.0
11:04:58 AM[INFO]:mscorlib 4.0.0.0
11:04:58 AM[INFO]:presentationFramework 4.0.0.0
11:04:58 AM[INFO]:System.Xaml 4.0.0.0
11:04:58 AM[INFO]:System 4.0.0.0
11:04:58 AM[INFO]:MahApps.Metro 1.2.4.0
11:04:58 AM[INFO]:AndroidLib 1.5.2.0
11:04:58 AM[INFO]:WindowsBase 4.0.0.0
11:04:58 AM[INFO]:presentationCore 4.0.0.0
11:04:58 AM[INFO]:AutoUpdater.NET 1.3.2.0
11:04:58 AM[INFO]:System.IO.Compression.FileSystem 4.0.0.0
11:04:58 AM[UPDATE]:AutoUpdater started.
11:05:00 AM[DOWNLOAD]:Download of Drivers started.

What Should I do????
How did you unlock the boot loader as mine I can't seem to get the token??? I've been told to open fastboot folder hold shift key and right click on an open space but I don't get the command prompt
 
Last edited:

redpoint73

Recognized Contributor
Oct 24, 2007
15,259
6,946
113
How did you unlock the boot loader as mine I can't seem to get the token???
You need to be more specific. What does that mean you "can't seem to get the token"? Did you go through the process at HTCDev.com? Did you get stuck? Did the request submit, but you never received the token?

For more specific help with your device, please do fastboot getvar all and post the result (delete IMEI and serial number before posting).
 
  • Like
Reactions: Nebster7

Nebster7

Member
Nov 21, 2015
15
5
0
You need to be more specific. What does that mean you "can't seem to get the token"? Did you go through the process at HTCDev.com? Did you get stuck? Did the request submit, but you never received the token?

For more specific help with your device, please do fastboot getvar all and post the result (delete IMEI and serial number before posting).
I went through the steps on htcdev then when I go to cmd nothing comes up on the cmd. Do you know what I mean? Like it's not connecting or something.

---------- Post added at 07:32 PM ---------- Previous post was at 07:28 PM ----------

You need to be more specific. What does that mean you "can't seem to get the token"? Did you go through the process at HTCDev.com? Did you get stuck? Did the request submit, but you never received the token?

For more specific help with your device, please do fastboot getvar all and post the result (delete IMEI and serial number before posting).
Sorry but I don't know what you mean getvar
 

redpoint73

Recognized Contributor
Oct 24, 2007
15,259
6,946
113
I went through the steps on htcdev then when I go to cmd nothing comes up on the cmd. Do you know what I mean? Like it's not connecting or something.
No, I don't know what you mean. You didn't state what command you tried to use, what step you are on exactly, etc.

Always provide as many details as possible. Typing a sentence or 2 and expected folks to magically know what is happening, is not an efficient way to ask for help.

Just guessing from the incomplete info: for fastboot connections issues, try another USB port, and/or another cable. Phone needs to be booted to bootloader-fastboot mode. Re-installing HTC Sync sometimes helps.

Sorry but I don't know what you mean getvar
Once you get fastboot working, simply type the command: fastboot getvar all

You should get a bunch of lines of info about the device. Cut/paste from cmd prompt and post it here. Delete IMEI and serial number before posting, as these are personal info, and not needed for us to help you.
 
  • Like
Reactions: beeewell