Repository: syncthing/syncthing (language: go)

Issue:
Ignoring symbolic links when syncing on android as well
### Feature description

I wish to be able to set a device so that symbolic links are not synchronized onto that.

### Problem or use case

I'm unable to sync symlinks to my android phone so the syncing gets stuck at 99% and will never move. This annoys me and masks other issues that might cause the syncing to fail. 

### Alternatives or workarounds

I have not considered workarounds


Discussion / hints:
We already do this on windows. So it seems like a reasonable request to make that configurable (and ignore by default on windows, and probably also android). Technically it's not ignoring but marking it as unsupported, but the effect is the same.
Hi @imsodin, I'm interested to work on this issue , can you assign it to me?

Fix patch:
diff --git a/lib/model/folder_sendrecv.go b/lib/model/folder_sendrecv.go
index 9638c28aac7..6ff984f23b3 100644
--- a/lib/model/folder_sendrecv.go
+++ b/lib/model/folder_sendrecv.go
@@ -398,7 +398,7 @@ func (f *sendReceiveFolder) processNeeded(snap *db.Snapshot, dbUpdateChan chan<-
 				f.queue.Push(file.Name, file.Size, file.ModTime())
 			}
 
-		case build.IsWindows && file.IsSymlink():
+		case (build.IsWindows || build.IsAndroid) && file.IsSymlink():
 			if err := f.handleSymlinkCheckExisting(file, snap, scanChan); err != nil {
 				f.newPullError(file.Name, fmt.Errorf("handling unsupported symlink: %w", err))
 				break


Test patch: