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

Block all external app access when remote is hidden #31

Merged
merged 1 commit into from
Sep 11, 2023
Merged

Conversation

chenxiaolong
Copy link
Owner

Previously, when using the Hide from DocumentsUI option, external apps that were previously granted access to a file or directory retain access. This was never the intention.

Now, when a remote is hidden, all further file operations via SAF will fail with a SecurityException. However, the SAF URIs are not revoked so when the remote is unhidden again, apps will immediately regain their prior access. The UI option has been renamed to Block external app access to clarify what will actually happen.

Issue: #27

Previously, when using the `Hide from DocumentsUI` option, external apps
that were previously granted access to a file or directory retain
access. This was never the intention.

Now, when a remote is hidden, all further file operations via SAF will
fail with a SecurityException. However, the SAF URIs are not revoked so
when the remote is unhidden again, apps will immediately regain their
prior access. The UI option has been renamed to `Block external app
access` to clarify what will actually happen.

Issue: #27

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong chenxiaolong self-assigned this Sep 11, 2023
@chenxiaolong chenxiaolong merged commit de5eeba into master Sep 11, 2023
@chenxiaolong chenxiaolong deleted the block branch September 11, 2023 01:46
chenxiaolong added a commit that referenced this pull request Sep 11, 2023
Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
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