commit | e786773b7ff04afb42e20b1a4c5f3c0c046b0028 | [log] [tgz] |
---|---|---|
author | Sumedh Sen <sumedhsen@google.com> | Thu Oct 03 18:35:13 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Feb 05 21:19:21 2025 -0800 |
tree | 2d2a5d67f15ad2c6a7b581d4b8fc8f2ac09edb97 | |
parent | ece83fb425b1e912a036e9985b710910e2e3ca37 [diff] |
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 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6775f07552f15f6e4b934bb9552f7a6abff8060b) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:bb073ca58e32df49cd23d88395a19b46809c2076) Merged-In: Ib31cabff5714500471bd397c743e127c85751a5c Change-Id: Ib31cabff5714500471bd397c743e127c85751a5c