commit | ce8499e167c9ad4896125c17f2015ac1d9528267 | [log] [tgz] |
---|---|---|
author | Anthony Stange <stange@google.com> | Thu Feb 17 19:49:48 2022 +0000 |
committer | Anthony Stange <stange@google.com> | Fri Feb 18 16:11:10 2022 +0000 |
tree | d2d86887fdae360dafceb0afdd1291fab4c0ab82 | |
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