diff options
| author | 2022-02-17 19:49:48 +0000 | |
|---|---|---|
| committer | 2022-02-18 16:11:10 +0000 | |
| commit | ce8499e167c9ad4896125c17f2015ac1d9528267 (patch) | |
| tree | d2d86887fdae360dafceb0afdd1291fab4c0ab82 /libs/androidfw/AttributeResolution.cpp | |
| parent | 4d897c6ad0f07d78765c67424c61f9521be4f28a (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/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions