[Mod][Utility] Wiping Tools - Simple and Fast

upndwn4par

Inactive Recognized Developer
Jan 22, 2012
3,640
10,375
0
New Jersey
Attached are three recovery flashable wiping tools I use when doing my work.

I find them to be incredibly useful tools that save some power button & volume rocker mashing, and time.

Wipe Cache and Dalvik - Wipes Cache and Dalvik (duh!)
Useful for:
-Flashing GApps
-Resolving app issues


Wipe Full - Wipes Cache, Dalvik, Data, and System
-Wipes just about all data except internal sd card
-Stops just short of a factory reset (does not wipe media)
-Useful for flashing ROMs within a type (e.g. going from one CM ROM to another CM ROM)


Wipe Full Factory Reset - Wipes Cache, Dalvik, Data, System, and internal sd card
-Useful when going from one ROM type to another (e.g. going from CM to TW)

_____________________

This is the part of the updater-script that selectively wipes /data in case anyone wants to add this to their ROM:
Code:
delete_recursive("/data/dalvik-cache");
delete_recursive("/data/app");
delete_recursive("/data/app-asec");
delete_recursive("/data/app-private");
delete_recursive("/data/backup");
delete_recursive("/data/data");
delete_recursive("/data/drm");
delete_recursive("/data/log");
delete_recursive("/data/misc");
delete_recursive("/data/property");
delete_recursive("/data/system");
delete_recursive("/data/time");
delete_recursive("/data/user");
Changing the code above to the code below effectively performs a factory reset
(look at /data/media and you will see your internal sd card)
Code:
delete_recursive("/data");


As Always - Flash at your own risk!
 

Attachments

Last edited:

upndwn4par

Inactive Recognized Developer
Jan 22, 2012
3,640
10,375
0
New Jersey
This would be nice as long as it doesn't do what the other wipe zips did posted awhile back....
I use these all the time. There should be no problems.

The only possible issue is that there are additional Sprint specific folders in /data that should be deleted as well to complete the wiping process.

What happened with the other wipe zips?
 
  • Like
Reactions: w8setter

fabzbear

Senior Member
Nov 26, 2010
934
80
0
Um read the post and the part where it says wipe everything except internal sd......does this mean it'll wipe external sd as well or not?

Also does this wipes Sprint specific files and if it does what's the repercussion?

Sent from my SPH-L710 using xda app-developers app
 

upndwn4par

Inactive Recognized Developer
Jan 22, 2012
3,640
10,375
0
New Jersey
Um read the post and the part where it says wipe everything except internal sd......does this mean it'll wipe external sd as well or not?

Also does this wipes Sprint specific files and if it does what's the repercussion?

Sent from my SPH-L710 using xda app-developers app
Full Wipe is just like a factory reset, except it does not wipe your internal sd card. And like a factory reset, this will not wipe your external sd card. As shown in the OP it only wipes files in /data.

The repercussions are effectively the same as a factory reset you would perform in recovery.
 
  • Like
Reactions: Naddict

Jfree3000

Senior Member
Jul 20, 2010
1,674
323
113
Metro Atlanta
I use these all the time. There should be no problems.

The only possible issue is that there are additional Sprint specific folders in /data that should be deleted as well to complete the wiping process.

What happened with the other wipe zips?
There was a previous mod created by someone who just kind of copied and pasted and the wipe actually wiped some serious items that caused the phone to brick. I don't remember what it actually wiped (partition I think) but it was very important to the phone, it was eventually fixed but there were a lot of angry people with shiny new paperweights instead of phones.
 

upndwn4par

Inactive Recognized Developer
Jan 22, 2012
3,640
10,375
0
New Jersey
There was a previous mod created by someone who just kind of copied and pasted and the wipe actually wiped some serious items that caused the phone to brick. I don't remember what it actually wiped (partition I think) but it was very important to the phone, it was eventually fixed but there were a lot of angry people with shiny new paperweights instead of phones.
Hopefully one of the local devs that you guys trust will stop by and give these zips the all clear.

Otherwise you will be without some handy tools.
 

DatDude123

Senior Member
Aug 15, 2011
984
201
0
VA
There was a previous mod created by someone who just kind of copied and pasted and the wipe actually wiped some serious items that caused the phone to brick. I don't remember what it actually wiped (partition I think) but it was very important to the phone, it was eventually fixed but there were a lot of angry people with shiny new paperweights instead of phones.
I remember that.....good memory. Thanks for these brother.

D

Sent from my Slider SL101 using xda premium
 

vipergtsr6

Senior Member
May 8, 2010
70
8
0
I just wanted to confirm that when I was switching from Paranoid Android (CM10 based ROM) to Galaxy S fre3 2.34d (TW based ROM), I was left with about 2.5GB of internal space because the wipe options in recovery were not wiping properly.

I successfully used the factory reset zip and then flashed a new ROM and now have 11.65GB available on internal storage.

THANKS OP!
 

orlzzt

Senior Member
Apr 23, 2011
2,514
2,004
0
Daytona Beach, FL
Thanks to the OP for his work. Now, stupid "user who doesn't know anything" question;

Some instructions and videos say to use the "format" function (e.g.; format system format cache, etc)

In the command code: what is different between a "wipe" and a "format"?

Sent from my SPH-L710 using Xparent Skyblue Tapatalk 2
 

edisonalvarez

Senior Member
Apr 22, 2010
944
133
0
I was running a CM M1 nightly and wanted to update I used the wrote and factory reset zip and :eek: it wiped my entire internal memory...

I'm not sure why this happened I used this zip before without issue but it sucked getting phone restored and trying to in delete at least pictures on the phone.

I noticed that the least couple of nightlies is creating a folder called 0 and moving all directories there. Not sure if that had anything to do with it.

I just wanted to share not complaining. Thanks! :beer:

Sent from my SPH-L710 using xda premium
 

Custodian

Senior Member
Feb 27, 2011
2,271
408
0
I was running a CM M1 nightly and wanted to update I used the wrote and factory reset zip and :eek: it wiped my entire internal memory...

I'm not sure why this happened I used this zip before without issue but it sucked getting phone restored and trying to in delete at least pictures on the phone.

I noticed that the least couple of nightlies is creating a folder called 0 and moving all directories there. Not sure if that had anything to do with it.

I just wanted to share not complaining. Thanks! :beer:

Sent from my SPH-L710 using xda premium
Lolololol sucks for you.

Sent from my SPH-L710 using Xparent Skyblue Tapatalk 2
 

upndwn4par

Inactive Recognized Developer
Jan 22, 2012
3,640
10,375
0
New Jersey
I was running a CM M1 nightly and wanted to update I used the wrote and factory reset zip and :eek: it wiped my entire internal memory...

I'm not sure why this happened I used this zip before without issue but it sucked getting phone restored and trying to in delete at least pictures on the phone.

I noticed that the least couple of nightlies is creating a folder called 0 and moving all directories there. Not sure if that had anything to do with it.

I just wanted to share not complaining. Thanks! :beer:

Sent from my SPH-L710 using xda premium
Sorry you lost your files.

The factory reset zip does perform a factory reset. That is what it is supposed to do.

Are you sure you didn't use the full wipe before?

I always store my important stuff on my external sd card so this can't happen. I also keep the factory reset zip in a separate folder so I can't use it by accident (I've done that before).

And yes, the CM 10.1 ROMs will create the "0" folder (which is for profiles) and will also usually create new (often multiple) sdcard0 folders.