Merge "LSS: clear calling identity after permission check in checkCredential()"
This commit is contained in:
committed by
Android (Google) Code Review
commit
48030f33d2
@@ -2081,9 +2081,11 @@ public class LockSettingsService extends ILockSettings.Stub {
|
||||
public VerifyCredentialResponse checkCredential(LockscreenCredential credential, int userId,
|
||||
ICheckCredentialProgressCallback progressCallback) {
|
||||
checkPasswordReadPermission();
|
||||
final long identity = Binder.clearCallingIdentity();
|
||||
try {
|
||||
return doVerifyCredential(credential, userId, progressCallback, 0 /* flags */);
|
||||
} finally {
|
||||
Binder.restoreCallingIdentity(identity);
|
||||
scheduleGc();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user