commit | 80173a933a7d8331132e756b6cb1983ca8ced42d | [log] [tgz] |
---|---|---|
author | Austin Borger <borgera@google.com> | Wed Aug 03 17:50:40 2022 -0700 |
committer | Austin Borger <borgera@google.com> | Wed Sep 07 18:28:03 2022 +0000 |
tree | 88ecd1fef7359ebb4b70312d6e910e143e0f0ad0 | |
parent | 1f0ac9da70d59bb6fcf3480fd47083287513b31b [diff] [blame] |
CameraService: Check if the camera is disabled via device policy by user. The current approach to checking the camera device policy is multi-user agnostic. This patch takes the user into account. Test: Tested GCA with device policy set via TestDPC Bug: 230026863 Change-Id: I3937f75ebfc219906a3c379b6b4cfacd801a40bf Merged-In: I3937f75ebfc219906a3c379b6b4cfacd801a40bf
diff --git a/services/camera/libcameraservice/utils/CameraServiceProxyWrapper.h b/services/camera/libcameraservice/utils/CameraServiceProxyWrapper.h index e34a8f0..eb818d1 100644 --- a/services/camera/libcameraservice/utils/CameraServiceProxyWrapper.h +++ b/services/camera/libcameraservice/utils/CameraServiceProxyWrapper.h
@@ -97,7 +97,7 @@ static int getRotateAndCropOverride(String16 packageName, int lensFacing, int userId); // Detect if the camera is disabled by device policy. - static bool isCameraDisabled(); + static bool isCameraDisabled(int userId); }; } // android