Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SettingsActivity: Fix possible crash when showing friendly path #74

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

chenxiaolong
Copy link
Owner

DocumentsContract.findDocumentPath() may sometimes crash with a
permission error when passed a children document URI after an app
upgrade, even though the app still has valid persisted URI permissions.
Instead, just parse the URI manually. The format of SAF URIs hasn't
changed across the versions of Android that BCR supports.

DocumentsContract.findDocumentPath() may sometimes crash with a
permission error when passed a children document URI after an app
upgrade, even though the app still has valid persisted URI permissions.
Instead, just parse the URI manually. The format of SAF URIs hasn't
changed across the versions of Android that BCR supports.

Signed-off-by: Andrew Gunnerson <[email protected]>
@chenxiaolong chenxiaolong self-assigned this Jun 7, 2022
@chenxiaolong chenxiaolong merged commit 48141d0 into master Jun 7, 2022
@chenxiaolong chenxiaolong deleted the crash branch June 7, 2022 00:30
chenxiaolong added a commit that referenced this pull request Jun 7, 2022
Signed-off-by: Andrew Gunnerson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant