Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,261 Members 51,331 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
integramodder
Old
#1  
Senior Member - OP
Thanks Meter 2
Posts: 111
Join Date: Mar 2011
Location: San Francisco
Default How to perform a complete wipe without leaving any files on the phone?

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/goog...1#post51346791
LG Nexus 5 | AT&T
LG Nexus 4 | SlimBean
Moto Xoom | Verizon
 
pepdavies
Old
#2  
Senior Member
Thanks Meter 87
Posts: 234
Join Date: Dec 2012
Location: Cullompton
Read the stickies then flash the factory image
 
Lokke9191
Old
#3  
Lokke9191's Avatar
Senior Member
Thanks Meter 64
Posts: 152
Join Date: Nov 2013
Location: Glenview, IL
Fastboot erase userdata
Fastboot flash userdata userdata.img
 
KJ
Old
#4  
KJ's Avatar
Recognized Contributor
Thanks Meter 2732
Posts: 6,799
Join Date: May 2011
Location: The boonies - southwest Ontario
Locking then unlocking the bootloader again would wipe it clean...no?

Never relocked....so guessing.
Sent from my N5, N7, Moto X, GTab3 or S2.

Need help with poor battery life on the N5...or any device really? Lots of info in first 3 posts! >>>>
[Battery Life Help] Troubleshoot Battery Issues Here....and Tips

 
jd1639
Old
#5  
jd1639's Avatar
Recognized Contributor
Thanks Meter 3038
Posts: 9,048
Join Date: Sep 2012
Location: Minnetonka, MN
Quote:
Originally Posted by KJ View Post
Locking then unlocking the bootloader again would wipe it clean...no?

Never relocked....so guessing.
If you oem lock and then unlock it does wipe it again.

Sent from my Nexus 5 using XDA Free mobile app
The Following User Says Thank You to jd1639 For This Useful Post: [ Click to Expand ]
 
Lethargy
Old
#6  
Lethargy's Avatar
Senior Member
Thanks Meter 660
Posts: 1,331
Join Date: Jan 2014
Location: Sydney, Australia
Quote:
Originally Posted by jd1639 View Post
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.
Quote:
Originally Posted by kyphur
You ask us to understand your position. Well if you want to benefit from our experience and time then I think it is only fair that you understand our position.
The Following User Says Thank You to Lethargy For This Useful Post: [ Click to Expand ]
 
beekay201
Old
#7  
beekay201's Avatar
Senior Member
Thanks Meter 1116
Posts: 4,608
Join Date: Nov 2010
Quote:
Originally Posted by Lokke9191 View Post
Fastboot erase userdata
Fastboot flash userdata userdata.img
No need, just

Code:
fastboot format user data
hammerhead/omni-KTU84M/stock#3.4.0/M8974A-2.0.50.1.13
maguro/aosp-KRT16O/custom#3.0.101/XXLJ1
manta/stock-KRT16S/custom#3.4.39
tf201/cm10-NIGHTLY#20120820/stock#2.6.39.4
XDA forum rules here
bug report? logcat and /proc/kmsg, or it "never happened".
How TO Ask questions on the Internet
aosp-maguro READFIRST here (credit: efrant)
aosp-gnex READSECOND here (credit: efrant)
 
integramodder
Old
#8  
Senior Member - OP
Thanks Meter 2
Posts: 111
Join Date: Mar 2011
Location: San Francisco
Quote:
Originally Posted by beekay201 View Post
No need, just

Code:
fastboot format user data
Will this only delete user data or every bit and byte on the flash memory?
LG Nexus 5 | AT&T
LG Nexus 4 | SlimBean
Moto Xoom | Verizon
 
jd1639
Old
#9  
jd1639's Avatar
Recognized Contributor
Thanks Meter 3038
Posts: 9,048
Join Date: Sep 2012
Location: Minnetonka, MN
Quote:
Originally Posted by integramodder View Post
Will this only delete user data or every bit and byte on the flash memory?
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
 
beekay201
Old
#10  
beekay201's Avatar
Senior Member
Thanks Meter 1116
Posts: 4,608
Join Date: Nov 2010
Quote:
Originally Posted by integramodder View Post
Will this only delete user data or every bit and byte on the flash memory?
userdata.
hammerhead/omni-KTU84M/stock#3.4.0/M8974A-2.0.50.1.13
maguro/aosp-KRT16O/custom#3.0.101/XXLJ1
manta/stock-KRT16S/custom#3.4.39
tf201/cm10-NIGHTLY#20120820/stock#2.6.39.4
XDA forum rules here
bug report? logcat and /proc/kmsg, or it "never happened".
How TO Ask questions on the Internet
aosp-maguro READFIRST here (credit: efrant)
aosp-gnex READSECOND here (credit: efrant)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Implement Split View in Your LG G2 KitKat Rom with Automated Installer

Some of you may have remembered a story on the Portal a few weeks back … more

Cast Your Device Screen the Way it Was Meant to be with Second Screen

Not too long ago here on the XDA Portal, we covered how Google had made … more

Samsung Gear Live Unboxed the XDA Way – XDA Developer TV

XDA Developer TV Producer AdamOutleris known for his XDA Unboxingseries where … more

Make Your Own DIY Capacitive Stylus

The XDA Portal is a place where we like to talkabout things that are interesting, fun, and sometimes … more