Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppCleaner: Shizuku support to trim-caches #422

Merged
merged 6 commits into from
Jun 27, 2023
Merged

AppCleaner: Shizuku support to trim-caches #422

merged 6 commits into from
Jun 27, 2023

Conversation

d4rken
Copy link
Member

@d4rken d4rken commented Jun 27, 2023

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
Copy link
Member Author

d4rken commented Jun 27, 2023

Part of #39

…uish between ACS/TRIMCACHES based deletion with regards to scheduler triggered tasks.
@d4rken d4rken merged commit 3f297db into main Jun 27, 2023
9 checks passed
@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.

None yet

1 participant