[Q] Why wipe Dalvik? - Nexus 6 Q&A, Help & Troubleshooting

Maybe I have not done enough searching on this, but I cannot draw a clear picture.
I see in the installation instructions on some ROMs include wipe Dalvik cache.
The runtime on Lollipop is art, why wipe the Dalvik cache when flashing ROMs?
can anyone clarify this for me?

gcng said:
Maybe I have not done enough searching on this, but I cannot draw a clear picture.
I see in the installation instructions on some ROMs include wipe Dalvik cache.
The runtime on Lollipop is art, why wipe the Dalvik cache when flashing ROMs?
can anyone clarify this for me?
Click to expand...
Click to collapse
Sounds stupid but I'm glad you asked. I was wondering the same thing. I'm sure it's still there so maybe it does something we don't know.

well, it says dalvik but its really art. why wipe it? for the same reasons you would if you had dakvik. but why wipe it anyways? when you flash a rom, it automatically gets wiped. the only reason that i would wipe it is if i was one one rom, no updating, for a long time

Related

Wipe Cache AFTER Flashing Kernel?

I always wipe cache/dalvik cache, battery settings and rotate setting before flashing a new kernel. I have heard people suggesting it is good to wipe all the above after flashing the new kernel as well. Is there a reason for doing this? Is it really helping anything?
There is no reason to wipe anything while doing a kernel upgrade.
I disagree.
It's always advisable to wipe at least dalvik-cache when changing kernels.
Indeed, the preferred, no loss, logical and recommended thing to do is always wipe cache and dalvik-cache when you upgrade /boot/ or /system/.
Any new rom, kernel or radio - wipe cache and dalvik-cache. It costs you nothing and eliminates most issues people experience.
I've just changed my rom, Kang-o-rama, to force wipe cache and dalvik-cache because not enough people follow simple instructions.
Just wondering... If i wipe cache will i lose all my data and settings/preferences? Especially data in my apps like messaging...etc?
Because i plan to try this out before updating to FRF85B, ive heard claims that wiping cache helps improve speed though some stated otherwise.
cr0wnest said:
Just wondering... If i wipe cache will i lose all my data and settings/preferences? Especially data in my apps like messaging...etc?
Click to expand...
Click to collapse
nope .......
JonInAtl said:
nope .......
Click to expand...
Click to collapse
Thanks, maybe i'll try that out before i flash to FRF85B and see if theres any difference.
Agree.
Wipe dalvik-cache
Wipe Dalvik but leave the other. I have had Batterylife dropping horribly after wiping my cache. But i reflashed my radio and all was back to normal. So not a Kernel issue.
But i would leave cache alone no matter what and wipe it if you experience any boot problems.
Thanks
Thanks for asking this questions. I was going to ask the same one but I just came here and read the answer already. Sweet..
I want to flash franco kernel with TWRP.
Is it advisable or necessary to wipe dalvik AFTER flashing the kernel? Would it do any harm if I didn't wipe dalvik after flashing?
Smoosh1 said:
I want to flash franco kernel with TWRP.
Is it advisable or necessary to wipe dalvik AFTER flashing the kernel? Would it do any harm if I didn't wipe dalvik after flashing?
Click to expand...
Click to collapse
You should always wipe caches to be safe, they may contain unexpected data. If you don't wipe and your device operates correctly then no problem.
I've always been flashing franco kernel with FKU. Next time I want to flash with TWRP, just to see how it goes. Thanks for your reply, I'll wipe dalvik after flashing then.

Bootloop after wipe dalvik

Hi,
I wiped my dalvik cache through CWM but now I'm getting into a bootloop, so I restored a backup of my NAND-Flash to get the cache back and then it works again...
Why is that so? Do I have to do anything else to get it working?
I wanted to wipe the cache cause I have some strange problems with Fearkill's edition, so I hoped that this will solve it...
Thanks

[Q] Why clear Dalvik and cache?

So every single rom for any phone I've seen says to clear the dalvik and the cache (or maybe its just the "dalvik cache") but when I went from stock to Thriller, I forgot to, and nothing went wrong. In fact, all my settings and apps were all intact from the previous stock rom.
I've considered that the only other phone I'd done any flashing on was a backflip, without Apps2SD and maybe that's why all my apps and settings were intact, so that still leaves me with the question: why clear it?
This may be a noob-ish question, and I apologize. Thanks for any help!
Tyqar said:
So every single rom for any phone I've seen says to clear the dalvik and the cache (or maybe its just the "dalvik cache") but when I went from stock to Thriller, I forgot to, and nothing went wrong. In fact, all my settings and apps were all intact from the previous stock rom.
I've considered that the only other phone I'd done any flashing on was a backflip, without Apps2SD and maybe that's why all my apps and settings were intact, so that still leaves me with the question: why clear it?
This may be a noob-ish question, and I apologize. Thanks for any help!
Click to expand...
Click to collapse
If there are any compatibility issues between the apk dalvik cache of your previous rom and the apks on the new rom wiping dalvik clears the previous apks stored dalvik cache. In most cases you can flash without a problem. But I recommend wiping between rom flashes just to eliminate any potential problems. Flashing something like Thriller over the stock rom you can probably get away with not wiping anything since all the apks are essentially the same. Flashing kernels you don't need to wipe anything. When flashing a rom with a completely different firmware I recommend a full data wipe. Restoring recovery backups such as nandroid require no wiping at all.
Also, wiping dalvik shouldn't affect any of your settings.
Sent from my LG-P920 using Tapatalk
+1
When switching ROM with different base apps, it is generally better to wipe caches than to get stuck in a boot loop, or having your apps and launcher FC on you. You never lose anything as the cache rebuilds itself on the next reboot, except maybe a few minutes
CallMeAria said:
If there are any compatibility issues between the apk dalvik cache of your previous rom and the apks on the new rom wiping dalvik clears the previous apks stored dalvik cache. In most cases you can flash without a problem. But I recommend wiping between rom flashes just to eliminate any potential problems. Flashing something like Thriller over the stock rom you can probably get away with not wiping anything since all the apks are essentially the same. Flashing kernels you don't need to wipe anything. When flashing a rom with a completely different firmware I recommend a full data wipe. Restoring recovery backups such as nandroid require no wiping at all.
Also, wiping dalvik shouldn't affect any of your settings.
Sent from my LG-P920 using Tapatalk
Click to expand...
Click to collapse
so, when i flashed thriller and followed the instructions, did I do a full wipe or not?
I mean if it doest it on its own, and if not, should I do one?
latinohot said:
so, when i flashed thriller and followed the instructions, did I do a full wipe or not?
I mean if it doest it on its own, and if not, should I do one?
Click to expand...
Click to collapse
If you followed the instructions you did a full data wipe. When you do this the dalvik gets wiped as well. To just wipe dalvik look under the Advanced menu in cwm recovery.
Sent from my LG-P920 using Tapatalk
clearing cache
i am using a nand rom in my HD2, and i also want to install another rom via SD in Magldr, but because of kernel issues i cannot load the Rom from SD unless i use the kernal i am advised to use. I am instructed to clear the dalvik and cache, but does this mean that i would lose anything from my current NAND rom? I still want to be able to use that of coarse so i just want to make sure there are no major risks when clearing cache.
ssj5legend said:
i am using a nand rom in my HD2, and i also want to install another rom via SD in Magldr, but because of kernel issues i cannot load the Rom from SD unless i use the kernal i am advised to use. I am instructed to clear the dalvik and cache, but does this mean that i would lose anything from my current NAND rom? I still want to be able to use that of coarse so i just want to make sure there are no major risks when clearing cache.
Click to expand...
Click to collapse
Clearing dalvik and cache wont make you lose anything, used to do it with my shift because I'd flash about 10 zips a day sometimes...
Also when it comes to flashing any ROM I format system data cache wipe dalvik cache and do a factory reset just to be sure nothing from a previous ROM is left over also wipe my SD ext partition when running an a2sd ROM, my question is can I safely manually format the emmc partition of the thrill from the mounts and storage option of cwm
Sent from my LG-P925 using Tapatalk

[Q] do i need to perform full wipe if i flash XXLSA over XXLS7?

or can i just dirty wipe and wipe dalvik cache and im good to go?
thanks
Jamal Ahmed said:
or can i just dirty wipe and wipe dalvik cache and im good to go?
thanks
Click to expand...
Click to collapse
Not sure about this particular case, but I'll tell you my approach is to *always* do a full wipe + format partitions and internal sdcard before flashing *any* ROM. This way I'm sure there's nothing old left (app data, config etc.). Using this approach I've been running many ROMs without most of the bugs users report (using XXLSA now), I think it's worth the time to reinstall and reconfig everything. If you don't need to keep old data and config:
1) Wipe data & cache
2) Wipe dalvik cache
3) Format /system & /preload
4) Format internal sdcard (make sure you save anything you need before)
5) Flash ROM
6) Wipe cache again
7) Wipe dalvik cache again
8) Reboot
(Not sure if 6 and 7 are needed, but I prefer to be a bit paranoid in this case.)
Jamal Ahmed said:
or can i just dirty wipe and wipe dalvik cache and im good to go?
thanks
Click to expand...
Click to collapse
I think it depends on which custom rom u r currently on & which one you are gonna flash..for ex: flashing Ultimate v5 XXLSA over Alliance v1 XXLS7 may not work..
dbolivar said:
Using this approach I've been running many ROMs without most of the bugs users report (using XXLSA now))
Click to expand...
Click to collapse
I agree with you. If you perform a full wipe before to install a new rom, the probabilities of occur in some rom's issue (like FC or just a "simple" weird lag) are low. Tested personally.
It always better/advised to perform a full wipe.
In the end, you could do a nandroid backup of your last used rom, wipe everything, install the new rom, and then try to restore the data partition only. If you get some errors or general issue, you can easily full wipe everything again, and reinstall the new rom again... at least, you tried
Jamal Ahmed said:
or can i just dirty wipe and wipe dalvik cache and im good to go?
thanks
Click to expand...
Click to collapse
What does the OP states? Flashing ROMs is STILL a dangerous business.
Read the OP for the ROM you are installing
Jamal Ahmed said:
or can i just dirty wipe and wipe dalvik cache and im good to go?
thanks
Click to expand...
Click to collapse
leaks always require full wipe for it to function properly.

How to dirty flash?

Can anyone tell me what is dirtyflash and how to do it in le 2?
I am using RR rom in le 2
Please explain it to me
Thanks ?
flash the new build and then wipe cache and dalvik cache
If you are not wiping data and don't do a factory reset before flashing new rom, than it's dirty flashing.
Dhruv Dhawan said:
flash the new build and then wipe cache and dalvik cache
Click to expand...
Click to collapse
Can i wipe the cache and dalvik cache before flashing the build?
IDK... How it effects the flashing.
I personally do it both the time(before and after flashing).
Dhruv Dhawan said:
IDK... How it effects the flashing.
I personally do it both the time(before and after flashing).
Click to expand...
Click to collapse
Ok thanks man
I did flashed the new build above the old but forgot to do the wipe of cache and dalvik cache and ended up with many bugs on the ROM and apps constantly stopping so had to re flash the whole thing but anyway thanks a lot

Categories

Resources