Merge "Clear identity before calling into the mount service." into lmp-dev
This commit is contained in:
@@ -1610,10 +1610,15 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
|
|||||||
if (userState.mUserId != UserHandle.USER_OWNER) {
|
if (userState.mUserId != UserHandle.USER_OWNER) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (hasRunningServicesLocked(userState) && LockPatternUtils.isDeviceEncrypted()) {
|
final long identity = Binder.clearCallingIdentity();
|
||||||
// If there are running accessibility services we do not have encryption as
|
try {
|
||||||
// the user needs the accessibility layer to be running to authenticate.
|
if (hasRunningServicesLocked(userState) && LockPatternUtils.isDeviceEncrypted()) {
|
||||||
mLockPatternUtils.clearEncryptionPassword();
|
// 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user