-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
DocumentProvider does not allow createDocument() #1350
Comments
bump
|
As a termux user, I'd appreciate this a lot, as together with #1424 it'd give back sone UNIX experience to Android 10+, and make git-annex usable more easily across appiications. |
Problem description
When using the Termux DocumentProvider from another app, you can not save files into the termux user directory or its children.
Steps to reproduce
Cause:
Flag indicates create support:
termux-app/app/src/main/java/com/termux/filepicker/TermuxDocumentsProvider.java
Line 225 in 7056945
2.:
termux-app/app/src/main/java/com/termux/filepicker/TermuxDocumentsProvider.java
Line 74 in 7056945
but no create is implemented.
Expected behavior
Termux allows me to write to the user directory if the user has granted permissions to do so by selecting the Termux' DocumentProvider in DocumentsUI.
Additional information
What am I trying to achieve?
I'm currently trying to introduce support for shared config files into RcloneExplorer so that users can use Termux for the full shell experience and rcloneExplorer for the day to day browsing.
EDIT
Is there interest in implementing createDocument()? If so, I could probably submit a pull request. openDocument() is not restricted to reads anyway, so either this a implementation or security error since you could do a openDocumentStream() on the underlying file anyways.
The text was updated successfully, but these errors were encountered: