summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Daniel Norman <danielnorman@google.com> 2023-04-24 14:20:34 -0700
committer Daniel Norman <danielnorman@google.com> 2023-04-24 23:12:53 +0000
commit9a96e9ec44d2bd3ff2448ab92c79dde81ca4ab63 (patch)
tree16167ae0350681dc24693eb410f5044a6ec5305d /libs/androidfw/StringPool.cpp
parent9188aa60688692d205e85a2131c396e8669f0f4e (diff)
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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions