2009-03-04 04:32:55 +01:00
|
|
|
#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{
|
2011-03-05 00:38:40 +01:00
|
|
|
/* defaults to stopping the common services */
|
2014-05-09 18:56:33 +02:00
|
|
|
property_set("ctl.stop", "zygote_secondary");
|
2009-03-04 04:32:55 +01:00
|
|
|
property_set("ctl.stop", "zygote");
|
2011-03-05 00:38:40 +01:00
|
|
|
property_set("ctl.stop", "surfaceflinger");
|
2014-07-19 09:47:59 +02:00
|
|
|
property_set("ctl.stop", "netd");
|
2009-03-04 04:32:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|