question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

inotify not working on Android 6+

See original GitHub issue

https://code.google.com/p/android/issues/detail?id=189231

To verify, use the following steps while Syncthing is running:

  1. run adb logcat -s FolderObserver:v
  2. in a second terminal, run adb shell and cd into a Syncthing folder
  3. create/modify/delete files with touch, mkdir, rm etc
  4. 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:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Nutomiccommented, Nov 20, 2016

Okay thanks for confirming that. I’ll set the short rescan interval only on Android 6 then.

1reaction
Nutomiccommented, Nov 19, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found