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 09:46:58 +0000 (10:46 +0100)
commitf15cf38311c90ba34d633b4a81e80226adc08e43
tree603ef657e6afa9350eee68643a1b240fde9cc4fd
parent1e498a96c11bb79baecac9c90fb9c9e2a8adfbed
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