commit | bc58f59da6226c6f1d240c95d566186f679fc310 | [log] [tgz] |
---|---|---|
author | Bryce Lee <brycelee@google.com> | Fri Sep 25 16:43:01 2015 -0700 |
committer | Bryce Lee <brycelee@google.com> | Fri Sep 25 16:43:01 2015 -0700 |
tree | 778b861c7bf3544cdca8b07baec17bd3f46f5d7a | |
parent | 184440cea399d2332b5dc138a9e8a47e9cde3398 [diff] [blame] |
Add ThermalObserver system service to capture thermal state uevents. Bug: 21445745 Change-Id: I980d60b66ca51942a1fd62502d6cf1f09208fc3a
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index 3effe63..08816b9 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java
@@ -825,6 +825,11 @@ if (!disableNonCoreServices) { mSystemServiceManager.startService(DockObserver.class); + + if (context.getPackageManager().hasSystemFeature + (PackageManager.FEATURE_WATCH)) { + mSystemServiceManager.startService(ThermalObserver.class); + } } try {