Loading core/java/android/os/UserManager.java +8 −7 Original line number Diff line number Diff line Loading @@ -368,17 +368,18 @@ public class UserManager { public static final String DISALLOW_WIFI_TETHERING = "no_wifi_tethering"; /** * Specifies if a user is disallowed from being granted admin privileges. * Restricts a user's ability to possess or grant admin privileges. * * <p>This restriction limits ability of other admin users to grant admin * privileges to selected user. * <p>When set to <code>true</code>, this prevents the user from: * <ul> * <li>Becoming an admin</li> * <li>Giving other users admin privileges</li> * </ul> * * <p>This restriction has no effect in a mode that does not allow multiple admins. * <p>This restriction is only effective in environments where multiple admins are allowed. * * <p>The default value is <code>false</code>. * <p>Key for user restrictions. Type: Boolean. Default: <code>false</code>. * * <p>Key for user restrictions. * <p>Type: Boolean * @see DevicePolicyManager#addUserRestriction(ComponentName, String) * @see DevicePolicyManager#clearUserRestriction(ComponentName, String) * @see #getUserRestrictions() Loading Loading
core/java/android/os/UserManager.java +8 −7 Original line number Diff line number Diff line Loading @@ -368,17 +368,18 @@ public class UserManager { public static final String DISALLOW_WIFI_TETHERING = "no_wifi_tethering"; /** * Specifies if a user is disallowed from being granted admin privileges. * Restricts a user's ability to possess or grant admin privileges. * * <p>This restriction limits ability of other admin users to grant admin * privileges to selected user. * <p>When set to <code>true</code>, this prevents the user from: * <ul> * <li>Becoming an admin</li> * <li>Giving other users admin privileges</li> * </ul> * * <p>This restriction has no effect in a mode that does not allow multiple admins. * <p>This restriction is only effective in environments where multiple admins are allowed. * * <p>The default value is <code>false</code>. * <p>Key for user restrictions. Type: Boolean. Default: <code>false</code>. * * <p>Key for user restrictions. * <p>Type: Boolean * @see DevicePolicyManager#addUserRestriction(ComponentName, String) * @see DevicePolicyManager#clearUserRestriction(ComponentName, String) * @see #getUserRestrictions() Loading