What is dalvik cache?


  1. Tamasabian

    Tamasabian Well-Known Member

    What exactly is the Dalvik Cache and when do I need to clear it? Is it something that should be done when you replace one rom with another or is a data wipe all you need to do?

    Any clarity on what a Dalvik cache is would be greatly appreciated. I just want to know the basics of what it is and when I do or do not need to use it.

    Thanks

    Advertisement
    :
  2. andrizoid

    andrizoid Well-Known Member

    im not exactly clear either, ui think it has to do with the application data though. from my work with the a2sd, the dalvik cache is a part of getting the apps to work. i say, any time you do a data wipe, do a dalvik wipe too
  3. andrizoid

    andrizoid Well-Known Member

    got an answer :)
    dalvik cache is a program cache area for the program dalvik. Dalvik is a java based virtual machine that is the bases for running your programs (the ones that have the .apk extension). In order to make access times faster (because there's not JIT (just in time) compiler installed by default), the dalvik-cache is the result of dalvik doing a optimization of the running program. Sounds confusing. It's similar to the prefetch files in Windows.
  4. Tamasabian

    Tamasabian Well-Known Member

    Ok. So I should just clear it when I do a data wipe to flash a new rom? Will it be a problem if I just do a data wipe and flash a new rom without doing the dalvik cache?
  5. andrizoid

    andrizoid Well-Known Member

    i have had issues when i dont clear the dalvik cache, but never had issues when i do. just cear it, nothing bad will happen and only good can come of it
  6. gnetiv

    gnetiv New Member

    is wiping the dalvik cahce the same as doing a 'wipe cache partition' when in ClockworkMod Recovery mode?

    Thanks in advance

    -g
  7. erisuser1

    erisuser1 Well-Known Member

    Simply put: no, not in every case; it depends a great deal on the ROM you are using.

    There are circumstances where it would have the same effect - for custom ROMs which are using cache2cache, it would have the effect of wiping the dalvik-cache for market apps only - and if it is a CyanogenMod6 ROM (e.g. many of the Eris "Froyo" ROMs), then it would wipe the dalvik-cache for the pre-installed or "system" apps.

    I'm not trying to confuse you - it's just that your question, as posed - doesn't have a "one size fits all" answer.

    The most general piece of advice that can be given is this: try to wipe as much as possible prior to installing a new ROM and avoid doing "upgrade" installs. If you want to be more clever than that (to avoid the hassles of re-configuring a new ROM), then you ought to understand how each of the ROMs (both the "before" and "after") are using /cache to see what you can "get away with".

    eu1
  8. Peter123

    Peter123 Well-Known Member

    think the Davlik cache or Davlik zone was first introduced by Star Trek and originally carried the name of Delphic Expanse .
    It is a narrow patch of space located between the Klingon Neutral Zone and the Cardassian Demilitarized Zone. It was mainly used as a recovery place when a temporaly anomaly occured.

    Or something like that.

    Peter
  9. scary alien

    scary alien not really so scary Moderator

    I thought it where the Time Lord's (Dr. Who) arch-enemy Davros from planet Skaro kept his Daleks ;)

    Exterminate! Exterminate! :D

    Dalek - Wikipedia, the free encyclopedia
    desmalta1 likes this.
  10. Peter123

    Peter123 Well-Known Member

  11. doogald

    doogald Guides Guide

  12. scary alien

    scary alien not really so scary Moderator

    Party-pooper! :D

    Yeah, I've seen that before too (but what fun is that?) ;)

    doogald, I had trouble launching that link (the parens freaked-out my browser), but this link might work better: Dalvik (software) - Wikipedia, the free encyclopedia

    Quote from this link: Dalvik, like the rest of Android, is open-source software. It was originally written by Dan Bornstein, who named it after the fishing village of Dalv
  13. Peter123

    Peter123 Well-Known Member

    Now seriously:

    Biff Dalvik 3rd, was a 2nd rate software architect of the 1st version of Android at Google.
    He actually did nothing useful at the company and the only reason they kept him there that he was a distant second cousin of Mr Google himself.

    At his retiremnt party they honored him by naming a (then) useless piece of empty memory patch between the screen memory area and the keyboard driver - the Dalvik Cache.

    That very area later became a valuable real esate of the phone memory.
    .P.
    lightlover and PrinceCorwin like this.
  14. scary alien

    scary alien not really so scary Moderator

    Alright Peter, you win! :p
    Peter123 likes this.
  15. Peter123

    Peter123 Well-Known Member

    ^ yippie.
  16. maluminse

    maluminse Well-Known Member

    Titanium has it as an option. Im not installing a rom or anything. Is it ok/good/bad to wipe the cache during normal operation? (rooted)
  17. Bob Cat

    Bob Cat Careful, They're sharp!! Moderator

    I use Cache Cleaner NG. It does it automagically.:D
  18. Erietha88

    Erietha88 New Member

    Well, in my case it was a miracle that helps me. I have Sony Ericsson X10 mini come with pre-installed Office Suite. After failed updating, it always showing error when trying to update. So i rooted my phone and use titanium backup to wipe data (Office Suite & Office Suite Service Updater). Voila!! Office Suite return to its previous normal state and updating was working (just make sure have a stable connection so downloading update won't stop in the middle and causing that errror again) :D i need
  19. Gadgetsage

    Gadgetsage Member

    had "read only" error wit radio rip/spartacus rex (awesome streaming recorder btw) and when trying to download in net browser, even tho astro would still (mostly) see card and access files.

    error check didn't fix it.

    successfully fixed it by wiping cache/dalvik cache!

    Thanks for all those who've added to the documentation of errors and fixes; I'm using rooted Evo via unrevoked3 and stock ui.

    And thanks for explaining, I'm one of those that doesn't really grok and remember stuff unless I'm told WHAT it is and does and it makes sense.
  20. maluminse

    maluminse Well-Known Member

    Tried with titanium wants non free app. So I skipped it.

    I did dl ng cleaner thanks for that recommendation..
  21. kenmaude

    kenmaude New Member

    I just wanted to put my 2 cents in.

    I was trying to install the latest ROM from CM and I was having trouble with the phone booting into boot, then to fastboot, only to find that it couldn't seem to find any image. After reading this thread I grew some balls and chose all 3 check boxes (backup current Rom, clear data and cache, and clear dalvik cache).

    all of a sudden, worked like charm!

    fair warning though, I lost all of my apps and all settings were reset. In comes google to save the day as I have been using the option to sync my device with google and it went and reinstalled everything over a 10 minute sync operation all by itself. I love my little pocket robot!

    woot!
  22. doogald

    doogald Guides Guide

    This is par for the course, except in some very specific circumstances:

    - you are going from stock to a very-close-to-stock ROM, such as xtrSENSE, Evil Eris, Plain Jane, or CondemnedSoul's 666th Sense. You generally should wipe Dalvik, but you can usually get away with not wiping data and be all set. (Note: xtrROM is *not* one of these ROMs - you need to wipe data/factory reset when you install this ROM, unless ...)

    - usually (though not always) you can upgrade from one version of a ROM to another with just a Dalvik cache wipe.

    We all who know this should apologize for not making this very clear to people rooting their phone for the first time.
    lightlover and kenmaude like this.
  23. CussinSailor

    CussinSailor New Member

    App2SD will also let you clear your cache and move apps to your SD card which could help. It's not been a total solution for me, but it has helped with this whole LG Ally not having enough memory thing.
  24. Bob Cat

    Bob Cat Careful, They're sharp!! Moderator

    Your in the wrong forum.;)
  25. scary alien

    scary alien not really so scary Moderator

    Welcome to the AndroidForums, CussinSailor (and thanks for not cussing, LOL ;) :)).

    Yeah, you are going to see a big jump in performance when you get your next device. Bigger, better screens, more storage for apps, etc.

    The Eris devs certainly did a lot with building apps2sd into a lot of the custom ROMs as I'm sure the Ally root guys did, too.

    Be sure to check-out the Ally root sub-forum if you haven't already:

    Ally - All Things Root - Android Forums

    Cheers and again, welcome to the AndroidForums!
Loading...

Share This Page