-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
No write access to external micro SD card #5610
Comments
This should be asked…at least something like "wants to access images, etc."? |
@tobiasKaminsky Please let me know how I can provide more information. |
Can you go to app settings (on android side) and check Nextcloud permission if storage is allowed? |
I have the same issue, storage permission is allowed, but I never had to confirm the access to the SD card. This article might be related. |
Which Android version do you use? |
Nokia 7.1 Android 10 |
I guess that reading external storage is then just granted. @caco3 without having access to such a device, I fear that I cannot do anything. |
You are mislead :) |
Android 9 (Android x86) |
All 3 permissions are enabled (checked it already many times) |
Do you know if other apps/user have the same problem on x86? |
This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you! |
No, I am not aware of any other users with this problem. |
This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you! |
Still not fixed |
Without any test device I fear that I can never fix this. |
In my case it is not x86. Also I've seen this issue with at least 3 different phones To reproduce, just go to settings and change "Storage path" to the SD card, then go to auto upload, and you should probably not be able to configure the "Original file will be..." option |
I think this might be only for folders on the SD card, though. |
Yes, as you are allowed to write into those folders that you create (via storage option), but you are not allowed to delete other files (move is technically a copy & then delete). |
This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you! |
Still not fixed |
Same problem on Samsung Galaxy A6 with Android 10 When I try to upload (or auto upload) a file from my SD-CArd (/storage/0000-0000/DCIM/Camera), I can not choose any action for the source file, because the source directory appears to be read-only (Originaldatei wird ... im Original-Verzeichnis belassen, da nur lesbar) |
How is the sdcard mounted? I remember that some Android/Vendor offer to mount sdcards differently, e.g. as external or internal storage.
As we have to rely on Android's permission management, I am not sure if we can solve this… |
In my case it says "portable storage", and I can actually unmount it and insert it in a different device, therefore I assume it is external.
I don't know how this works, but a few apps asked me to "select" the folder once, to gain access, but after the first time, the permission seems to be granted, and never asked again... I think that granting access once (either when you start the app the first time, or when you setup the auto-upload) is an acceptable solution... |
My phone reports the SD-Card under "Portable Storage" (Mobiler Speicher). The SD-Card is writable by the app, because I can use the SD-Card for App-Data. When I try to upload any file from the SD-Card, then I can't change the Upload Option, because it appears to be read only. |
Do you know an open source app that uses this behaviour? Then we can might adopt this? |
One app that does that for sure is SD Maid. Unfortunately it is not open source, but you might want to have a look at the Setup page in their wiki, perhaps you might find something useful there. |
Setup page does not help code wise. |
c:geo does it AFAIK as well and is opensource. |
Found it! The app is "Simple Gallery". I hope this helps... |
I just found another open source app that does the same: Open Camera |
Yes. You must use the storage access framework. This is old news -- it was created in Android 4.4! See: https://developer.android.com/guide/topics/providers/document-provider If you use the document provider, you can request write access that way. In my experience it only expires if the file or folder is overwritten, but there may be other things that cause that to happen, so make sure you plan for that as well (i.e., the Nextcloud app will probably need to notify that it needs access again depending on the situation). |
Hi, same issue on Samsung a21s with android 10 and nextcloud app v3.14.1 |
Hi same issue an samsung s7edge with android 8. and on galaxy s9 with android 10, and on all my other android galaxy Tablet devices. nextcloud app 3.14.1 does somebody work on this issue ? |
Same issue I think, I cannot select an SD card as the storage folder for Nextcloud. All the downloads fail. I lost my local version of the files because I asked the app to move the files from previous folder when I selected the SD card, it failed to move them but it still deleted them from source folder :-/ (they are still on the server ofc). I did the same operation on OSMAnd and it worked fine, it moved its files to the same SD card with no problem or errors. [EDIT] This is with /e/ latest on FP3 |
I am not sure, if more When setting automatic upload from an SD card folder, the nextcloud upload does not work reliably and it is not possible to select A working freemium (closed source) FolderSync app requires a special procedure for that case: it asks you to select the SD card. Then Android OS prompts for rights, only then the synchronization works with external card. I am using Moto G5 with Android 8.1 |
Same issue on a Samsung Galaxy j2 2018 on android 7.1 |
Same problem with a Moto Z Play running Android 11 (/e/ 1.20). A 128GB MicroSD card is configured as external storage. Other apps talk to it just fine. I'd rather not have to use the limited internal storage for TitaniumBackup, so I told it to back up to the SD card, thinking Nextcloud would sync it over, just as it does on a OnePlus 7 Pro I also own (which only has internal storage). |
I have a x86 tablet where I installed Android x86. I know this is a rater unusual setup, but I don't think the issue is related to this since other apps on the same system do not have this issues to write to the external micro SD card.
Issue
The Android nextcloud client
3.10.1
has no write access to the external micro SD card. The easiest way to prove this is by trying to upload a file to nextcloud. The app then shows a warning that the file system is read only:Notes:
P.S. The bug originally was reported in nextcloud/desktop#1840
The text was updated successfully, but these errors were encountered: