When I'm updating a custom ROM, there's always an instruction to wipe the Dalvik cache. I don't see a reason why this is necessarily.
Watching the logcat while the system is booting I can clearly see that if an app changed, its
dex file is invalidated and then regenerated. Yet still when I mention this anywhere I'm met with silence. As if not even some ROM developers are aware of this and they're only doing this because everyone else does.
So the questions:
- Was there an Android version where Dalvik files were not invalidated during boot?
- Is there any advantage in doing this yourself, instead of letting the system do the work it's supposed to do?
An ideal answer would include references to the relevant code, so I would have a reference the next time this comes up.