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

Skip to content
Commit f87160ee authored by Yasin Kilicdere's avatar Yasin Kilicdere
Browse files

Puts mPm.onNewUserCreated inside Binder.withCleanCallingIdentity

PackageManagerService.onNewUserCreated eventually calls
ComputerEngine.getInstalledPackages. And it requires callingUid to have
INTERACT_ACROSS_USERS permission. That was failing some tests for auto.
This CL makes sure that method is called with clean calling identity.

Bug: 228253821
Test: atest CtsMultiUserTestCases:android.multiuser.cts.UserManagerTest#testCreateUser_withNewUserRequest_shouldCreateUserWithCorrectProperties
Change-Id: Ia06b9d5e6501140541e8d520350368df1abe2f15
parent 8ade0d82
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment