diff options
| author | yuemingw <yuemingw@google.com> | 2017-11-29 15:52:56 +0000 |
|---|---|---|
| committer | Yueming Wang <yuemingw@google.com> | 2017-12-21 21:49:03 +0000 |
| commit | 5fe75dc26d55a86f223fa5571b64e30731341564 (patch) | |
| tree | c5db506c5f5efbc64df223cee3e7dd719cc894c3 /core/java/android/os/UserManager.java | |
| parent | 7cc2c4c2ee8543e0a04dc1378db2be7224535d22 (diff) | |
Add DISALLOW_AIRPLANE_MODE.
Bug: 67675441
Test: cts test will be added for b/67675455
Design doc: https://docs.google.com/document/d/1rvEg5jE3lMhjH-OA0iTLBUY2opM96fg7BrP81MoPnmg/edit#
Change-Id: I902b281695a7e734639c9d6d4852a0e96fea8305
Diffstat (limited to 'core/java/android/os/UserManager.java')
| -rw-r--r-- | core/java/android/os/UserManager.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java index 9306973210fa..dd9fd93ed472 100644 --- a/core/java/android/os/UserManager.java +++ b/core/java/android/os/UserManager.java @@ -194,6 +194,21 @@ public class UserManager { public static final String DISALLOW_SHARE_LOCATION = "no_share_location"; /** + * Specifies if airplane mode is disallowed on the device. + * + * <p> This restriction can only be set by the device owner and the profile owner on the + * primary user and it applies globally - i.e. it disables airplane mode on the entire device. + * <p>The default value is <code>false</code>. + * + * <p>Key for user restrictions. + * <p>Type: Boolean + * @see DevicePolicyManager#addUserRestriction(ComponentName, String) + * @see DevicePolicyManager#clearUserRestriction(ComponentName, String) + * @see #getUserRestrictions() + */ + public static final String DISALLOW_AIRPLANE_MODE = "no_airplane_mode"; + + /** * Specifies if a user is disallowed from enabling the * "Unknown Sources" setting, that allows installation of apps from unknown sources. * The default value is <code>false</code>. |
