Skip to content

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

Open
dwoffinden wants to merge 1 commit intoorgzly:masterfrom
dwoffinden:manager
Open

Android R+: request MANAGE_EXTERNAL_STORAGE when creating new git repos#916
dwoffinden wants to merge 1 commit intoorgzly:masterfrom
dwoffinden:manager

Conversation

@dwoffinden
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

@mbrgm
Copy link
Copy Markdown

mbrgm commented Apr 24, 2022

Anything holding this back from being merged?

@dwoffinden
Copy link
Copy Markdown
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
Copy Markdown
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.

3 participants