Wiping Dalvik Cache does nothing - Android Software/Hacking General [Developers Only]

According to this
...does precisely nothing to assist troubleshooting. All it will do is make your next boot take 10 times as long.
I think there is a big misunderstanding about what the dalvik cache is.
The dalvik cache is simply a cache of dex files which are maintained by the dalvik vm, which generates them if they don't exist and regenerates them when required. Some interesting reading about dalvik and dex here.
I'm not sure where the obsession with wiping dalvik came from, probably some XDAtard ****, but seriously, it's a waste of time, don't even bother doing it, and don't mention that you have done it as part of troubleshooting because I will take the piss out of you... mercilessly.
If a wipe is advised, that means a factory reset (userdata and cache). Nothing more, nothing less.
Although wiping cache is pointless most of the time too...
I hope this clears up some odd misconceptions which some users have....
Click to expand...
Click to collapse
Source: http://forum.oxygen.im/viewtopic.php?id=1325
Any thoughts?

For starters although the Dalvik VM regenerates Dalvik Cache when deleted. It does not remove unneeded .dex files, so regular wiping of the Dalvik Cache can be used to free up wasted space on /data/ partition.
Secondly sometimes a wipe of the Dalvik Cache is needed after modding an already installed application before changes can be seen.
And regarding wiping dalvik cache during troubleshooting for bootloops ect being pointless. I disagree, say for example you modified the framework, after you pushed it back to device, you started getting bootloops. This could simply be because the Dalvik Cache is using the bytecode from the original unmodified framework. By wiping the Dalvik Cache, it will be rebuilt with the correct .dex file for the modified framework.
Sent from my HTC Sensation XL with Beats Audio X315e using Tapatalk 2

Related

question about wiping

quick question, im new to rooting the transforner and i just want to know, when i wipe to install prime will it erase my music that is on the internal storage? If so, is there a different way to wipe to keep certain files? Cause i also have my titanium backup files on internal as well, thanks in advance.
First of all, your title made me laugh for a good 1 minute. Somehow, "question about wiping" just doesn't sound very technical and sound more like it has something to do with our bodily functions.
No, "wiping" cache and data will not touch your files. Android is different than windows. Windows OS has 1 big partition where everything is in there. Android has 12 partitions, each one has it's own purpose. When you wipe the data partition, what you're really wiping is app data partition. There is also a user data partition where all your files are kept. Unless you do a format of your sdcard in the advance menu, all your user files are safe.
So, before you install a custom rom, make sure you wipe cache and data/factory reset. Also wipe dalvik cache. Trust me, all your porn files will still be there waiting for you.
Sorry, I have a weird sense of humor.
Lol, thanks buddy. Ive never had an android device with an internal sdcard so i was a little concerned. Thanks again.
goodintentions said:
So, before you install a custom rom, make sure you wipe cache and data/factory reset. Also wipe dalvik cache.
Click to expand...
Click to collapse
I was wondering, is a data/factory wipe always necessary? When I flashed Revolver 3.9.3 for the 1ste time from stock rom, I did a data/factory wipe, cache wipe and dalvik cache wipe in CWM. When updating this Revolver rom to 3.9.5 using zip-file, I only wipe cache and dalvik cache. On my Moto I wipe cache and dalvik cache before and after the zip update when updating a custom rom, but I'm not sure if the latter is necessary. I guess a data/factory wipe is only necessary when flashing a new base rom?
wiping is usually recommended as sometimes if you install with out wiping it will cause weird problems :/

[Q] "Wipe cache partition" in recovery mode seems useless? What is it for exactly??

[Q] "Wipe cache partition" in recovery mode seems useless? What is it for exactly??
Hi. I'm using Samsung Galaxy Ace, Android 2.3.6, rooted.
I had 2 apps with cache data:
1. the system app "Internet" = 444KB
2. a user app called "RedLaser" (for reading QR codes) = 45KB
I turned off phone, went into recovery, then "wipe cache partition", then reboot.
It did nothing! The two apps still had cache, and I just deleted them manually in Settings -> Manage Applications.
So what does the "wipe cache partition" do anyway?
Also, if a phone is unrooted, is there a way to clean the dalvik cache?
Thanks all!
Its for wiping the cache of your phone application..some times if you not do this then you r apps will crash in the new rom..so its optional thing.but some times it needed...understood??
shyamjptpm, did you even read the details of my post? The cache of those two apps were not deleted through "wipe cache partition" in recovery mode. So I was wondering what it does, exactly, since it DOES NOT wipe the apps' cache.
The cache is an app cache, but not a cache of application data. You wipe that through application management (or manually with a file explorer or shell).
Think of it as an Android cache that it uses for apps and components.
Hey Archer, an app cache? Like the dalvik cache? The dalvik is for starting apps faster, correct? So is "Dalvik cache" same as the cache referred to in "wipe cache partition"?
MarlonKaye said:
Hey Archer, an app cache? Like the dalvik cache? The dalvik is for starting apps faster, correct? So is "Dalvik cache" same as the cache referred to in "wipe cache partition"?
Click to expand...
Click to collapse
No it's not apps - I explained that badly. It's regularly accessed data and app components, but not app-specific data. The Dalvik cache is the application cache - they are two different things.
Additionally depending on which recovery you are using, wiping the cache might not properly work all the time, that is why you read so many posts saying wipe +3; meaning to run the wipe cache (and dalvik) at least 3 times. I know I had issues with one specific recovery and switched to another because of it...
Archer said:
No it's not apps - I explained that badly. It's regularly accessed data and app components, but not app-specific data. The Dalvik cache is the application cache - they are two different things.
Click to expand...
Click to collapse
Hey, is it possible to wipe cache partition without getting into recovery mode?
And wiping the cache partition and dalvik cache will delete my game progress??
Please clarify this for me bro...

Wipe Dalvick cache

I am running a custom rom and if i wipe dalvick cache will my phone still be ok, or will I get any errors?
No problem at all.
Though be patient upon reboot as it will have to rebuild your dalvick & therefore will take a LiL longer to boot.
ian619420 said:
I am running a custom rom and if i wipe dalvick cache will my phone still be ok, or will I get any errors?
Click to expand...
Click to collapse
Should be alright, usually if you run into problems thats what you do as well as fixing permission. :good:
ian619420 said:
I am running a custom rom and if i wipe dalvick cache will my phone still be ok, or will I get any errors?
Click to expand...
Click to collapse
Yes you will be ok if you wipe the system or dalvik cache. In fact, I would recommend it before you try to flash any kind of update, mod, or apk. Just make sure to run Fix Permissions after you do, this will save tons of headaches down the road if you make it a habit. Also check out Vincom's stickies at the top of the SkyRo Developement thread, they've got a ton of info in them.
I do not believe you mean system. Wiping dalvik is the odex optimized (for your rom...) files that run when you launch an app.
Wiping the cache partition is fine as well. You should get an optimizing applications dialogue when you reboot.
Sent from my SAMSUNG-SGH-I727 using xda app-developers app

[Q] ART: To Dalvik-Cache wipe or not

A simple but yet puzzling question - and I would so much avoid rebuilding the ART cache ...
If one chooses to wipe the dalvik-cache from recovery will this magically return some of the "wasted" space or this is the same folder used for the ART cache?
More technical: where is the ART cache stored? in a special folder like data/dalvik-cache or it's coupled with the apps themselves?
kraven001 said:
A simple but yet puzzling question - and I would so much avoid rebuilding the ART cache ...
If one chooses to wipe the dalvik-cache from recovery will this magically return some of the "wasted" space or this is the same folder used for the ART cache?
More technical: where is the ART cache stored? in a special folder like data/dalvik-cache or it's coupled with the apps themselves?
Click to expand...
Click to collapse
you will save/recover space from "cache/dalvik-cache" However, the "data/dalvik-cache" will stay even if manually delete the files, it will rebuild upon reboot.

[noob question][rom flashing]

Hi..
I am always confused about this. When flashing a custom ROM, will wiping the system not delete the ROM zip file?
Also is wiping cache, system and data the only things I need to do.
Like there are so many confusing posts in and out of xda. The official CM page says nothing about wiping cache and system while the CM FAQ page here says to wipe all three I.e. cache , data and system.
Some say to do factory reset and some say not to.
What do I do man?
Cache, Data, System and Internal Storage are all separate partitions. Wiping one does not affect the others. Factory reset usually does the first three, you have to manually specify anything else.
Your ROM zip will be on the 'Internal Storage' partition which is why it survives a system wipe.
lost101 said:
Cache, Data, System and Internal Storage are all separate partitions. Wiping one does not affect the others. Factory reset usually does the first three, you have to manually specify anything else.
Your ROM zip will be on the 'Internal Storage' partition which is why it survives a system wipe.
Click to expand...
Click to collapse
Thanks for your quick response man. Also one more thing.
Is it necessary to wipe all the three when flashing a ROM and does the order in which they are wiped matter?
It's a very good idea. Not wiping can cause all kinds of problems. Order does not matter.
lost101 said:
It's a very good idea. Not wiping can cause all kinds of problems. Order does not matter.
Click to expand...
Click to collapse
Another thing again..
Should i wipe data/factory rest or just wipe data..
And in case of cache should i wipe cache partition or just cache or dalvik cache also..
Thanks in advance!
Meuuks13 said:
Another thing again..
Should i wipe data/factory rest or just wipe data..
And in case of cache should i wipe cache partition or just cache or dalvik cache also..
Click to expand...
Click to collapse
Wipe them all if you want, but factory reset is usually enough.
follow the instructions in the ROM thread where you looked, some steps omitted or changed to be installed, I hope you have no problems, I recommend that you make a backup of your current ROM.

Categories

Resources