Brevent, black prevent, can app-standby (since Android 6.0, not supported on some devices) or force-stop apps without root, prevent apps from running in long time.

Brevent never brevent apps not in Bervent list. If apps are launched then quit (tapping Back or so), Brevent will app-standby them; if apps timed out in standby, or swiped from recents screen, Brevent will force-stop them. Whenever apps are running without activity, Brevent will force-stop them.

Apps in Brevent list can be set "allow sync" to receive notifications or do sync jobs. Brevent won't standby "allow sync" apps, and Brevent won't force-stop "allow sync" apps with notifications or running in background.

Brevent supports Android 5.0 to 9.0, requires "USB debugging" in "developer options".

Since Android 8, Brevent won't work if debugging is off or USB option is changed. If debugging turns off when you unplug the cable, please change USB option. Normally, it's OK to keep USB option as default.
From version Brevent beta:
v3.6.4.2 (2019/02/27)
- [features] recognize overlay window
- [server] fix recents packages (#511)
- [ui] update some app ops name from lineage os

v3.6.3.4 (2019/02/22)
- [ui] fix crash for contributor when open first time
- [ui] don't mark running disabled apps as disabled

Don't turn off USB Debugging or change USB options on Android 8+.
All versions
March 17, 2019
February 27, 2019
February 25, 2019
February 24, 2019
February 22, 2019
February 22, 2019
February 19, 2019
February 18, 2019
February 11, 2019
February 3, 2019