summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Anh Pham <anhph@google.com> 2021-03-22 18:17:17 +0100
committer Anh Pham <anhph@google.com> 2021-03-22 18:58:22 +0100
commitb04658bdf402b3a1dabd9f5722ec85b30bc35bbf (patch)
treeb4da4845cfed8f3b5c6aad8f53fa8b588ce23dea /vulkan/libvulkan/api.cpp
parentdf549ea500d842d3c35303183a69b6474a8d47b7 (diff)
Clear calling ID before using SensorPrivacyManager
This is needed because some methods of SensorPrivacyManager have been gated by a system permission. As a result, we have to clear binder caller identity before calling these methods so that they are executed with the same level of privilege as the SensorService. Otherwise, if an app A makes a request to the SensorService to set up a sensor data connection and the SensorService needs to call SensorPrivacyService e.g., to register for a mic toggle state listener, the SensorPrivacyService will think that it's app A that is calling, hence failing the permission check. Test: atest CtsSensorTestCases CtsSensorRatePermissionTestCases Bug: 136069189 Bug: 179649922 Change-Id: Ib665230fe4b6dd7c598289b8af62171222855e03
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions