• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

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

Search This thread

ckpv5

Inactive Recognized Contributor
Feb 11, 2008
14,359
18,291
Kuala Lumpur
1. Make sure you already have TWRP installed.
Recommended:
TWRP 2.8.1.0 for 1.xx.xxx.x & 2.xx.xxx.x TWRP backup
TWRP 2.8.3.0 for 3.xx.xxx.x TWRP backup
TWRP 2.8.4.0 or 2.8.5.0 or 2.8.6.0 and highly recommended 2.8.7.0 or latest for 4.xx.xxx.x & 6.xx.xxx.x TWRP backup

Install TWRP 2.8.1.0 -
command fastboot flash recovery twrp-2.8.1.0-m8.img
Install TWRP 2.8.3.0 -
command fastboot flash recovery twrp-2.8.3.0-m8.img
Install TWRP 2.8.4.0 -
command fastboot flash recovery twrp-2.8.4.0-m8.img
Install TWRP 2.8.5.0 -
command fastboot flash recovery twrp-2.8.5.0-m8.img
Install TWRP 2.8.6.0 -
command fastboot flash recovery twrp-2.8.6.0-m8.img
Install TWRP 2.8.7.0 -
command fastboot flash recovery twrp-2.8.7.0-m8.img

The basic idea is : fastboot flash recovery NameOfRecovery.img

Download TWRP - https://twrp.me/htc/htconem8gsm.html

2. Download TWRP backup - link in post #2 (for KitKat & Lollipop) and post #3 (for Marshmallow)
3. Download stock recovery - link in post #4

4. Extract the downloaded x.xx.xxx.x_ckpv5.zip on PC

5. Boot to TWRP recovery and make a backup of boot only, this is to see where the backup goes on your device.

6(a). Reboot, connect device to PC then
open Internal Storage - TWRP/BACKUPS/SerialNo./ (if backup is set to internal storage)
open SD Card - TWRP/BACKUPS/SerialNo./ (if backup is set to MicroSD)
6(b). For those with no OS, connect device to PC. In TWRP recovery go to mount, make sure MTP is enabled.
Then you can open Internal Storage - TWRP/BACKUPS/SerialNo./ (if backup is set to internal storage)

7. Transfer the extracted x.xx.xxx.x folder (not x.xx.xxx.x_ckpv5 folder) and its content to the backup path on your device, so it looks like this :
TWRP/BACKUPS/SerialNo./x.xx.xxx.x

8. Reboot to TWRP, wipe your device - in TWRP go to wipe - advance - select dalvik cache, cache, data, system (only these)
9. Restore the transferred backup - make sure all boot, data & system are ticked - swipe to restore

10. In reboot menu select bootloader (when TWRP asks whether you want to root your device, select do not install)

11. fastboot flash stock recovery that you downloaded - command fastboot flash recovery x.xxx.xx.x_recovery.img

12. reboot - check for OTA, download, install
13. you may have multiple OTA when your device currently on a lower version
14. done

If you want to flash TWRP again, use the latest TWRP after last OTA

NOTE : There is no need to relock bootloader when doing the nandroid way to revert to stock and do OTA.
 
Last edited:

ckpv5

Inactive Recognized Contributor
Feb 11, 2008
14,359
18,291
Kuala Lumpur
My TWRP backup collections I

hboot 3.16.0000 - 1.xx.xxx.x
hboot 3.18.0000 - 2.xx.xxx.x
hboot 3.19.0000 - 3.xx.xxx.x (KitKat)
hboot 3.19.0000 - 4.xx.xxx.x (Lollipop)
hboot 3.19.0000 - 6.xx.xxx.x (Marshmallow) - see post #3



CID ORANG001
MID 0P6B10000 - x.xx.61.x

CID ORANGB10
MID 0P6B10000 - x.xx.69.x

CID ORANG309
MID 0P6B10000 - x.xx.75.x

CID T-MOB101
MID 0P6B10000 - x.xx.111.x

CID T-MOB102
MID 0P6B10000 - x.xx.112.x

CID T-MOB003
MID 0P6B10000 - x.xx.114.x

CID T-MOB009
MID 0P6B10000 - x.xx.118.x

CID VODAP001, VODAP102, VODAPE17, VODAP405, VODAP304, VODAPD18
MID 0P6B10000 - x.xx.161.x

CID VODAP203
MID 0P6B10000 - x.xx.163.x

CID VODAP110 & VODAP120
MID 0P6B10000 - x.xx.166.x
4.19.166.2 - thanks @Pagrio for the backup
4.19.166.3 - thanks @percusion for the backup

CID O2___001 & O2___102
MID 0P6B10000 - x.xx.206.x

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 - x.xx.401.x

CID CWS__001
MID 0P6B12000 - x.xx.502.x

CID T-MOB010
MID 0P6B13000 - x.xx.531.x

CID HTC__332
MID 0P6B16000 - x.xx.599.x

CID HTC__332
MID 0P6B16000 - x.xx.600.x

CID ROGER001
MID 0P6B16000 - x.xx.631.x

CID TELUS001
MID 0P6B16000 - x.xx.661.x

CID BM___001 & SASKT001
MID 0P6B16000 - x.xx.666.x

CID HTC__044 & HTC__059
MID 0P6B11000 - x.xx.707.x

CID HTC__622
MID 0P6B63000 - x.xx.708.x

CID HTC__621
MID 0P6B11000 - x.xx.709.x

CID HTC__039 & VODAP021
MID 0P6B11000 - x.xx.710.x

CID HTC__038
MID 0P6B65000 - x.xx.720.x
4.18.720.8 - thanks @n1234d for the backup
4.18.720.10

CID H3G__001, H3G__106, H3G__402, H3G__G04
MID 0P6B10000 - x.xx.771.x

CID TELST001
MID 0P6B11000 - x.xx.841.x

CID TIM__401
MID 0P6B10000 - x.xx.901.x

CID OPTUS001
MID 0P6B65000 - x.xx.980.x

CID HTC__247
MID 0P6B10000 - x.xx.1020.x

CID GLOBA001
MID 0P6B13000 - x.xx.1500.x

CID BS_US001, BS_US002
MID 0P6B12000, 0P6B13000 - x.xx.1540.x


M8 Dual-SIM only
CID HTC__001, HTC__A07, HTC__J15, HTC__A48, HTC__Y13, HTC__032 & HTC__102
MID 0P6B64000 & 0P6B68000
4.30.401.16

M8 EYE only
CID HTC__001 & HTC__J15
MID 0P6B81000
1.82.401.7 - thanks @Hazem99922 for the backup

CID HTC__038
MID 0P6B90000
1.80.720.1 - thanks @Shreyas for the initial backup
 
Last edited:

ckpv5

Inactive Recognized Contributor
Feb 11, 2008
14,359
18,291
Kuala Lumpur
My TWRP backup collections II

hboot 3.19.0000 - 6.xx.xxx.x (Marshmallow)

CID ORANG001
MID 0P6B10000
6.12.61.4

CID ORANGB10
MID 0P6B10000
6.14.69.4 - thanks @Petert87

CID ORANG309
MID 0P6B10000
6.14.75.4 - thanks @Petert87

CID T-MOB101
MID 0P6B10000
6.12.111.4

CID T-MOB102
MID 0P6B10000
6.12.112.4 - thanks @Imotep95

CID T-MOB003
MID 0P6B10000
6.12.114.4 - thanks @Petert87

CID T-MOB009
MID 0P6B10000
6.12.118.4

CID VODAP001, VODAP102, VODAPE17, VODAP405, VODAP304, VODAPD18
MID 0P6B10000
6.12.161.4 - thanks @Petert87

CID VODAP203
MID 0P6B10000
6.12.163.4

CID VODAP110 & VODAP120
MID 0P6B10000
6.12.166.4 - thanks @percusion
Try this link : https://mega.nz/#!z4RC3QzK!ZfX3xTFSRnl4QPMqRhT5ssbNRaZ-mhGvwoDUcjBr77c

CID O2___001 & O2___102
MID 0P6B10000
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
6.12.401.4
6.12.401.4 - thanks @t-ryder

CID HTC__001 & HTC__J15
MID 0P6B67000
6.21.401.1

CID T-MOB010
MID 0P6B13000
6.20.531.5

CID HTC__332
MID 0P6B16000
6.14.599.1

CID HTC__332
MID 0P6B16000
6.17.600.3

CID ROGER001
MID 0P6B16000
6.13.631.7

CID TELUS001
MID 0P6B16000
6.13.661.9
6.13.661.9 - thanks @shaboobla

CID BM___001 & SASKT001
MID 0P6B16000
6.13.666.7

CID HTC__044 & HTC__059
MID 0P6B11000
6.14.707.1
6.14.707.1 - thanks @Bobbi lim and @huyhoangytn

CID HTC__622
MID 0P6B63000
6.16.708.1

CID HTC__621
MID 0P6B11000
6.12.709.4
6.20.709.2

CID HTC__039 & VODAP021
MID 0P6B11000
6.12.710.4
6.24.710.1

CID HTC__038
MID 0P6B65000
6.15.720.2

CID H3G__001, H3G__106, H3G__402, H3G__G04
MID 0P6B10000
6.13.771.4

CID TELST001
MID 0P6B11000
6.12.841.4
6.24.841.1

CID OPTUS001
MID 0P6B65000
6.12.980.5
6.24.980.1

CID HTC__247
MID 0P6B10000
6.13.1020.4

CID GLOBA001
MID 0P6B13000
6.13.1500.7

CID BS_US001 & BS_US002
MID 0P6B12000 & 0P6B13000
6.12.1540.4


Google Play Edition (GPE)
CID GOOGL001, 11111111, CWS__001, T-MOB010
MID 0P6B10000, 0P6B11000, 0P6B12000, 0P6B13000, 0P6B11000, 0P6B15000, 0P6B16000, 0P6B17000
Thanks @[B]Petert87[/B] for his collections -
https://forum.xda-developers.com/showpost.php?p=70965379&postcount=2198
https://forum.xda-developers.com/showpost.php?p=70978970&postcount=2202

M8 Dual-SIM only
CID HTC__001, HTC__A07, HTC__J15, HTC__A48, HTC__Y13, HTC__032 & HTC__102
MID 0P6B64000
6.16.401.101 - thanks liviumustata

M8 EYE only
CID HTC__001 & HTC__J15
MID 0P6B81000
5.07.401.1 - thanks @[B]sunny6478[/B]
 
Last edited:

ckpv5

Inactive Recognized Contributor
Feb 11, 2008
14,359
18,291
Kuala Lumpur
My Stock Recovery Collections

1.xx.xxx.x

1.54.69.5 - not available, use 1.70.69.2
1.70.69.2

1.54.73.5
1.70.73.2

1.54.75.5 - not available, use 2.26.75.1

1.57.111.2

1.57.118.2

1.12.161.17 - thanks @Petert87
1.54.161.5 - thanks @Petert87
1.54.161.10
1.54.161.10 - thanks @Petert87

1.54.206.10

1.54.401.10

1.58.502.1

1.57.599.1 - not available, use 2.25.599.1

1.12.600.20 - not available, use 4.32.600.2

1.55.666.4

1.54.707.7

1.60.708.2

1.54.709.12

1.56.720.6

1.54.771.9

1.54.841.8

1.54.980.5

1.55.1500.4

2.xx.xxx.x

3.xx.xxx.x

4.xx.xxx.x

6.xx.xxx.x
6.12.61.4
6.14.69.4
6.14.75.4
6.12.111.4
6.12.112.4
6.12.114.4
6.12.118.4
6.12.161.4
6.12.163.4
6.12.166.4
6.13.206.5
6.12.401.4
6.21.401.1
6.20.502.5
6.20.531.5
6.14.599.1
6.17.600.3
6.13.631.7
6.13.661.9
6.13.666.7
6.14.707.1
6.16.708.1
6.12.709.4
6.20.709.2
6.12.710.4
6.24.710.1
6.15.720.2
6.13.771.4
6.12.841.4
6.24.841.1
6.12.980.5
6.24.980.1
6.13.1020.4
6.13.1500.7
6.12.1540.4

M8 Dual-SIM only
3.33.401.6
4.30.401.15
4.30.401.16
4.30.401.18
6.16.401.101

M8 EYE only
1.82.401.7 - thanks to @Hazem99922
4.30.720.4
4.30.720.5

Google Play Edition (GPE)
Thanks @[B]Petert87[/B] for his collections
 
Last edited:

ckpv5

Inactive Recognized Contributor
Feb 11, 2008
14,359
18,291
Kuala Lumpur
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
 
Last edited:

Pagrio

New member
Jan 7, 2015
4
2
I found a TWRP backup for 4.19.166.2

please add it to your list ;)

https:// lsifiler.centersystems.com/filevista/public/1923/2015-05-04-01-23-12-lrx22c-release-keys.rar
 
  • Like
Reactions: ckpv5

ckpv5

Inactive Recognized Contributor
Feb 11, 2008
14,359
18,291
Kuala Lumpur
I found a TWRP backup for 4.19.166.2

please add it to your list ;)

https:// lsifiler.centersystems.com/filevista/public/1923/2015-05-04-01-23-12-lrx22c-release-keys.rar

Thanks for file.

I'll update the list after I redo the backup to remove root and add in the missing preload files.

EDIT : link updated
 
Last edited:

tvos

Senior Member
May 6, 2013
149
24
Las Vegas, NV
Questions on Stock Restore HTC M8

Friends,

It has been ages since I have flashed a new rom, performed a nanoandroid restore so will need a little
help.

Currently, my HTC M8 device is rooted with s-on. I am running the MIUI V5 rom since last August. Now, I would like to return back to stock and grab all the updates for the OTA etc. Right now, I am running twerp 2.7.0.2 on my phone.
T-Mobile USA
Status: S-ON/Unlocked
HBOOT 3.18.0.0000
RADIO: 1.19.213311491.03G

So here are my questions?

1. If I perform a nano-restore to stock does this mean that the root is lost? Not that it matters I can just re-root after the OTA etc..

2. Reading this thread honestly intimidated by all these versions to choose from for returning to stock. Not sure what to go by?

3. Last but not least, will this break my recovery mode when I perform the nanoandroid restore back to stock?

I don't mind paying a few dollars and having someone give me a hand with this that *knows* the art of flashing and not bricking.

My goal is go back to stock, updates with the OTA etc.. Re-root and try a rom like sky dragon, viper and see if I want to go into that direction.

Please advise and Thank You

tvos
 

ckpv5

Inactive Recognized Contributor
Feb 11, 2008
14,359
18,291
Kuala Lumpur
Friends,

It has been ages since I have flashed a new rom, performed a nanoandroid restore so will need a little
help.

Currently, my HTC M8 device is rooted with s-on. I am running the MIUI V5 rom since last August. Now, I would like to return back to stock and grab all the updates for the OTA etc. Right now, I am running twerp 2.7.0.2 on my phone.
T-Mobile USA
Status: S-ON/Unlocked
HBOOT 3.18.0.0000
RADIO: 1.19.213311491.03G

So here are my questions?

1. If I perform a nano-restore to stock does this mean that the root is lost? Not that it matters I can just re-root after the OTA etc..

2. Reading this thread honestly intimidated by all these versions to choose from for returning to stock. Not sure what to go by?

3. Last but not least, will this break my recovery mode when I perform the nanoandroid restore back to stock?

I don't mind paying a few dollars and having someone give me a hand with this that *knows* the art of flashing and not bricking.

My goal is go back to stock, updates with the OTA etc.. Re-root and try a rom like sky dragon, viper and see if I want to go into that direction.

Please advise and Thank You

tvos

You have a T-MOB US device .. the best thread for all your needed files either stock backups and RUUs are here : http://forum.xda-developers.com/showthread.php?t=2714456

My advise is don't use that outdated TWRP 2.7.0.2 but use the updated ones like 2.8.3.0 and newer.

1. Basically - yes, you'll lose root when the nandroid backup is pure unrooted stock.

2. I don't list the backup for your version here - because the correct one for your device is there in link that I mentioned above.

3. TWRP Nandroid will not replace your current recovery. You need to manually flash the recovery image.

I don't mind to walk you through the process but unfortunately I don't have time at the moment as I'm busy with my vacation preparation.

For everyone - I will be away on holiday from 8/5 to 18/5 - so any request or question I will reply when I'm back from holiday.
 

tvos

Senior Member
May 6, 2013
149
24
Las Vegas, NV
Hello Ckpv5,

In response #2
2. I don't list the backup for your version here - because the correct one for your device is there in link that I mentioned above.

Not sure which one that I need for my device? Please let me know the name of the file or the link I should grab for this stock recovery. There are so many it's just confusting

Last but not least, can I flash the stock rom in TWRP or RUU?

Please advise

Dave
 

redpoint73

Inactive Recognized Contributor
Oct 24, 2007
15,259
6,950
Not sure which one that I need for my device? Please let me know the name of the file or the link I should grab for this stock recovery. There are so many it's just confusting

You need to find the stock recovery that corresponds to the stock ROM for your CID.


Last but not least, can I flash the stock rom in TWRP or RUU?

The whole point of the instructions in the first post is to tell you how to restore the stock nandroid.
 
  • Like
Reactions: xrider472

ckpv5

Inactive Recognized Contributor
Feb 11, 2008
14,359
18,291
Kuala Lumpur
When a nandroid backup is restored, do I need to flash boot.img?

I'm refering to this post here http://forum.xda-developers.com/showpost.php?p=60937883&postcount=5509

"For stock stock stock all...
Flash stock nandroid backup
Flash boot img stock
Flash stock recovery
Re lock bootloader"

Thank you.

When a nandroid backup is restored and boot is selected then there is no need to separately flash boot.img

Follow all steps in post #1 (see step #9 for your question)
and there is no need to relock bootloader
 
Last edited:
  • Like
Reactions: irawanjohan

Top Liked Posts