Factory reset does not wipe the phone - Nexus 4 General

I recently did a factory reset and realized it didn't wiped my phone. It deletes the account but files and pictures are still in tact. For anyone returning the device or passing it on to someone please make sure you manually delete everything.

Did your phone have a custom recovery ?
Sent from my Nexus 4 using xda premium

fastboot oem unlock
fastboot oem lock
Job done, all wiped
Sent from my Nexus 4 using Tapatalk 2

Factory reset is just for the data partition (apps, preferences for these apps, accounts, etc.).
It's normal that it doesn't touch your sdcard.
If you want to wipe your personal files, do it manually, or, as suggested, with "fastboot oem unlock" and "fastboot oem lock".
You could also wipe the sdcard in the "mounts and storage" menu in CWM.

wipe it from a shell with dd or rm
if you're unlocked already, boot into a custom recovery which will give you the option
the factory reset feature from within the OS used to also have checkbox asking if you wanted to wipe the pictures too. maybe you missed it or I'm not remembering correctly

If you reset it through Android's Backup & reset -> Factory data reset, it does delete photos and everything on internal storage. I've done it twice for my RMA's.
Resetting through the fastboot menu doesn't erase internal storage/photos.

You need to rick a box to also wipe the sdcard, it's pretty easy to miss.

tsunzilla said:
If you reset it through Android's Backup & reset -> Factory data reset, it does delete photos and everything on internal storage. I've done it twice for my RMA's.
Resetting through the fastboot menu doesn't erase internal storage/photos.
Click to expand...
Click to collapse
Nexus-Revolution said:
You need to rick a box to also wipe the sdcard, it's pretty easy to miss.
Click to expand...
Click to collapse
So which one of you two is right?

Both... Same but different.
Although, the fast boot comment may be misunderstood. The fastboot OEM lock/unlock does work from a PC with adb interface.
Sent from my Nexus 4 using xda app-developers app

tsunzilla said:
If you reset it through Android's Backup & reset -> Factory data reset, it does delete photos and everything on internal storage. I've done it twice for my RMA's.
Click to expand...
Click to collapse
Yep, I checked before sending in my RMA, as well.

Related

How to do a full wipe?

Hello,
actually I have CM10 on my SGS. But recently the SGS has a lot of crashes when I'm using it. I want to completely wipe the phone(not just Data Wipe...) and then install CM10 again. How can I do that?
Like factory format, including wipe all the settings, apps and also files from the sdcard? If so, then you can type this code *2767*3855# (it won't ask for confirmation).
I think factory wipe is the same as "data wipe" in CWM. That won't help because I do a data wipe before flashing a new rom.
Format everything in "mount and storage" in CWM
I think the same
SimMasterIbra said:
Like factory format, including wipe all the settings, apps and also files from the sdcard? If so, then you can type this code *2767*3855# (it won't ask for confirmation).
Click to expand...
Click to collapse
i think it will be good

PSA: flashing a factory image WILL WIPE YOUR STORAGE PARTITION!!!!!

I know some people may read this and call me a n00b, or whatever....deal with it lol
I'm coming from a Nexus S, and this is my first android with the new unified storage, rather than the old method that was partitioned for rom storage and sd/usb storage. I just flashed a Nexus 4 factory image for the first time ever, and when I did all my files on my storage partition were wiped. This includes my nandroids, all my apk backups, titanium backups, my roms, kernels, gapp zips, pictures, music.....EVERYTHING!!!!!!! When I rebooted, there was not ONE file on my phone that wasn't part of the factory image!! When I did a factory flash on my nexus s, since there were separate partitions, my storage was completely untouched. The only thing similar that would wipe it was a bootloader unlock. This is (obviously) no longer the case. My only saving grace is that at least half my apks are stored in my box account (thank you box for the free 50gb for registering with an LG device ) and my pics were set to auto-sync with ubuntu one. Everything else is lost forever, though
IF YOU HAVE TO FLASH A FACTORY IMAGE, BE SURE TO BACK UP YOUR STORAGE PARTITION FIRST!!!!
You have been warned
Assuming you used the flash-all script, just remove the -w option
I flashed back to stock, radio, system, boot loader etc, but just didn't flash the data partition (or whatever its called) and the internal SD was untouched.
Admittedly I got stuck in a boot loop, but I just powered off, booted in to boot loader and flashed TWRP from fast boot. Factory reset and cleared cache and I still had everything saved
Sent from my CM10.1 Nexus 4
crachel said:
Assuming you used the flash-all script, just remove the -w option
Click to expand...
Click to collapse
nope. i flashed each individual .img file the userdata.img is what wiped the storage....apparently the device thinks the two are connected. maybe they really are....i'm not an expert in this area, to say the least.
Tom540 said:
I flashed back to stock, radio, system, boot loader etc, but just didn't flash the data partition (or whatever its called) and the internal SD was untouched.
Admittedly I got stuck in a boot loop, but I just powered off, booted in to boot loader and flashed TWRP from fast boot. Factory reset and cleared cache and I still had everything saved
Sent from my CM10.1 Nexus 4
Click to expand...
Click to collapse
yup...you're correct!! twrp knows the difference between actual userdata and storage...it seems that fastboot does NOT know the difference, unfortunately. I figured since twrp is safe to wipe the data with, fastboot should be too.
hp420 said:
nope. i flashed each individual .img file the userdata.img is what wiped the storage....apparently the device thinks the two are connected. maybe they really are....i'm not an expert in this area, to say the least.
Click to expand...
Click to collapse
I think the title "userdata" should have given you a clue about what it was going to do, i.e. flash over the user data and erase what was previously there
Sent from my CM10.1 Nexus 4
Tom540 said:
I think the title "userdata" should have given you a clue about what it was going to do, i.e. flash over the user data and erase what was previously there
Sent from my CM10.1 Nexus 4
Click to expand...
Click to collapse
As I said before, my last android was a Nexus S that was partitioned, so the data was separate from the usb/sd storage space. When I flashed the userdata.img on my Nexus S it didn't delete all my sd/usb storage....only the rom's data partition. Based on my previous experience, and considering this is the first time I've flashed a factory image to my Nexus 4, why would the name "userdata" give me any clue that something other than the "userdata" would be wiped???? Even if you don't take my previous experience into account, why would the name "userdata" ever have anything to do with "sd/usb data"???? userdata and sd storage are two separate things. Yes, they are stored in the same partition now, but that doesn't mean they are the same thing. userdata is tied to your rom, and your sd storage is for any additional personal files you decide to store there.
The problem is that the fake SD is on /data/media, so flashing a data IMG overwrites the entire partition and deletes your stuff. Lgnpst doesn't though, not sure why. Perhaps try that next time or just don't flash data.
Sent from my LG-LS970 using xda app-developers app
There are also very clear guides on here that tell you that flashing userdata will clear everything. Flash everything except that one next time.
Sent from my Nexus 4 using Tapatalk 4 Beta

[Q] Deleting encrypted data partition

I turned on device encryption in order to play with it (bad mistake). Performance is suckish, it prevents me from flashing anything stored on the internal filesystem (have to use USB dongle), battery life has gone down, etc.
I tried wiping the device by doing a factory reset both in recovery and through settings. Neither method touches the encrypted data partition. Re-flashing the ROM makes no difference. The encrypted partition is extremely resilient
Based on some research, the only known way to wipe the encryption is to revert to stock and use stock recovery to do a factory reset. This sounds insanely cumbersome if all I want to do is wipe a partition. Does anyone know of a better way?
If stock recovery can do a factory wipe without mounting the encrypted partition, it sounds like a feature to add to CWM or TWRP.
Device is ATT HTC One, rooted, S-OFF, Super CID, CWM recovery, Sentinel ROM 4.0.
Many thanks
You can try and flash an ruu? See if that helps and if it doesnt try the stock recovery thing. Never heard of it though.
Sent from my HTC One X using xda app-developers app
So, the wipe of TWRP didn't removed the encryption like it say this when you will wipe?
Strange
However, flash the stock recovery and do a factory reset like you said, and see if it work..
you can do it via TWRP just make sure the rm -rf mode is disabled in settings... Or maybe in fastboot... Just type
Code:
fastboot erase userdata
Or another perhaps is ask someone to create a nand dump of their user data partition and use "dd" to write it on your own.
Problem Solved!
Eureka!!!!
I was playing with CWM and figured it out. In the "mounts and storage" tab, if you select "format /data" it fails with an error that it can't mount the volume.
If you select "format /data and /data/media" it works like a charm. For some reason, it performs the format operation on the raw partition while the prior option tried to mount it first.
Back in business
Thanks RootShot ["format /data ¨in advanced wipe first¨ and format/data ¨& write yes in second¨ " ] did the trick and saved my phone back to work ...

Noob Question. How to flash from Internal Storage?

This is my first phone that only has only internal storage. I need to double check before flashing any custom roms. Is there a partition on the phone that you guys save the custom roms to or does it not matter. I was thinking about saving it to the DCIM folder since its easy to find. My fear is that the rom will get erased when we clear the cache throught Teamwin recovery. Btw my phone is bootloader unlocked, rooted and has tw recovery installed. Tia.
Just copy it to the internal storage on the phone. TWRP does not erase internal storage when you factory reset.
Sent from my XT1095 using Tapatalk
Custom recovery do not wipe /data/media on factory reset, which is where "internal storage" is located. But you can wipe it with the "Format Data" option.
customervalued said:
This is my first phone that only has only internal storage. I need to double check before flashing any custom roms. Is there a partition on the phone that you guys save the custom roms to or does it not matter. I was thinking about saving it to the DCIM folder since its easy to find. My fear is that the rom will get erased when we clear the cache throught Teamwin recovery. Btw my phone is bootloader unlocked, rooted and has tw recovery installed. Tia.
Click to expand...
Click to collapse
Even I had a similar issue. I've never had a device without a SD card.
So if I flash twrp and then a custom rom do I lose things like photos,media on my phone?
Sent from my XT1095 using XDA Free mobile app
You only lose data if you unlock your bootloader. Or if you format the data partition. Flashing a rom and factory reset via TWRP does not erase your files.
Sent from my XT1095 using Tapatalk

USERDATA erase...

Long story short... My USB port is dead on my Nexus 6. I flash everything in TWRP such as roms, kernels and modems (YAY for the ability to do so). I am wanting to wipe everything in my phone to start fresh. Let's say I did a factory reset to the phone (wiped everything except userdata), got my rom to boot and then went into recovery to wipe my userdata partition only, would my phone go ahead and rebuild the partition on successful boot?
Thank you in advance!
thawte said:
...Let's say I did a factory reset to the phone (wiped everything except userdata), got my rom to boot and then went into recovery to wipe my userdata....
Click to expand...
Click to collapse
Wiping a partition in twrp will show a.o. the message 'formatting...'. The partition is already build but empty.
NLBeev said:
Wiping a partition in twrp will show a.o. the message 'formatting...'. The partition is already build but empty.
Click to expand...
Click to collapse
Ah gotcha. Also the rom will still boot with empty USERDATA? Just making sure it does not have important files for boot...
thawte said:
Ah gotcha. Also the rom will still boot with empty USERDATA? Just making sure it does not have important files for boot...
Click to expand...
Click to collapse
Wiping data in recovery shouldn't affect the system or booting.
But, personally, I'd take a full nandroid backup before anything. If you can't plug in to a pc and use fastboot to fix anything serious, you should be playing it very safe. :good:
Darth said:
Wiping data in recovery shouldn't affect the system or booting.
But, personally, I'd take a full nandroid backup before anything. If you can't plug in to a pc and use fastboot to fix anything serious, you should be playing it very safe. :good:
Click to expand...
Click to collapse
Doesn't the nandroid backup store to userdata?
Sent from my Nexus 6 using Tapatalk
thawte said:
Doesn't the nandroid backup store to userdata?
Sent from my Nexus 6 using Tapatalk
Click to expand...
Click to collapse
Data in recovery and userdata aren't the same. There's no "userdata" in twrp. (unless the newest twrp has changed?)
Userdata is apps, data and internal SD storage. You use fastboot typically to erase userdata.
You use twrp to erase data, and internal storage, separately.
Edit: and yes, it does store to userdata. But you can't erase userdata without a PC. Just erase data in twrp, and leave internal storage alone.
Or wipe it all, but without access to a PC, you could not fix the phone if anything goes wrong. That's why I'd keep a full nandroid backup on the device.

Categories

Resources