Restore HTC M8 back to Factory settings. - One (M8) Q&A, Help & Troubleshooting

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.

Related

How to restore phone to stock for warranty return?

Could someone post how to restore the phone back to stock in it's entirety in case it needs to be returned for warranty purposes? Links to firmware etc. Thank you in advance.
JesseTron said:
Could someone post how to restore the phone back to stock in it's entirety in case it needs to be returned for warranty purposes? Links to firmware etc. Thank you in advance.
Click to expand...
Click to collapse
As I have understood it is up the each carrier to release stock firmware for this phone. And the person who told me about this said he hadn't seen anything yet.
Without s-off
- Stock rom (your nandroid backup)
- Stock recovery
- Relocked bootloader
With S-off
- Stock rom (your nandroid backup)
- Stock recovery
- Locked bootloader
Mr Hofs said:
Without s-off
- Stock rom (your nandroid backup)
- Stock recovery
- Relocked bootloader
With S-off
- Stock rom (your nandroid backup)
- Stock recovery
- Locked bootloader
Click to expand...
Click to collapse
Since we have s-off, does that mean HTC can't tell that we've unlocked/rooted etc if we return to stock?
Correct .....
They usually can tell by Ur imei and serial number once processed thru their system lol ppl say they can't but they cud
Sent from my HTC One_M8 using Tapatalk

[Q] Go back to stock

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!

[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.

[Q] Best way to preserve Sense for easy switching between GPE and Sense

Hi All,
I just pulled the trigger on a M8 this morning and have been reading up how to root, s-off etc.
I intend, pretty much right off the bat, to flip over to the GPE. My reasoning for this is that its what i've ended up running on whatever phone i've had ever since i got my HTC desire way back.
But - just in case - i'd like to take a nandroid of the sense ROM and store in on my PC should i ever wish to go back - because - tinkering
My intention is to first root and install TWRP on the phone then backup before moving the backup to my PC.
At this point i'll S-OFF, full wipe, then convert to the GPE edition.
Now here is where things get a little muddy for me. My understanding according to the reversion thread here is that I can then flip between GPE and Sense via backup should i wish.
To quote that thread - "This does not apply if you have installed a GPE ROM. You can flash as normal through recovery. (using instructions of new rom)"
First off - is that correct? If so when do the partitions get resized to the point that you need to follow the instructions in that thread?
Is it when installing a non GPE AOSP ROM like Cyanogenmod etc - that doesn't feel correct to me?
I guess what im asking is - during what process do the partitions get resized to the point that I'd need to follow the instructions in the reversion thread linked above?
Hello Raja,
I would use SunShine to S-Off. Even if it cost 25$, it will unlock the bootloader during the process aswell. This way HTC won't know that you ever unlocked if it should come to warranty issues. On the other Hand the preload folder will be wiped by the HTCDev unlock process and thus you won't have the stock calculator as well as the stock flashlight installed, after doing the unlock with HTCDev.
After this you could
first: rund the "fastboot getvar all" command
second: download stock firmware for the show version-main in the output given by the above mentioned command
third: install the knewest TWRP 2.8.0.1 and perform a backup of the Sense ROM.
fourth: follow the RUU GPE conversion thread to perform a full GPE conversion (including Firmware!!)
fifth: follow this thread to get back to Sense
HTCNerdYoda said:
Hello Raja,
I would use SunShine to S-Off. Even if it cost 25$, it will unlock the bootloader during the process aswell. This way HTC won't know that you ever unlocked if it should come to warranty issues. On the other Hand the preload folder will be wiped by the HTCDev unlock process and thus you won't have the stock calculator as well as the stock flashlight installed, after doing the unlock with HTCDev.
After this you could
first: rund the "fastboot getvar all" command
second: download stock firmware for the show version-main in the output given by the above mentioned command
third: install the knewest TWRP 2.8.0.1 and perform a backup of the Sense ROM.
fourth: follow the RUU GPE conversion thread to perform a full GPE conversion (including Firmware!!)
fifth: follow this thread to get back to Sense
Click to expand...
Click to collapse
On point 3, does TWRP make backup of stock recovery now? I haven't used TWRP for a while now, it won't boot for me and I'm not going to flash it just to check that...
If it doesn't make a backup of stock recovery it would probably be better for him to rather BOOT Philz and make backup of device including stock recovery BEFORE he flashes a custom recovery. That is of course assuming that he has a version which isn't available in the collection thread.
HTCNerdYoda said:
Hello Raja,
I would use SunShine to S-Off. Even if it cost 25$, it will unlock the bootloader during the process aswell. This way HTC won't know that you ever unlocked if it should come to warranty issues. On the other Hand the preload folder will be wiped by the HTCDev unlock process and thus you won't have the stock calculator as well as the stock flashlight installed, after doing the unlock with HTCDev.
After this you could
first: rund the "fastboot getvar all" command
second: download stock firmware for the show version-main in the output given by the above mentioned command
third: install the knewest TWRP 2.8.0.1 and perform a backup of the Sense ROM.
fourth: follow the RUU GPE conversion thread to perform a full GPE conversion (including Firmware!!)
fifth: follow this thread to get back to Sense
Click to expand...
Click to collapse
Hi,
Im not bothered about HTC warranty as the phone i'm buying is a refurbished one from eBay so the warranty is long gone other than the one given by the seller (who has around 1.7M feedbacks (yes that's million)).
Regarding your method above - whilst helpful, it doesn't answer the question i posed in my post which actually links to the thread given above - when does the partition sizes change so that i have to follow that thread to return to sense? As that thread seems to suggest that I DON'T need to do it if i convert to GPE, see the quote posted above.
Also, why do i need to download the firmware for the version shown in the version-main output if i backup in step 3? Just so i have a copy?
Thanks for your help though. :good:
BerndM14 said:
On point 3, does TWRP make backup of stock recovery now? I haven't used TWRP for a while now, it won't boot for me and I'm not going to flash it just to check that...
Click to expand...
Click to collapse
The newest version doesn't make a backup of stock recovery. Thus I wrote him to download the full firmware for his devise, as the stock recovery is integrated in that
TheBlueRaja said:
Regarding your method above - whilst helpful, it doesn't answer the question i posed in my post which actually links to the thread given above - when does the partition sizes change so that i have to follow that thread to return to sense? As that thread seems to suggest that I DON'T need to do it if i convert to GPE, see the quote posted above.
Also, why do i need to download the firmware for the version shown in the version-main output if i backup in step 3? Just so i have a copy?
Click to expand...
Click to collapse
The partition sizes are changed during the ruu installation,in my first link thus you would have to change time back to go back to Sense. This is explained in my second link, as no Sense based ROMs can be installed after the ruu process.
The backup done by TWRP is just the ROM (OS) backup. But the firmware, such as hboot, recovery, radio and so on are not included, which is why you should run this command first and download the stock HTC firmware first. Following this way, you got a full backup of all needed files to revert back to Sense.
Mit Tapatalk von meinem One M8.
Great - thanks for the info.

Software Status: Modidied, how to change it?

Hello, ive rooted my phone but didn't seen any benefits right now - no good xposed modules for Sense/MM - so I restores stock nandroid backup and from "stock backups" thread downloaded lastest stock recovery, and my phone still says "software status: modified", any way to change it to official or whatever?
There's 2 ways to do that
Sharp852 said:
Hello, ive rooted my phone but didn't seen any benefits right now - no good xposed modules for Sense/MM - so I restores stock nandroid backup and from "stock backups" thread downloaded lastest stock recovery, and my phone still says "software status: modified", any way to change it to official or whatever?
Click to expand...
Click to collapse
Yes, there's two ways to do that:
1. Rooted way
2. RUU way
1. If you want to keep root and change your phone back to official (S-OFF Required), go to this thread: http://forum.xda-developers.com/showthread.php?t=2708565
2. Or if you want to go back to stock, flash the RUU that is correspondent to your carrier/model.
JTizzle13 said:
Yes, there's two ways to do that:
1. Rooted way
2. RUU way
1. If you want to keep root and change your phone back to official (S-OFF Required), go to this thread: http://forum.xda-developers.com/showthread.php?t=2708565
2. Or if you want to go back to stock, flash the RUU that is correspondent to your carrier/model.
Click to expand...
Click to collapse
Well, i don't want to pay for S-off, so propably second methot, i THINK i have mz original recovery - 6.12.401.x, but when flashing RUU via bootloader, does it depends on recovery/other things? Will it completly flash everythink from stock? So do i need to have everything stock ti perform RUU update?
Sent from my HTC One (M8) using XDA Labs
Sharp852 said:
but when flashing RUU via bootloader, does it depends on recovery/other things? Will it completly flash everythink from stock? So do i need to have everything stock ti perform RUU update?
Click to expand...
Click to collapse
RUU doesn't care what recovery you have on the phone, it will overwrite it.
As long as you are running the proper version RUU (for your CID, and no downgrading) and bootloader is relocked, RUU should work.
redpoint73 said:
RUU doesn't care what recovery you have on the phone, it will overwrite it.
As long as you are running the proper version RUU (for your CID, and no downgrading) and bootloader is relocked, RUU should work.
Click to expand...
Click to collapse
And it has to be exactly same of can be the last number a bit different? I mean i have 6.12.401.4 in phone but i think that i found 6.12.401.8, is there any chance of fking things up or it is completely risk-free?
Sent from my HTC One (M8) using XDA Labs
Sharp852 said:
And it has to be exactly same of can be the last number a bit different? I mean i have 6.12.401.4 in phone but i think that i found 6.12.401.8, is there any chance of fking things up or it is completely risk-free?
Click to expand...
Click to collapse
The larger number in the last digit/place just means it a slightly more updated build (such as minor bug fixes). It should be okay. But where did you find it (link)?
The only "401" Marshmallow RUU I know if is here (and its the 6.12.401.4 that matches your current firmware): http://forum.xda-developers.com/showpost.php?p=64926626&postcount=6
If the RUU is wrong (version number, CID, etc.), it will just fail to install; leaving phone unchanged. It won't damage the phone.
redpoint73 said:
The larger number in the last digit/place just means it a slightly more updated build (such as minor bug fixes). It should be okay. But where did you find it (link)?
The only "401" Marshmallow RUU I know if is here (and its the 6.12.401.4 that matches your current firmware): http://forum.xda-developers.com/showpost.php?p=64926626&postcount=6
If the RUU is wrong (version number, CID, etc.), it will just fail to install; leaving phone unchanged. It won't damage the phone.
Click to expand...
Click to collapse
Oh,sorry, my bad, its .4 not .8. I though that ive seen .8 xD So, I can pretty risk-free install that RUU and it will install stock - everything - and also Soft Status: Modified? Will bootloader stay relocked?
Sharp852 said:
So, I can pretty risk-free install that RUU and it will install stock - everything - and also Soft Status: Modified? Will bootloader stay relocked?
Click to expand...
Click to collapse
Yes, its pretty risk free. Its an official HTC update/recovery tool. There is a small chance that anything that overwrites hboot and radio (which the RUU does) can brick the phone, such as if the install of those partitions is interrupted. But its a very small chance, and its about as risk free as an update to those partitions can be.
RUU should install fine with software status: modified.
Bootloader will remain relocked after RUU. RUU will not by itself change the bootloader lock status. If after the RUU, you ever with to unlock the bootloader again; simply do so with the previously used bootloader unlock bin code, or go through the HTCDev.com process again, to get a new one.

Categories

Resources