2009-03-04 11:32:55 +08:00
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include <cutils/properties.h>
|
|
|
|
|
|
|
|
int start_main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
if(argc > 1) {
|
|
|
|
property_set("ctl.start", argv[1]);
|
|
|
|
} else {
|
2011-03-05 07:38:40 +08:00
|
|
|
/* defaults to starting the common services stopped by stop.c */
|
2014-07-19 15:47:59 +08:00
|
|
|
property_set("ctl.start", "netd");
|
2011-03-05 07:38:40 +08:00
|
|
|
property_set("ctl.start", "surfaceflinger");
|
2009-03-04 11:32:55 +08:00
|
|
|
property_set("ctl.start", "zygote");
|
2014-05-10 00:56:33 +08:00
|
|
|
property_set("ctl.start", "zygote_secondary");
|
2009-03-04 11:32:55 +08:00
|
|
|
}
|
2011-03-05 07:38:40 +08:00
|
|
|
|
2009-03-04 11:32:55 +08:00
|
|
|
return 0;
|
|
|
|
}
|