Make external storage permission optional#9873
Conversation
02d05da to
6ab94eb
Compare
Codecov Report
@@ Coverage Diff @@
## master #9873 +/- ##
==========================================
+ Coverage 30.50% 31.16% +0.66%
==========================================
Files 513 514 +1
Lines 38890 38919 +29
Branches 5473 5477 +4
==========================================
+ Hits 11864 12131 +267
+ Misses 25234 24953 -281
- Partials 1792 1835 +43
|
aff25bc to
cbe3afb
Compare
|
@nextcloud/designers I'd like to request feedback on the dialog design. If you have a better idea of how to present these choices, please let me know. #9343 for context This is the dialog shown at app startup, at which point the permission is optional. The text will change in cases where permissions are absolutely required (file upload, autosync setup) to reflect that ("Permissions needed" or something like that). Extra food for thought: we may want to skip this optional, first-time permission request; after all it will be requested when actually needed. This makes app usage a bit more seamless first time, BUT autoupload folder detection won't work unless users grant the permissions first. |
d67b1ff to
06370da
Compare
c83283c to
c08930b
Compare
|
@AlvaroBrey text looks good, just 2 questions:
|
Done in 979a939 |
85433c5 to
5175ebc
Compare
|
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/9873.apk |
Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
- Allow users to choose between MANAGE_EXTERNAL_STORAGE (full access) and READ_EXTERNAL_STORAGE (media read-only) in sdk >=30, with a dialog - If All Files is not available (activity to manage not present, or permission not in manifest), request READ_EXTERNAL_STORAGE instead - Misc improvements to permission request in UploadFilesActivity and SyncedFoldersActivity Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
(ensure only one instance of it is ever shown at the same time) Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
This makes it so that the folder loads even without granting storage permission, which is the expected behaviour now Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
5175ebc to
1a9014e
Compare
|
@tobiasKaminsky ready for re-review |
CodacyLint
SpotBugs (new)
SpotBugs (master)
|
|
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/9873.apk |


Fixes #9343
Fixes #9845
throughJust remove the permission from the manifest, code detects that)setup.xml?