Clear Caches from ADB?

by LakeHMM   Last Updated May 27, 2015 00:04 AM

How do I clear caches (app, individual apps, Dalvik, ART if possible) via ADB?

Using apps, recovery, or doing it through Settings are not options for me. Also, my phone is not rooted.

Tags : adb cache dalvik art

Answers 1

ADB is close, but things like adb shell pm clear <package_name> to clear caches (and data, oops) from selected apps requires root (as would clearing Dalvik cache). But there's a similar approach to just wipe out all app caches (not Dalvik/ART, though): fastboot erase cache would do that with the device booted into the bootloader. Details can be found e.g. here: Useful ADB and Fastboot Commands and How to Use them.

May 26, 2015 22:36 PM

Related Questions

Android Bytecode Question [Technical]

Updated February 10, 2018 00:11 AM

Device stuck in bootloop after enabling ART

Updated May 04, 2015 21:04 PM