[tutorial] How to get back on stock with TWRP Stock Nandroid Backups

ckpv5

Recognized Contributor
Feb 11, 2008
14,359
18,290
0
Kuala Lumpur
Because in post #1, at the beginning, it says "make sure that TWPS is installed". TWPS is NOT installed on the phone !!! So I could not continue. There is no operating system to load the .apk and I do not know it is possible to load TWPS via PC to the phone.
Then you should solve the "how to install twrp" not jump to post #5 which is totally different procedure.

Assuming you're new to android modding .. read this
https://forum.xda-developers.com/showpost.php?p=53807690&postcount=1

You just need to read on how to unlock bootloader and how to install custom recovery i.e TWRP

After doing these 2 steps then only you can proceed those on post #1.
 
  • Like
Reactions: mrrocketdog

cristeoleo

Member
Mar 20, 2018
15
0
0
For those who need the signed firmware, below are the Marshmallow firmware that I have :

Important : If you're flashing this Marshmallow firmware on top of a lollipop and there are two Marshmallow versions,
install the first version then follow by the second version.
Don't install directly the second version as it is only partial firmware (except fw_6.20.709.2);
without the first version is installed prior to the second version your device firmware won't be correctly updated


CID ORANG001
MID 0P6B10000
fw_6.12.61.4

CID ORANGB10
MID 0P6B10000
fw_6.14.69.4

CID ORANG309
MID 0P6B10000
fw_6.14.75.4

CID T-MOB101
MID 0P6B10000
fw_6.12.111.4

CID T-MOB102
MID 0P6B10000
fw_6.12.112.4

CID T-MOB003
MID 0P6B10000
fw_6.12.114.4

CID T-MOB009
MID 0P6B10000
fw_6.12.118.4

CID VODAP001, VODAP102, VODAPE17, VODAP405, VODAP304, VODAPD18
MID 0P6B10000
fw_6.12.161.4

CID VODAP203
MID 0P6B10000
fw_6.12.163.4

CID VODAP110 & VODAP120
MID 0P6B10000
fw_6.12.166.4

CID O2___001 & O2___102
MID 0P6B10000
fw_6.13.206.5

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
fw_6.12.401.4

CID HTC__001 & HTC__J15
MID 0P6B67000
fw_6.21.401.1 - thanks @umesh.lk

CID CWS__001
MID 0P6B12000
fw_6.20.502.5

CID T-MOB010
MID 0P6B13000
fw_6.20.531.5

CID HTC__332
MID 0P6B16000
fw_6.14.599.1

CID HTC__332
MID 0P6B16000
fw_6.17.600.3

CID ROGER001
MID 0P6B16000
fw_6.13.631.7

CID TELUS001
MID 0P6B16000
fw_6.13.661.9

CID BM___001 & SASKT001
MID 0P6B16000
fw_6.13.666.7

CID HTC__044 & HTC__059
MID 0P6B11000
fw_6.14.707.1

CID HTC__622
MID 0P6B63000
fw_6.16.708.1

CID HTC__621
MID 0P6B11000
fw_6.12.709.4
fw_6.20.709.2

CID HTC__039 & VODAP021
MID 0P6B11000
fw_6.12.710.4
fw_6.24.710.1 * install this firmware only after you have fw_6.12.710.4 already installed

CID HTC__038
MID 0P6B65000
fw_6.15.720.2

CID H3G__001, H3G__106, H3G__402, H3G__G04
MID 0P6B10000
fw_6.13.771.4

CID TELST001
MID 0P6B11000
fw_6.12.841.4
fw_6.24.841.1 * install this firmware only after you have fw_6.12.841.4 already installed

CID OPTUS001
MID 0P6B65000
fw_6.12.980.5
fw_6.24.980.1 * install this firmware only after you have fw_6.12.980.5 already installed

CID HTC__247
MID 0P6B10000
fw_6.13.1020.4

CID GLOBA001
MID 0P6B13000
fw_6.13.1500.7

CID BS_US001 & BS_US002
MID 0P6B12000 & 0P6B13000
fw_6.12.1540.4

How to install firmware :

1. You need the drivers : http://forum.xda-developers.com/showpost.php?p=64926362&postcount=4

2. If the bootloader is UNLOCKED (for S-On device only), relock it with commands:

fastboot oem lock
fastboot reboot-bootloader


If the bootloader is LOCKED, skip the above.

3. Download the official signed fw_x.xx.xxx.x.zip

4. Put the device in bootloader/fastboot mode and connect to PC, run these commands

fastboot oem rebootRUU
fastboot flash zip fw_x.xx.xxx.x.zip

you'll see ERROR/FAILED, repeat
fastboot flash zip fw_x.xx.xxx.x.zip
fastboot reboot-bootloader


then you can proceed the next step that you need to do like installing a RUU

or fastboot reboot (to directly reboot device if you already have a working OS)

Note : unlocking bootloader will wipe your internal storage, copy your files like photos, music & etc to PC first
Please, i need a hboot for htv m8 6.20.508.2. Thanks
 

cristeoleo

Member
Mar 20, 2018
15
0
0
Never see any x.xx.508.x before. What CID/MID is that ?
Post fastboot getvar all result.
I did something silly, flash other firmware and now version disappear

---------- Post added at 12:44 AM ---------- Previous post was at 12:43 AM ----------

Never see any x.xx.508.x before. What CID/MID is that ?
Post fastboot getvar all result.
PS C:\M8> fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 3.19.0.0000
(bootloader) version-baseband: 1.29.214500021.11G
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main:
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) serialno: FA51XWM03439
(bootloader) imei: 358718054460709
(bootloader) imei2: Not Support
(bootloader) meid: 00000000000000
(bootloader) product: m8_ul_ca
(bootloader) platform: hTCBmsm8974
(bootloader) modelid: 0P6B12000
(bootloader) cidnum: HTC__332
(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: 205bdca3
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.037s
PS C:\M8>
 

ckpv5

Recognized Contributor
Feb 11, 2008
14,359
18,290
0
Kuala Lumpur
I did something silly, flash other firmware and now version disappear
It's not firmware, the ROM (maybe LOS 16) that you installed remove the version on bootloader. I have the same thing.

Still .. there is no x.xx.508.x that I know but based on your fastboot getvar all version, the correct version no. I believe is 6.20.598.2 not 6.20.508.2

There is no free RUU for this 6.20.598.2 (only paid service is available). If you have 1.57.598.2 backup, you can restore and OTA to 6.20.598.2 to fix the version no. on bootloader. Frankly speaking you should not worry about missing version no., won't affect anything as you already on latest firmware.
 
  • Like
Reactions: mrrocketdog

redpoint73

Recognized Contributor
Oct 24, 2007
15,259
6,946
113
Please, i need a hboot for htv m8 6.20.508.2. Thanks
Please don't quote a whole huge, page long post, just to ask a one-sentence question. I know including the quote is default if you reply to a post. But simply delete what isn't directly relevant to your question, to avoid cluttering up the forum.

There is no version number 6.20.508.2, which ckpv5 mentioned. You have the AT&T version M8, based on your getvar output. So I think you mean 6.20.502.5 (Marshmallow version number for AT&T M8).

However, it's not clear what you are asking for, and why. You are asking for hboot, but hboot is the same for all Marshmallow M8 (3.19.0.0000) and Lollipop, for that matter. Hboot is already up to date, and flashing hboot will not in itself accomplish anything. You also can NOT flash hboot by itself when s-on. It will only flash with a signed firmware.zip or RUU.

You might mean firmware (since you quoted the post regarding firmware) but I'd still like you to clarify exactly what you are trying to do. Flashing firmware by itself will render the phone unable to boot, unless you flash RUU, or alternately unlock the bootloader, flash TWRP, and custom ROM.

Further, your CID (HTC__332) doesn't match that for the AT&T model. Your CID corresponds with model 0P6B16000 (AT&T is model 0P6B12000 as shown in your getvar output). So this would indicate the phone had the CID modified (probably under s-off, then made s-on afterwards).

The CID really complicates the matter, as trying to flash an AT&T RUU or firmware will fail due to wrong CID. And you may not want to do that anyway, since flashing AT&T firmware/RUU will change the network band support.

But again, you need to provide some details on what has been done to the phone, and what you are trying to accomplish, exactly.
 
  • Like
Reactions: mrrocketdog

ckpv5

Recognized Contributor
Feb 11, 2008
14,359
18,290
0
Kuala Lumpur
.... CID (HTC_332) ....
Just for information ....

CID HTC_332 has two different MID which is different variant.

CID HTC_332 / MID 0P6B16000 - x.xx.599.x - HTC LA SPA
CID HTC_332 / MID 0P6B12000 - x.xx.598.x - HTC LA AMX SPA

I don't post anything for x.xx.598.x because I couldn't find any backup to start with (was searching for 1.57.598.2 but not available)
 
Last edited:

redpoint73

Recognized Contributor
Oct 24, 2007
15,259
6,946
113
Just for information ....

CID HTC_332 has two different MID which is different variant.

CID HTC_332 / MID 0P6B16000 - x.xx.599.x - HTC LA SPA
CID HTC_332 / MID 0P6B12000 - x.xx.598.x - HTC LA AMX SPA

I don't post anything for x.xx.598.x because I couldn't find any backup to start with (was searching for 1.57.598.2 but not available)
That is interesting (weird) that this CID ended up with the same model name (and product ID) as the AT&T and US Dev Edition.

What region is this (CID HTC_332)?

Thanks for the info, as always!
 

ckpv5

Recognized Contributor
Feb 11, 2008
14,359
18,290
0
Kuala Lumpur
That is interesting (weird) that this CID ended up with the same model name (and product ID) as the AT&T and US Dev Edition.

What region is this (CID HTC_332)?

Thanks for the info, as always!
Latin America (SPA I believe refers to Spanish as speaking language)

Seems like they have 6 different telco but so far I know only 2 dealing for htc m8.

HTC_LA_SPA
HTC_LA_AMX_SPA

Other four are :

HTC_LA_ENTEL_SPA
HTC_LA_ESN_TELCEL_SPA
HTC_LA_IUSACELL_MX_SPA
HTC_LA_TELEFONICA_SPA
 
  • Like
Reactions: mrrocketdog

cristeoleo

Member
Mar 20, 2018
15
0
0
It's not firmware, the ROM (maybe LOS 16) that you installed remove the version on bootloader. I have the same thing.

Still .. there is no x.xx.508.x that I know but based on your fastboot getvar all version, the correct version no. I believe is 6.20.598.2 not 6.20.508.2

There is no free RUU for this 6.20.598.2 (only paid service is available). If you have 1.57.598.2 backup, you can restore and OTA to 6.20.598.2 to fix the version no. on bootloader. Frankly speaking you should not worry about missing version no., won't affect anything as you already on latest firmware.
- Yes, i have LOS16
- Yes, i think that is 6.20.598.2
- What do you want to see with "only paid service". Who do this?
- Well at the beginning to flash 6.20.709.2_NoRedText_hboot.zip and 6.20.709.2_FauxLocked_hboot.zip the recovery disappear, i flash recovery gain but disappear again, to the third time don´t disappear.
- Now i feel a quote of lag in the recovery menu.

---------- Post added at 05:40 PM ---------- Previous post was at 05:37 PM ----------

Just for information ....

CID HTC_332 has two different MID which is different variant.

CID HTC_332 / MID 0P6B16000 - x.xx.599.x - HTC LA SPA
CID HTC_332 / MID 0P6B12000 - x.xx.598.x - HTC LA AMX SPA

I don't post anything for x.xx.598.x because I couldn't find any backup to start with (was searching for 1.57.598.2 but not available)
My operator is Claro Perú, therefore my m8 should be CID HTC_332 / MID 0P6B12000 - x.xx.598.x - HTC LA AMX SPA
 

redpoint73

Recognized Contributor
Oct 24, 2007
15,259
6,946
113
- Well at the beginning to flash 6.20.709.2_NoRedText_hboot.zip and 6.20.709.2_FauxLocked_hboot.zip the recovery disappear, i flash recovery gain but disappear again, to the third time don´t disappear.
You can't flash those hboot files with s-on (as I already mentioned).

Are you saying custom recovery TWRP disappeared?
 
  • Like
Reactions: mrrocketdog

cristeoleo

Member
Mar 20, 2018
15
0
0
You can't flash those hboot files with s-on (as I already mentioned).

Are you saying custom recovery TWRP disappeared?
I flash 6.20.709.2, i use this method of this thread: https://forum.xda-developers.com/showthread.php?t=2710503
Quote:
Is there away of getting this working w/o a PC? Don't got a PC ATM :( and I hate the red text...
1.) Download your modified hboot
2.) Rename the file to 0P6BIMG.zip
3.) Put the renamed file on your external_SD (not internal)
4.) Boot into hboot, it should see the file and prompt you to update
5.) After you have updated your hboot, make sure to remove the 0P6BIMG.zip from your external_sd.
Or else it will see the file and prompt you to update, every time you reboot to bootloader/hboot.
 

Bob in the UK

New member
Sep 9, 2013
2
2
0
I require a bit of help please.

I have a UK HTC One M8 on the Vodafone network which was stuck on the bootloader screen. I followed steps 1 through to 14 from reading posts 1 through to 5 and managed to get the phone up and running – to a certain degree. This is where I need you help and guidance.

Initial getvar all information when stuck in bootloader mode:

C:\Users\Owner22\Desktop\RUU>fastboot getvar all
(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:
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) serialno: SH4BBWM00599
(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: RUU
(bootloader) commitno-bootloader: 255f41e7
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.063s

meid: are all zero’s – if this is relevant

I flashed TWRP v3.2.3-1 (as I think phone was on MM when it was working), followed by flashing fw_6.12.161.4 from #5 because I thought I required a signed firmware. So, fw_6.12.161.4 was the only one that matched my CID and MID. Then followed process for installing 4.19.161.2_ckpv5 as I think I read I needed to install a lower version first.

I have had the phone unlocked to all networks and the phone is now (almost) working with any network SIM. Using a 3 SIM presently.

I manually searched for software updates on the phone and it updated twice.

The problem is that when I search for software updates, it finds two: (1) HTC Sense Home 46.1MB v8.13.781902 and (2) HTC Mail 8.27MB v8.2.868761 which when downloaded comes up with the error:

Unable to complete the installation

An error occurred while installing the software updates

You may check for software updates again in Settings, under About
.

and “The Software Information” screen shows:

Android version 5.0.1
HTC Sense version 6.0
Software number 4.19.161.3


Current getvar all info is:

C:\Users\Owner22\Desktop\RUU>fastboot 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: 6.12.161.4
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) serialno: SH4BBWM00599
(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
all: Done!
finished. total time: 0.071s

Does anyone know me what I have done (or doing) incorrectly? I’m trying to get back to Stock UK Vodafone on Marshmallow. Any advice and guidance would really be appreciated.

Happy to provide any other information you may require, but go gentle on me as I’m new to this game.
 

Einwod

Senior Member
Mar 1, 2011
4,260
2,131
253
61
Lardos, Rhodes, Greece.
I require a bit of help please.

I have a UK HTC One M8 on the Vodafone network which was stuck on the bootloader screen. I followed steps 1 through to 14 from reading posts 1 through to 5 and managed to get the phone up and running – to a certain degree. This is where I need you help and guidance.

Initial getvar all information when stuck in bootloader mode:

C:\Users\Owner22\Desktop\RUU>fastboot getvar all
(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:
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) serialno: SH4BBWM00599
(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: RUU
(bootloader) commitno-bootloader: 255f41e7
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.063s

meid: are all zero’s – if this is relevant

I flashed TWRP v3.2.3-1 (as I think phone was on MM when it was working), followed by flashing fw_6.12.161.4 from #5 because I thought I required a signed firmware. So, fw_6.12.161.4 was the only one that matched my CID and MID. Then followed process for installing 4.19.161.2_ckpv5 as I think I read I needed to install a lower version first.

I have had the phone unlocked to all networks and the phone is now (almost) working with any network SIM. Using a 3 SIM presently.

I manually searched for software updates on the phone and it updated twice.

The problem is that when I search for software updates, it finds two: (1) HTC Sense Home 46.1MB v8.13.781902 and (2) HTC Mail 8.27MB v8.2.868761 which when downloaded comes up with the error:

Unable to complete the installation

An error occurred while installing the software updates

You may check for software updates again in Settings, under About.

and “The Software Information” screen shows:

Android version 5.0.1
HTC Sense version 6.0
Software number 4.19.161.3


Current getvar all info is:

C:\Users\Owner22\Desktop\RUU>fastboot 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: 6.12.161.4
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) serialno: SH4BBWM00599
(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
all: Done!
finished. total time: 0.071s

Does anyone know me what I have done (or doing) incorrectly? I’m trying to get back to Stock UK Vodafone on Marshmallow. Any advice and guidance would really be appreciated.

Happy to provide any other information you may require, but go gentle on me as I’m new to this game.
Have you flashed the stock recovery? Updates must have stock recovery or will give errors.
Why did you go back to older firmware. Flash the 6 version again before going back to stock recovery.
Sent from my Honor View 10 using XDA Labs
 
Last edited:
  • Like
Reactions: mrrocketdog

redpoint73

Recognized Contributor
Oct 24, 2007
15,259
6,946
113
I flashed TWRP v3.2.3-1 (as I think phone was on MM when it was working), followed by flashing fw_6.12.161.4 from #5 because I thought I required a signed firmware. So, fw_6.12.161.4 was the only one that matched my CID and MID. Then followed process for installing 4.19.161.2_ckpv5 as I think I read I needed to install a lower version first.
No, that is not correct to flash an older version first. Since you flashed fw_6.12.161.4, then just restore same number stock nandroid backup 6.12.161.4 with TWRP. That's it. You will be on the latest (last) OS number 6.12.161.4 and no updating required.
 
  • Like
Reactions: mrrocketdog