inotify support and android version?

Might it be the case that the inotify support does not work in Android 4.1.1? I am asking because setting the rescan interval to 0 does work (i.e., inotify seems to do its work) on a device I have with Android 4.4.1 but does not work on a device with Android 4.1.1 (of course, other things could differ between the devices).

It should work on all devices.

Have you checked the logs for any problems?

I have, I am just not sure how to interpret them. So if I run something like

adb logcat SyncthingNativeCode:V *:S > only-syncthing.txt

I only see ST starting, etc, but the file I create never appears (even when it is finally synced after I click on “Rescan” from the Web GUI).

If I try

adb logcat > all-logcat.txt

then I see when the file gets created (I called it sentinel-file-04-05-2240.txt) and some stuff that is happening with the ST Web GUI, but no additional mention of the file nor other things I can identify as errors and nthing else I find insightfull related to I/Sensors

 I/Sensors (  419): **** Motion ****
 I/ActivityManager(  419): START {dat=file:///storage/sdcard0/Android/data/com.nutomic.syncthingandroid/Files-to-tablet/sentinel-file-04-05-2240.txt typ=text/plain cmp=nextapp.fx/.ui.textedit.EditorActivity u=0} from pid 9407
 D/dalvikvm( 7199): GC_FOR_ALLOC freed 284K, 20% free 10302K/12743K, paused 163ms, total 163ms
 D/WindowManager(  419): adjustConfigurationLw, config:{1.0 0mcc0mnc (no locale) sw800dp w800dp h1232dp xlrg port ?uimode ?night finger -keyb/v/h -nav/v} mLidState:-1 mHasDockFeature:true mHasHallSensorFeature:true config.hardKeyboardHidden:2
 D/dalvikvm( 9407): GC_CONCURRENT freed 327K, 29% free 8558K/11911K, paused 3ms+5ms, total 42ms
 D/dalvikvm( 9407): WAIT_FOR_CONCURRENT_GC blocked 29ms
 D/TextView( 9407): Constructor - Got Res id for appearance for textColorPrimaryInverse
 W/ResourceType( 9407): Skipping entry 0x1060069 in package table 0 because it is not complex!
 D/TextView( 9407): Constructor - Got appearance for textColorPrimaryInverse
 D/TextView( 9407): Constructor -- Got mEditTextBackgroundColor
 I/NotificationService(  419): cancelToast pkg=nextapp.fx callback=android.app.ITransientNotification$Stub$Proxy@42205d90
 W/NotificationService(  419): Toast already cancelled. pkg=nextapp.fx callback=android.app.ITransientNotification$Stub$Proxy@42205d90
 D/dalvikvm( 9407): GC_CONCURRENT freed 690K, 28% free 8615K/11911K, paused 18ms+8ms, total 70ms
 I/ActivityManager(  419): Displayed nextapp.fx/.ui.textedit.EditorActivity: +851ms
 D/dalvikvm( 1732): GC_CONCURRENT freed 820K, 40% free 8709K/14471K, paused 13ms+3ms, total 156ms
 I/HK/LatinKeyboardBaseView(  804): closing org.pocketworkstation.pckeyboard.LatinKeyboardView@41982758
 I/HK/LatinKeyboardBaseView(  804): closing org.pocketworkstation.pckeyboard.LatinKeyboardView@41982758
 I/HK/LatinKeyboardBaseView(  804): onMeasure width=800
 I/HK/LatinKeyboardBaseView(  804): onMeasure width=800
 I/Keyboard(  804): setKeyboardWidth newWidth=800, mTotalWidth=800
 E/chromium( 7179): [ERROR:simple_index_file.cc(223)] Failed to write the temporary index file
 I/chromium( 7179): [INFO:CONSOLE(100)] "UIOffline", source: http://127.0.0.1:8080/scripts/syncthing/core/controllers/syncthingController.js (100)
 D/PowerManagerService(  419): @PowerManagement: 'KEEP_SCREEN_ON_FLAG' releaseWakeLock when screen locked
 D/dalvikvm( 7199): GC_FOR_ALLOC freed 284K, 20% free 10297K/12743K, paused 52ms, total 52ms
 I/chromium( 7179): [INFO:CONSOLE(373)] "refreshConnections", source: http://127.0.0.1:8080/scripts/syncthing/core/controllers/syncthingController.js (373)
 I/chromium( 7179): [INFO:CONSOLE(380)] "refreshErrors", source: http://127.0.0.1:8080/scripts/syncthing/core/controllers/syncthingController.js (380)
 I/chromium( 7179): [INFO:CONSOLE(317)] "refreshSystem", source: http://127.0.0.1:8080/scripts/syncthing/core/controllers/syncthingController.js (317)
 I/chromium( 7179): [INFO:CONSOLE(66)] "UIOnline", source: http://127.0.0.1:8080/scripts/syncthing/core/controllers/syncthingController.js (66)
 I/chromium( 7179): [INFO:CONSOLE(23)] "event", source: http://127.0.0.1:8080/scripts/syncthing/core/controllers/eventController.js (23)
 I/chromium( 7179): [INFO:CONSOLE(317)] "refreshSystem", source: http://127.0.0.1:8080/scripts/syncthing/core/controllers/syncthingController.js (317)
 I/chromium( 7179): [INFO:CONSOLE(373)] "refreshConnections", source: http://127.0.0.1:8080/scripts/syncthing/core/controllers/syncthingController.js (373)
 E/chromium( 7179): [ERROR:simple_index_file.cc(223)] Failed to write the temporary index file
 I/chromium( 7179): [INFO:CONSOLE(387)] "refreshConfig", source: http://127.0.0.1:8080/scripts/syncthing/core/controllers/syncthingController.js (387)
 I/HK/LatinKeyboardBaseView(  804): closing org.pocketworkstation.pckeyboard.LatinKeyboardView@41982758
 E/chromium( 7179): [ERROR:simple_index_file.cc(223)] Failed to write the temporary index file
 I/NotificationService(  419): cancelToast pkg=nextapp.fx callback=android.app.ITransientNotification$Stub$Proxy@41b42398
 W/NotificationService(  419): Toast already cancelled. pkg=nextapp.fx callback=android.app.ITransientNotification$Stub$Proxy@41b42398

Use adb logcat SyncthingNativeCode:V FolderObserver:V *:W in case there there is a problem in the Java code.

You can also set the STTRACE flags in the app settings.

I restarted the device, upgraded the android version to the newly released one, and inotify seems to be working just fine (checking the logs as you suggested also did not reveal anything). Sorry for the noise.