1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::*;

pub fn start() -> io::Result<()> {
    run_cmd_with_args(
        "am",
        &["startservice", "-n", "com.termux.api/.KeepAliveService"],
    )
}

pub fn stop() -> io::Result<()> {
    run_cmd_with_args(
        "am",
        &["stopservice", "-n", "com.termux.api/.KeepAliveService"],
    )
}