Skip to content
Commit ce8499e1 authored by Anthony Stange's avatar Anthony Stange
Browse files

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
parent 4d897c6a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment