1 #include <stdio.h> 2 #include <string.h> 3 4 #include <cutils/properties.h> 5 stop_main(int argc,char * argv[])6int stop_main(int argc, char *argv[]) 7 { 8 if(argc > 1) { 9 property_set("ctl.stop", argv[1]); 10 } 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 return 0; 19 } 20