Ethan Yonker | f117962 | 2016-08-25 15:32:21 -0500 | [diff] [blame^] | 1 | |
| 2 | #include <string.h> |
| 3 | #include <stdio.h> |
| 4 | #include <stdlib.h> |
| 5 | |
| 6 | #include <cutils/properties.h> |
| 7 | |
| 8 | int start_main(int argc, char *argv[]) |
| 9 | { |
| 10 | if(argc > 1) { |
| 11 | property_set("ctl.start", argv[1]); |
| 12 | } else { |
| 13 | /* defaults to starting the common services stopped by stop.c */ |
| 14 | property_set("ctl.start", "netd"); |
| 15 | property_set("ctl.start", "surfaceflinger"); |
| 16 | property_set("ctl.start", "zygote"); |
| 17 | property_set("ctl.start", "zygote_secondary"); |
| 18 | } |
| 19 | |
| 20 | return 0; |
| 21 | } |