Skip to content

AppCleaner: Fix inconsistencies when using ACS and Shizuku#1373

Merged
d4rken merged 5 commits into
mainfrom
appcleaner-inaccessible-size
Aug 21, 2024
Merged

AppCleaner: Fix inconsistencies when using ACS and Shizuku#1373
d4rken merged 5 commits into
mainfrom
appcleaner-inaccessible-size

Conversation

@d4rken
Copy link
Copy Markdown
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

d4rken added 5 commits August 21, 2024 14:58
"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 (ACS) ADB ADB/Shizuku related labels Aug 21, 2024
@d4rken d4rken merged commit 4bfd3ef into main Aug 21, 2024
@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 (ACS) bug Something isn't working as expected c: AppCleaner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant