Philip Junker 2684254374 Disallow usb access to camera and mic devices if global privacy toggle is active
Note that this will not prevent currently running apps from accessing
usb devies to which a connection has already been established.
Removed isCameraDevicePresent() as this has been implemented as well in
UsbDevice#getHasVideoCapture().

Bug: 189915399
Test: Install nExt Camera - USB app, verify that camera is not accessible when camera privacy toggle is disabled.
Change-Id: Ie60adfe9fc667d883ad4a6b8d7582a4bc17d1549
Merged-In: Ie60adfe9fc667d883ad4a6b8d7582a4bc17d1549
(cherry picked from commit f063780d433c6e429a14dd4d98d67764d7760908)
(cherry picked from commit 79023f08d310bf1c5405ca70c563938bd51756cc)
2021-08-13 19:39:51 +00:00
..