summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Anthony Stange <stange@google.com> 2022-02-17 19:49:48 +0000
committer Anthony Stange <stange@google.com> 2022-02-18 16:11:10 +0000
commitce8499e167c9ad4896125c17f2015ac1d9528267 (patch)
treed2d86887fdae360dafceb0afdd1291fab4c0ab82 /libs/androidfw/StringPool.cpp
parent4d897c6ad0f07d78765c67424c61f9521be4f28a (diff)
Use enforceCallingOrSelfPermission for ContextHub APIs
Previously, checkCallingPermission was used which fails when an IPC isn't used (e.g. something in the system server calls our APIs). Additionally, enforceCallingOrSelfPermission helps throw an exception with better logging than the check and throw does today. Fixes: 220167285 Test: Call from system server code Change-Id: I152ff750fa1505628bfe7f9cd78f21a222eefa87
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions