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: Fix inconsistencies when using ACS and Shizuku #1373

Merged
merged 5 commits into from
Aug 21, 2024

Conversation

d4rken
Copy link
Member

@d4rken d4rken commented Aug 21, 2024

The underlying issue is/was that without root we can't access "inaccessible caches", which are the default public and private caches of an app. The caches that get cleared when pressing the "Clear cache" button in the system.

If we throw Shizuku into the mix, then we can access the PUBLIC default caches, but not the private default caches.

So with Shizuku the inaccessible caches entry overlaps with the public default caches.

  • When deleting the Default caches entry, then we also need to remove the Public default caches entry
  • When deleting the Public default caches entry, then we need to subtract the size from the Default caches entry.

Screenshot from 2024-08-21 16-45-08

"Inaccessible caches" already includes the public default cache size.
…n `InaccessibleCache` (contains public and private default caches) and `DefaultCachesPublicFilter`.

Both affect each other and this needs to be taken into account when deleting either, i.e. remove entries and recalculate sizes.
@d4rken d4rken added bug Something isn't working as expected c: AppCleaner Automation Accessibility service related ADB ADB/Shizuku related labels Aug 21, 2024
@d4rken d4rken merged commit 4bfd3ef into main Aug 21, 2024
16 checks passed
@d4rken d4rken deleted the appcleaner-inaccessible-size branch August 21, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ADB ADB/Shizuku related Automation Accessibility service related bug Something isn't working as expected c: AppCleaner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant