blob: 5e3ce3c8c924957f915176e413251c9c2d37ddba [file] [log] [blame]
Ethan Yonkerf1179622016-08-25 15:32:21 -05001#include <stdio.h>
2#include <string.h>
3
4#include <cutils/properties.h>
5
6int 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}