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.

Android kills the syncthing process when activity is closed

See original GitHub issue

Android kills libsyncthing.so everytime when the activity is closed. It gets automatically restarted by SyncthingService, but syncing gets interrupted.

I ActivityManager: Killing 9422:com.nutomic.syncthingandroid.debug/u0a128 (adj 16): remove task
I libprocessgroup: Killing pid 9500 in uid 10128 as part of process group 9422

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
Nutomiccommented, Nov 7, 2016

Ah it only seems to happen if you swipe the app away in recents (I tried to use the back button).

@Unrud Would be cool if you can make a PR for this 😉

1reaction
Unrudcommented, Nov 6, 2016

Android/app version you’re using.

Android 6.0.1. It happens with the version from f-droid and with a version that I compiled form this repository.

Even with background active?

Yes

Even with experimental foreground service active?

No

That’s how Android works and nothing we can change about that.

You can use the android:process attribute in the service definition. The service will run in a different process and should not be restarted when the activity is closed. But you have to use AIDL to communicate with the service.

Read more comments on GitHub >

github_iconTop Results From Across the Web

xiaomi seems to kill syncthing - Android
One thing I've discovered, the app doesn't shut down when it's actually doing something. Only if it is idle. Now that I've written...
Read more >
Prevent background service from being killed due to "detect ...
The Syncthing protocol is quite heavy on the CPU side, regarding encryption, hashing, etc. So it seems that the service is force-stopped due...
Read more >
Android app: how to manually turn it on and off? More ... - Reddit
You can also force kill the app, or set no run conditions and only enable some when you wanna sync.
Read more >
Keep apps running in background? - XDA Forums
Anyway, it seems that the developer of Syncthing-Android has added a ... What is frustrating enough, as it kills some processes just before ......
Read more >
Syncthing is everything I used to love about computers
Meanwhile, if syncthing was a closed source product and the company ... versions of Android seem designed to kill use cases like syncthing....
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