/android-appcachecleaner

Android Cache Cleaner

Primary LanguageKotlinGNU Affero General Public License v3.0AGPL-3.0

Android Cache Cleaner

Description

Since Android 6 (Marshmallow) is not possible anymore to clear cache of all apps at same time and Google has moved this permission to system apps only. There is only one possible way left - open manually info about application and find specific "Storage" menu and then press "Clean cache" button.

AndroidCacheCleaner can request all installed user and system apps and it replaces all manual actions related to clean cache using Accessibility service.

AndroidCacheCleaner saves the last checked apps to show them next time only.

Get it on F-Droid

or get the APK from the Releases Section.

screenshots

Android 11 and early Android 12 and later
accessibility button in navbar floating accessibility button
Android 11 and early Android 12 and later

How to use

  1. Click clean cache of User Apps, System Apps OR All Apps
  2. Enable Usage Stats support for AppCacheCleaner if it is required
  3. Enable Accessibility support for AppCacheCleaner 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 button to interrupt process OR wait until process will be finished
  7. Press Close App OR clean app from task manager to disable Accessibility

NOTE: Starting with Android 11 it is not possible to dynamically add and hide the accessibility button and the accessibility service must be started with it. After closing AppCacheCleaner, the accessibility service will be automatically destroyed. That is why every run AppCacheCleaner need to re-enable access to Accessibility.

Customized Settings UI

Many companies are supplied Customized Android UI, including Settings. It can cause issue becuase app is looking specific text and if doesn't match then app doens't do anything.

  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 app with specific locale (change on required locale in Settings and go back into app)
  6. Open menu in the top right corner and select Add Extra Search Text / Storage and enter custom search text for "Storage" menu" and press "OK", or "REMOVE" otherwise
  7. Open menu in the top right corner and select Add Extra Search Text / Clear cache and enter custom search text for "Clear cache" button" and press "OK", or "REMOVE" otherwise

Icon copyright

Icon made by Smashicons from Flaticon