I’m using SyncThing on Android as Superuser (so it can backup /storage/emulated/0 to my PC - a Send Only profile).
Although everything is syncing properly, I just realized that there seems to be no way to exit it:
If I go to Menu->Exit, the SyncThing statusbar icon disappears (as expected), but it’s actually still silently syncing in the background (which I would have no indication of, except that I see changes to the phone’s files still being pushed to the PC)
If I go to Developer Options->Running Services & kill it, changes still get synced to my PC
Even if I use SwiftBackup to “Disable” it, changes still get synced to my PC
It seems like the only way I can actually get it to stop is to go in & pause every folder, then when I want it to run again, unpause every folder.
Why does SyncThing continue to silently sync, even after I’ve explicitly exited?
Not a proper solution, but a quicker way to do this would be to open the Web GUI and pause all of them at once. It’s also usually much more efficient to pause remote devices instead of folders (because pausing and unpausing a folder triggers a rescan which can be resource intensive).
Not really sure how I can test it without root - if I just disable the superuser checkbox, it bugs out, presumably because paths to my folders are only accessible as root.
Hmm, not sure it’s the same - that issue basically says “you have to explicitly exit” (before upgrading or uninstalling), whereas here, even if I explicitly exit, it keeps running. There seems to be no way to actually get it to exit (as far as I can tell).
You could pause all folders, then disable root and try to exit. Of course, just for testing purposes.
But if all folders are paused, I won’t be able to see if it’s still syncing or not…?
I probably meant exiting (= shutting down) from the Web GUI. That will stop Syncthing for sure.
Ahh, I see. Yeah, it looks like if I go to the web UI, use the menu & “Shutdown”, then go back out to the app & “Exit” the app, then it actually exits. So at least there’s that workaround to make it stop syncing for the interim, if/until the real cause is found
The device state on the other side should change to “Disconnected” regardless of the folders. You could also try to simply open http://127.0.0.1:8384 using any Web browser on the Android device. If it fails to load at all, this will mean that Syncthing isn’t running.
Ok, so yeah, I paused all the folders, disabled “run as superuser”, and rebooted the phone. After that, launching & exiting SyncThing always works (the moment I exit the syncthing app, I can see it disconnect from the PC end). Then as soon as I reenable “run as superuser”, exiting the SyncThing app no longer works. So it definitely relates to root.