What is dalvik cache?

gflam

Developer
Developer
Theme Developer
Joined
Jun 14, 2010
Messages
1,900
Reaction score
29
Location
Jersey
Just wondering because i always see it during my nandroid backup and usually takes the longest
 

Backnblack

Premium Member
Premium Member
Joined
Nov 18, 2009
Messages
11,106
Reaction score
27
Current Phone Model
iPhone 7+ 256gb
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.
 

Taegost

Member
Joined
May 16, 2010
Messages
687
Reaction score
1
Location
Tampa Bay, Fl
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 :)
 
Top