I use Syncthing to sync photos and then back them up to Google Photos.
Previously, everything worked fine. The photos were detected by Google Photos immediately.
Now, I've upgraded from Android 12 to 14, and the newly synced photos are not being detected. I have to restart the app for them to be recognized as photos. (Wait for several hour may also works)
Here is the log after adding one live photo from an iPhone:
adb shell logcat v | rg "Media"
09-15 14:32:20.679 3562 3728 V MediaProvider: Deleted backup of old file path: /storage/emulated/0/Camera Uploads/.syncthing.2024-09-15 12.32.39.HEIC.tmp
09-15 14:32:21.026 3562 3728 V MediaProvider: Deleted backup of old file path: /storage/emulated/0/Camera Uploads/.syncthing.2024-09-15 12.32.39.MOV.tmp
09-15 14:32:24.808 18892 18892 I EventProcessor: onItemFinished: MediaScanner, Rescanning file: ~/Camera Uploads/2024-09-15 12.32.39.HEIC
09-15 14:32:24.818 18892 18892 I EventProcessor: onItemFinished: MediaScanner, Rescanning file: ~/Camera Uploads/2024-09-15 12.32.39.MOV
09-15 14:32:24.821 3562 10430 W ModernMediaScanner: Failed to visit /~/Camera Uploads/2024-09-15 12.32.39.HEIC: java.nio.file.NoSuchFileException: /~/Camera Uploads/2024-09-15 12.32.39.HEIC
09-15 14:32:24.825 3562 10430 I MediaProvider: Scanned internal due to REASON_DEMAND, found 0 items in 4ms, 0 inserts 0 updates 0 deletes
09-15 14:32:24.827 18892 4025 D MediaScannerConnection: Scanned ~/Camera Uploads/2024-09-15 12.32.39.HEIC to null
09-15 14:32:24.828 3562 10430 W ModernMediaScanner: Failed to visit /~/Camera Uploads/2024-09-15 12.32.39.MOV: java.nio.file.NoSuchFileException: /~/Camera Uploads/2024-09-15 12.32.39.MOV
09-15 14:32:24.828 3562 10430 I MediaProvider: Scanned internal due to REASON_DEMAND, found 0 items in 1ms, 0 inserts 0 updates 0 deletes
09-15 14:32:24.828 18892 4025 D MediaScannerConnection: Scanned ~/Camera Uploads/2024-09-15 12.32.39.MOV to null
09-15 14:32:31.063 2101 2587 W JobScheduler: Job didn't exist in JobStore: d3e60c9 #u0a164/1034 com.google.android.apps.photos/com.google.android.libraries.social.mediamonitor.MediaMonitorJobSchedulerService
I use Syncthing to sync photos and then back them up to Google Photos.
Previously, everything worked fine. The photos were detected by Google Photos immediately. Now, I've upgraded from Android 12 to 14, and the newly synced photos are not being detected. I have to restart the app for them to be recognized as photos. (Wait for several hour may also works)
Here is the log after adding one live photo from an iPhone:
Related issue: https://github.com/syncthing/syncthing-android/issues/1488