• Stars
    star
    386
  • Rank 111,213 (Top 3 %)
  • Language
    Kotlin
  • License
    GNU Affero Genera...
  • Created over 2 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Android Cache Cleaner

Cache Cleaner

Description

Since the release of Android 6 (Marshmallow), the option to clear the cache of all apps at once has been restricted by Google to system apps only. This means that users no longer have the convenience of clearing the cache of all their apps simultaneously. To clear the cache of individual apps, one must manually navigate to each app's "App Info" screen, locate the "Storage" menu, and then select the "Clean cache" button.

To simplify this process and save time, Cache Cleaner requests a list of installed apps on your device and utilizes the Accessibility service to replace the manual steps involved in clearing the cache. This allows for a more convenient and automated process of cache cleaning.

Cache Cleaner provides the added benefit of customizable app lists. This functionality allows you to create personalized lists of specific apps, giving you the flexibility to selectively clear the cache of only the apps you choose.

Get it on F-Droid

or get the APK from the Releases Section.

Clean Cache has been removed from Google Play, no more app on Google Play

FAQ

  • Clear cache process unexpectedly stops -> please read the issue #8
  • Clean Cache does not anything -> please read the section Customized Settings UI

Warning ⚠️

Since Android 13 Accessibility APIs is restricted for 3rd party apps, the solution can be found here at the paragraph Allow restricted settings.

screenshots

Main Screen Package list Cache cleaning process
Main Screen Package list Cache cleaning process

How to use

  1. Click clean cache of User Apps, System Apps OR All Apps
  2. Enable Usage Stats support for Cache Cleaner app if it is required
  3. Enable Accessibility support for Cache Cleaner app if it is required
  4. Check required apps in list (use floating button to check/uncheck all apps)
  5. Press Clean Cache floating button to run cache clean process
  6. Press Accessibility overlay button to interrupt process OR wait until process will be finished
  7. (optional) Press Stop Accessibility service to disable Accessibility service

Customized Settings UI

Many companies or Android ROMs add or change default Android UI, including Settings. This can cause an issue because the Cache Cleaner app is looking for specific text and if it doesn't match, the app does nothing.

Please follow the steps below to resolve clear cache issue:

  1. Select any app and go to "App Info"
  2. Write down text for "Storage" menu
  3. Go to "Storage" menu
  4. Write down text for "Clear Cache" button
  5. Open Cache Cleaner app with specific locale (change on required locale in Settings and go back into Cache Cleaner app)
  6. Open Settings menu in the top right corner and find section Add Extra Search Text
  7. Tap on Clear Cache, enter the custom search text for "Clear Cache" button" in input field and press "OK" to save it. To remove custom search text for "Clear Cache" button" just erase a whole text in input field and press "OK"
  8. Tap on Storage, enter the custom search text for "Storage" menu" in input field and press "OK" to save it. To remove custom search text for "Storage" menu" just erase a whole text in input field and press "OK"

Xiaomi smartphones with specific regional MIUI firmware must use the different clear cache scenario:

  1. Open Settings menu in the top right corner and find section Other
  2. Click Clear cache scenario and select Xiaomi MIUI

Icon copyright

Broom icon created by Smashicons - Flaticon