stop.c

来自「Android 一些工具」· C语言 代码 · 共 21 行

C
21
字号
#include <stdio.h>#include <string.h>#include <cutils/properties.h>int stop_main(int argc, char *argv[]){    char buf[1024];    if(argc > 1) {        property_set("ctl.stop", argv[1]);    } else{        /* default to "stop runtime" "stop zygote" */        property_set("ctl.stop", "runtime");        property_set("ctl.stop", "zygote");    }    return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?