how to upadate hboot from 3.16 to 3.19 ?

sheikharfaz

Member
Jul 17, 2016
12
0
0
I tried rooting my device and at last I was succesfull but now I want to install the latest ROM but to install that I need to upgrade my hboot and I am not getting how to do that please somebody help me my phone is in S-ON mode and it's an At&t international version phone
 

ahmed.ismael

Senior Member
Oct 14, 2015
2,439
1,250
183
I tried rooting my device and at last I was succesfull but now I want to install the latest ROM but to install that I need to upgrade my hboot and I am not getting how to do that please somebody help me my phone is in S-ON mode and it's an At&t international version phone
post the result of fastboot getvar all ( after removing serialno and mei )
 
  • Like
Reactions: sheikharfaz

redpoint73

Recognized Contributor
Oct 24, 2007
15,259
6,946
113
I tried rooting my device and at last I was succesfull but now I want to install the latest ROM but to install that I need to upgrade my hboot and I am not getting how to do that please somebody help me my phone is in S-ON mode and it's an At&t international version phone
Your sequence is a bit mixed up. You should have updated firmware (hboot, radio, etc.) before unlocking bootloader. As you'll now have to relock the bootloader in order to update firmware. Then unlock it again, and TWRP again, to install custom ROM.

You also do not need root to flash custom ROMs (just need unlocked bootloader, custom recovery, and right firmware); unless you had another specific reason to root first?

Also, you will want all the updated firmware, not just hboot. As firmware contains a bunch of modules besides hboot, which will not play well with current ROMs (especially WiFi, Bluetooth, as well as radio and others). All the firmware installs in one zip, so it's not hard to do.

However, I agree with the previous post that we need more info on the phone. Fastboot getvar all, and post the results (delete IMEI and serial number before posting).

"At&t international version" is a contradiction. It's either one or the other, it can't be both.
 
  • Like
Reactions: sheikharfaz

xunholyx

Recognized Contributor
Dec 3, 2012
7,501
5,131
253
Vancouver
You should have updated firmware (hboot, radio, etc.) before unlocking bootloader. As you'll now have to relock the bootloader in order to update firmware.
Here's something I just learned recently (2 or 3 mos ago), although I haven't been able to test it myself since my M8 is S-Off.
When flashing an RUU.zip or signed firmware.zip from extSD instead of from your PC, relocking your bootloader isn't necessary.
Like I said, I haven't confirmed it myself, but the person who told me that I consider a reliable source. He was positive about it with M9, and quite sure it was the same with the M8.
 
  • Like
Reactions: sheikharfaz

sheikharfaz

Member
Jul 17, 2016
12
0
0
Your sequence is a bit mixed up. You should have updated firmware (hboot, radio, etc.) before unlocking bootloader. As you'll now have to relock the bootloader in order to update firmware. Then unlock it again, and TWRP again, to install custom ROM.

You also do not need root to flash custom ROMs (just need unlocked bootloader, custom recovery, and right firmware); unless you had another specific reason to root first?

Also, you will want all the updated firmware, not just hboot. As firmware contains a bunch of modules besides hboot, which will not play well with current ROMs (especially WiFi, Bluetooth, as well as radio and others). All the firmware installs in one zip, so it's not hard to do.

However, I agree with the previous post that we need more info on the phone. Fastboot getvar all, and post the results (delete IMEI and serial number before posting).

"At&t international version" is a contradiction. It's either one or the other, it can't be both.
(bootloader) version: 0.5
(bootloader) version-bootloader: 3.16.0.0000
(bootloader) version-baseband: 1.16.21331931.LA11G
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 1.58.502.1
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) product: m8_ul_ca
(bootloader) platform: hTCBmsm8974
(bootloader) modelid: 0P6B12000
(bootloader) cidnum: CWS__001
(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: c3d94491
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.037s
 
Last edited:

sheikharfaz

Member
Jul 17, 2016
12
0
0
Your sequence is a bit mixed up. You should have updated firmware (hboot, radio, etc.) before unlocking bootloader. As you'll now have to relock the bootloader in order to update firmware. Then unlock it again, and TWRP again, to install custom ROM.

You also do not need root to flash custom ROMs (just need unlocked bootloader, custom recovery, and right firmware); unless you had another specific reason to root first?

Also, you will want all the updated firmware, not just hboot. As firmware contains a bunch of modules besides hboot, which will not play well with current ROMs (especially WiFi, Bluetooth, as well as radio and others). All the firmware installs in one zip, so it's not hard to do.

However, I agree with the previous post that we need more info on the phone. Fastboot getvar all, and post the results (delete IMEI and serial number before posting).

"At&t international version" is a contradiction. It's either one or the other, it can't be both.
Can i get what next i can do?
because i am not able to find the right firmware.Can you help me with that?
 

ahmed.ismael

Senior Member
Oct 14, 2015
2,439
1,250
183
Can i get what next i can do?
because i am not able to find the right firmware.Can you help me with that?
remove serialno from the getvar result in your post above

i don't know what you want
you need the latest firmware to flash a custom rom or you need to flash the latest stock rom ( by using RUU ) ???

in all cases you need to flash the latest firmware first 6.20.502.5 ( it's the latest firmware for your AT&T device variant )
6.20.502.5 is marshmallow and it's the latest official OS for this device
note :- flashing the signed firmware will wipe your internal storage so make sure to backup your files


flash firmware
1-download this signed firmware https://mega.nz/#!XV5EjYhS!gNN_rAYovaMQpaeP2OSdkfYAIEAmv6VnB-QlZ1VadMU ( rename it to something short and easy if you like )
2- open a cmd window in the folder where the firmware located
3- relock the bootloader ( if it's unlocked ) by this commands
fastboot oem lock
fastboot reboot-bootloader
3- now start flashing the firmware using this commands and replace firmwarename with the actual firmware name
fastboot oem rebootRUU
fastboot flash zip firmwarename.zip
if you see FAILED (remote: 90 hboot pre-update! please flush image again immediately)
then repeat the flashing command again
fastboot flash zip firmwarename.zip
after it complete type
fastboot reboot-bootloader


flash custom rom
now you have the latest firmware if you want to flash a custom rom unlock the bootloader and flash twrp then flash the desired rom


flash stock rom using RUU.exe
if you want the latest stock rom RUU.exe it's available on htc website here http://www.htc.com/us/support/htc-one-m8-att/news/
direst link for the RUU http://dl3.htc.com.s3.amazonaws.com...70_ATT_MR_Cingular_US_6.20.502.5_combined.exe
after flash the firmware and do all the above commands run the RUU as a normal application and follow the setup wizard
 
  • Like
Reactions: redpoint73

redpoint73

Recognized Contributor
Oct 24, 2007
15,259
6,946
113
(bootloader) version-main: 1.58.502.1
As suspected, you need to update all the firmware, not just hboot. Your firmware is still on the original 2014 release of Kitkat. This will cause many issues, even if you updated hboot. For instance, you would find WiFi would be broken on just about every current custom ROM around; due to the WiFi firmware partition on the phone being outdated, and not compatible with the current ROMs.

ahmed has the process outlined well. I would recommend to follow his instructions above.
 

sheikharfaz

Member
Jul 17, 2016
12
0
0
remove serialno from the getvar result in your post above

i don't know what you want
you need the latest firmware to flash a custom rom or you need to flash the latest stock rom ( by using RUU ) ???

in all cases you need to flash the latest firmware first 6.20.502.5 ( it's the latest firmware for your AT&T device variant )
6.20.502.5 is marshmallow and it's the latest official OS for this device
note :- flashing the signed firmware will wipe your internal storage so make sure to backup your files


flash firmware
1-download this signed firmware https://mega.nz/#!XV5EjYhS!gNN_rAYovaMQpaeP2OSdkfYAIEAmv6VnB-QlZ1VadMU ( rename it to something short and easy if you like )
2- open a cmd window in the folder where the firmware located
3- relock the bootloader ( if it's unlocked ) by this commands
fastboot oem lock
fastboot reboot-bootloader
3- now start flashing the firmware using this commands and replace firmwarename with the actual firmware name
fastboot oem rebootRUU
fastboot flash zip firmwarename.zip
if you see FAILED (remote: 90 hboot pre-update! please flush image again immediately)
then repeat the flashing command again
fastboot flash zip firmwarename.zip
after it complete type
fastboot reboot-bootloader


flash custom rom
now you have the latest firmware if you want to flash a custom rom unlock the bootloader and flash twrp then flash the desired rom


flash stock rom using RUU.exe
if you want the latest stock rom RUU.exe it's available on htc website here http://www.htc.com/us/support/htc-one-m8-att/news/
direst link for the RUU http://dl3.htc.com.s3.amazonaws.com...70_ATT_MR_Cingular_US_6.20.502.5_combined.exe
after flash the firmware and do all the above commands run the RUU as a normal application and follow the setup wizard
if you see FAILED (remote: 90 hboot pre-update! please flush image again immediately)
what does this mean ? which image should i flash?
 

sheikharfaz

Member
Jul 17, 2016
12
0
0
remove serialno from the getvar result in your post above

i don't know what you want
you need the latest firmware to flash a custom rom or you need to flash the latest stock rom ( by using RUU ) ???

in all cases you need to flash the latest firmware first 6.20.502.5 ( it's the latest firmware for your AT&T device variant )
6.20.502.5 is marshmallow and it's the latest official OS for this device
note :- flashing the signed firmware will wipe your internal storage so make sure to backup your files


flash firmware
1-download this signed firmware https://mega.nz/#!XV5EjYhS!gNN_rAYovaMQpaeP2OSdkfYAIEAmv6VnB-QlZ1VadMU ( rename it to something short and easy if you like )
2- open a cmd window in the folder where the firmware located
3- relock the bootloader ( if it's unlocked ) by this commands
fastboot oem lock
fastboot reboot-bootloader
3- now start flashing the firmware using this commands and replace firmwarename with the actual firmware name
fastboot oem rebootRUU
fastboot flash zip firmwarename.zip
if you see FAILED (remote: 90 hboot pre-update! please flush image again immediately)
then repeat the flashing command again
fastboot flash zip firmwarename.zip
after it complete type
fastboot reboot-bootloader


flash custom rom
now you have the latest firmware if you want to flash a custom rom unlock the bootloader and flash twrp then flash the desired rom


flash stock rom using RUU.exe
if you want the latest stock rom RUU.exe it's available on htc website here http://www.htc.com/us/support/htc-one-m8-att/news/
direst link for the RUU http://dl3.htc.com.s3.amazonaws.com...70_ATT_MR_Cingular_US_6.20.502.5_combined.exe
after flash the firmware and do all the above commands run the RUU as a normal application and follow the setup wizard
i am not able to unlock my device back
E:\new\android-sdk-windows\platform-tools>fastboot flash unlocktoken Unlock_code.bin
target reported max download size of 1826418688 bytes
sending 'unlocktoken' (0 KB)...
OKAY [ 0.133s]
writing 'unlocktoken'...
FAILED (remote: unlock token check failed)
finished. total time: 0.144s
 

sheikharfaz

Member
Jul 17, 2016
12
0
0
remove serialno from the getvar result in your post above

i don't know what you want
you need the latest firmware to flash a custom rom or you need to flash the latest stock rom ( by using RUU ) ???

in all cases you need to flash the latest firmware first 6.20.502.5 ( it's the latest firmware for your AT&T device variant )
6.20.502.5 is marshmallow and it's the latest official OS for this device
note :- flashing the signed firmware will wipe your internal storage so make sure to backup your files


flash firmware
1-download this signed firmware https://mega.nz/#!XV5EjYhS!gNN_rAYovaMQpaeP2OSdkfYAIEAmv6VnB-QlZ1VadMU ( rename it to something short and easy if you like )
2- open a cmd window in the folder where the firmware located
3- relock the bootloader ( if it's unlocked ) by this commands
fastboot oem lock
fastboot reboot-bootloader
3- now start flashing the firmware using this commands and replace firmwarename with the actual firmware name
fastboot oem rebootRUU
fastboot flash zip firmwarename.zip
if you see FAILED (remote: 90 hboot pre-update! please flush image again immediately)
then repeat the flashing command again
fastboot flash zip firmwarename.zip
after it complete type
fastboot reboot-bootloader


flash custom rom
now you have the latest firmware if you want to flash a custom rom unlock the bootloader and flash twrp then flash the desired rom


flash stock rom using RUU.exe
if you want the latest stock rom RUU.exe it's available on htc website here http://www.htc.com/us/support/htc-one-m8-att/news/
direst link for the RUU http://dl3.htc.com.s3.amazonaws.com...70_ATT_MR_Cingular_US_6.20.502.5_combined.exe
after flash the firmware and do all the above commands run the RUU as a normal application and follow the setup wizard
stuck in bootloop after locking the device
i accidently mistyped fastboot reboot instead of fastboot reboot-bootloader
what shall i do now
 

sheikharfaz

Member
Jul 17, 2016
12
0
0
remove serialno from the getvar result in your post above

i don't know what you want
you need the latest firmware to flash a custom rom or you need to flash the latest stock rom ( by using RUU ) ???

in all cases you need to flash the latest firmware first 6.20.502.5 ( it's the latest firmware for your AT&T device variant )
6.20.502.5 is marshmallow and it's the latest official OS for this device
note :- flashing the signed firmware will wipe your internal storage so make sure to backup your files


flash firmware
1-download this signed firmware https://mega.nz/#!XV5EjYhS!gNN_rAYovaMQpaeP2OSdkfYAIEAmv6VnB-QlZ1VadMU ( rename it to something short and easy if you like )
2- open a cmd window in the folder where the firmware located
3- relock the bootloader ( if it's unlocked ) by this commands
fastboot oem lock
fastboot reboot-bootloader
3- now start flashing the firmware using this commands and replace firmwarename with the actual firmware name
fastboot oem rebootRUU
fastboot flash zip firmwarename.zip
if you see FAILED (remote: 90 hboot pre-update! please flush image again immediately)
then repeat the flashing command again
fastboot flash zip firmwarename.zip
after it complete type
fastboot reboot-bootloader


flash custom rom
now you have the latest firmware if you want to flash a custom rom unlock the bootloader and flash twrp then flash the desired rom


flash stock rom using RUU.exe
if you want the latest stock rom RUU.exe it's available on htc website here http://www.htc.com/us/support/htc-one-m8-att/news/
direst link for the RUU http://dl3.htc.com.s3.amazonaws.com...70_ATT_MR_Cingular_US_6.20.502.5_combined.exe
after flash the firmware and do all the above commands run the RUU as a normal application and follow the setup wizard
please send me next steps too.
 

sheikharfaz

Member
Jul 17, 2016
12
0
0
Okay. How long did you wait for it to boot up? I can take up to 20 mins sometimes. crazy I know
the battery got drained .so now i am able to get into bootloader .can i please get how to unloack bootloader .i have tried fastboot oem unlock and even
fastboot flash unlocktoken Unlock_code.bin
please help
 

redpoint73

Recognized Contributor
Oct 24, 2007
15,259
6,946
113
can i please get how to unloack bootloader .i have tried fastboot oem unlock please help
This command doesn't work on the M8, it's not even worth trying. The whole point of the HTCDev.com bootloader unlock process, is due to the fact that HTC forbids unlocking the bootloader with that command. It only applies to certain devices.

You need to use the bin code command. If it doesn't work, just request a new bin code, like ahmed suggested.
 
  • Like
Reactions: ahmed.ismael