summaryrefslogtreecommitdiff
path: root/libs/androidfw/ZipFileRO.cpp
diff options
context:
space:
mode:
author Sanjana Sunil <sanjanasunil@google.com> 2024-05-13 11:38:11 +0000
committer Sanjana Sunil <sanjanasunil@google.com> 2024-05-13 11:46:43 +0000
commit46ed73f7a65a672392e49a3c37bdd5ed630b317d (patch)
treef2317a4c88234a94c8baa628141e4a9c44e6c9dc /libs/androidfw/ZipFileRO.cpp
parent67817d10580177809426c08292754f68776d5139 (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. Instead, use the API PackageManagerService.isSameApp() that takes into account the differences between sandbox package uid and sandbox process uid. Bug: 340172289 Test: atest IntentTest#testCreateChooser -- --enable-optional-parameterization --enable-parameterized-modules --module-parameter run_on_sdk_sandbox Change-Id: Iedc34ccf8bb397059268eef373bb4eace7f7d99c
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions