diff options
| author | Svetoslav <svetoslavganov@google.com> | 2014-10-03 23:57:48 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2014-10-03 23:57:48 +0000 |
| commit | 423bf3d0fc04e3ae3c00c0f64446778033a64f0b (patch) | |
| tree | 1370c5c4f1047a458e4bb68e432447555cb49198 | |
| parent | 3eddddb51b7e2ff048ccd0cbf37d9213f82bc8ca (diff) | |
| parent | cf0e4706e341f2239591af5b6934cb266cb3db61 (diff) | |
| download | frameworks_base-423bf3d0fc04e3ae3c00c0f64446778033a64f0b.zip frameworks_base-423bf3d0fc04e3ae3c00c0f64446778033a64f0b.tar.gz frameworks_base-423bf3d0fc04e3ae3c00c0f64446778033a64f0b.tar.bz2 | |
am cf0e4706: am 8ff6d70d: Merge "Clear identity before calling into the mount service." into lmp-dev
* commit 'cf0e4706e341f2239591af5b6934cb266cb3db61':
Clear identity before calling into the mount service.
| -rw-r--r-- | services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java b/services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java index 7438033..aff64e3 100644 --- a/services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java +++ b/services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java @@ -1610,10 +1610,15 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub { if (userState.mUserId != UserHandle.USER_OWNER) { return; } - if (hasRunningServicesLocked(userState) && LockPatternUtils.isDeviceEncrypted()) { - // If there are running accessibility services we do not have encryption as - // the user needs the accessibility layer to be running to authenticate. - mLockPatternUtils.clearEncryptionPassword(); + final long identity = Binder.clearCallingIdentity(); + try { + if (hasRunningServicesLocked(userState) && LockPatternUtils.isDeviceEncrypted()) { + // If there are running accessibility services we do not have encryption as + // the user needs the accessibility layer to be running to authenticate. + mLockPatternUtils.clearEncryptionPassword(); + } + } finally { + Binder.restoreCallingIdentity(identity); } } |
