diff options
| author | 2024-10-03 18:35:13 +0000 | |
|---|---|---|
| committer | 2025-01-07 16:33:24 -0800 | |
| commit | d87d678b1480e42c9c9d5b50d7b4b9a7585f5647 (patch) | |
| tree | ae0f93738ae0ab06a18b88a47b66ba6d06b718ee /libs/androidfw/ApkParsing.cpp | |
| parent | 361f663370dc915607b4b9e17bc0a49d43cb799e (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/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions