2009-03-04 11:32:55 +08:00
|
|
|
#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{
|
2011-03-05 07:38:40 +08:00
|
|
|
/* defaults to stopping the common services */
|
2009-03-04 11:32:55 +08:00
|
|
|
property_set("ctl.stop", "zygote");
|
2011-03-05 07:38:40 +08:00
|
|
|
property_set("ctl.stop", "surfaceflinger");
|
2009-03-04 11:32:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|