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

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

Use PM#isSameApp instead of getPackageUidAsUser.

PM#isSameApp provides the same intended functionality as checking
PM#getPackageUidAsUser, but has special case handling for SDK Sandbox
uids which follow a different pattern.
PM#isSameApp uses UserHandle#isSameApp under the hood, which also
already includes logic to ignore the user id part of uids so we
preserve the same MATCH_ANY_USER behavior as the prior version.

Bug: 257047268
Test: atest AccessibilitySecurityPolicyTest
Test: Install SdkSandboxClient test app in work profile,
      explore by touch using TalkBack
Change-Id: Icb49d024a7c1ee9dda6f7a57778142e833e55613
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