How to perform a complete wipe without leaving any files on the phone?

Search This thread

integramodder

Senior Member
Mar 12, 2011
155
6
San Francisco
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://xdaforums.com/google-nexus-5/development/rom-mahdi-rom-2-6-t2540455/post51346791#post51346791
 
D

Darth

Guest
Locking then unlocking the bootloader again would wipe it clean...no?

Never relocked....so guessing. ;)
 

Elluel

Senior Member
Jan 14, 2014
5,168
3,057
26
えうれる
If you oem lock and then unlock it does wipe it again.

Sent from my Nexus 5 using XDA Free mobile app
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.