Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,804,641 Members 43,929 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 4
Posts: 126
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 89
Posts: 251
Join Date: Dec 2012
Location: Cullompton
Read the stickies then flash the factory image
 
Lokke9191
Old
#3  
Lokke9191's Avatar
Senior Member
Thanks Meter 81
Posts: 194
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 3,513
Posts: 8,442
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 new HTC One M8, N7, Moto X, GTab3 or S2.

Need help with poor battery life? Any device welcome, even tho its an N5 thread. Please specify if on a device other than N5. Lots of info in first 4 posts! >>>>
[Battery Life Help] Troubleshoot Battery Issues Here....and Tips

 
jd1639
Old
#5  
jd1639's Avatar
Recognized Contributor
Thanks Meter 3,324
Posts: 9,766
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 1,594
Posts: 2,867
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.
I actively add ignorant people to my ignore list.
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 1,127
Posts: 4,644
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-KTU84P/stock#3.4.0/M8974A-2.0.50.1.13
maguro/aosp-KRT16O/custom#3.0.101/XXLJ1
manta/omni-KTU84P/custom#3.4.39
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 4
Posts: 126
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 3,324
Posts: 9,766
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 1,127
Posts: 4,644
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-KTU84P/stock#3.4.0/M8974A-2.0.50.1.13
maguro/aosp-KRT16O/custom#3.0.101/XXLJ1
manta/omni-KTU84P/custom#3.4.39
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


Use Facebook Pictures as a LWP with Facebook View

One of the best things that Android has always offeredits users is the ability to tailor … more

Share Your Thoughts Anonymously with A Minimalist Social Network

Nowadays, almost everyone has a second life onthe Internet. Among the best … more

Enable Heads Up Notifications For The Sprint Galaxy S3

Heads up notifications, in case you didn’t already know, are an experimental … more

Android One Goes Live in India!

Android One is a Google initiative set to bring an AOSP-like experience tosome emergingmarkets like India, … more