Skip to content

AppCleaner: Fix ACS based cache deletion on HyperOS2 ROMs with updated Security app - #1652

Merged
d4rken merged 2 commits into
mainfrom
appcleaner-hyperos2
Apr 1, 2025
Merged

AppCleaner: Fix ACS based cache deletion on HyperOS2 ROMs with updated Security app#1652
d4rken merged 2 commits into
mainfrom
appcleaner-hyperos2

Conversation

@d4rken

@d4rken d4rken commented Apr 1, 2025

Copy link
Copy Markdown
Member

The updated "Security" app com.miui.securitycenter v10.6.5-250318.1.1(40001065) has changed the UI layout.

It now uses uncommon RadioButtons that are not clickable in an animated bottom sheet dialog. There is no valid PERFORM_CLICK target available. We have to fall back to emulating a manual "tap" gesture and hide the overlay shortly to be able to perform it.

We also have to wait until the bottom sheet dialog animation has settled so we can get the correct coordinates of the element we want to tap.

Fixes #1648

…d Security app

The updated "Security" app `com.miui.securitycenter` v10.6.5-250318.1.1(40001065) has changed the UI layout.
It now uses uncommon RadioButtons that are not clickable in an animated bottom sheet dialog. There is no valid `PERFORM_CLICK` target available.
We have to fall back to emulating a manual "tap" gesture and hide the overlay shortly to be able to perform it.
We also have to wait until the bottom sheet dialog animation has settled so we can get the correct coordinates of the element we want to tap.
@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 1, 2025
@d4rken
d4rken marked this pull request as ready for review April 1, 2025 14:33
@d4rken
d4rken merged commit c0c9a76 into main Apr 1, 2025
@d4rken
d4rken deleted the appcleaner-hyperos2 branch April 1, 2025 14:34
d4rken added a commit that referenced this pull request Apr 2, 2025
The version check was too strict, the problematic `com.miui.securitycenter` package has different versions on different ROMs.
Relaxing this now to just check the element type, if it is a radiobutton we use the click gesture otherwise we use the normal click action.

Re #1652
Fixes #1648
d4rken added a commit that referenced this pull request Apr 2, 2025
The version check was too strict, the problematic `com.miui.securitycenter` package has different versions on different ROMs.
Relaxing this now to just check the element type, if it is a radiobutton we use the click gesture otherwise we use the normal click action.

Re #1652
Fixes #1648
d4rken added a commit that referenced this pull request Apr 11, 2025
…ity-Center" update

Similar to the update HyperOS2 has for the Security-Center app (`com.miui.securitycenter`):
The buttons are no longer clickable by the default action and seem to require a gesture.
Buggy UI framework by Xiaomi?

See #1648 and PR #1652
d4rken added a commit that referenced this pull request Apr 11, 2025
…ity-Center" update

Similar to the update HyperOS2 has for the Security-Center app (`com.miui.securitycenter`):
The buttons are no longer clickable by the default action and seem to require a gesture.
Buggy UI framework by Xiaomi?

See #1648 and PR #1652

Fixes #1691
d4rken added a commit that referenced this pull request Apr 11, 2025
…ity-Center" update

Similar to the update HyperOS2 has for the Security-Center app (`com.miui.securitycenter`):
The buttons are no longer clickable by the default action and seem to require a gesture.
Buggy UI framework by Xiaomi?

See #1648 and PR #1652

Fixes #1691
@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 cache deletion broken after updating com.miui.securitycenter

1 participant