diff options
Diffstat (limited to 'services/java')
-rw-r--r-- | services/java/com/android/server/LocationManagerService.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/services/java/com/android/server/LocationManagerService.java b/services/java/com/android/server/LocationManagerService.java index 5abf249..705ddb3 100644 --- a/services/java/com/android/server/LocationManagerService.java +++ b/services/java/com/android/server/LocationManagerService.java @@ -2074,6 +2074,8 @@ public class LocationManagerService extends ILocationManager.Stub private void updateWakelockStatusLocked(boolean screenOn) { log("updateWakelockStatus(): " + screenOn); + long callerId = Binder.clearCallingIdentity(); + boolean needsLock = false; long minTime = Integer.MAX_VALUE; @@ -2117,6 +2119,7 @@ public class LocationManagerService extends ILocationManager.Stub mLocationHandler.removeMessages(MESSAGE_RELEASE_WAKE_LOCK); releaseWakeLockLocked(); } + Binder.restoreCallingIdentity(callerId); } private void acquireWakeLockLocked() { |