-
-
Notifications
You must be signed in to change notification settings - Fork 12
SD card is not synced on android 10+ #44
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Hi,
Do you experience a different behavior? If yes, can you give more details, and provide your android version and phone brand? |
Sorry for the delay; I ran some investigations and here are the relevant results as seen from Overall storage on Android:
On Samsung we have three folders and the resulted sync is "partial". E.g. the most important type of content for me, the pictures, looks like this: First, SD-card storage of pictures folders
And the "internal" storage situation
Finally, here's how the folder on webdav side looks like
As you can see, the pictures from It would seem as if the SD-card is not "merged" (by Samsung's version of Android) into the "standard" folder structure as seen by the user. Since I tend store all my stuff on the SD-card (in case of phone catastrophic failure it can be extracted while internal storage is a dead MMC memory chip on the phone's board), it would be great if I could specify additional folders to sync. Additional note: The "Documents" folder sync looks a bit stranger, let me know if you need details but it's basically the same issue: certain key folders on SD-card having "official" names e.g. "Documents" or "Downloads" are not synced. |
Thanks for the details. What's your android version? |
14 (patch level October 2024) by Samsung. |
I also came across this issue, and my suggestion would be to keep separation on the WebDav server too. From my understanding, the main advantage of EasySync is that the source of media files are fetched from Android's "Media" iterator (did not check), which gets them from wherever they are. This means, it's not EasySync's particular responsibility to include folders, but it does have the option to filter or exclude them. Correct me if I'm wrong, but I think this is why there is an option to exclude folders (default opt-in) but not to add extras. What I think would be doable in here would be to have the option to preserve the storage source, given that it would effectively be a "filter" operation. This brings in my suggestion (which should probably be a separate issue) to separate the files on the WebDav server based on their source. So, |
Oh, I was afraid it was something in this line; Namely that Android tries to somehow "hide" the underlying storage structure by providing an unified view of sorts and in Samsung's case it fails. Most interesting though, the gallery app shows all images from all folders including the SDcard. So they must be using another API call... or different parameters maybe? |
Hi guys, @KiralyCraft thank you for your sponsorship, it's greatly appreciated |
Hi guys,
As @KiralyCraft pointed out, we can have a distinct folder per storage source on webdav server to handle the situation. I see two issues with this :
I'll try to figure out a solution |
For me any solution would work:
|
I backup up that. I guess that having the same file name on both primary and SD storage should be a rare (and quite unexpected) event : how do you end up with such a situation ? But I'd suggest to rename the conflicting file as |
Indeed it can be quite rare to have conflicting file names, but conflicting folders can happen. I would advise against renaming files, because depending on the use case, having to rename thousands of files to remove the suffix of the card ID would be rather painful. I primarily use EasySync as a backup solution ("Keep local copy" mode), so if my phone suddenly dies I can simply take all files from a folder and "plop" them on a new device, Migration should be quite simple, the idea of having the storage ID used somehow is quite nice. Also, internal storage will always be "Internal Storage" (or alike), and all devices have it. If going with folders, simply check:
The problems here:
Oh my, why did I think that? |
Maybe I'm missing something but the latest version from F-Droid will only consider the "standard" folders from internal storage. Some applications (notably the camera app) can be configured to use external storage e.g. SD-card. An option to add both sources would be great; so either list the standard folders two times or put two buttons for each folder: one for "internal" and another for "SDcard".
At least the option to chose between the two before initiating back-up would be useful. Of course the ability to merge the content(s) of the standard folders (e.g. DCIM/camera) into one back-up would be ideal.
The text was updated successfully, but these errors were encountered: