diff options
Diffstat (limited to 'core/java/android/os/UserManager.java')
| -rw-r--r-- | core/java/android/os/UserManager.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java index e7e0c040c34e..79553e0681ff 100644 --- a/core/java/android/os/UserManager.java +++ b/core/java/android/os/UserManager.java @@ -308,6 +308,25 @@ public class UserManager { public static final String DISALLOW_WIFI_TETHERING = "no_wifi_tethering"; /** + * Specifies if users are disallowed from sharing Wi-Fi for admin configured networks. + * + * <p>Device owner and profile owner can set this restriction. + * When it is set by any of these owners, it prevents all users from + * sharing Wi-Fi for networks configured by these owners. + * Other networks not configured by these owners are not affected. + * + * <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_SHARING_ADMIN_CONFIGURED_WIFI = + "no_sharing_admin_configured_wifi"; + + /** * Specifies if a user is disallowed from changing the device * language. The default value is <code>false</code>. * @@ -1478,6 +1497,9 @@ public class UserManager { DISALLOW_CAMERA_TOGGLE, KEY_RESTRICTIONS_PENDING, DISALLOW_BIOMETRIC, + DISALLOW_CHANGE_WIFI_STATE, + DISALLOW_WIFI_TETHERING, + DISALLOW_SHARING_ADMIN_CONFIGURED_WIFI, }) @Retention(RetentionPolicy.SOURCE) public @interface UserRestrictionKey {} |
