From 0343ec3abb205b21d554ab432710ff854f3d9d75 Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Mon, 22 Jul 2013 14:52:06 -0700 Subject: User restriction API to disable single-user restrictions feature. Change-Id: I80e08b38b5e32f3cb1af51398907510508ec199f --- core/java/android/os/UserManager.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/java/android/os') diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java index cdaa868..83426ae 100644 --- a/core/java/android/os/UserManager.java +++ b/core/java/android/os/UserManager.java @@ -140,6 +140,16 @@ public class UserManager { */ public static final String DISALLOW_REMOVE_USER = "no_remove_user"; + /** + * Key for user restrictions. Specifies if a user is disallowed from setting app restrictions + * via a restrictions PIN. The default is false. If app restrictions have already + * been set up, then this user restriction cannot be set to true. + *

+ * Type: Boolean + * @see #hasRestrictionsPin() + */ + public static final String DISALLOW_APP_RESTRICTIONS = "no_app_restrictions"; + /** @hide */ public static final int PIN_VERIFICATION_FAILED_INCORRECT = -3; /** @hide */ -- cgit v1.1