OSDN Git Service

original
[gb-231r1-is01/GB_2.3_IS01.git] / system / core / toolbox / start.c
diff --git a/system/core/toolbox/start.c b/system/core/toolbox/start.c
new file mode 100644 (file)
index 0000000..3bd9fbb
--- /dev/null
@@ -0,0 +1,20 @@
+
+#include <string.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <cutils/properties.h>
+
+int start_main(int argc, char *argv[])
+{
+    char buf[1024];
+    if(argc > 1) {
+        property_set("ctl.start", argv[1]);
+    } else {
+        /* default to "start zygote" "start runtime" */
+        property_set("ctl.start", "zygote");
+        property_set("ctl.start", "runtime");
+    }
+    
+    return 0;
+}