Dalvik cache question (clearing between flashes) - Galaxy S 4 Q&A, Help & Troubleshooting

Soo, somewhere I read that I should clear the dalvik cache each time I flash a new rom.
1) Why should I clear the cache?
2) Is it sufficient to clear (factory restore) the dalvik cache AFTER I flashed the rom?

Shebee said:
Soo, somewhere I read that I should clear the dalvik cache each time I flash a new rom.
1) Why should I clear the cache?
2) Is it sufficient to clear (factory restore) the dalvik cache AFTER I flashed the rom?
Click to expand...
Click to collapse
http://thexdaway.webs.com/
Look under the "What to wipe" section towards the bottom of the page.

norml said:
http://thexdaway.webs.com/
Look under the "What to wipe" section towards the bottom of the page.
Click to expand...
Click to collapse
hehe but if I understood it correctly, it is perfectly okay if I clear the dalvik cache after the flash, no?

This is just in general.
http://forum.xda-developers.com/showpost.php?p=43157965&postcount=999
&
http://teamw.in/whattowipe
Wiping instructions are usually in the specific ROM OP.

norml said:
This is just in general.
http://forum.xda-developers.com/showpost.php?p=43157965&postcount=999
&
http://teamw.in/whattowipe
Wiping instructions are usually in the specific ROM OP.
Click to expand...
Click to collapse
Hmm, I used no wipe, and there was no mention about clearing anything.

Did you even read the twrp site? They cover that. You been a member for 5 yrs, wtf?!!? You should know this stuff.

norml said:
Did you even read the twrp site? They cover that. You been a member for 5 yrs, wtf?!!? You should know this stuff.
Click to expand...
Click to collapse
How can I check if my rom wiped system?

Related

Dalvik Cache

I'm wondering how often i should delete Dalvik Cache, is it something that people do regular or only occasionally, and does it matter,etc?
Thanks
You should wipe the dalvik cache , along with the partition and data,just before installing a new ROM .
Sent from my HTC HD2 using XDA Premium App
jonny68 said:
I'm wondering how often i should delete Dalvik Cache, is it something that people do regular or only occasionally, and does it matter,etc?
Thanks
Click to expand...
Click to collapse
Hi Jonny,
When installing a new ROM and you don´t delete the cache, and I do a factory reset, along with repartitioning my sd card, there will be old stuff left over from the old ROM. So when we talk about a clean flash, that´s what we mean.
So is it recommended i only delete dalvik cache only when downloading / updating a new build?
jonny68 said:
So is it recommended i only delete dalvik cache only when downloading / updating a new build?
Click to expand...
Click to collapse
Yes only delete the Dalvik cache befor you flash a new ROM,check my guide I have linked in my sig to get a better understanding what the Dalvik cache is and it's function, well at least a good general understanding of it.
I personally always run a Task 29 and then reflash MAGLDR and CWM then my room just to be extra sure.
T-Macgnolia said:
Yes only delete the Dalvik cache befor you flash a new ROM,check my guide I have linked in my sig to get a better understanding what the Dalvik cache is and it's function, well at least a good general understanding of it.
I personally always run a Task 29 and then reflash MAGLDR and CWM then my room just to be extra sure.
Click to expand...
Click to collapse
thanks for your assistance here.

Need info about cyanogen mod installation

Hey guys
I had started to use nightly builds. My question is should I have to wipe factory n Cache?
Sent from my Nexus S using XDA Premium App
Nope, if you continue to use the nightlies, just wipe dalvik cache,
If you come from different rom, just wipe data and cache and dalvik cache.
Once you are on the nightlies you never wipe anything. Don't listen to any nonsense about caches and dalviks just go to recovery, flash nightly, reboot!
Sent from my Nexus S using XDA App
Thank you.. do I have to wipe if I'm switching to different rom of same version?
Sent from my Nexus S using XDA Premium App
You're losing no data wiping cache and dalvik, why not do it then, it saves you from trouble.
rentaric said:
You're losing no data wiping cache and dalvik, why not do it then, it saves you from trouble.
Click to expand...
Click to collapse
Because it doesn't "save you from trouble." But I'm not going to argue about it. The OP asked if he had to wipe when upgrading nightlies and the answer is No.
Sent from my Nexus S using XDA App
Plz tel about this... Toll then do I have to wipe if I'm flashing different rom of same android version!?
Sent from my Nexus S using XDA Premium App
ancilary said:
Plz tel about this... Toll then do I have to wipe if I'm flashing different rom of same android version!?
Sent from my Nexus S using XDA Premium App
Click to expand...
Click to collapse
Yes for different roms you must factory reset.
Sent from my Nexus S using XDA App
rentaric said:
You're losing no data wiping cache and dalvik, why not do it then, it saves you from trouble.
Click to expand...
Click to collapse
Correct.
matt2053 said:
Because it doesn't "save you from trouble." But I'm not going to argue about it. The OP asked if he had to wipe when upgrading nightlies and the answer is No.
Click to expand...
Click to collapse
You are so wrong. Of course he needs to wipe Dalvik and Cache even if he installs another nightly. Its because the new nighlties bring new apps versions, or new kernel changes. Deleting Dalvik and cache forces the Android to reload the Dalvik cache for all the apps. Also, it saves you from trouble of incompatibility or FC's.
ancilary said:
Plz tel about this... Toll then do I have to wipe if I'm flashing different rom of same android version!?
Sent from my Nexus S using XDA Premium App
Click to expand...
Click to collapse
Different ROM same Android - wipe Data, Dalvik, Cache.
Same ROM same Android - wipe Dalvik, Cache.
brainmaster said:
Correct.
You are so wrong. Of course he needs to wipe Dalvik and Cache even if he installs another nightly. Its because the new nighlties bring new apps versions, or new kernel changes. Deleting Dalvik and cache forces the Android to reload the Dalvik cache for all the apps. Also, it saves you from trouble of incompatibility or FC's.
Different ROM same Android - wipe Data, Dalvik, Cache.
Same ROM same Android - wipe Dalvik, Cache.
Click to expand...
Click to collapse
Well you can have your superstitions but there is no rational reason to manually wipe your cache or your dalvik cache when upgrading CM nightlies, and that comes straight from the developers of the ROM who are more knowledgeable than I am. None of the CM devs have EVER suggested it, and when asked, have said that it is not something that should be done. I will take their word over yours.
EDIT: This is the closest I think we will find to a definitive answer: http://review.cyanogenmod.com/#change,4933
So, CM development team does not suggest a wipe of dalvik or cache when upgrading. The nightly installation instructions do not mention wiping dalvik or cache. I personally have flashed several hundred nightlies over the last year and have never wiped cache or dalvik when upgrading. Many many other users have flashed hundreds of nightlies each and have not wiped cache or dalvik and have not had problems. There is no reason to do this action, it is completely pointless. It is like saying "you must have your phone pointing to the east when you boot." Sure maybe it does not hurt anything but we don't really need to keep spreading this superstition.
EDIT: In re-reading this I feel like my posts come across as disrespectful and/or antagonistic. I simply disagree with what was said and I feel I have good reason to. But the OP can read about both points of view and then try for himself and choose what works best for him.
CWM recovery was developed from CM7 devs. So why do you think that they've integrated or made a option to wipe dalvik if that is not needed?
Especially if installing another kernel, wiping Dalvik is a must.
But you are right, the OP can choose himself either he will do that or not.
I don't think that your post is disrespectful and/or antagonistic, you have just expressed your opinion. If we don't discus issues with each other we are not gonna make any progress on learning.
brainmaster said:
CWM recovery was developed from CM7 devs. So why do you think that they've integrated or made a option to wipe dalvik if that is not needed?
Click to expand...
Click to collapse
There are lots of options in CWM recovery that are not needed when flashing
Like I said, in the link it is expressed very clearly that the developers of the ROM feel it is "completely pointless" (exact words) to wipe cache and dalvik when updating to newer CM build.
There are times when a user or developer might want to wipe cache or dalvik and so those options do exist. There are other partitions that a user or developer might want to format from time to time for various reasons as well. And the option to do those things is there in CWM recovery. But that does not mean they should be done every time, just because they are there.
In the link I posted, a submission was made to CM code to make it easier for users to wipe dalvik and cache and install a zip all in one command. The submission was rejected because the reviewers agreed that it was "completely pointless."
Why after so much time do you think "Wipe Dalvik Cache" is still obscurely placed in the "Advanced" menu of CWM Recovery? It would be very easy and simple to wipe cache and dalvik automatically when installing a ROM through CWM Recovery or at least put the option on the main page. Do you think that Koush just likes to give users a hard time? Do you think he wants it to be difficult for them to update their ROMs? I don't think so. I think he understand that it is an advanced function that can be useful in some circumstances but is not typically needed in 99% of cases.
The developers also note that the cache is invalidated via hashes automatically. So its basically auto wiped.
The only reason that I wipe is when the nightly contains a new kernel, dalvik should be wiped to eliminate possible problems.
Sent from my Nexus S 4G using Tapatalk

[Q] About installing CM7 Nightly builds

Hey guys just a quick question about installing nightly builds on the nook. When Rom Manager asks whether to wipe data/cache and what not, if I select it, will it wipe the internal memory completely? leaving no user files behind? or will it only wipe the system files?
It will wipe everything and it will be a fresh install.
Sent from my LG Optimus V using Tapatalk
If you update, just wipe cache
It wipes the /data partition but doesn't wipe /sdcard /sd-ext or /met/emmc.
Sent from my MB860 using xda premium
EGM92 said:
Hey guys just a quick question about installing nightly builds on the nook. When Rom Manager asks whether to wipe data/cache and what not, if I select it, will it wipe the internal memory completely? leaving no user files behind? or will it only wipe the system files?
Click to expand...
Click to collapse
Just wipe Davlik.
if boot is longer than normal after wipe, it's normal!
votinh said:
If you update, just wipe cache
Click to expand...
Click to collapse
patruns said:
Just wipe Davlik.
Click to expand...
Click to collapse
So... just wipe Davlik Cache is what you guys are saying?
Good question helped out a newb here
Jiv_au said:
So... just wipe Davlik Cache is what you guys are saying?
Click to expand...
Click to collapse
Correct
Sent from my LG Optimus V using Tapatalk
Jiv_au said:
So... just wipe Davlik Cache is what you guys are saying?
Click to expand...
Click to collapse
Note: wipe cache and wipe Dalvik cache are 2 different things.
+ wipe cache is a quick way to clean the current running ROM
+ wipe Dalvik is a completely clean.
After wipe Dalvik, next time it boots, it will take a lot longer time due to the device has to re-compile the whole thing before ROM start running and booting.
I think I need to drop a few lines about wipe cache/Dalvik.
As I posted above, I said it wiped clean.
Apparently, I am NOT 100% correct.
I just updated to nb198, wiped cache (formatting /cache) then wipe Dalvik cache.
After done updating ROM, booting up, I expected everything clean, completely fresh.
It's not the case, I went to Market and all old search history were still shown. Not only with Market but other apps too.
So
a. either wipe cache/Dalvik is NOT completely clean wipe or
b. it was completely clean but somehow, those old cache info, which stored somewhere I don't know, get automatically restored back.
Okay, I did a quick read of the FAQ for CWR, and came across these:
Wipe cache partition
Wipes the cache partition of the device to clear all the data accumulated there over use. This is often used before installing a new ROM, app, kernel or any similar mod via recovery.
Wipe Dalvik Cache
Allows you to wipe the cache for the Dalvik virtual machine (the custom-built Java virtual machine for Android).This is required before most ROM installations and at other occasions too, for fixing some problems.
So, I'm taking this guide on board and will wiping Cache AND Davlik. So that's two steps prior to installing a new CM7 nightly build.
votinh said:
I think I need to drop a few lines about wipe cache/Dalvik. *snip*
a. either wipe cache/Dalvik is NOT completely clean wipe or
b. it was completely clean but somehow, those old cache info, which stored somewhere I don't know, get automatically restored back.
Click to expand...
Click to collapse
You didn't happen to store them in uSD card? Or perhaps app data/cache are separate from system data/cache...
Will look into it further...

[Q] Do I need to clear any cache before update?

Hi, do I have to clear dalvik cache before I update my ROM?
whiteyaksa said:
Hi, do I have to clear dalvik cache before I update my ROM?
Click to expand...
Click to collapse
It doesn't really matter. You're supposed to clear Dalvik cache and wipe the cache partition after the update, but I've forgotten to do it before and I haven't noticed any bugs so I would say just do it if you remember but if you forget it shouldn't make any difference.
in addition to the above ... most roms these days have those tasks done automatically as the rom installs! :-D
cheers

CM12 - black screen after enter my PIN :(

I have a weird issue with my N9005 (hlte). I just got it new and am still a little inexperienced with flashing it. Preblem occurs when flashing ANY CM12 based rom. Flashing works well with TWRP 2.8.5.0 but once Android booted just after enetring my PIN the display turns off and I can't do anything and have to hard reboot my phone. CM11 runs without any issues
I'd relly like to go for CM12 so any help will be appreciated.
LS.xD said:
I have a weird issue with my N9005 (hlte). I just got it new and am still a little inexperienced with flashing it. Preblem occurs when flashing ANY CM12 based rom. Flashing works well with TWRP 2.8.5.0 but once Android booted just after enetring my PIN the display turns off and I can't do anything and have to hard reboot my phone. CM11 runs without any issues
I'd relly like to go for CM12 so any help will be appreciated.
Click to expand...
Click to collapse
Did you wipe data and cache? After installation
kenny1991 said:
Did you wipe data and cache? After installation
Click to expand...
Click to collapse
I performed a full wipe before flashing. Any advantages wiping again, once flashed?
LS.xD said:
I performed a full wipe before flashing. Any advantages wiping again, once flashed?
Click to expand...
Click to collapse
If you read installation instructions from temasek it says clear dalvik and cache. For good measure. No full wipe after flash. Only cache and dalvik
If i full wipe my phone after flashing ... i got no System at all ...
It looks like -> this <-
e1n3r said:
If i full wipe my phone after flashing ... i got no System at all ...
It looks like -> this <-
Click to expand...
Click to collapse
Lol
Haha I did correct myself and told you to not full wipe after flash. Only do that before flashing. Wipe dalvik cache and cache after flashing.
Do a clean install and try again. Full system, data wipe and caches in recovery. Use twrp doing that. Then flash and wipe cache and dalvik. Reboot. Use the latest build 8.7
kenny1991 said:
Lol
Haha I did correct myself and told you to not full wipe after flash. Only do that before flashing. Wipe dalvik cache and cache after flashing.
Do a clean install and try again. Full system, data wipe and caches in recovery. Use twrp doing that. Then flash and wipe cache and dalvik. Reboot. Use the latest build 8.7
Click to expand...
Click to collapse
Yes Sir thats the way i do any time look my Video there is no full wipe after Install only Cache, Dalvik (Factory reset)
greets

Categories

Resources