Opened PR with a fix for root users:
Quote:
Purpose
Fix the issue for root users by temporarily increasing “fs.inotify.max_user_watches” to 128K (instead of 8K).
Related issue:
#1208 “Syncthing is running out of inotify watches”
Forum discussion: "failed to set up inotify handler. please increase inotify limits" - #15 by Catfriend1
Testing
Verified working running syncthing rooted on Android 7.1.2 on device lg-h815 at commit Root only - Temporarily increase fs.inotify.max_user_watches to 128K … · syncthing/syncthing-android@ef5729d · GitHub .
Tests
a) Running non-rooted

b) Running rooted
