summaryrefslogtreecommitdiff
path: root/libs/androidfw/ZipUtils.cpp
diff options
context:
space:
mode:
author Sumedh Sen <sumedhsen@google.com> 2024-10-03 18:35:13 +0000
committer Sumedh Sen <sumedhsen@google.com> 2025-01-07 16:30:45 -0800
commitd9ac13539d2bc7b9169b27cf12a48ef715820ab5 (patch)
tree3a93422ef32882ecfbfb98bd269998a7955bffae /libs/androidfw/ZipUtils.cpp
parent33c9725da5cd3cc1fac02d44d9f34c4f56782d67 (diff)
[RESTRICT AUTOMERGE] Check cross user permissions for a given UID
Instead of relying on Context#checkCallingOrSelfPermission, explicitly check permissions against a given UID. However, to maintain legacy behavior, replace custom UIDs with Binder.getCallingUid when enforcing permissions from a method. Also update tests afftected by this change - by adding methods to mocked objects Bug: 350456241 Test: sts-tradefed run sts-dynamic-develop -m CtsSecurityTestCases -t android.security.cts.ContentProviderMultiUserTests#testAccessFromInitialUser --user-type PRIMARY Test: sts-tradefed run sts-dynamic-develop -m CtsSecurityTestCases -t android.security.cts.ContentProviderMultiUserTests --user-type SECONDARY Change-Id: Ib31cabff5714500471bd397c743e127c85751a5c (cherry picked from commit 6775f07552f15f6e4b934bb9552f7a6abff8060b)
Diffstat (limited to 'libs/androidfw/ZipUtils.cpp')
0 files changed, 0 insertions, 0 deletions