diff options
author | Amith Yamasani <yamasani@google.com> | 2013-07-22 14:52:06 -0700 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2013-07-23 09:17:21 -0700 |
commit | 0343ec3abb205b21d554ab432710ff854f3d9d75 (patch) | |
tree | 856cfb8984a449fbab998b73b84f3087f5a53548 /core/java/android/os | |
parent | 6944165014bf026e24aafe0cb359d7aad66bea7b (diff) | |
download | frameworks_base-0343ec3abb205b21d554ab432710ff854f3d9d75.zip frameworks_base-0343ec3abb205b21d554ab432710ff854f3d9d75.tar.gz frameworks_base-0343ec3abb205b21d554ab432710ff854f3d9d75.tar.bz2 |
User restriction API to disable single-user restrictions feature.
Change-Id: I80e08b38b5e32f3cb1af51398907510508ec199f
Diffstat (limited to 'core/java/android/os')
-rw-r--r-- | core/java/android/os/UserManager.java | 10 |
1 files changed, 10 insertions, 0 deletions
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 <code>false</code>. If app restrictions have already + * been set up, then this user restriction cannot be set to true. + * <p/> + * 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 */ |