Hi. I have a rooted Nexus 5 with stock ROM & kernel, Xposed installed and TWRP recovery. I'd like to do a factory reset, and by "factory reset" I mean I'd like to have it as if it was brand new. No apps, no media, etc. I think I can keep TWRP, but nothing else. I'd like to have it as it was the first time I powered it on. Can I do that from TWRP? Because I know that when you do a factory reset from recovery, usually, the /data/media directory isn't wiped.
You can not do it from twrp. I'd recommend flashing the factory image and then rerooting.
Sent from my Nexus 5
jd1639 said:
You can not do it from twrp. I'd recommend flashing the factory image and then rerooting.
Sent from my Nexus 5
Click to expand...
Click to collapse
Ok, thank you.
jd1639 said:
You can not do it from twrp. I'd recommend flashing the factory image and then rerooting.
Sent from my Nexus 5
Click to expand...
Click to collapse
Maybe I can't read, but why won't factory reset + intsd wipe in TWRP do what he needs?
I'm looking at TWRP right now and I'm not sure which option you would use, there's format data on the main wipe screen, and when you go into advanced there's internal storage. I'm thinking you want to wipe internal storage, but someone else with knowledge of this should chime in first before you do it. I've never factory restored a phone through recovery so I'm not sure. Wouldn't locking and unlocking your bootloader with ADB accomplish the same thing?
There is literally a sticky in one of the Nexus forums that explains how to go back to bone stock. check it out, should be everything you need.
Pain-N-Panic said:
There is literally a sticky in one of the Nexus forums that explains how to go back to bone stock. check it out, should be everything you need.
Click to expand...
Click to collapse
Right, but if you want to retain root and recovery like TWRP, can't you just format your storage through recovery?
Aerowinder said:
Maybe I can't read, but why won't factory reset + intsd wipe in TWRP do what he needs?
Click to expand...
Click to collapse
OP was not explicit. Asked for it to be like first time powered on which I suspect was not with a custom rom or kernel. Think OP needs to elaborate on what is desired but no recovery can replace rom and kernel with the "factory reset" option
Sent from my Nexus 5 using Tapatalk
rootSU said:
OP was not explicit. Asked for it to be like first time powered on which I suspect was not with a custom rom or kernel. Think OP needs to elaborate on what is desired but no recovery can replace rom and kernel with the "factory reset" option
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
It seems he want's to go completely back to stock while keeping TWRP.
t1.8matt said:
It seems he want's to go completely back to stock while keeping TWRP.
Click to expand...
Click to collapse
Yes. That's how it reads to me
Sent from my Nexus 5 using Tapatalk
Related
Hey guys,
Anybody else having their Nexus 5 32gb show up as only having 16gb available on the computer? I checked the box and it says 32gb, so I didn't get shipped the wrong one....
Did you factory reset it?
dicecuber said:
Did you factory reset it?
Click to expand...
Click to collapse
I haven't tried going completely back to stock, did you have that issue and it fixed it?
Yes it fixed it for me. Do a google search first to confirm
dicecuber said:
Yes it fixed it for me. Do a google search first to confirm
Click to expand...
Click to collapse
I tried a google search about this and it gave me nothing haha, that's why I made this post. When you say factory reset do you mean back to stock? Were you on a custom ROM?
http://forum.xda-developers.com/showthread.php?t=2535795
dicecuber said:
http://forum.xda-developers.com/showthread.php?t=2535795
Click to expand...
Click to collapse
Oh cool! So are you running a custom ROM with it working now?
Sent from my Nexus 5 using Tapatalk
Bump
Sent from my Nexus 5 using Tapatalk
something15525 said:
Bump
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
It's a common issue. You need to factory reset with stock recovery (or possibly format data with TWRP, unsure of that). Make a nandroid, copy it to your computer, flash stock recovery, factory reset, flash custom recovery, restore nandroid. Fixed.
This information is also hidden away in post #2 of this thread: http://forum.xda-developers.com/showthread.php?t=2513701
Aerowinder said:
It's a common issue. You need to factory reset with stock recovery (or possibly format data with TWRP, unsure of that). Make a nandroid, copy it to your computer, flash stock recovery, factory reset, flash custom recovery, restore nandroid. Fixed.
This information is also hidden away in post #2 of this thread: http://forum.xda-developers.com/showthread.php?t=2513701
Click to expand...
Click to collapse
EDIT: Never mind, it worked
Okay, I've looked everywhere but I haven't found any solutions. I was running PA and everything was fine. Flashed purity, booted, and phone was FC. Went back to twrp (latest version) to restore backup. It requested a password. I have never set one. I hit cancel, clicked restore, and my entire sdcard partition is gone. Tried cwm, same thing. Error mounting /data. I'd really appreciate some help here. I'm an experienced ROM flasher. Been doing it a while. Is there anything I can do to fix it, short of flashing factory image?
Sent from my Nexus 7 using Tapatalk
Try wipe cache first
Sent from my Nexus 5 using Tapatalk
rootSU said:
Try wipe cache first
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I just kept trying to format data and it finally worked. Weird. I'm adb side loading PA right now so hopefully that'll work.
Edit: just finished sideloading. It booted, but on the setup screen, I have a reoccurring "unfortunately, phone has stopped" message. Recovery still says unable to mount storage when trying to wipe anything.
Sent from my Nexus 7 using Tapatalk
Flash stock images and reroot to fix
sent from my HAMMERHEAD neXus
CRIME INC. said:
Flash stock images and reroot to fix
sent from my HAMMERHEAD neXus
Click to expand...
Click to collapse
Yeah I figured I'd have to do that. I just didn't want to. Haha
Sent from my Nexus 7 using Tapatalk
CRIME INC. said:
Flash stock images and reroot to fix
sent from my HAMMERHEAD neXus
Click to expand...
Click to collapse
Completely unnecessary.
The ROM has a backup script that saves your Google apps as well as the dialer if you flashed that. That conflicts with a fresh install.
All you need to do is, factory reset, wipe system so that the script has nothing to backup, them flash ROM and gapps. That's it.
Sent from my Nexus 5
Pirateghost said:
Completely unnecessary.
The ROM has a backup script that saves your Google apps as well as the dialer if you flashed that. That conflicts with a fresh install.
All you need to do is, factory reset, wipe system so that the script has nothing to backup, them flash ROM and gapps. That's it.
Sent from my Nexus 5
Click to expand...
Click to collapse
Good to know.:thumbup:
sent from my HAMMERHEAD neXus
Hi everyone!
Nexus battery's become pretty sloppy out of nowhere, I've tried all the techniques to get my battery back up, but nothing... I want to reset my nexus back to factory because I've put a load of rubbish on here that I really don't need that showed it down. What o want to know is what will happen if I factory reset? And how do I do it through TWRP? I wanna completely clean my phone back to scratch, except from my ROM, Kernel and TWRP... I know how to back up my app data so that's not a problem... Will it delete my internal storage because that's one thing I don't want to happen... Any help is appreciated thanks!
Sent from my Nexus 5 using Tapatalk
Only stock /recovery wipes /sdcard. Custom recovery leaves it alone. So just choose the wipe data / factory reset option in your recovery
Sent from my Nexus 5 using Tapatalk
rootSU said:
Only stock /recovery wipes /sdcard. Custom recovery leaves it alone. So just choose the wipe data / factory reset option in your recovery
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Will this delete my custom ROM/Kernel/TWRP?
Sent from my Nexus 5 using Tapatalk
ProVickers said:
Will this delete my custom ROM/Kernel/TWRP?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
No of course not! Wipe data / factory reset only wipes /data.
This is all pretty basic. Perhaps read the root sticky thread at the top of this forum for a greater understanding.
Sent from my Nexus 5 using Tapatalk
Basically, my userdata partition keeps getting corrupted every couple of flashes. I have to factory flash to get everything working again. It just started happening recently(A few hours ago). What is going on? Thanks!
While flashing the stock images make sure you have also Erased cache partition and formatted it using stock recovery.. I was exactly in the same spot as you were few weeks ago and a cache partition format solved it completely!
Koopa777 said:
Basically, my userdata partition keeps getting corrupted every couple of flashes. I have to factory flash to get everything working again. It just started happening recently(A few hours ago). What is going on? Thanks!
Click to expand...
Click to collapse
I had the same problem as you. I used this guide and now it works great. Just follow the steps. Good luck.
prabs99 said:
I had the same problem as you. I used this guide and now it works great. Just follow the steps. Good luck.
Click to expand...
Click to collapse
I can actually confirm that it is an issue with ParanoidAndroid. It always corrupts the data partition following boot. I repeated it with continued success.
Sent from my Nexus 5 using Tapatalk
Koopa777 said:
I can actually confirm that it is an issue with ParanoidAndroid. It always corrupts the data partition following boot. I repeated it with continued success.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
You're the only one saying such things. If there was a problem with the ROM we would have heard it from others and the team would see the same issues.
The ROM ships with stock Google kernel. The ROM doesn't do anything in itself that could corrupt your userdata
Sent from my Nexus 5
Pirateghost said:
You're the only one saying such things. If there was a problem with the ROM we would have heard it from others and the team would see the same issues.
The ROM ships with stock Google kernel. The ROM doesn't do anything in itself that could corrupt your userdata
Sent from my Nexus 5
Click to expand...
Click to collapse
I've come to the conclusion, after 4(!) factory images, that the ROM DEFINITELY corrupts the recovery. I have a 100% success(failure?) rate when flashing PA. Clean md5, after first boot the ROM functions properly, but recovery fails to mount the userdata partition, every time. Flash a new recovery, or adb shell and attempt to repair don't work. I understand that it doesn't make sense, but it's obviously something that's happening with the ROM. After 4 factory images, the only other factors are the recovery(PhilZ, TWRP, AND CWM all fail) being borked from the start, or the ROM. It's obviously not the recovery(all 3 have clean md5s, are transferred with adb push, and function perfectly otherwise).....
Again, in the ROM I can r/w to the /data, so the partition is fine, but the ROM borks the recovery.
But there is nothing in the ROM that would cause that. Are you restoring anything from previous versions? Are you installing an app that does this?
Sent from my Nexus 5
Pirateghost said:
But there is nothing in the ROM that would cause that. Are you restoring anything from previous versions? Are you installing an app that does this?
Sent from my Nexus 5
Click to expand...
Click to collapse
No and no. I don't even install Gapps. The ROM alone still triggers it. I just boot into system then boot to recovery.
Sent from my Nexus 5 using Tapatalk
Koopa777 said:
No and no. I don't even install Gapps. The ROM alone still triggers it. I just boot into system then boot to recovery.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
This sounds like you have a hardware issue. Did it do this on stock image with custom recovery?
Sent from my Nexus 5
Pirateghost said:
This sounds like you have a hardware issue. Did it do this on stock image with custom recovery?
Sent from my Nexus 5
Click to expand...
Click to collapse
No. I can flash different ROMs, kernels, etc. Just not PA. The only thing of note was that my stock backup bootlooped when restoring with TWRP, but other than that no.
Sent from my Nexus 5 using Tapatalk
Nevermind, I just flashed liquidsmooth+Elementalx with PhilZ and it happened again. So what exactly is going on?
Are you not able to repair the corrupted partition as explained in the linked thread?
Sent from my Nexus 5
Pirateghost said:
Are you not able to repair the corrupted partition as explained in the linked thread?
Sent from my Nexus 5
Click to expand...
Click to collapse
Nope. Adb shell in Philz says repair failed. I found this
http://forum.xda-developers.com/google-nexus-5/help/unable-to-mount-data-issue-t2723993
http://forum.xda-developers.com/google-nexus-5/help/recovery-mount-data-t2639945
But neither helps. Recovery still can not mount /data.
I would RMA it.
Sent from my Nexus 5
I would try LG Flashtool it worked for me.
maxal said:
I would try LG Flashtool it worked for me.
Click to expand...
Click to collapse
Seriously? I have the LGFT installed(G2 owner) too. Hm......So basically get the tot and dll, and flash? COM41 and all that jazz?
Koopa777 said:
Seriously? I have the LGFT installed(G2 owner) too. Hm......So basically get the tot and dll, and flash? COM41 and all that jazz?
Click to expand...
Click to collapse
Yup, here is the link http://forum.xda-developers.com/goo...orial-how-to-flash-factory-images-lg-t2713833
I just called Google. RMA is inbound. It just kind of sucks, this phone was solid. No light bleed, no dead pixels, etc. Except for a loose power button.
Anyway I think it is definately a hardware issue, as my phone has been getting crazy hot lately. I know it's supposed to get hot, but this phone was scorching...Might have fried something.
Hello,
I just make a full wipe and see that Supersu is installed by default after boot. Is this normal?
Thanks,
Vandur
No unless you're flashing a custom rom. Some custom roms will include supersu.
Sent from my Nexus 5 using XDA Free mobile app
vandur said:
Hello,
I just make a full wipe and see that Supersu is installed by default after boot. Is this normal?
Thanks,
Vandur
Click to expand...
Click to collapse
If you did a full wipe using twrp, it roots the phone automatically unless you decline the option.
Sent from my 1+1
Mojar7070 said:
If you did a full wipe using twrp, it roots the phone automatically unless you decline the option.
Sent from my 1+1
Click to expand...
Click to collapse
No i didnt flash TWRP, basicly i done two wipe one from stock recovery other from settings -> backup & reset. And Supersu still there?!
I bought this devices secondhand and im curious if it could be a security problem...
Thanks for replays.
Vandur
vandur said:
No i didnt flash TWRP, basicly i done two wipe one from stock recovery other from settings -> backup & reset. And Supersu still there?!
I bought this devices secondhand and im curious if it could be a security problem...
Thanks for replays.
Vandur
Click to expand...
Click to collapse
If you bought it second hand the first thing I'd do is flash the factory image so it's like brand new.
Sent from my Nexus 5 using XDA Free mobile app
No, you have to flash it!!
vandur said:
No i didnt flash TWRP, basicly i done two wipe one from stock recovery other from settings -> backup & reset. And Supersu still there?!
I bought this devices secondhand and im curious if it could be a security problem...
Thanks for replays.
Vandur
Click to expand...
Click to collapse
Download the factory images and flash according to googles instructions.