[Mod][Utility] Wiping Tools - Simple and Fast - AT&T, Rogers, Bell, Telus Samsung Galaxy S III

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!

Thanks. They will be handy in cases
Sent from my SAMSUNG-SGH-I747 using xda app-developers app

I'll go ahead and ask...how do you use it ? Flash it in CWM or TWRP like a ROM or kernel every time you need to use it ?
And thank you for the work

hednik said:
I'll go ahead and ask...how do you use it ? Flash it in CWM or TWRP like a ROM or kernel every time you need to use it ?
And thank you for the work
Click to expand...
Click to collapse
Yep. Just flash it. It's a nice time and button saver.

Nice work:good:

I added a full wipe with factory reset zip to the OP and updated the post to reflect the changes.

Some of you have expressed an interest in making a donation even though I don't want them (thanks ).
But if any of you have a few bucks to spare, we have a fellow xda member that could really use the money right now.
Please don't post saying that you donated since I don't want anyone to feel obligated to do it, or feel uncomfortable if they don't. Just be happy knowing you helped someone in need. Thanks!
http://www.xda-developers.com/andro...lletin-please-help-ryan-scott-chiefzreloaded/

upndwn4par said:
Some of you have expressed an interest in making a donation even though I don't want them (thanks ).
But if any of you have a few bucks to spare, we have a fellow xda member that could really use the money right now.
Please don't post saying that you donated since I don't want anyone to feel obligated to do it, or feel uncomfortable if they don't. Just be happy knowing you helped someone in need. Thanks!
http://www.xda-developers.com/andro...lletin-please-help-ryan-scott-chiefzreloaded/
Click to expand...
Click to collapse
Sounds like a deal
Question about this: The full wipe + factory reset, is this like the super wipe script ? I'm wanting to clean up all the clutter and seeing how clean this script gets and what it leave ?

hednik said:
Sounds like a deal
Question about this: The full wipe + factory reset, is this like the super wipe script ? I'm wanting to clean up all the clutter and seeing how clean this script gets and what it leave ?
Click to expand...
Click to collapse
I am not sure which super wipe script you are referring.
Full Wipe Factory Reset is the same as wiping cache, dalvik, system, and doing a factory reset in recovery. It just does it in about 5 seconds.
It won't touch your external sd card, radio, recovery, etc.

upndwn4par said:
I am not sure which super wipe script you are referring.
Full Wipe Factory Reset is the same as wiping cache, dalvik, system, and doing a factory reset in recovery. It just does it in about 5 seconds.
It won't touch your external sd card, radio, recovery, etc.
Click to expand...
Click to collapse
It's a script I've seen in come aroma installers in past where it wipes internal SD. Are you saying the
Wipe Full Factory Reset wipes all media internal card. i guess the confusion comes from wording as "factory reset" in TWRP leaves all data and media but factory reset in your wording is the sames as factory reset in stock recovery ?

hednik said:
It's a script I've seen in come aroma installers in past where it wipes internal SD. Are you saying the
Wipe Full Factory Reset wipes all media internal card. i guess the confusion comes from wording as "factory reset" in TWRP leaves all data and media but factory reset in your wording is the sames as factory reset in stock recovery ?
Click to expand...
Click to collapse
Yes. It will wipe your internal sd - everything.

asking this to be on the safe side here. but the full wipe option it says it wipes the internal sd card does that mean like it erase everything as if nothing was nothing on it?

CYRAXDroid said:
asking this to be on the safe side here. but the full wipe option it says it wipes the internal sd card does that mean like it erase everything as if nothing was nothing on it?
Click to expand...
Click to collapse
Not Full Wipe, but Full Wipe Factory Reset wipes the internal sd card. And yes, wipes it clean.

To help improve the quality of both the development and general sections, I decided to have this thread moved to the general section.
Just giving you a heads up in case you need to find it.
kennyglass123 will be moving this thread soon.

Hey I was just wandering around and stumbled in here. Will this work on the sprint gs3?
Sounds handy.
Thanks

hllywd said:
Hey I was just wandering around and stumbled in here. Will this work on the sprint gs3?
Sounds handy.
Thanks
Click to expand...
Click to collapse
Yes. I also posted this in the Sprint dev section. It is exactly the same as this one.

Thanks, sounds like some good apps

These are a godsend. Thanks so much for them!

This is brilliant!:highfive: I know we all can do this by button or rocker mashing but this is great. Thank you for putting them together! Much appreciated!

This is awesome, I will definitely be using this from now on when moving from ROM to ROM. Thanks so much!

Related

[Q] Flashing Gingerbread-Inc-Deck

I'm going to be using CWM Recovery to flash Gingerbread-Inc-Deck on my Droid Incredible. It seems like a decent and stable ROM.
Instructions say to do a full wipe and I'm wondering what that entails. I was under the impression that it was the usual data/factory reset, wipe cache partition, and wipe dalvik cache. However, after the recent posts about bootloops and being stuck at the splash screen... I am just wanting to make sure I do this properly.
Can someone please clarify, what does a full wipe refer to on the Droid Incredible? Even better, how do you flash a ROM on your Droid Incredible? This will be my first time flashing a ROM on my DInc and I want to do it right.
Data, cache, dalvik, boot and system I usually wipe.
-My life is a shooting range, people never change-
watt9493 said:
Data, cache, dalvik, boot and system I usually wipe.
-My life is a shooting range, people never change-
Click to expand...
Click to collapse
Interesting... Thank you! Where do I go to wipe boot and system? Is that under mounts and storage?
VisualPerfection said:
Interesting... Thank you! Where do I go to wipe boot and system? Is that under mounts and storage?
Click to expand...
Click to collapse
Yes, go into recovery and then the mounts and storage menu and wipe everything you can in there except sdcard and emmc. Then go to the advanced menu and wipe dalvik-cache. Then flash your rom by going to install zip from sdcard then choose zip from sdcard and select the rom zip you downloaded.
cmlusco said:
Yes, go into recovery and then the mounts and storage menu and wipe everything you can in there except sdcard and emmc. Then go to the advanced menu and wipe dalvik-cache. Then flash your rom by going to install zip from sdcard then choose zip from sdcard and select the rom zip you downloaded.
Click to expand...
Click to collapse
Do I need to do data/factory reset and wipe cache partition?
VisualPerfection said:
Do I need to do data/factory reset and wipe cache partition?
Click to expand...
Click to collapse
No by wiping everything in mounts and storage you are essentailly doing the factory reset with the addition of boot and system.
cmlusco said:
No by wiping everything in mounts and storage you are essentailly doing the factory reset with the addition of boot and system.
Click to expand...
Click to collapse
Okay, thank you! So data, cache, boot, system, and all that stuff will be in mounts and storage? Hope this'll work!
VisualPerfection said:
Okay, thank you! So data, cache, dalvik, boot, system, and all that stuff will be in mounts and storage? Hope this'll work!
Click to expand...
Click to collapse
Yes they are all in mounts and storage. It should work without any issues. Not wiping things correctly is usually the most common issue causer when installing a rom.
Yes they are all in mounts and storage. It should work without any issues. Not wiping things correctly is usually the most common issue causer when installing a rom.
Click to expand...
Click to collapse
Yes, that is why I wanted to make sure I did this correctly! Thank you again for your help. One last thing, after doing all this, I will still have root right?
VisualPerfection said:
Yes, that is why I wanted to make sure I did this correctly! Thank you again for your help. One last thing, after doing all this, I will still have root right?
Click to expand...
Click to collapse
As long as the rom you are flashing is a rooted rom which almost all (99%) are, then yes you will still have root. And yes inc-deck is a rooted rom.
Oh and most important before you wipe and flash remember to make a backup of your current setup just incase.
cmlusco said:
As long as the rom you are flashing is a rooted rom which almost all (99%) are, then yes you will still have root. And yes inc-deck is a rooted rom.
Click to expand...
Click to collapse
Great, I can't thank you enough for answering all my n00b questions! ...even more so, I can't wait to load a custom ROM and kernel on my DInc.
Edit: Yes, I will absolutely make a back-up before flashing anything.

True, complete, and utterly wiped

Never had an issue doing this on the SGII, but having some difficulty doing this on the SGIII...
So I wanted to start off fresh and completely wiped when going from Release 3 (Special FiveOhFox Edition) to the current Release 4 Update 1.
Via recovery, I cleared Cache partition and Dalvik. I then flashed the Darkside Superwipe that was still on my SD card from my SGII, then
Proceeded to flash rom. Upon initial setup, after Google account, there is a screen where you enter your name. To my surprise, my name was
already filled in, so system was not fully wiped. What am I omitting to do?
p.s. I am getting lag on screen wake, sometimes a 3 second lag after button is pressed. I believe a full wipe will cure this...I hope
Any info/link appreciated.
Sorry for the n00b question
Android_Guy said:
Never had an issue doing this on the SGII, but having some difficulty doing this on the SGIII...
So I wanted to start off fresh and completely wiped when going from Release 3 (Special FiveOhFox Edition) to the current Release 4 Update 1.
Via recovery, I cleared Cache partition and Dalvik. I then flashed the Darkside Superwipe that was still on my SD card from my SGII, then
Proceeded to flash rom. Upon initial setup, after Google account, there is a screen where you enter your name. To my surprise, my name was
already filled in, so system was not fully wiped. What am I omitting to do?
p.s. I am getting lag on screen wake, sometimes a 3 second lag after button is pressed. I believe a full wipe will cure this...I hope
Any info/link appreciated.
Sorry for the n00b question
Click to expand...
Click to collapse
You need to do a data wipe, and possibly also a system wipe. But definitely the data partition. Wiping cache and dalvik don't actually affect any of the data on your device.
gbzbar said:
You need to do a data wipe, and possibly also a system wipe. But definitely the data partition. Wiping cache and dalvik don't actually affect any of the data on your device.
Click to expand...
Click to collapse
Is there a "tool" or zip to do this or must it be done manually? How do I go about doing this?
Did you try doing the "factory" wipe?
Menu > System Settings > Storage > Format SD Card
Android_Guy said:
Is there a "tool" or zip to do this or must it be done manually? How do I go about doing this?
Click to expand...
Click to collapse
Do it manually, superwipes don't work on this phone.
I used a super wipe on mine and it messed up the partitions. Luckily I was still in my trial window and swapped it out. Man I felt like a noob lol. I usually wipe /system as well as the normal and that seems to be good enough.
Sent from my SGH-T999 using Tapatalk 2
Thanks to everyone above for the info. :good: MUCH appreciated

Will wiping System in TWRP delete contents of sdcard?

When I'm flashing a new ROM, I like to install it as cleanly as possible. Usually a factory reset along with wiping cache and dalvik. Doing this, I know my sdcard contents will remain safe. Does wiping system in TWRP wipe out my sdcard as well? If not, I'll start doing that as well. If it does, I guess I won't.
no, only /system.
only time your SDCARD is wiped is if you choose format /sdcard.
No. Wiping system wipes /system. Wiping internal storage wipes the internal storage. The two don't cross at all.
Thanks a lot, both of you.
For giggles, what does wiping system do? Obviously wipes system, but I mean in terms of flashing a new ROM. How is it beneficial, I guess is what I'm asking.
blackplague1347 said:
Thanks a lot, both of you.
For giggles, what does wiping system do? Obviously wipes system, but I mean in terms of flashing a new ROM. How is it beneficial, I guess is what I'm asking.
Click to expand...
Click to collapse
it makes the /system partition is clean so there is no remnants of the previous rom.
most rom installs include a script that wipe it, so generally its not needed.
You will also lose the contents of /sdcard when you lock/unlock your bootloader. (root)
I do literally everything except wipe external SD.
Even Format Data.
jbbosu said:
I do literally everything except wipe external SD.
Even Format Data.
Click to expand...
Click to collapse
why did you bump a 5 month old thread?
Zepius said:
why did you bump a 5 month old thread?
Click to expand...
Click to collapse
For the record, his bump on the 5 month old thread helped me, over two years later.
Thanks everyone.
Thanks
It is Still helping people like me...Thnx...Keep Bumping
Same
Can confirm... Keep bumping
Hey Guys
Yep
Very useful. One up from me as well. IS TWRP only way to do FULL WIPE or are there alternatives? For example, can this be achieved without being rooted?
bump LOL does wiping the ext_sd actually wipe the data or is it still accessible via linux? im hoping that it only deletes the data table
nvm, it only deletes the data table. Data recovered, crisis averted
I know this is now 4 months old, so using twrp system wipe- wipes out the current android firmware too or no?
If you just want to delete everything from Android SD card , you'd better use eraser tool to do ,
Once you use it to erase your Android SD card , all of the data save on the SD card can be completely deleted ,
eidairaman1 said:
I know this is now 4 months old, so using twrp system wipe- wipes out the current android firmware too or no?
Click to expand...
Click to collapse
I also need that answer
Bump, thanks for explain

[Q] format internal memory samsung galaxy s 4

so i formated the internal storage with team win rcovery. I installed Alpha s4 v2.0 and it works fine but when i install anyothere mods and reboot my phone it stays on the logo Galaxy S 4 logo and I have to re flash the ROM again but i have to formatted the internal storage again just to flash the rom . does any one have any idea how to fix this pls help
Reformat it in recovery
Sent from my SGH-M919 using Tapatalk 2
richardlibeau said:
Reformat it in recovery
Sent from my SGH-M919 using Tapatalk 2
Click to expand...
Click to collapse
what do you mean like how ? because installing rom like doing a factory reset doesn't work get me on to the Galaxy S 4 logo and that it. I have to format the data just to install any Rom dont know why but im getting frustrated about it
SuperAndroidman said:
what do you mean like how ? because installing rom like doing a factory reset doesn't work get me on to the Galaxy S 4 logo and that it. I have to format the data just to install any Rom dont know why but im getting frustrated about it
Click to expand...
Click to collapse
Should be an option in mount storage or advanced section of recovery to format .
Sent from my SGH-M919 using Tapatalk 2
STOP!!! TWRP is known for messing up your phone when you format internal memory. It will lead to bootloops and even the rom not booting at all. Switch recoveries to Clockwork or Philz and you will be fine. You may need to Odin back to stock to fix the issue first.
Cal-El said:
STOP!!! TWRP is known for messing up your phone when you format internal memory. It will lead to bootloops and even the rom not booting at all. Switch recoveries to Clockwork or Philz and you will be fine. You may need to Odin back to stock to fix the issue first.
Click to expand...
Click to collapse
just doing Odin put me back stock or do i need look for the stock rom and stock kernel then run odin? link pls
What to Wipe in TWRP
If you are switching ROMs (changing from one ROM to a completely different one) then you should perform a factory reset. A factory reset wipes data and cache (which includes dalvik cache). A factory reset will also wipe sd-ext and android_secure if your device has those items. 99% of the time, this is all that you need to wipe and you only need to do it once, not three times as some people would lead you to believe.
If you're installing a nightly update, then oftentimes you don't need to wipe anything at all. However, if you encounter strange behavior, then you may want to consider performing a factory reset. Of course, if the ROM maker recommends that you do a factory reset during an update, then it's a good idea to follow their recommendation.
The vast majority of ROMs wipe system as part of the zip install. This means that in most cases you do not need to wipe system... ever.
At this point, cache (not dalvik cache) is primarily used for recovery. It's used to store the recovery log and for storing OTA (Over The Air) updates. You probably don't need to wipe cache, and cache is already wiped as part of a factory reset.
In most ROMs, dalvik cache is stored in the data partition, so if you do a factory reset, you've also wiped dalvik cache. In a few custom ROMs, especially on older devices with small data partitions, the ROM maker may have moved dalvik to the cache partition to provide you with more room for apps. Since we wipe cache with a factory reset, again, you probably don't need to wipe dalvik. There are a few situations where you may need to wipe dalvik cache when installing updates, but you will know that it's needed when you are greeted with force closes when trying to open some apps.
Depending on your device and its configuration, you may have options for wiping internal storage, external storage, sd-ext, android_secure, and/or an option for formatting data. There's almost no reason that you would ever need to use these items. These options are there for convenience. For instance, if you're getting ready to sell your device, then it's a good idea to wipe everything on the device so that the new owner doesn't get your private data. Note that these wipe options may not be completely destructive. If you store especially sensitive information on your device or are really concerned about your private data, then you may need to look into other options to ensure that your data is fully destroyed.
http://teamw.in/whattowipe
http://teamw.in/project/twrp2

[Q] Remnants

Hi there, apologies if this is a silly question. I'm not an expert by any means, just a guy who follows the directions given on helpful sites like this.
I recently flashed the Slimkat ROM onto my n7100 for various reasons. But when I did, I obviously didn't completely wipe everything (which is what I intended).
Because for example, I installed a couple games on there and found that my game-saves were still there, also there were some bits on the obb folder from apps that I had on my phone previously but haven't installed since flashing the new ROM.
Why is this? Did I maybe miss a step when flashing the ROM? I know I did the 'wipe and restore factory settings' part in CWM, but I'm not 100% if I did the part with wiping the dalvik and cache etc.
Would that be the reason?
And If I want to give my phone a completely clean wipe what's the best way to do that now? Would I have to go through the steps as if I were flashing the ROM all over again? Or could I just go into recovery mode and wipe the dalvik, cache, system, data etc and reboot?
P.S. Yes, I know that no one who gives advice is responsible if I brick my phone.
sonofsmallface said:
Hi there, apologies if this is a silly question. I'm not an expert by any means, just a guy who follows the directions given on helpful sites like this.
I recently flashed the Slimkat ROM onto my n7100 for various reasons. But when I did, I obviously didn't completely wipe everything (which is what I intended).
Because for example, I installed a couple games on there and found that my game-saves were still there, also there were some bits on the obb folder from apps that I had on my phone previously but haven't installed since flashing the new ROM.
Why is this? Did I maybe miss a step when flashing the ROM? I know I did the 'wipe and restore factory settings' part in CWM, but I'm not 100% if I did the part with wiping the dalvik and cache etc.
Would that be the reason?
And If I want to give my phone a completely clean wipe what's the best way to do that now? Would I have to go through the steps as if I were flashing the ROM all over again? Or could I just go into recovery mode and wipe the dalvik, cache, system, data etc and reboot?
P.S. Yes, I know that no one who gives advice is responsible if I brick my phone.
Click to expand...
Click to collapse
wipe cache + factory reset and dalvik cache. you should be ok. Also don't wipe system.
Sent from my GT-N7100 using Tapatalk
ceomaverick said:
wipe cache + factory reset and dalvik cache. you should be ok. Also don't wipe system.
Sent from my GT-N7100 using Tapatalk
Click to expand...
Click to collapse
Just a follow up - I did a wipe + factory reset, wiped cache partition, wiped davlik cache, and was surprised to find I still had leftovers on my phone. For example I had some episodes of a tv show in my downloads folder and also there was still app leftovers in the obb folder. Meh... I'll just delete stuff manually.
sonofsmallface said:
Just a follow up - I did a wipe + factory reset, wiped cache partition, wiped davlik cache, and was surprised to find I still had leftovers on my phone. For example I had some episodes of a tv show in my downloads folder and also there was still app leftovers in the obb folder. Meh... I'll just delete stuff manually.
Click to expand...
Click to collapse
Well, you will have to flash stock recovery then. after that, wipe data/factory reset and wipe cache. This will erase everything on internal SD card. I assume u have backed up EFS and other important stuff.
press thumbs up if u find this suggestion helpful.
ceomaverick said:
Well, you will have to flash stock recovery then. after that, wipe data/factory reset and wipe cache. This will erase everything on internal SD card. I assume u have backed up EFS and other important stuff.
press thumbs up if u find this suggestion helpful.
Click to expand...
Click to collapse
By the way, I sort of overlooked the obvious - in the end I just did a factory wipe and reset from inside Slimkat i.e. not via recovery mode.
And that did the job fine. Cleaned up several gigs worth of clutter which apps like SD Maid seemed to have skipped over as well.

Categories

Resources