Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,743 Members 43,992 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: 114
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 69
Posts: 166
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 2894
Posts: 7,111
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 4 posts! >>>>
[Battery Life Help] Troubleshoot Battery Issues Here....and Tips

 
jd1639
Old
#5  
jd1639's Avatar
Recognized Contributor
Thanks Meter 3071
Posts: 9,118
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 808
Posts: 1,597
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 1119
Posts: 4,620
Join Date: Nov 2010
Quote:
Originally Posted by Lokke9191 View Post
Fastboot erase userdata
Fastboot flash userdata userdata.img
No need, just

Code:
Select 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 2
Posts: 114
Join Date: Mar 2011
Location: San Francisco
Quote:
Originally Posted by beekay201 View Post
No need, just

Code:
Select 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 3071
Posts: 9,118
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 1119
Posts: 4,620
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


XDA PORTAL POSTS

Enjoy Wallpaper Overload with PhotoPhase

We don’t usually feature live wallpapers on the XDA Portal unless they are somewhat innovative … more

Monitor What Your Phone’s Camera Sees with Android Wear

Having a smart device strapped to your wrist certainly has its merits. A … more

Mod Lets You Have Stereo Speakers on Your Sony Xperia Z1 (Sort Of)

The stereo speakers onthe Sony Xperia Z2areprobably a relatively large … more

Give Your Screen Some Color with HexaTime Live Wallpaper

We don’t often cover very many live wallpapers here on the XDA Portal. You may … more