Clear identity in LockSettingsInternal.getUserPasswordMetrics
It is an implementation of LockSettingsInternal API which is callable only within system server, so permission check seems unnecessary. Bug: 256170784 Bug: 268313443 Test: manual with TestDPC Change-Id: I123402351ed1e69bea9a2496a07fd57e6d467e14
This commit is contained in:
@@ -3439,10 +3439,10 @@ public class LockSettingsService extends ILockSettings.Stub {
|
||||
Slog.w(TAG, "Querying password metrics for unified challenge profile: "
|
||||
+ userHandle);
|
||||
}
|
||||
return LockSettingsService.this.getUserPasswordMetrics(userHandle);
|
||||
} finally {
|
||||
Binder.restoreCallingIdentity(identity);
|
||||
}
|
||||
return LockSettingsService.this.getUserPasswordMetrics(userHandle);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user