diff options
| author | 2021-06-23 08:41:11 +0200 | |
|---|---|---|
| committer | 2021-06-23 17:37:36 +0200 | |
| commit | a55382393eb42e3575e8f44737b3a369d9a87250 (patch) | |
| tree | 1828f669a045c1340039f91c8af73d656f798e26 /vulkan/libvulkan/api.cpp | |
| parent | 4aa928154b233b893a0ac4c2fffed8f2fb4f9a95 (diff) | |
Use IServiceManager method to check app permission
The current SensorService implementation uses PermissionCache to check
if the calling app has the normal permission HIGH_SAMPLING_RATE_SENSORS.
However, PermissionCache is not safe for normal permission because the
cache is not updated when there is a permission change (e.g., the case
discussed in b/190350124).
Bug: 190350124
Test: atest CtsSensorTestCases CtsSensorRatePermissionTestCases
Test: Wrote a test app and verified that permission change was correctly
checked by the SensorService.
Change-Id: I1acb32c59dafa1f5973553e3969666a8d2a4412a
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions