Syncing to an SD card on Android from Windows 11

I have a sony music player (android) with an internal SD card. My music library is on a Windows 11 PC, all in one folder. I want to simply copy any changes in the Windows folder to the Music folder on the SD card on the android.

On the Windows side, it looks pretty straightforward. On the Android side, I’m trying to use the GUI to specify which folder to sync to, but the only UI is a textbox where I have to put in the path. Anybody know the magic words for “SD Card/Muisc”? Or is there some graphical UI that allows me to browse to that folder?

Thanks.

Presumably, once I’ve specified the folder on the android device the UI will allow me to pair the two.

which syncthing for android are you using?

I (and most users) use

and this one for me gives me a graphical ui for selecting a folder.

I’m using SynchThing-Fork. I don’t see a graphical ui for selecting the folder. Just a text box. This is using the Web UI. Is there another way?

I just downloaded Synthing-Fork from Google Play. Is that build different than what is available on GitHub?

Normally, you should be presented with a folder picker, which also takes care of permissions to access the folder in question, etc. In the original Android app, there was a setting to enable “advanced folder picker”. Please check if that is also present in the Syncthing-Fork. If yes, then you can try to enable or disable it and see if there’s any difference.

I think there was a difference in the past, because of a lack of permissions to run in background permanently, but now, it seems that the two are basically the same (see the last few comments in Publishing in the Play Store · Issue #1233 · Catfriend1/syncthing-android · GitHub for details).

I’ve looked through the settings, and the closest thing I see is “Local Discovery” and “Global Discovery” and both are enabled by default. I’ve tried turning them off, but no change in behavior, so I reset both to default.

Per the advice at stock browser - How can I determine the SD card's path? - Android Enthusiasts Stack Exchange

I tried /sdcard/Music, but that failed. And then the textbox becomes read only so I can’t easily try other options. I tried removing the folder and creating a new one with the path /mnt/sdcard and when I entered /mnt a folder picker appeared, but there was no option for an sdcard. I typed it in manually, but I still get an error.

I’ve asked Sony support for info on how they specify the file path for the sd card, but so far nobody there knows anything. I’m not eager to go back to Resilio sync, but SynchThing isn’t working for me.

Any other ideas?

I’ll try to check the app later and show you some screenshots of the setting on question. /sdcard is not SD card but actually the internal storage.

Edit:

From your explanation, it also seems that you’re trying to use the Web GUI to add the folder. In order to gain the required permissions to sync a path on an SD card, you probably need to use the app UI instead, and add the folder to Syncthing there.

I tried finding the file path using EX File Manager, which seems to report the path as /storage/041C-3602/Music but that doesn’t work either.

(I assume that there’s a good reason why the file path is read only after saving a newly created folder, but it would make it a lot easier to troubleshoot this if I didn’t have to remove and re-create the folder every time I tried a different path.)

1 Like

When I click on the “hamburger menu” I see several options:

Show Device ID Recent Changes Web GUI Import and Export Restart Tips and Tricks Settings

I have been using the Web GUI to Add a folder. I guess that doesn’t work.

I tried using the + folder icon on the FOLDERS tab and was able to create the folder and browse to the Music folder on the sd card. It seems to have taken that, so I’m getting somewhere. (not sure why a non-functional ui is offered, but whatever)

But when I look at the status on the PC the Remote Device is throwing errors: “No connection could be made because the target maching actively refused it.”

So, it seems now to be a permissions issue. Looking through the various menu items in Settings on the android device I’m not seeing anything obvious. I had syncing working with my old PC via Resilio Sync, for what that’s worth.

On the Android device the STATUS tab says Synchthing is not running.

Reason:

  • Synchthing in not configured to run on mobile data connection
  • Synchthing is allowed to run on WiFi and WiFi is currently connected
  • Synchthing is allowed to run on non-metered WiFi connections. The active Wifi connection is non-metered
  • Synchthing is allowed to run on the current WiFi network.

This doesn’t make any sense. I’m not using mobile data (the android device is not a phone, so there is no mobile data to use). WiFi is connected, and Synchthing seems to think it should work.

I’ve tried restarting the device, and restarting Synchthing on it.

The app’s interface is very limited, so the Web GUI is indeed required if you intend to use the more advanced Syncthing configuration, however specifically when adding a folder for the first time, it should be done via the app UI, so that Android prompts it to grant full access to the path in question. Otherwise, you will only be able to use the path as read-only, which you’ve already experienced.

This error isn’t about permissions. Normally, it’s because the devices aren’t actually properly connected (e.g. not added/accepted on either side) or there are other connectivity issues (e.g. firewall, etc.).

Please make sure that Syncthing is allowed to access location in background all the time. This needs to be done in the Android permission settings. Otherwise, the app won’t be able to detect whether you’re connected to Wi-Fi or not.

Under settings → Apps → Synchthing → Permissions it says Location is allowed all the time.

I don’t see anything about “in the background”. Is that set somewhere else?

No, that should be more than enough. I’m not sure why Syncthing isn’t running then :confused:.

Looking at the logfile, I’m seeing “Access denied finding property 'vendor.display.enable_optimal_refresh_rate” a bunch of times but no other obvious error messages.

The logfile is hard to read on the tiny Sony device and I’m not seeing it in the file system where I’d expect it (Android\data\com.github.catfriend1.syncthingandroid\files) so I can’t open it with a text editor on my PC or easily share it here.