summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.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> 2024-10-04 13:43:39 -0700
commit6775f07552f15f6e4b934bb9552f7a6abff8060b (patch)
tree4d13a2bbb3a5bb744d5ca84ee5d153c99c857edd /libs/androidfw/FileStream.cpp
parent53aebb03325b85ddaeb76ff3e71593b2097e8274 (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 Additionally, This reverts commit 7d0da763a044094c3a8fc51c28f3a0d9db8f9e3d. Change-Id: Ib31cabff5714500471bd397c743e127c85751a5c
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions