Skip to content

AppCleaner: Handle "Manage space" button on HyperOS2#1680

Merged
d4rken merged 1 commit into
mainfrom
appcleaner-acs-poco
Apr 9, 2025
Merged

AppCleaner: Handle "Manage space" button on HyperOS2#1680
d4rken merged 1 commit into
mainfrom
appcleaner-acs-poco

Conversation

@d4rken

@d4rken d4rken commented Apr 9, 2025

Copy link
Copy Markdown
Member

Apps that have a PackageInfo.manageSpaceActivityName may display "Manage space" instead of "Clear data". It's possible that SD Maid tries to clear such an apps cache via Shizuku, but times-out, and then tries it via ACS. If the cache is then (despite the timeout) still cleared via adb trim-caches then SD Maid sits there starting at the "Manage space" button. We now detect this, abort the ACS plan, and treat it as success.

Fixes #1669

Apps that have a `PackageInfo.manageSpaceActivityName` may display "Manage space" instead of "Clear data".
It's possible that SD Maid tries to clear such an apps cache via Shizuku, but times-out, and then tries it via ACS.
If the cache is then (despite the timeout) still cleared via `adb trim-caches` then SD Maid sits there starting at the "Manage space" button.
We now detect this, abort the ACS plan, and treat it as success.

Fixes #1669
@d4rken d4rken added bug Something isn't working as expected c: AppCleaner Automation Accessibility service related (ACS) Device specific A device specific issue or behavior. labels Apr 9, 2025
@d4rken d4rken merged commit ba5241e into main Apr 9, 2025
@d4rken d4rken added the ROM: HyperOS Xiaomi, Redmi etc. label May 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Automation Accessibility service related (ACS) bug Something isn't working as expected c: AppCleaner Device specific A device specific issue or behavior. ROM: HyperOS Xiaomi, Redmi etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ACS based cache deletion hangs on POCO/HyperOS

1 participant