Dalvik-Cache Cleaner Script


  1. savoxis

    savoxis Well-Known Member Developer

    So. I decided to get off my high horse and do some thinking.

    It is POSSIBLE that when you delete applications thru the Application Manager the dalvik-cache (dex file) could be left behind.

    Just because I personally have not experienced this does not mean it is not possibly a bug. So I made an init script, this script will go thru your dalvik-cache comparing the dex files within with your installed applications. When it finds a dex file that does not have an application associated with it it will remove the dalvik-cache entry.


    This package is a recovery flashable zip, it will work on any rom that supports init.d scripts and even on roms that do not, if you run the cleaner manually.

    After you flash this it will automatically run during init.

    You can manually run thru a rooted terminal by typing dalvik-cleaner

    like I said, I havent had any problems with this, but I keep my app turnaround low and my mtds clean. I could see this helping a few of you where your old dalvik cache entries are somehow not getting erased, or if you manually delete apks,

    Advertisement
    jeckel, k.c.cole, bnitty and 2 others like this.
  2. lawizard

    lawizard Active Member

    If you have Titanium you can also clean up you Dalvik Cache. I used the Dalvik Cache cleaner in Titanium and got back about 15mb.
  3. tigersfan1

    tigersfan1 Well-Known Member


    Wait how do you do that because titanium only backups and restores
  4. KingOfGreen

    KingOfGreen Well-Known Member


    The pro version had an option to clean up dalvik cache and market dr, fixes broken market links dont know if it requires pro or not. It can also sync all backups to dropbox in pro version.
  5. dautley

    dautley VIP Member VIP Member

    LOL! titanium does much more than backup & restore open it up, press the phones menu key and choose "more"
  6. tigersfan1

    tigersfan1 Well-Known Member


    Wow never saw that before. I fell like an idiot. But doesnt clean that cache
  7. admn81

    admn81 Well-Known Member

  8. admn81

    admn81 Well-Known Member

    Thanx for going out of your way to make something like this! I have what is probably a stupid question, but is this just a one time cleaning, or does this zip clean as needed automatically? If that makes sense..lol
  9. Cl8rs

    Cl8rs Well-Known Member

    I am sorta wondering this myself...
  10. dautley

    dautley VIP Member VIP Member

    Mine says "clean up the Dalvik cache" second from the top but it's the pro version.
  11. bnitty

    bnitty Well-Known Member

    works great cleared up 19.6mb of space effortlessly
  12. savoxis

    savoxis Well-Known Member Developer

    This script cleans automatically every boot
  13. tigersfan1

    tigersfan1 Well-Known Member

    I don't know if I did this right please tell me if I am wrong:
    Steps
    1) Put file on sd card
    2) Went into recovery and made a backup
    3) Installed it from my sd card
    4) Rebooted
    5) Went into terminal emulator and type in dalvik-cleaner
    6) Rebooted my phone

    Is that right?
  14. AndroidKris

    AndroidKris Well-Known Member


    It appears you missed giving "su" permissions in step five.
  15. tigersfan1

    tigersfan1 Well-Known Member

    Sorry forgot to put that down but I did do that so ya
  16. AndroidKris

    AndroidKris Well-Known Member


    Then it appears you did everything right.
  17. tigersfan1

    tigersfan1 Well-Known Member

    Ok probably was clean already then
  18. jeckel

    jeckel Well-Known Member

    thank you :D!!!!!
Loading...

Share This Page