[Q] Go back to stock - One (M8) Q&A, Help & Troubleshooting

Hi All,
I have a Dutch T-Mobile HTC One M8 (Gunmetal Gray)
I unlocked bootloader via HTCDEV
i have TWRP
i have HD 10.2 ROM
i don't have S-OFF
I made a backup from my original rom (via TWRP)
Now i have some warranty issues, so i want to go back to stock (so total stock, no root, no unlocked bootloader, and original rom back)
Can some body explain me step by step how to get back to stock.
Thanks in advance!

samstar said:
Hi All,
I have a Dutch T-Mobile HTC One M8 (Gunmetal Gray)
I unlocked bootloader via HTCDEV
i have TWRP
i have HD 10.2 ROM
i don't have S-OFF
I made a backup from my original rom (via TWRP)
Now i have some warranty issues, so i want to go back to stock (so total stock, no root, no unlocked bootloader, and original rom back)
Can some body explain me step by step how to get back to stock.
Thanks in advance!
Click to expand...
Click to collapse
Since you made a backup your stock ROM this shouldn't be too difficult. Sadly though unless you obtain S-OFF as far as I know you will not be able to achieve LOCKED again only RELOCKED. This shouldn't be a problem with your warranty but you may want to check.
If you enter TWRP and restore from your backup you will be back to stock and about relocking the bootloader it's simply the command:
After your restore your backup ensure fastboot is desabled in settings and USB debugging is still enabled and then reboot into FASTBOOT.
In fastboot use the command:
fastboot oem lock
That should be it as far as I know. Still take my advice with caution considering I am new to this as well but I am pretty sure considering your backup it's very simple task.
Good luck with returning your phone!

Related

[tutorial] How to upgrade One V with an OTA update / RUU to revert to stock

As there are many questions on how to do OTA update & to revert to stock after a device is rooted and bootloader unlocked; I made this simple guide which I hope will help the newbies especially.
NOTE : always do a backup and a nandroid backup before trying any of these.
OTA update:
A) ROM is stock, bootloader unlocked, stock recovery and not rooted.
- just run the OTA update, there is no need to relock the bootloader
B) ROM is stock, bootloader unlocked, CWM recovery and not rooted.
- flash the stock recovery that comes with your RUU, extract the RUU for the stock recovery.
* boot to bootloader
* fastboot flash recovery recovery_signed.img
* fastboot reboot-bootloader
* fastboot erase cache
* fastboot reboot
- run the OTA update
C) ROM is stock, bootloader unlocked, stock recovery and rooted
- download OTA Rootkeeper from Play Store
- run the OTA Rootkeeper and click protect root
- run the OTA update, there is no need to relock bootloader
- Once done, run OTA Rootkeeper and click restore root
D) ROM is stock, bootloader unlocked, CWM recovery and rooted
- download OTA Rootkeeper from Play Store
- run the OTA Rootkeeper and click protect root
- no need to relock bootloader
- boot to bootloader and fastboot flash the stock recovery
- run the OTA update
- Once done, run OTA Rootkeeper and click restore root
E) ROM is custom, bootloader unlocked, CWM recovery and rooted and you have a stock nandroid backup
- flash the stock boot.img if after nandroid restore, you have a bootloop
- flash the stock recovery.img
- relock the bootloader - fastboot oem lock
- boot your device and run the OTA update
F) ROM is custom, bootloader unlocked, CWM recovery and rooted and you don't have a stock nandroid backup
- if you dont have the stock nandroid backup, you need to run RUU
- before you can run the RUU you need to:
* flash the stock recovery.img
* flash the stock boot.img (maybe no need)
* relock the bootloader - fastboot oem lock
* run RUU
- run device setup
- run the OTA update
Flashing RUU to revert to stock or to update your One V after you have a custom ROM installed.
- you must have the correct RUU for your device.
- if you are not sure, download CID Getter from Play Store and run it, it will show your CID.
- with your CID, you may be able to find a correct RUU for your device
then
1- in fastboot mode - relock the bootloader : run command fastboot oem lock
2- in fastboot mode - flash/run/double click the RUU; follow the updater instruction - next,update,bla,bla,bla until it finish
Note :
Error 155 - usually wrong recovery.img /wrong boot.img or bootloader not relocked
Error 140 - wrong bootloader / bootloader unlocked
Error 131 - wrong RUU for your device
Credit to all XDA members that posted all the guides in various forum thread and some from own experience which I compiled here for easy reference.
If I have a nandroid backup from my stock (nandroid after it was rooted), how can I get rid of root? I need to lock bootloader also because I need to return my product. Also, I have the kernel img and recovery img (need to flash those also because I have flashed custom kernel and cwm).
So my guess is that:
nandroid restore
go to fastboot and flash boot.img
go to fastboot and flash recovery img
go to fastboot and relock bootloader.
but how do you get rid of root?
1ceb0x said:
If I have a nandroid backup from my stock (nandroid after it was rooted), how can I get rid of root? I need to lock bootloader also because I need to return my product. Also, I have the kernel img and recovery img (need to flash those also because I have flashed custom kernel and cwm).
So my guess is that:
nandroid restore
go to fastboot and flash boot.img
go to fastboot and flash recovery img
go to fastboot and relock bootloader.
but how do you get rid of root?
Click to expand...
Click to collapse
i think u have an option in super su
to completely get rid of root
dnt knw if tht wrks
try it
dont just say thanks hit thanks if i helped
sent from my awesome HTC One V using xda premium
1ceb0x said:
If I have a nandroid backup from my stock (nandroid after it was rooted), how can I get rid of root? I need to lock bootloader also because I need to return my product. Also, I have the kernel img and recovery img (need to flash those also because I have flashed custom kernel and cwm).
So my guess is that:
nandroid restore
go to fastboot and flash boot.img
go to fastboot and flash recovery img
go to fastboot and relock bootloader.
but how do you get rid of root?
Click to expand...
Click to collapse
Are you able to get the RUU for your phone/region?
1ceb0x said:
but how do you get rid of root?
Click to expand...
Click to collapse
Reflash system.img is the no-fail way.
CafeKampuchia said:
Reflash system.img is the no-fail way.
Click to expand...
Click to collapse
System.img is the rom itself right? If yes, by reflashing it, the root will still be there because the nandroid was AFTER it was rooted. And I didn't found my RUU. I have found one which is the same as mine but the last number .x differs from mine (I have .4 and the RUU has .3)...
your going to need the ruu buddy, i have to do the same, the kernel shows up as root blah blah blah. kernel recovery and rom itself need flashing.....
Would you be okay with just removing the superuser.apk or did you also want the binary gone?
One of the possible options is to modify your nandroid backup so that both files are deleted (and not restored), but I'm not sure if CWM complains if the backup has been modified.
1ceb0x said:
If I have a nandroid backup from my stock (nandroid after it was rooted), how can I get rid of root? I need to lock bootloader also because I need to return my product. Also, I have the kernel img and recovery img (need to flash those also because I have flashed custom kernel and cwm).
So my guess is that:
nandroid restore
go to fastboot and flash boot.img
go to fastboot and flash recovery img
go to fastboot and relock bootloader.
but how do you get rid of root?
Click to expand...
Click to collapse
Restore your nandroid backup
Reboot your device.
Open the SuperSU, and click Full unroot (it will remove the app, apk & su library)
Reboot to recovery
Make a new nandroid backup (this time there is no root for safekeeping)
Reboot to bootloader
fastboot flash boot stockboot.img
fastboot erase cache
fastboot flash recovery stockrecovery.img
fastboot erase cache
fastboot oem lock
now you are back to stock rom without root and relocked
Thank you so much, will try it tonight because tomorrow I need to get my unit to replacement. I didn't knew how the process worked since I never did it (I work with android for 3 years now).
But I have a question. If you open su and you click full unroot, why do you need to make a new nandroid and flash that?
1ceb0x said:
Thank you so much, will try it tonight because tomorrow I need to get my unit to replacement. I didn't knew how the process worked since I never did it (I work with android for 3 years now).
But I have a question. If you open su and you click full unroot, why do you need to make a new nandroid and flash that?
Click to expand...
Click to collapse
Because your old nandroid has SuperSU.apk and SU library in it.
New backup will not have those because you already remove them before new nandroid is made.
So you'll have a new stock nandroid without root.
ckpv5 said:
Because your old nandroid has SuperSU.apk and SU library in it.
New backup will not have those because you already remove them before new nandroid is made.
So you'll have a stock nandroid without root.
Click to expand...
Click to collapse
But if I restore the nandroid that has root and then unroot it, I don't see why you need to make a new one and restore that.
1ceb0x said:
But if I restore the nandroid that has root and then unroot it, I don't see why you need to make a new one and restore that.
Click to expand...
Click to collapse
I see your point... I thought that you do want to keep a stock nandroid without root for safekeeping as there is no RUU for .4 yet
The post now updated.
ckpv5 said:
I see your point... I thought that you do want to keep a stock nandroid without root for safekeeping as there is no RUU for .4 yet
Click to expand...
Click to collapse
Well, the point is that I will replace this unit with another one since this one is not working with Orange carriers. My shop was in talks with HTC service to get an unlock code but they failed to do so, so they said it is ok to change the unit. No need to keep a nandroid backup since I don't know what software version I will have on the new phone. Thank you for your help!
I fall under category D (ROM is stock, bootloader unlocked, CWM recovery and rooted)
Can someone tell me in detail how to
boot to bootloader and fastboot flash the stock recovery
Click to expand...
Click to collapse
Do I boot into CWM?
Thanks for your help.
RaskloP said:
I fall under category D (ROM is stock, bootloader unlocked, CWM recovery and rooted)
Can someone tell me in detail how to
Do I boot into CWM?
Thanks for your help.
Click to expand...
Click to collapse
No, not boot into CWM.
Remember how you go to bootloader when you first want to unlock your bootloader ? You press power + volume down, that is boot to bootloader.
1ceb0x said:
Thank you so much, will try it tonight because tomorrow I need to get my unit to replacement. I didn't knew how the process worked since I never did it (I work with android for 3 years now).
But I have a question. If you open su and you click full unroot, why do you need to make a new nandroid and flash that?
Click to expand...
Click to collapse
so that your new nandroid backup doesn't have SuperSU and you can still keep your datas
RaskloP said:
I fall under category D (ROM is stock, bootloader unlocked, CWM recovery and rooted)
Can someone tell me in detail how to
Do I boot into CWM?
Thanks for your help.
Click to expand...
Click to collapse
Please make sure you're flashing to recovery, not boot.
Connect your phone to your computer via USB. I'll assume you have the necessary bootloader/adb drivers installed.
Open up a command prompt to wherever your recovery.img is and type (this assumes you can easily access adb/fastboot from anywhere):
adb reboot bootloader
Phone should reboot into fastboot. From there type:
fastboot flash recovery recovery.img
It should then flash the stock recovery.
I would recommend taking a look at the HTC All-in-One ToolKit in the Development forums. It might simplify it for you.
To get back to you guys, I have followed these instructions and I am back to stock. The only thing that should worry me now is that the bootloader says "RELOCKED" instead of "LOCKED" but I don't think this is a reason why I should loose my warranty since we've done it using HTCDEV method.
It was easy enough because I had my nandroid backup. Such a joy to have one of these at hand!
Thank you all for the infos. Tomorrow I'll get my replacement :yuhuu:
1ceb0x said:
To get back to you guys, I have followed these instructions and I am back to stock. The only thing that should worry me now is that the bootloader says "RELOCKED" instead of "LOCKED" but I don't think this is a reason why I should loose my warranty since we've done it using HTCDEV method.
It was easy enough because I had my nandroid backup. Such a joy to have one of these at hand!
Thank you all for the infos. Tomorrow I'll get my replacement :yuhuu:
Click to expand...
Click to collapse
yea it should be ok buddy, my new handset arrives tomorrow, wish i could had gone to a store to pick it up so i could check it before i left the store :/ i do hate 3 customer services

[Q] Advice before installing custom ROM

Hi all,
Just moved over to the One X from a Desire HD where I had been running Leedroids custom ROMs.
Am loving the One X, but feel I should get another custom ROM on it to make the most of it. Was think of going with Android Revolution.
Anyway.....
I have forgotten the process involved and have tried unsucessfuly to find a 'how to' from scratch. Can anyone point me in the right direction?
At the moment my software info on the phone is as follows....
Android Version 4.1.1
HTC Sense Version 4+
Software number 3.14.401.31
HTC SDK API level 4.63
HTC Extension version HTCExtension_Sense45_1
Kernel Version
3.10-g9fb8f80
Baseband version 5.1204.162.29
Build number 3.14.401.31 C:128187 release-keys
I want to be sure I am ok to custom ROM and also can I backup what I have now, so I can restore back to stock should I need to send it back.
Its on the 02 network, but its unbranded and I think unlocked?
http://forum.xda-developers.com/showthread.php?t=1809141
Try this out.
Before that , hold power button and volume down button ( dont leave) for about 15 secs until a white screen with small letters shows up.
On the top either unlocked or locked should be written. Only proceed to install rom if you are unlocked.
If you are locked try this tool to unlock first
http://forum.xda-developers.com/showthread.php?t=1604439
Check your hboot of its unlocked, hold the power button and the volume - button together until you are in the bootloader. It says on the top if its locked or unlocked. If its unlocked you can proceed
Then you need to learn fastboot commands, if you did not learn it already.
With the fastboot commands you have to flash a custom recovery and with that custom recovery you can make a nandroid backup of the stock rom. After that you can install custom roms.
Always keep in mind that you have to flash the boot.img (kernel) separate with fastboot commands to the phone and install the rom.zip from recovery
Cheers. It seems its locked. So, I will get it unlocked by 02 before I carry on.
On the tutorial link, I presume I follow the 'For Users Using Sense 4.1' instuctions?
Mate, SIM unlocking is not the case here. You need to unlock the bootloader.
TToivanen said:
Mate, SIM unlocking is not the case here. You need to unlock the bootloader.
Click to expand...
Click to collapse
Ah, like S-OFF? Getting myself confused as I have four phones in front of me here and trying to sort them all out!
Thanks.
superdon said:
Ah, like S-OFF? Getting myself confused as I have four phones in front of me here and trying to sort them all out!
Thanks.
Click to expand...
Click to collapse
There is currently no way for us to S-OFF our device. But unlocking the bootloader does a similar thing - it makes us capable of flashing stuff by allowing us to write some partitions that would otherwise be read only.
OK, so I folow the two links that {< r o N o $ provided.
At what point and how do I create a backup of the stock system? Is there a tutorial for that?
Listen:
NAND Backup straight away. (From Pure stock)
Goto HTCDev
Unlock Bootloader
Install SuperSU(this makes root)
Your now unlocked and rooted.
Find custom ROM.
Flash the custom ROM.
Flash the Boot.img
Wipe Cache/Dalvik.
Boot
Wilks3y said:
Listen:
NAND Backup straight away. (From Pure stock)
Goto HTCDev
Unlock Bootloader
Install SuperSU(this makes root)
Your now unlocked and rooted.
Find custom ROM.
Flash the custom ROM.
Flash the Boot.img
Wipe Cache/Dalvik.
Boot
Click to expand...
Click to collapse
Eh, how does he do a nandroid backup without unlocking bootloader first??
And why would you root and then install a rooted custom ROM? LOL
More like this:
Goto HTCDev
Unlock Bootloader
Install a custom recovery (CWM or TWRP)
NAND Backup straight away. (From Pure stock)
COPY STOCK BACKUP TO PC
Find custom ROM.
WIPE
Flash the custom ROM.
Flash the Boot.img
Wipe Cache/Dalvik.
TToivanen said:
Eh, how does he do a nandroid backup without unlocking bootloader first??
And why would you root and then install a rooted custom ROM? LOL
More like this:
Goto HTCDev
Unlock Bootloader
Install a custom recovery (CWM or TWRP)
NAND Backup straight away. (From Pure stock)
COPY STOCK BACKUP TO PC
Find custom ROM.
WIPE
Flash the custom ROM.
Flash the Boot.img
Wipe Cache/Dalvik.
Click to expand...
Click to collapse
Do this
Those that don't know,speak
Those that don't speak,know
TToivanen said:
Eh, how does he do a nandroid backup without unlocking bootloader first??
And why would you root and then install a rooted custom ROM? LOL
More like this:
Goto HTCDev
Unlock Bootloader
Install a custom recovery (CWM or TWRP)
NAND Backup straight away. (From Pure stock)
COPY STOCK BACKUP TO PC
Find custom ROM.
WIPE
Flash the custom ROM.
Flash the Boot.img
Wipe Cache/Dalvik.
Click to expand...
Click to collapse
Good point
My bad
Thanks all. Will give it a try soon
Oke, feel free to ask here if you need help.

[Q] Back To Stock

I have an AT&T M8 with 4.4.3
Its unlocked and rooted, firewater was unsuccessful with this error....****** device patched by HTC, you are out of luck *********.
Is there any way to return to stock without S-Off?? If so could someone please point me in the right direction?
I'm a newbie with htc and very aggravated with this phone.
skullymullins said:
I have an AT&T M8 with 4.4.3
Its unlocked and rooted, firewater was unsuccessful with this error....****** device patched by HTC, you are out of luck *********.
Is there any way to return to stock without S-Off?? If so could someone please point me in the right direction?
I'm a newbie with htc and very aggravated with this phone.
Click to expand...
Click to collapse
Can you provide me with the link that says you need to be S-OFF to get your phone back to stock, where you clearly didn't have to be S-OFF in order to take it away from stock in the first place?
I'm asking this because you are one of many that I've seen recently that comes on here asking the same question, can I go back to stock while I'm still S-ON ? "Should I be S-OFF in order to restore a nandroid backup?" etc...I would really like to know where you guys get this information from?
The only thing that you'll need S-OFF for(when going back to stock) is to fix the tampered flag in the bootloader and to have it show "locked" instead of "relocked" when or if you locked the bootloader.
That being said, going back to stock from where? Did you flash custom ROMs? Or are you only rooted and unlocked?
My phone is stock, but unlocked with root, my main goal is to reload the original recovery, relock and unroot.
I was watching a video on how to use RUU and according to the instructions you had to be S-Off.
Anyone
Sent from my HTC One_M8 using XDA Free mobile app
skullymullins said:
My phone is stock, but unlocked with root, my main goal is to reload the original recovery, relock and unroot.
I was watching a video on how to use RUU and according to the instructions you had to be S-Off.
Click to expand...
Click to collapse
You need S-Off only when you want to remove TAMPERED and RELOCKED flags.
Other than that, you don't need S-OFF
You have AT&T device, AT&T forum is where you'll find more info.
Try this one : http://forum.xda-developers.com/att...-2-23-502-3-bootable-ruu-pc-required-t2860486
Important note :
S-On - you need to relock bootloader first before running it. So read and read the instructions
and there are many more guides on AT&T forum
skullymullins said:
Anyone
Sent from my HTC One_M8 using XDA Free mobile app
Click to expand...
Click to collapse
You could use the AT&T RUU that is available on the AT&T forum.
At&t 2.23.502.3 - 4.4.3 Bootable RUU - No PC required - Mac friendly
Like the OP there said, if you are S-ON you should lock the bootloader first before using the RUU. I think that should take care of most of the other issues you have, like unrooting etc. Make a backup of any personal stuff you have on phone.
Or
Download unsupersu, flash it in custom recovery to unroot device. If you use SuperSU you can also go into settings for SuperSU and use Full Unroot. Reboot phone, can then uninstall SuperSU. Should be unrooted.
Flash back stock recovery for your device.
Relock bootloader - fastboot oem lock
Will this also restore the factory recovery instead of twrp that is on the phone now?
skullymullins said:
Will this also restore the factory recovery instead of twrp that is on the phone now?
Click to expand...
Click to collapse
That's also in that very same thread we linked you to!
Post number 7
Post number 15
But I take it you didn't read at least the first 2 pages...
It'll take you back to stock completely, like the OP said in Post 15.
Just remember to relock your bootloader seeing as you're S-ON.
Thanks for your patience and help,
it worked flawlessly.

Can i backup my boot loader before i unlock it?

Another Android noob here. I'm about to root my HTC One m8 so I can flash CyanogynMod. I want to be able to return everything to stock exactly the way as before so that I can reclaim my warranty. Is this possible? Can I back up the bootloader while in its locked state? After that, I would like to back everything up before rooting my device including radio/modem, IMEI number, ROM, and Kernel. How would I go about doing this? Would anything other than the stock ROM and boot loader be affected after rooting my device?
You can't backup a bootloader to return to LOCKED. But you can return it to LOCKED if you have s-off ($25 by sunshine app).
Depending on what version M8 you have, you can RUU back to stock to restore stock radio, recovery, ROM, kernel, etc. Or stock versions of many of these things can be found on this forum, negating the need to back them up or dump them yourself.
Once you unlock the bootloader and install TWRP custom recovery, you can use TWRP to backup your stock ROM and kernel before rooting (which is highly recommended), which (aside from the unlocked bootloader and stock recovery) are the only things that are affected by rooting.

Restore HTC M8 back to Factory settings.

Is it possible to totally restore the phone back to as when it was new?
Currently has cyanogenmod on it,
any help appreciated.
thanks.
mancboy1 said:
Is it possible to totally restore the phone back to as when it was new?
Click to expand...
Click to collapse
Yes you can restore the device to it's stock ( factory ) condition by using RUU or by restore the stock backup and flash the stock recovery
Either way you need the appropriate version for your device
Post the result of fastboot getvar all after removing serialno and imei
some one will give you the links to the files and how to
Sent from my HTC M8 using XDA Labs
Depends on if you really mean "totally".
1) If the goal is simply to return to the stock ROM, for purpose of your own use, you can just install the stock TWRP backup (and if you want, the stock recovery) per the following thread: http://forum.xda-developers.com/htc-one-m8/help/tutorial-how-to-stock-stock-twrp-t3086860
1a) Alternately, relock the bootloader and install RUU (if you M8 version has one).
2) If the purpose is to make the phone appear untampered, for HTC warranty service (which is unlikely for most M8 devices, as the warranty is typically for 1 year), then the only way to go "completely" stock requires s-off in order to make the bootloader say LOCKED. With s-on, it will only ever say RELOCKED once its been unlocked. More info on how to make the bootloader LOCKED is here: http://forum.xda-developers.com/showthread.php?t=2735235
But again, this isn't necessary for most needs. Approaches 1 or 1a above are fine for most folks.

Categories

Resources