inotify not working on Android 6+
See original GitHub issuehttps://code.google.com/p/android/issues/detail?id=189231
To verify, use the following steps while Syncthing is running:
- run
adb logcat -s FolderObserver:v
- in a second terminal, run
adb shell
andcd
into a Syncthing folder - create/modify/delete files with
touch
,mkdir
,rm
etc - each of these modifications should be shown in the logcat
I tried this on Android 6 devices, and Android 7.0/7.1 emulators, and none of them reported the events correctly. As a workaround, I changed the rescan interval to 60 seconds on these devices.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
inotify doesn't always detect changes · Issue #465 - GitHub
Syncing between my laptop and Android mobile don't always work. It may show on both sides as "Up to date", while the number...
Read more >Failed to setup inotify handler on Android - Syncthing Forum
Issue Recently, two main folders on my Android client have appeared as “Out-of-sync”, despite removing these folders on all my devices and the…...
Read more >c inotify not always triggering event for specific file
So here is the code. I call inotify_add_watch() but after a few minutes with the screen off the "handle gov event" never triggers...
Read more >Documentation/filesystems/inotify.txt - kernel/msm - Git at Google
A: Watches are associated with an open inotify device, not an open file. This solves the primary problem with dnotify: keeping the file...
Read more >How to create a copy of a file immediately when it's created?
1 Answer 1 · hi link the easiest way is to work with this c library · I could not make this way...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay thanks for confirming that. I’ll set the short rescan interval only on Android 6 then.
Yeah I saw that, but like I said, it’s still broken on the emulator. Weird that the behaviour is different there. Would be nice of someone could also try this on a 7.0 device.