termux/
api.rs

1use crate::*;
2
3pub fn start() -> io::Result<()> {
4    run_cmd_with_args(
5        "am",
6        &["startservice", "-n", "com.termux.api/.KeepAliveService"],
7    )
8}
9
10pub fn stop() -> io::Result<()> {
11    run_cmd_with_args(
12        "am",
13        &["stopservice", "-n", "com.termux.api/.KeepAliveService"],
14    )
15}