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

Skip to content
Commit f356c813 authored by Daniel Norman's avatar Daniel Norman
Browse files

Revert "Revert "Use PM#isSameApp instead of getPackageUidAsUser.""

This reverts commit adc7c25e.

Includes the following change on top of the original
commit 9a96e9ec
- Creates a new overload of `PM#isSameApp` that accepts flags,
  and provides MATCH_ANY_USER to this call.

This now allows that call to succeed when looking up the uid of an app
installed in the work profile and *not* installed in the main non-work
user profile when passing the UserHandle of the non-work user as done
by accessibility.

Bug: 257047268
Bug: 279686368
Test: atest AccessibilitySecurityPolicyTest
Test: atest MixedManagedProfileOwnerTest#testPermissionPolicy
Test: Install SdkSandboxClient test app in work profile,
      explore by touch using TalkBack
Test: Repeat the above after deleting the test app from the non-work
      profile so that the app is only present in the work profile.
Change-Id: Ie09108685112b27ee5ee6d9ce6029cef84e8078c
parent 9188aa60
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