OSDN Git Service

Introduce a new user restriction for disallowing Bluetooth.
authorLenka Trochtova <ltrochtova@google.com>
Fri, 2 Dec 2016 11:19:39 +0000 (12:19 +0100)
committerLenka Trochtova <ltrochtova@google.com>
Mon, 5 Dec 2016 10:53:34 +0000 (11:53 +0100)
commit13a0519394388f1d617a5c3ee4473229e4c9c7cd
treeeb09c45203edb277d870bf15fe3870c0da39d3c6
parent6e2d3fa82f85e6c1c6c8a07e4ed47e96a74c9c93
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

Merged-In: I2875cf178cb16eca1965d0ba965d1cd3d8db2ad5

Change-Id: I2875cf178cb16eca1965d0ba965d1cd3d8db2ad5
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