commit | 6ab2d13922953916662e64f66de65e7eeb324f34 | [log] [tgz] |
---|---|---|
author | Evan Severson <evanseverson@google.com> | Tue Apr 20 21:49:35 2021 -0700 |
committer | Rubin Xu <rubinxu@google.com> | Tue May 18 23:22:38 2021 +0100 |
tree | 42e8670f3ca7bc04f33b232cfaf4bdd2ad8c0d5b | |
parent | bd5c79d216abcd92a0b233d425a7abe553432ab2 [diff] |
Add device admin restrictions for mic/cam toggles Introduces DISALLOW_CAMERA_TOGGLE and DISALLOW_MICROPHONE_TOGGLE which are Device Owner restrictions to prevent the user from turning off global camera & microphone access on a fully-managed device. Test: atest DeviceOwnerTest#testSensorToggleRestriction Test: atest UserRestrictionsTest Bug: 184927615 Change-Id: I500f1283689497812bd2df606e35abe6d9d91c61