Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1163e15e authored by Eric Biggers's avatar Eric Biggers
Browse files

UserManagerService: clear calling identity in getCredentialOwnerProfile()

Add the missing Binder.clearCallingIdentity() to
UserManagerService#getCredentialOwnerProfile(), just after the
checkManageUsersPermission().  This avoids a warning in
UserManager#getUserProperties() about the system fetching UserProperties
on behalf of another uid.  Since checkManageUsersPermission() ensures
that the caller can see all the user properties anyway, the actual
result should remain the same (besides the warning message going away).

Bug: 403355811
Test: atest FrameworksServicesTests:UserManagerServiceTest
Flag: EXEMPT bugfix
Change-Id: I635a15afef5fa9d0b1b04c5a203e19a6df30fdb7
parent 9d8c6297
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment