Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,732,704 Members 52,731 Now Online
XDA Developers Android and Mobile Development Forum

What is Dalvik Cache?

Tip us?
 
legaleye2005
Old
#1  
Senior Member - OP
Thanks Meter 0
Posts: 160
Join Date: Nov 2006
Default What is Dalvik Cache?

What is it? Thanks
 
alapapa
Old
(Last edited by neoobs; 27th May 2009 at 10:42 PM.)
#2  
alapapa's Avatar
Senior Member
Thanks Meter 7
Posts: 453
Join Date: Dec 2007
http://lmgtfy.com/?q=dalvik+cache
I can help you become more human

The Following 4 Users Say Thank You to alapapa For This Useful Post: [ Click to Expand ]
 
legaleye2005
Old
#3  
Senior Member - OP
Thanks Meter 0
Posts: 160
Join Date: Nov 2006
Ok, I searched and found it. But I'm running into a lil problem. I did the apps2sd thing on my 2gig sd card and now in settings, its showing 1gb for the sd card and 1gb total space for the internal storage(which isn't right because the phone doesn't come with that much storage, right?).

What am I doing wrong?
 
metasage
Old
#4  
metasage's Avatar
Senior Member
Thanks Meter 3
Posts: 122
Join Date: Dec 2008
Location: South Florida
Even after searching on Google it seems that the purpose of Dalvik Cache is very convoluted. From what little I understand it's the location where application data stored by the OS... but I could be wrong.
 
cyanogen
Old
#5  
cyanogen's Avatar
Retired Recognized Developer
Thanks Meter 5688
Posts: 2,485
Join Date: Jan 2009
Location: Seattle

 
DONATE TO ME
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.
The Following 39 Users Say Thank You to cyanogen For This Useful Post: [ Click to Expand ]
 
legaleye2005
Old
#6  
Senior Member - OP
Thanks Meter 0
Posts: 160
Join Date: Nov 2006
Cyanogen- Thanks! By the way, great job on the rom. I'm running it right now.

So can you tell me why people want to move it to their sd? (By doing the apps2sd, did I already do this?)

Thanks again.
 
metasage
Old
#7  
metasage's Avatar
Senior Member
Thanks Meter 3
Posts: 122
Join Date: Dec 2008
Location: South Florida
Quote:
Originally Posted by legaleye2005 View Post
Cyanogen- Thanks! By the way, great job on the rom. I'm running it right now.

So can you tell me why people want to move it to their sd? (By doing the apps2sd, did I already do this?)

Thanks again.
To save memory, of course. And you probably haven't moved your dalvik cache to your SD Card yet.
 
glock30
Old
(Last edited by neoobs; 27th May 2009 at 10:43 PM.)
#8  
glock30's Avatar
Senior Member
Thanks Meter 4
Posts: 135
Join Date: Feb 2009
Location: So Cal
Default Ironic

Quote:
Originally Posted by alapapa View Post
This post is the #2 link in that search... Just found that kind of ironic.
The Following 4 Users Say Thank You to glock30 For This Useful Post: [ Click to Expand ]
 
alapapa
Old
(Last edited by neoobs; 27th May 2009 at 10:43 PM.)
#9  
alapapa's Avatar
Senior Member
Thanks Meter 7
Posts: 453
Join Date: Dec 2007
I'm sorry I came off as snide and dismissive -- i guess i was...

I really should have just posted this:
http://en.wikipedia.org/wiki/Dalvik_virtual_machine
I can help you become more human

The Following User Says Thank You to alapapa For This Useful Post: [ Click to Expand ]
 
cyanogen
Old
#10  
cyanogen's Avatar
Retired Recognized Developer
Thanks Meter 5688
Posts: 2,485
Join Date: Jan 2009
Location: Seattle

 
DONATE TO ME
If you want to know about the guts of whats going on with the "dalvik cache", try here:

http://android.git.kernel.org/?p=pla...t.html;hb=HEAD

The Following 4 Users Say Thank You to cyanogen For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes