summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Sanjana Sunil <sanjanasunil@google.com> 2024-06-04 12:11:35 +0000
committer Sanjana Sunil <sanjanasunil@google.com> 2024-06-04 12:13:44 +0000
commit3ad5380b8349cba8ebc0b386d6aae08e6c512d61 (patch)
tree0537423533d6ba87c3c22848755b9f15ff4da250 /libs/androidfw/StringPool.cpp
parent15bedcc39855c9159b2b2fde97fba7042076a37a (diff)
Avoid using UserHandle.isSameApp() in package check
SDK sandbox processes created from the sandbox package do not have the uid of the package - they use a separate uid range instead. UserHandle.isSameApp() does not take this account when run for the sandbox. This causes clipboard tests that use this API to fail when run in the sandbox. Instead, use the API PackageManagerService.isSameApp() that takes into account the differences between sandbox package uid and sandbox process uid. Bug: 344805434 Test: atest TextViewReceiveContentTest -- --enable-optional-parameterization --enable-parameterized-modules --module-parameter run_on_sdk_sandbox Change-Id: I08ae3027b2b9fb64a3d88539dc8150a76be881bd
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions