1. Download our Official Android App: Forums for Android!

Root Dalvik Cache wiping

Discussion in 'Android Devices' started by TehJibba, Jul 25, 2013.

  1. TehJibba

    TehJibba Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    53
    Posts:
    294
    Joined:
    Feb 10, 2013

    Feb 10, 2013
    294
    98
    53
    Male
    Website Development
    On A Boat
    So just wondering What CWM uses to wipe Dalvik-Cache so i may reuse it for my project
     

    Advertisement

  2. Rxpert83

    Rxpert83 Dr. Feelgood
    Rank:
     #16
    Points:
    1,953
    Posts:
    17,910
    Joined:
    Aug 30, 2011

    Aug 30, 2011
    17,910
    13,145
    1,953
    Male
    Graduate Student
    MN
    I'm not familiar with what your project is... Can you expand?
     
    TehJibba likes this.
  3. TehJibba

    TehJibba Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    53
    Posts:
    294
    Joined:
    Feb 10, 2013

    Feb 10, 2013
    294
    98
    53
    Male
    Website Development
    On A Boat
    Im working on adding aroma installer to my rom and would like to add the option to wipe dalvik-cache from inside aroma. Just not sure which partition its on or if its a diff command altogether

    **Edit sorry been staring at code all day, brain no worky this late lol
     
  4. jhawkkw

    jhawkkw Chinchillin'
    Rank:
    None
    Points:
    1,333
    Posts:
    10,628
    Joined:
    Jul 30, 2011

    Jul 30, 2011
    10,628
    7,392
    1,333
    Washington, DC
    The dalvik cache is stored in the userdata partition if memory serves me correctly.

    I think the address is /data/dalvik-cache
     
    TehJibba likes this.
  5. TehJibba

    TehJibba Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    53
    Posts:
    294
    Joined:
    Feb 10, 2013

    Feb 10, 2013
    294
    98
    53
    Male
    Website Development
    On A Boat
    Im guessing that a simple

    delete("/data/dalvik-cache ");

    would suffice then
     
  6. SuperR

    SuperR Android Expert
    Recognized Developer
    Rank:
     #55
    Points:
    433
    Posts:
    3,980
    Joined:
    Aug 23, 2010

    Aug 23, 2010
    3,980
    1,995
    433
    Male
    Invisible
    I think you want
    Code (Text):
    1. delete_recursive("/data/dalvik-cache");
     
    TehJibba likes this.
  7. TehJibba

    TehJibba Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    53
    Posts:
    294
    Joined:
    Feb 10, 2013

    Feb 10, 2013
    294
    98
    53
    Male
    Website Development
    On A Boat
    Indeed it is ty. Will be giving it a first run tonight so hoping all goes well

    *Edit* 420 lines later it should be good to go :p
     

Share This Page

Loading...