stop.c revision 22e22acbf0aa5cf11131cc8f7269fbe268fd0e9e
1#include <stdio.h>
2#include <string.h>
3
4#include <cutils/properties.h>
5
6int stop_main(int argc, char *argv[])
7{
8    char buf[1024];
9
10    if(argc > 1) {
11        property_set("ctl.stop", argv[1]);
12    } else{
13        /* defaults to stopping the common services */
14        property_set("ctl.stop", "zygote_secondary");
15        property_set("ctl.stop", "zygote");
16        property_set("ctl.stop", "surfaceflinger");
17    }
18
19    return 0;
20}
21