stop.c 456 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#include <stdio.h>
#include <string.h>

#include <cutils/properties.h>

int stop_main(int argc, char *argv[])
{
    if(argc > 1) {
        property_set("ctl.stop", argv[1]);
    } else{
11
        /* defaults to stopping the common services */
12
        property_set("ctl.stop", "zygote_secondary");
13
        property_set("ctl.stop", "zygote");
14
        property_set("ctl.stop", "surfaceflinger");
15
        property_set("ctl.stop", "netd");
16 17 18 19
    }

    return 0;
}