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

Preferences: Ignore releasePersistableUriPermission exceptions #273

Merged
merged 1 commit into from
Mar 26, 2023

Conversation

chenxiaolong
Copy link
Owner

releasePersistableUriPermission() can throw an undocumented exception when releasing a grant that was previously persisted if the URI's associated application is uninstalled. This commit changes the behavior to ignore exceptions when releasing persisted permissions. In every scenario I can reproduce where this function fails, the permission has already been removed by Android itself.

releasePersistableUriPermission() can throw an undocumented exception
when releasing a grant that was previously persisted if the URI's
associated application is uninstalled. This commit changes the behavior
to ignore exceptions when releasing persisted permissions. In every
scenario I can reproduce where this function fails, the permission has
already been removed by Android itself.

Signed-off-by: Andrew Gunnerson <[email protected]>
@chenxiaolong chenxiaolong self-assigned this Mar 26, 2023
@chenxiaolong chenxiaolong merged commit acb5b3c into master Mar 26, 2023
@chenxiaolong chenxiaolong deleted the saf branch March 26, 2023 00:09
chenxiaolong added a commit that referenced this pull request Mar 26, 2023
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