commit | 5f7abe2f93e76b1479ed6a280829a3e8acad3b31 | [log] [tgz] |
---|---|---|
author | Austin Borger <borgera@google.com> | Tue Apr 26 15:55:10 2022 -0700 |
committer | Austin Borger <borgera@google.com> | Tue Apr 26 15:55:10 2022 -0700 |
tree | 7b8bb39d127b553b690004425e3171c2fc02a2ab | |
parent | 833028673ecc188f5ca42e7373dfed908dec7102 [diff] |
Check the device policy for the camera disabled flag before trying to open a connection to the camera. When the camera is disabled from both the device policy and camera settings, GCA will not receive onError with ERROR_CAMERA_DISABLED. This is incorrect behavior which is fixed by this patch. Bug: 230026863, 203063139 Test: Verified camera app closes when both settings are disabled. Change-Id: I514b38c23a136994de702ea4aacc9be65ab46d70