Skip to content

AppCleaner: Shizuku support to trim-caches - #422

Merged
d4rken merged 6 commits into
mainfrom
shizuku_appcleaner
Jun 27, 2023
Merged

AppCleaner: Shizuku support to trim-caches#422
d4rken merged 6 commits into
mainfrom
shizuku_appcleaner

Conversation

@d4rken

@d4rken d4rken commented Jun 27, 2023

Copy link
Copy Markdown
Member

Support for trim-caches (aka freeStorageAndNotify) via Shizuku.

This is sadly not what I hoped would be possible:
It's not cache deletion for individual apps, which is not possible via ADB/Shell permissions due to:

W PackageManager: Calling uid 2000 does not have android.permission.INTERNAL_DELETE_CACHE_FILES, silently ignoring

The trim-caches also comes with the following restrictions:

  • Can't clear system app cache on some ROMs
  • Can only clear all apps, no exclusions.

If you try to clear caches for a system app, or an individual app, SD Maid will still use the accessibility service.

If you don't include system apps and delete all results that are found (e.g. via dashboard or scheduler) then ACS will not be used and all work can be performed in the background.

@d4rken d4rken added c: AppControl ADB ADB/Shizuku related enhancement New feature, request, improvement or optimization c: AppCleaner and removed c: AppControl labels Jun 27, 2023
@d4rken

d4rken commented Jun 27, 2023

Copy link
Copy Markdown
Member Author

Part of #39

d4rken added 2 commits June 27, 2023 14:54
…uish between ACS/TRIMCACHES based deletion with regards to scheduler triggered tasks.
@d4rken
d4rken merged commit 3f297db into main Jun 27, 2023
@d4rken
d4rken deleted the shizuku_appcleaner branch June 27, 2023 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ADB ADB/Shizuku related c: AppCleaner enhancement New feature, request, improvement or optimization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant