Skip to content

AppCleaner: Improve dynamic storage entry label detection#1336

Merged
d4rken merged 1 commit into
mainfrom
appcleaner-reliability-vivo-matching
Jul 31, 2024
Merged

AppCleaner: Improve dynamic storage entry label detection#1336
d4rken merged 1 commit into
mainfrom
appcleaner-reliability-vivo-matching

Conversation

@d4rken

@d4rken d4rken commented Jul 31, 2024

Copy link
Copy Markdown
Member

Improve OnTheFlyLabler by also manually calculating the formatted size value. On a VIVO device with Android 14 (vivo/PD2366/PD2366:14/UP1A.231005.007_MOD1/compiler07161632:user/release-keys), the formatFileSize was the same as the formatShortFileSize despite the system showing a non "short" value.

The crawler showed that the storage entry looks like this

2024-07-30T08:08:44.858Z  V/SDMSE:Automation:Crawler: crawl():------------12: className=android.widget.TextView, text='Storage', isClickable=false, isEnabled=true, viewIdResourceName=com.android.settings:id/title, pkgName=com.android.settings, identity=6377116
2024-07-30T08:08:44.858Z  V/SDMSE:Automation:Crawler: crawl():------------12: className=android.widget.TextView, text='677,53 MB used in internal storage', isClickable=false, isEnabled=true, viewIdResourceName=com.android.settings:id/summary, pkgName=com.android.settings, identity=20c7631

but the OnTheFlyLabler only provided 678 MB and not the 677,53 MB.

Improve `OnTheFlyLabler` by also manually calculating the formatted size value.
On a VIVO device with Android 14 (`vivo/PD2366/PD2366:14/UP1A.231005.007_MOD1/compiler07161632:user/release-keys`), the `formatFileSize` was the same as the `formatShortFileSize` despite the system showing a non "short" value.

The crawler showed that the storage entry looks like this

```
2024-07-30T08:08:44.858Z  V/SDMSE:Automation:Crawler: crawl():------------12: className=android.widget.TextView, text='Storage', isClickable=false, isEnabled=true, viewIdResourceName=com.android.settings:id/title, pkgName=com.android.settings, identity=6377116
2024-07-30T08:08:44.858Z  V/SDMSE:Automation:Crawler: crawl():------------12: className=android.widget.TextView, text='677,53 MB used in internal storage', isClickable=false, isEnabled=true, viewIdResourceName=com.android.settings:id/summary, pkgName=com.android.settings, identity=20c7631
```

but the `OnTheFlyLabler` only provided `678 MB` and not the `677,53 MB`.
@d4rken d4rken added enhancement New feature, request, improvement or optimization c: AppCleaner Automation Accessibility service related (ACS) labels Jul 31, 2024
@d4rken d4rken merged commit 1a3749b into main Jul 31, 2024
@d4rken d4rken deleted the appcleaner-reliability-vivo-matching branch July 31, 2024 13:16
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 enhancement New feature, request, improvement or optimization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant