M7350/system/core/toolbox/start.c

21 lines
404 B
C
Raw Normal View History

2024-09-09 08:52:07 +00:00
#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;
}