This repository has been archived by the owner on Dec 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 428
Implement proper permission handling using SAF (fixes #1160) #1170
Merged
AudriusButkevicius
merged 42 commits into
syncthing:master
from
Catfriend1:createStfolderOnFolderCreation
Jul 15, 2018
Merged
Changes from 39 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
4af6553
add comment
Catfriend1 473b91a
WIP
Catfriend1 e77c053
WIP
Catfriend1 70e3f8e
revert unneccessary RestApi changes
Catfriend1 98543cd
WIP
Catfriend1 fc4141a
WIP
Catfriend1 325aaa2
WIP
Catfriend1 74cd321
WIP - UriUtil
Catfriend1 ee7e3bd
WIP
Catfriend1 1f34e68
WIP
Catfriend1 220e908
WIP
Catfriend1 bc3edec
WIP - using reflection
Catfriend1 93d42e5
WIP
Catfriend1 c30b803
address https://github.com/syncthing/syncthing-android/issues/1160
Catfriend1 22f6a51
WIP
Catfriend1 2b19402
remove debug folder creation
Catfriend1 00f32c9
add constant for .stfolder marker
Catfriend1 96ad90a
WIP - canWrite test
Catfriend1 f1f427b
WIP - proper permission detection (fixes #1160)
Catfriend1 5eafc22
add Util#runShellCommand
Catfriend1 75a8d05
correct FolderActivity UI flow
Catfriend1 3a978ad
fix NPE in onCreate
Catfriend1 647b511
Explain why we can or cannot have folder write access
Catfriend1 f287ec0
Reorder accessExplanationView
Catfriend1 029f039
Safety check - don't allow selection of root directory /
Catfriend1 bd2e6bb
Show helpful message to the user if an invalid location has
Catfriend1 a5634a7
Fix string comparison
Catfriend1 e2eacef
WIP
Catfriend1 9906514
WIP - add documents folder selection handling
Catfriend1 c786e35
WIP - better way to get the case of /.../documents/... right
Catfriend1 6ce1793
WIP
Catfriend1 b534eea
WIP
Catfriend1 89d74c1
Show popup on entrance of the SAF UI to inform the user
Catfriend1 891e9e1
Merge branch 'master' of https://github.com/syncthing/syncthing-andro…
Catfriend1 32d2b3a
WIP
Catfriend1 9ee829a
Fix UI glitch after an invalid folder location has been selected
Catfriend1 67492bc
Only create .stfolder for "sendonly" folder
fdbc45b
Add constants for folder types
b3bf0b5
Add import of Constants
Catfriend1 463d9cc
Review: Update folder type constants for v0.14.49
Catfriend1 bb2de5c
Merge branch 'master' of https://github.com/syncthing/syncthing-andro…
Catfriend1 02ee891
Merge branch 'master' of https://github.com/syncthing/syncthing-andro…
Catfriend1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think its "sendonly"? Or atleast we were planning to rename, yet supported the old names.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was unsure if "sendonly" can be set already for 14.48. Let's put the new names when we have 14.49 (or future version) out and the rename took place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked how it's currently implemented upstream:
v14.48:
v14.49-rc.3:
So I would recommend to put "sendreceive" and "sendonly" when we bump syncthing to v14.49 . If we would do it now, the user can jump into a pitfall when we create a folder "sendonly" and he edits it later through the web UI to be "readwrite". Our code would - according to the constants in place - compare "readwrite" to the string "sendreceive" and assume we were "readonly" then. This can be solved by changing the constans later after 14.49 got released.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I'll only release the new version of the app once .49 rolls off the press.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I prepared this PR for syncthing v0.14.49+, see commit 463d9cc