What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

What is dalvik cache?

gflam

Developer
Developer
Theme Developer
Just wondering because i always see it during my nandroid backup and usually takes the longest
 
Simple explanation:

When Android starts up, the DalvikVM looks thru all of your applications (.apk files) and frameworks, and builds a tree of dependencies. It uses this dependency tree to optimize the bytecode for every application and stores it in the Dalvik cache. The applications are then run using the optimized bytecode. This is why when you install a new ROM, sometimes it takes a very long time to boot for the first time. Any time an application (or framework library) changes, it's reoptimized and the cache is updated.
 
Thank you for that explanation, it's clear, concise, and not overly complicated.
I was wondering this as well but was too afraid of the answer :)
 
Back
Top