Skip to content

Setup: Check DocumentsUI version to determine SAF grantability - #1786

Merged
d4rken merged 1 commit into
mainfrom
setup-saf-files-app
May 18, 2025
Merged

d4rken merged 1 commit into
mainfrom
setup-saf-files-app

Conversation

@d4rken

@d4rken d4rken commented May 17, 2025

Copy link
Copy Markdown
Member

The DocumentsUI app is part of "Google Play system updates". A newer version (>= 331120000) restricts access to Android/data and Android/obb even on Android 11 & 12 (API 30-32). This change adds a version check for DocumentsUI to correctly reflect its capabilities.

If the version is too new, or if the package information cannot be retrieved, assume access is restricted. The target SDK version check remains as a fallback.

Fixes #1762

The `DocumentsUI` app is part of "Google Play system updates".
A newer version (>= `331120000`) restricts access to `Android/data` and `Android/obb` even on Android 11 & 12 (API 30-32).
This change adds a version check for `DocumentsUI` to correctly reflect its capabilities.

If the version is too new, or if the package information cannot be retrieved, assume access is restricted.
The target SDK version check remains as a fallback.

Fixes #1762
@d4rken
d4rken marked this pull request as draft May 17, 2025 13:39
@d4rken
d4rken marked this pull request as ready for review May 18, 2025 06:45
@d4rken
d4rken merged commit 016e7b1 into main May 18, 2025
@d4rken
d4rken deleted the setup-saf-files-app branch May 18, 2025 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant