Skip to content

AppCleaner: Simplify MIUI automation logic - #1818

Merged
d4rken merged 1 commit into
mainfrom
appcleaner-acs-miui-v11-api28-A9
Jun 3, 2025
Merged

AppCleaner: Simplify MIUI automation logic#1818
d4rken merged 1 commit into
mainfrom
appcleaner-acs-miui-v11-api28-A9

Conversation

@d4rken

@d4rken d4rken commented Jun 1, 2025

Copy link
Copy Markdown
Member

This commit refactors the MIUI automation specification to simplify node selection and improve robustness across different MIUI versions.

Previously, the automation differentiated between MIUI versions (10/11 vs 12+) to determine if a node was a TextView or a Button and whether to find a clickable parent.

This has been simplified:

  • The automation now primarily looks for nodes with text matching "Clear data" or "Clear cache".
  • If the found node is not clickable, it will attempt to find a clickable parent.
  • The explicit version check (isMiui12Plus) has been removed.

Fixes #1814

This commit refactors the MIUI automation specification to simplify node selection and improve robustness across different MIUI versions.

Previously, the automation differentiated between MIUI versions (10/11 vs 12+) to determine if a node was a `TextView` or a `Button` and whether to find a clickable parent.

This has been simplified:
- The automation now primarily looks for nodes with text matching "Clear data" or "Clear cache".
- If the found node is not clickable, it will attempt to find a clickable parent.
- The explicit version check (`isMiui12Plus`) has been removed.

Fixes #1814
@d4rken d4rken added c: AppCleaner Automation Accessibility service related (ACS) ROM: MIUI Xiaomi, Redmi etc. (pre 12-13) labels Jun 1, 2025
@d4rken
d4rken merged commit f29127a into main Jun 3, 2025
@d4rken
d4rken deleted the appcleaner-acs-miui-v11-api28-A9 branch June 3, 2025 08:19

@Pj863 Pj863 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really love this app keep up the great work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Automation Accessibility service related (ACS) c: AppCleaner ROM: MIUI Xiaomi, Redmi etc. (pre 12-13)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants