diff options
| author | 2025-03-18 00:52:16 +0000 | |
|---|---|---|
| committer | 2025-03-18 03:01:31 +0000 | |
| commit | 02586d4c6a1579728a56135add23712f9866ffa6 (patch) | |
| tree | f8156f5f8b5b93a6311f25e991b4a8d94647dd3e /libs/androidfw/AssetsProvider.cpp | |
| parent | a5bb866c0f1b72ac8740f743ec908d7fcd2b600c (diff) | |
LockSettingsService: simplify querying of credential shareability
Instead of creating a UserManager for the desired userId and then
calling the deprecated method
UserManager#isCredentialSharableWithParent(), use
UserManagerInternal#getUserProperties(userId).isCredentialShareableWithParent().
UserManagerInternal is the preferred way to get user properties in
system_server itself, since it avoids unnecessary checks and an
unnecessary copy of the UserProperties object.
Also add the missing "e" to
LockSettingsService#isCredentialSharableWithParent().
Bug: 403355811
Test: atest FrameworksServicesTests:com.android.server.locksettings
Flag: EXEMPT refactor
Change-Id: I43d11c3cd87f798a3d782146994e17041e55b268
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions