diff options
| author | 2024-10-03 18:35:13 +0000 | |
|---|---|---|
| committer | 2025-01-07 16:32:14 -0800 | |
| commit | 09e1305514e53ed73c9bcc79d25ccf77f623e6b0 (patch) | |
| tree | bae0634ce11638d916bb0ae4697472998c370ecf /ravenwood/scripts/extract-last-soong-commands.py | |
| parent | ec5b02f0c151d01a2565b4d9788297a4b671393f (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 affected 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
Merged-In: Ib31cabff5714500471bd397c743e127c85751a5c
Diffstat (limited to 'ravenwood/scripts/extract-last-soong-commands.py')
0 files changed, 0 insertions, 0 deletions