How to perform a complete wipe without leaving any files on the phone? - Nexus 5 Q&A, Help & Troubleshooting

I''d like to completely erase the internal memory of the phone. Akin to formatting a HD. It seems when I format all of the available options in recovery it still does not do this (ie full wipe, SD card, cache, system, etc).
How can this be done?
I'm assuming I can do this over adb commands from the PC and then load in a new zip to flash. The reason I'm doing this is that something is corrupt on the phone causing me to have dialer crashes as soon as dialer opens. I've wiped, I've switched ROMS, and nothing has prevented it. More info: http://forum.xda-developers.com/goo...di-rom-2-6-t2540455/post51346791#post51346791

Read the stickies then flash the factory image

Fastboot erase userdata
Fastboot flash userdata userdata.img

Locking then unlocking the bootloader again would wipe it clean...no?
Never relocked....so guessing.

KJ said:
Locking then unlocking the bootloader again would wipe it clean...no?
Never relocked....so guessing.
Click to expand...
Click to collapse
If you oem lock and then unlock it does wipe it again.
Sent from my Nexus 5 using XDA Free mobile app

jd1639 said:
If you oem lock and then unlock it does wipe it again.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
OP wants to wipe everything I think, boot loader unlock only wipes user data
Fastboot erase boot
Fastboot erase cache
Fastboot erase recovery
Fastboot erase system
Fastboot erase userdata
Then flash the factory .IMG files right after
Or just use the flash-all script that's included in the factory images as it uses -w to wipe everything.

Lokke9191 said:
Fastboot erase userdata
Fastboot flash userdata userdata.img
Click to expand...
Click to collapse
No need, just
Code:
fastboot format user data

beekay201 said:
No need, just
Code:
fastboot format user data
Click to expand...
Click to collapse
Will this only delete user data or every bit and byte on the flash memory?

integramodder said:
Will this only delete user data or every bit and byte on the flash memory?
Click to expand...
Click to collapse
no, there's 20 or more different partitions on the whole flash memory. This is the only on though that has anything to do with your dialer issue.
Sent from my Nexus 5 using XDA Free mobile app

integramodder said:
Will this only delete user data or every bit and byte on the flash memory?
Click to expand...
Click to collapse
userdata.

Related

unresponsive touchscreen

hi there,
so i bought a used nexus s as a secondary phone. the touchscreen goes unresponsive and i have to press power/sleep button so it turns off and back on again, then it will start responding and stop again after few seconds.
i tried AirKernel stable and marmite_v8.7. same issue. tried stock 4.1.2 and cm10 stable and problem is still there
nolimitzz said:
hi there,
so i bought a used nexus s as a secondary phone. the touchscreen goes unresponsive and i have to press power/sleep button so it turns off and back on again, then it will start responding and stop again after few seconds.
i tried AirKernel stable and marmite_v8.7. same issue. tried stock 4.1.2 and cm10 stable and problem is still there
Click to expand...
Click to collapse
When does that happen? It happens to me sometimes when someone calls me while another app was open. I think it's an android issue.
ej8989 said:
When does that happen? It happens to me sometimes when someone calls me while another app was open. I think it's an android issue.
Click to expand...
Click to collapse
it happens while i am setting up the phone. i flashed the phone with stock 4.1.2, on first boot the phone will ask for wifi name etc. it happens that early so no apps installed yet.
Try a TOTAL wipe and reinstall, had that problem long time ago and was due to clutter.
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
Reload everything and format SD partition.
philosopherssage said:
Try a TOTAL wipe and reinstall, had that problem long time ago and was due to clutter.
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
Reload everything and format SD partition.
Click to expand...
Click to collapse
i tried that but did not format sd partition yet, will do that and see,
thanks
philosopherssage said:
Try a TOTAL wipe and reinstall, had that problem long time ago and was due to clutter.
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
Reload everything and format SD partition.
Click to expand...
Click to collapse
formatting sd partition from inside android (erase storage) did not help..

Torn Touch Screen Digitizer Flex

Ok so I tore my touch screen digitizer and just decided to sell the motherboard and working parts because this is my 3rd time breaking the phone and I'm ready for a new one. The screen turns on but the touch doesn't work and the problem is that I have a pattern lock on my phone that prevents me from being able to access and delete my data from the internal SD card. (Unlock phone to access data). Also, I just flashed the new Sense 5 rom but didn't enable Developer Options so I can't use ADB. Help?
dcaples002 said:
Ok so I tore my touch screen digitizer and just decided to sell the motherboard and working parts because this is my 3rd time breaking the phone and I'm ready for a new one. The screen turns on but the touch doesn't work and the problem is that I have a pattern lock on my phone that prevents me from being able to access and delete my data from the internal SD card. (Unlock phone to access data). Also, I just flashed the new Sense 5 rom but didn't enable Developer Options so I can't use ADB. Help?
Click to expand...
Click to collapse
If your phone is S-off or you didn't supercid you could RUU.
Alernatively, you could boot to fastboot and do
fastboot erase boot
fastboot erase system
fastboot erase userdata
fastboot erase cache
fastboot erase webtop
fastboot erase preinstall
Ofcourse this will wipe EVERYTHING. So the person to buy it will have to be smart enough to get stuff on it again.
exad said:
If your phone is S-off or you didn't supercid you could RUU.
Alernatively, you could boot to fastboot and do
fastboot erase boot
fastboot erase system
fastboot erase userdata
fastboot erase cache
fastboot erase webtop
fastboot erase preinstall
Ofcourse this will wipe EVERYTHING. So the person to buy it will have to be smart enough to get stuff on it again.
Click to expand...
Click to collapse
What if I just wanted to erase my data and apps? Should I just do "Fastboot erase Userdata" and "fastboot erase cache"?
dcaples002 said:
What if I just wanted to erase my data and apps? Should I just do "Fastboot erase Userdata" and "fastboot erase cache"?
Click to expand...
Click to collapse
That should do it.
exad said:
That should do it.
Click to expand...
Click to collapse
Is threre a way to factory reset via adb or fastboot?
Sent from my HTC One XL using xda premium
31ken31 said:
Is threre a way to factory reset via adb or fastboot?
Sent from my HTC One XL using xda premium
Click to expand...
Click to collapse
Not that I know of
Sent from my HTC One X using xda app-developers app
31ken31 said:
Is threre a way to factory reset via adb or fastboot?
Click to expand...
Click to collapse
Wouldn't that be the same as erase userdata?
redpoint73 said:
Wouldn't that be the same as erase userdata?
Click to expand...
Click to collapse
userdata wipes the entire sdcard

Steps before a fill wipe

What steps are recommended to do before a full wipe (data / system / caches), and flashing a new rom.
I've flashed my phone now twice and what I found really annoying is that it takes quite some time to re-setup the cusom look / notification settings.
Reinstalling all the apps from the store is fast, but reconfiguring them took me some time. Any suggestions how this could be backed up? Any experience with that?
Whats the best way to backup the wifi settings, i.e. the list of known access points.
Do you backup your sms?
I use the back up from ROM toolbox some use titanium back up some heilum backup it depends on you
Sent from Sauwny the Xperia TL
Did you experience any problems, or did it "just work"?
There will always be times when restoring has bugs or doesnt complete. Mainly if going from OEM to AOSP roms. It is one of the prices you pay for flashing custom roms. This being sometimes you have to redo all your settings.
For a full wipe I always use this:
Reboot your phone in bootloader mode, then via fastboot type these one after another;
fastboot erase system
fastboot erase userdata
fastboot erase cache
fastboot erase modemst1
fastboot erase modemst2
fastboot erase fsg
fastboot erase modem
Then I flash a fresh ROM.
Bakpoeder said:
For a full wipe I always use this:
Reboot your phone in bootloader mode, then via fastboot type these one after another;
fastboot erase system
fastboot erase userdata
fastboot erase cache
fastboot erase modemst1
fastboot erase modemst2
fastboot erase fsg
fastboot erase modem
Then I flash a fresh ROM.
Click to expand...
Click to collapse
When i use this line (fastboot erase modem) says failed.
Do you use
fastboot erase modem
Click to expand...
Click to collapse
or
fastboot erase modemst1
Click to expand...
Click to collapse
Do you backup your sms?[/QUOTE]
Yes of course always.Don't forget for this.
if I use Titaniumbackup and then do a full wipe, this will erease the backup? and if the backup was made in cwm, its ereased too?

How to erase CACHE PARTITION ?

I ran into a problem today when I tried to repair my Z5 Dual, I unplugged my phone in the beginning (NOT EVEN 5 Seconds). Then my phone started showing SOFTWARE UPDATE FAILED PLEASE CONNECT YOUR PHONE TO YOUR COMPUTER. I have a lot of important data in my phone which I need. I thought of just erasing the cache partition. But when I try via fastboot it says that REMOTE: COMMAND NOT ALLOWED HERE. Is there any other way to erase the cache partition? is there any other tool for erasing the cache partition alone? If the above doesn't work us there any way to recover the files in the internal storage. I have also encrypted some files using galleryvault that's why I prefer wiping cache and trying to boot up instead of flashing a new ROM with USERDATA box unchecked. Any help would really be appreciated.
Wipe it in twrp if you have it.
L33Tgod said:
Wipe it in twrp if you have it.
Click to expand...
Click to collapse
I haven't unlocked the bootloader.. No modifications to my phone. Is there any other way?
ajithpoison said:
I haven't unlocked the bootloader.. No modifications to my phone. Is there any other way?
Click to expand...
Click to collapse
Then just flash .ftf using flashtool without wiping anything

fastboot erase command

Will "fastboot erase cache" or "fastboot erase data" delete photos from the camera? My phone is not booting up and I have a suspicion it is because it ran out of hard drive space, so I'd like to clear the app cache or delete some apps. Will the fastboot erase commands do that? I did google it but I still didn't get it and don't want to make a mistake.
sdxda said:
Will "fastboot erase cache" or "fastboot erase data" delete photos from the camera? My phone is not booting up and I have a suspicion it is because it ran out of hard drive space, so I'd like to clear the app cache or delete some apps. Will the fastboot erase commands do that? I did google it but I still didn't get it and don't want to make a mistake.
Click to expand...
Click to collapse
If you can't get to recovery to factory reset, yes, fastboot erase should work.
Sent from my SM-S767VL using Tapatalk

Categories

Resources