commit | 9bfa0a7bddbc7b7f866bc46faa1f62f0d023c332 | [log] [tgz] |
---|---|---|
author | Austin Borger <borgera@google.com> | Wed Aug 03 17:50:40 2022 -0700 |
committer | Austin Borger <borgera@google.com> | Tue Aug 23 10:39:33 2022 -0700 |
tree | 47d9e13e8108addb33cd1f73c77a2eb14b0fbb91 | |
parent | 78122aeef44ea3c92d708ba90aec087bcba42f61 [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
diff --git a/services/camera/libcameraservice/utils/CameraServiceProxyWrapper.h b/services/camera/libcameraservice/utils/CameraServiceProxyWrapper.h index 6af56c3..c00c691 100644 --- a/services/camera/libcameraservice/utils/CameraServiceProxyWrapper.h +++ b/services/camera/libcameraservice/utils/CameraServiceProxyWrapper.h
@@ -105,7 +105,7 @@ int getRotateAndCropOverride(String16 packageName, int lensFacing, int userId); // Detect if the camera is disabled by device policy. - bool isCameraDisabled(); + bool isCameraDisabled(int userId); }; } // android