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