Skip to content
Commit 92de0029 authored by Austin Borger's avatar Austin Borger
Browse files

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.

Modifications to the DevicePolicyManager are required for this to work.
The camera service user needs to be able to make cross-user queries, so
a check for its uid was added specifically for getCameraDisabled.

Test: Tested GCA with device policy set via TestDPC
Bug: 230026863
Change-Id: I922def3310f39b41dade06d656569222f4db46d7
Merged-In: I922def3310f39b41dade06d656569222f4db46d7
parent 33c34d0a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment