1 2 #include <string.h> 3 #include <stdio.h> 4 #include <stdlib.h> 5 6 #include <cutils/properties.h> 7 start_main(int argc,char * argv[])8int start_main(int argc, char *argv[]) 9 { 10 char buf[1024]; 11 if(argc > 1) { 12 property_set("ctl.start", argv[1]); 13 } else { 14 /* default to "start zygote" "start runtime" */ 15 property_set("ctl.start", "zygote"); 16 property_set("ctl.start", "runtime"); 17 } 18 19 return 0; 20 } 21