OSDN Git Service

Introduce a new user restriction for disallowing Bluetooth.
authorLenka Trochtova <ltrochtova@google.com>
Thu, 24 Nov 2016 15:48:37 +0000 (16:48 +0100)
committerLenka Trochtova <ltrochtova@google.com>
Thu, 1 Dec 2016 09:56:51 +0000 (10:56 +0100)
commit69f9d321ac19e7137e07b411779339f9973eba1b
tree33ba9fdcb9e5e2e4b032a254645d3dbfd6135203
parentf9479fe6393c15a2c83159ab6a22ee9628e9d6b7
Introduce a new user restriction for disallowing Bluetooth.

Only the device owner will be able to set the restriction
and the restriction will prevent usage of Bluetooth on
the  entire device - i.e. in all the users.

Test: cts-tradefed run cts -m  CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.UserRestrictionsTest
Test: cts-tradefed run cts -m  CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.DeviceOwnerTest#testBluetoothRestriction

Bug: 32895300

Change-Id: Iae77647b1e48be6b8efbeccdff6a3d468a0e174d
api/current.txt
api/system-current.txt
api/test-current.txt
core/java/android/os/UserManager.java
services/core/java/com/android/server/BluetoothManagerService.java
services/core/java/com/android/server/pm/UserRestrictionsUtils.java