Dirty vs Clean Flash

Search This thread

galchristian

Senior Member
Jul 16, 2010
189
50
Miami Beach
netnucleus.com
A dirty flash is only wiping cache and davlik then flashing your ROM....

a Clean flash is at LEAST factory reset/data wipe + wiping davlik(factory wipe takes care of /cache also)... Maybe doing a format /system also.


SO let the games begin! Which is better?! FIGHT!!

...

If I switch ROM's I factory reset then wipe cache and dalvik cache. If it's a theme for example I only wipe cache and dalvik cache since the theme is suppose to be made for your ROM right?....don't see the reason to reflash the ROM as well.
:cool:
 

annoyingduck

Senior Member
Aug 15, 2012
3,265
1,947
Boston, MA Area
Wipe data? What's that for? Is THAT why my phone won't turn on.......... :p

Nightlies: No data wipe (yes to cache/dakvik)
New rom, even if it's the same android build: always, full wipe
Themes: No wipe at all, flash right on, right after flashing rom's. Don't like to wait for two bootups!

Sent from my SCH-I535 using xda premium
 

wctaylor79

Senior Member
Mar 11, 2010
350
69
Il throw a vote to whichever works.. I usually dirty wipe.. If I have issues then clean it and try again.. With nightlies I tend to be fine dirty a lot, but even still I will do a clean every couple weeks just because.. :)
 
  • Like
Reactions: itchoog(ph)

Byonik

Senior Member
Feb 25, 2010
116
23
Northern VA
So we all agree that a dirty flash is just wipe cache/dalvik cache.

Do you wipe prior to re-flashing, or afterwards? Does it matter?


Sent from my SCH-I535 using xda app-developers app
 

xxx420

Member
Sep 5, 2012
18
1
What about flashing a new, updated kernel for a rom you're currently using? What steps should be taken for that? For example, cleanrom 2.1 comes with cleankernel 1.1, but the kernel has been updated to 1.2 and is out as a seperate download. How would you update just the kernel that's made specifically for the rom you use?
 

epagib

Senior Member
Aug 25, 2012
281
57
What about flashing a new, updated kernel for a rom you're currently using? What steps should be taken for that? For example, cleanrom 2.1 comes with cleankernel 1.1, but the kernel has been updated to 1.2 and is out as a seperate download. How would you update just the kernel that's made specifically for the rom you use?

Dirty wipe

Sent from a SYNERGIZED GalaxySIII
 

xXJay_RXx

Senior Member
Apr 13, 2010
3,887
284
18015
When I dirty flash, I wipe data cache n dalvik cache. Once I flash what I wanted, I wipe those two once again n select "fix permissions" just in case :)

Sent from my SCH-I535 using Tapatalk 2
 

Droosh

Senior Member
May 6, 2011
90
20
So we all agree that a dirty flash is just wipe cache/dalvik cache.

I disagree. I believe a dirty flash also wipes system. If you are 100% certain that your ROM build effectively wipes system as part of it's install routine, then you could skip this step, however I always wipe system to be safe. This works for me and I rarely need to wipe data or sd card(s).

---------- Post added at 11:01 AM ---------- Previous post was at 10:57 AM ----------

What about flashing a new, updated kernel for a rom you're currently using? What steps should be taken for that?

When changing Kernels but not the ROM in a separate recovery session than a ROM flash, you don't need to "dirty wipe." Just wipe cache and dalvik. Dalvik wipe is key so that the dalvik virtual machine can be rebuilt by the new kernel.
 
  • Like
Reactions: sbrownla

johnwaco

Member
Nov 3, 2010
46
4
I usually dirty on nightlies until I have issues. Always clean when switching roms.

Sent from my SGH-I535 using xda app-developers app
 

techgov8

Senior Member
Jul 10, 2012
886
156
What if im just switching between stock rom nandroid backups? Can I just restore from one to one? I only have two backups anyways both for stock. Never flashed a rom before

Tap'n
 

droidstyle

Inactive Recognized Contributor
May 7, 2011
6,471
3,604
Fort Wayne
This isn't meant to be rude or anything, I'm just honestly wondering if there's any logical reason to think this is substantively different than just not wiping data?

I find that this method works better than just wiping cache and dalvik, since im advance restoring data over a clean flash. both ways are considered dirty flashing tho.
 
Last edited:

coldhardtruth

Senior Member
Nov 5, 2011
531
145
I wipe dalvik, cache and battery stats. Works like a charm thus far. Wiping data is what blows out the IMEI correct?
 

SlimSnoopOS

Senior Member
Jan 29, 2011
8,052
3,348
I wipe dalvik, cache and battery stats. Works like a charm thus far. Wiping data is what blows out the IMEI correct?

Incorrect, flashing anything is what may lead to losing your IMEI. Backup using the appropriate tools in the development section. Btw stop wiping battery stats, it's not necessary.

Sent from my SCH-I535 using xda app-developers app
 
  • Like
Reactions: coldhardtruth

Brian Gove

Senior Member
Jul 26, 2012
989
346
Land of Oz
why do so many folks wipe cache and dalvik after they wipe data? A data wipe/factory reset wipes all three, there is no need to do anything else.

I always wipe data, flash rom, then advance restore data only from a nandroid...dirty flashing in its most elegant form ;)

Factory reset doesn't touch the davlik(Which I speculate(Guess) has to do more with the kernel than anything)

So we all agree that a dirty flash is just wipe cache/dalvik cache.

Do you wipe prior to re-flashing, or afterwards? Does it matter?


Sent from my SCH-I535 using xda app-developers app
This is what I meant as a dirty flash when I made the thread yes...

What about flashing a new, updated kernel for a rom you're currently using? What steps should be taken for that? For example, cleanrom 2.1 comes with cleankernel 1.1, but the kernel has been updated to 1.2 and is out as a seperate download. How would you update just the kernel that's made specifically for the rom you use?

Usually when I flash a new kernel, or a different kernel, I just wipe the davlik cache and I am fine. There was some reboots after the first boot on the AOSP ROMs but afterwards it ran fine.

Incorrect, flashing anything is what may lead to losing your IMEI. Backup using the appropriate tools in the development section. Btw stop wiping battery stats, it's not necessary.

Sent from my SCH-I535 using xda app-developers app

SlimSnoop is correct. According to one of the developers of a very prominent ROM the IMEI issue was because our phones got confused sometimes(Randomly phone to phone) and tried to reset during a flash. The data it tried to reset was bogus, therefor losing IMEI. He is also correct far as the wiping battery stats. It's only usefull when you have really strange results with battery. Google for the real reason to use them.


Far as backing up your IMEI so you will never run into the problem of losing it.... go into your terminal (almost every ROM has a Terminal emulator)

Type this:

su

then hit enter. Grant permissions

then type:

reboot nvbackup

then hit enter. This will make your phone do some shyt and reboot, but you really shouldn't need to worry about your IMEI after this. Regardless of how many ROMs you flash or what you do or who you date or who you kiss, etc... blah blah....


This really should be the end all for the IMEI...
 

piiman

Senior Member
Jun 21, 2010
520
47
Wipe data? What's that for? Is THAT why my phone won't turn on.......... :p

Nightlies: No data wipe (yes to cache/dakvik)
New rom, even if it's the same android build: always, full wipe
Themes: No wipe at all, flash right on, right after flashing rom's. Don't like to wait for two bootups!

Sent from my SCH-I535 using xda premium

New rom only when their bases are different , like going from ics to jb, or the dev says to do it (Even then Ill try it without a wipe because im lazy).

Themes I never wipe anything
Nightlies never wipe anything.

Edit: If I do have issues I then go back and wipe delvik and cache . That usually straightens out any issues and allows me to keep my setup.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 21
    A dirty flash is only wiping cache and davlik then flashing your ROM....

    a Clean flash is at LEAST factory reset/data wipe + wiping davlik(factory wipe takes care of /cache also)... Maybe doing a format /system also.


    SO let the games begin! Which is better?! FIGHT!!

    ...
    18
    Wipe data? What's that for? Is THAT why my phone won't turn on.......... :p

    Nightlies: No data wipe (yes to cache/dakvik)
    New rom, even if it's the same android build: always, full wipe
    Themes: No wipe at all, flash right on, right after flashing rom's. Don't like to wait for two bootups!

    Sent from my SCH-I535 using xda premium
    6
    why do so many folks wipe cache and dalvik after they wipe data? A data wipe/factory reset wipes all three, there is no need to do anything else.

    I always wipe data, flash rom, then advance restore data only from a nandroid...dirty flashing in its most elegant form ;)

    Factory reset doesn't touch the davlik(Which I speculate(Guess) has to do more with the kernel than anything)

    So we all agree that a dirty flash is just wipe cache/dalvik cache.

    Do you wipe prior to re-flashing, or afterwards? Does it matter?


    Sent from my SCH-I535 using xda app-developers app
    This is what I meant as a dirty flash when I made the thread yes...

    What about flashing a new, updated kernel for a rom you're currently using? What steps should be taken for that? For example, cleanrom 2.1 comes with cleankernel 1.1, but the kernel has been updated to 1.2 and is out as a seperate download. How would you update just the kernel that's made specifically for the rom you use?

    Usually when I flash a new kernel, or a different kernel, I just wipe the davlik cache and I am fine. There was some reboots after the first boot on the AOSP ROMs but afterwards it ran fine.

    Incorrect, flashing anything is what may lead to losing your IMEI. Backup using the appropriate tools in the development section. Btw stop wiping battery stats, it's not necessary.

    Sent from my SCH-I535 using xda app-developers app

    SlimSnoop is correct. According to one of the developers of a very prominent ROM the IMEI issue was because our phones got confused sometimes(Randomly phone to phone) and tried to reset during a flash. The data it tried to reset was bogus, therefor losing IMEI. He is also correct far as the wiping battery stats. It's only usefull when you have really strange results with battery. Google for the real reason to use them.


    Far as backing up your IMEI so you will never run into the problem of losing it.... go into your terminal (almost every ROM has a Terminal emulator)

    Type this:

    su

    then hit enter. Grant permissions

    then type:

    reboot nvbackup

    then hit enter. This will make your phone do some shyt and reboot, but you really shouldn't need to worry about your IMEI after this. Regardless of how many ROMs you flash or what you do or who you date or who you kiss, etc... blah blah....


    This really should be the end all for the IMEI...
    4
    why do so many folks wipe cache and dalvik after they wipe data? A data wipe/factory reset wipes all three, there is no need to do anything else.

    I always wipe data, flash rom, then advance restore data only from a nandroid...dirty flashing in its most elegant form ;)
    2
    If you go to the note 2 thread you will get help from those with a note 2. Yet you go to a galaxy s3 thread and expect galaxy s3 owners to help you with your note 2. Then when someone says "wrong forum dude" you get an attitude about it. Next time post in a note 2 thread. FYI although both have a Touchwiz variant of android the note 2 version comes with added features so it is a different variation of the same OS. It is exactly like having different variations of Ubuntu.