2

I want to clear all app caches mainly to reduce the size of and speed up backups. This feature has been supported in Android 4, but appears to have been removed a long time ago.

A root-only method is fine.

user598527
  • 662
  • 1
  • 8
  • 27
  • 3
    With root: for cache in /data/user*/*/*/cache/*; do rm -rf "$cache"; done. For other possible locations see https://android.stackexchange.com/a/218507/218526 – Irfan Latif Aug 08 '20 at 18:44
  • @alecxs https://f-droid.org/packages/theredspy15.ltecleanerfoss/ - "Android API 23+ (Marshmallow) no longer allows apps to clean other app’s caches, thus the claim of cleaners clearing them is completely false." – user598527 Aug 09 '20 at 06:37
  • ...from the Google Play page: "✔ Clear all apps cache at once (1-tap cache cleaner without being root)" – user598527 Aug 09 '20 at 06:43
  • @alecxs: Root methods are accepted, yes, I was only confused how the app clears caches without root since that doesn't be supported by Android anymore? – user598527 Aug 09 '20 at 08:28
  • Link2SD requires root permissions for clear cache widget – alecxs Aug 09 '20 at 08:30
  • This app let's you add an widget to clean cache. I have a paid version of app, not sure if it is available in free version or by the same developer, try this one (developer has all features built in in the first linked app and smaller apps separately) – beeshyams Aug 09 '20 at 10:09
  • I'm considering deleting this question due to potential risks and questionable benefits. Neo Backup (formerly OAndBackupX) has an option to exclude app caches. – user598527 May 12 '22 at 09:57

0 Answers0