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

Android R+: request MANAGE_EXTERNAL_STORAGE when creating new git repos #916

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dwoffinden
Copy link
Contributor

I think this also needs requesting on sync or upgrade, in case the app/OS is updated or the permission revoked, but as that's more async I'm not sure where to do it. Just adding the manifest entry makes it possible to manually grant it for now in that case.

An alternative would be to use only app-specific directories permitted under scoped storage, or to perhaps use newer file access APIs to have the user grant fine-grained access? But those'd be larger refactors and this unblocks it for now.

This is a rebase of #910, see also #24 (comment)

@dwoffinden
Copy link
Contributor Author

I suspect the same permission is also needed for local files: #913 & #915

@mbrgm
Copy link

mbrgm commented Apr 24, 2022

Anything holding this back from being merged?

@dwoffinden
Copy link
Contributor Author

It's a bit of a hack, and only handles new git repos. Ideally we'd do the same thing for local files and on sync/upgrade. But as I said it seems to work for me 🤷

@amberin
Copy link
Contributor

amberin commented Dec 4, 2022

@nevenz Please note that Git syncing is completely broken until this has been merged.

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.

None yet

3 participants