diff options
author | Wink Saville <wink@google.com> | 2010-10-03 13:39:11 -0700 |
---|---|---|
committer | Wink Saville <wink@google.com> | 2010-10-03 13:53:26 -0700 |
commit | 30d4d57e8ed421a7d910c86c96c5648c899c2c9b (patch) | |
tree | 4c3b3ab4fd3168e053f4dfbdb0e173c3a66baaf8 /core/java/android/os/SystemService.java | |
parent | 937a6f635715f24c4e586d87d093faf86208838d (diff) | |
download | frameworks_base-30d4d57e8ed421a7d910c86c96c5648c899c2c9b.zip frameworks_base-30d4d57e8ed421a7d910c86c96c5648c899c2c9b.tar.gz frameworks_base-30d4d57e8ed421a7d910c86c96c5648c899c2c9b.tar.bz2 |
Add SystemService.restart.
This allows easy access to the new SystemProperties ctl.restart
control command.
Change-Id: I3e82710873adff54ef8a0cb53ca13d4dcab2408d
Diffstat (limited to 'core/java/android/os/SystemService.java')
-rw-r--r-- | core/java/android/os/SystemService.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/os/SystemService.java b/core/java/android/os/SystemService.java index 447cd1f..da27db5 100644 --- a/core/java/android/os/SystemService.java +++ b/core/java/android/os/SystemService.java @@ -28,4 +28,9 @@ public class SystemService public static void stop(String name) { SystemProperties.set("ctl.stop", name); } + + /** Request that the init daemon restart a named service. */ + public static void restart(String name) { + SystemProperties.set("ctl.restart", name); + } } |