| The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [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 | { | 
| The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 8 | if(argc > 1) { | 
|  | 9 | property_set("ctl.stop", argv[1]); | 
|  | 10 | } else{ | 
| Brad Fitzpatrick | d8ed091 | 2011-03-04 15:38:40 -0800 | [diff] [blame] | 11 | /* defaults to stopping the common services */ | 
| Narayan Kamath | 22e22ac | 2014-05-09 17:56:33 +0100 | [diff] [blame] | 12 | property_set("ctl.stop", "zygote_secondary"); | 
| The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 13 | property_set("ctl.stop", "zygote"); | 
| Brad Fitzpatrick | d8ed091 | 2011-03-04 15:38:40 -0800 | [diff] [blame] | 14 | property_set("ctl.stop", "surfaceflinger"); | 
| Sreeram Ramachandran | 018c6a5 | 2014-07-19 00:47:59 -0700 | [diff] [blame] | 15 | property_set("ctl.stop", "netd"); | 
| The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 16 | } | 
|  | 17 |  | 
|  | 18 | return 0; | 
|  | 19 | } |