summaryrefslogtreecommitdiffstats
path: root/toolbox/start.c
blob: 3bd9fbbbb7ec5b0d265a898e1ea9fe923790fed5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
}