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:
Pavel Grafov
2023-02-08 17:36:33 +00:00
parent daf93050dc
commit 73ffe6dcae

View File

@@ -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