summaryrefslogtreecommitdiffstats
path: root/services/accessibility
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2014-10-04 15:45:44 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-04 15:45:44 +0000
commit848a1df1590bb3bf646a993c92e0423646bce349 (patch)
tree0f46bb13c1931bf44a33ef97b88bbb1fee66c182 /services/accessibility
parentbd998385f0f0379ffab30d0bc70c3007f5664f24 (diff)
parenta8df007dd468730fb581e135d46e0ddead9106fb (diff)
downloadframeworks_base-848a1df1590bb3bf646a993c92e0423646bce349.zip
frameworks_base-848a1df1590bb3bf646a993c92e0423646bce349.tar.gz
frameworks_base-848a1df1590bb3bf646a993c92e0423646bce349.tar.bz2
am a8df007d: am 423bf3d0: am cf0e4706: am 8ff6d70d: Merge "Clear identity before calling into the mount service." into lmp-dev
* commit 'a8df007dd468730fb581e135d46e0ddead9106fb': Clear identity before calling into the mount service.
Diffstat (limited to 'services/accessibility')
-rw-r--r--services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java13
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);
}
}