diff options
author | Bryce Lee <brycelee@google.com> | 2015-09-25 16:43:01 -0700 |
---|---|---|
committer | Bryce Lee <brycelee@google.com> | 2015-09-25 16:43:01 -0700 |
commit | bc58f59da6226c6f1d240c95d566186f679fc310 (patch) | |
tree | 778b861c7bf3544cdca8b07baec17bd3f46f5d7a /services/java | |
parent | 184440cea399d2332b5dc138a9e8a47e9cde3398 (diff) | |
download | frameworks_base-bc58f59da6226c6f1d240c95d566186f679fc310.zip frameworks_base-bc58f59da6226c6f1d240c95d566186f679fc310.tar.gz frameworks_base-bc58f59da6226c6f1d240c95d566186f679fc310.tar.bz2 |
Add ThermalObserver system service to capture thermal state uevents.
Bug: 21445745
Change-Id: I980d60b66ca51942a1fd62502d6cf1f09208fc3a
Diffstat (limited to 'services/java')
-rw-r--r-- | services/java/com/android/server/SystemServer.java | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ public final class SystemServer { if (!disableNonCoreServices) { mSystemServiceManager.startService(DockObserver.class); + + if (context.getPackageManager().hasSystemFeature + (PackageManager.FEATURE_WATCH)) { + mSystemServiceManager.startService(ThermalObserver.class); + } } try { |