summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorBenjamin Franz <bfranz@google.com>2015-03-05 18:33:51 +0000
committerBenjamin Franz <bfranz@google.com>2015-03-19 09:19:18 +0000
commitbff46bac807ae8a9ebdc22c449a8d4f78711b4d2 (patch)
treea2e0457294644888488e596f0498a709d06832f2 /core/java
parent5955c3142524ca456ef291175f11aa3ce0e79dff (diff)
downloadframeworks_base-bff46bac807ae8a9ebdc22c449a8d4f78711b4d2.zip
frameworks_base-bff46bac807ae8a9ebdc22c449a8d4f78711b4d2.tar.gz
frameworks_base-bff46bac807ae8a9ebdc22c449a8d4f78711b4d2.tar.bz2
Add DO policy to disable safe boot mode.
Bug: 19615843 Change-Id: I14dbe911995ec216c57bd285d6b7b04c9684591a
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/os/UserManager.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java
index 706e0d0..3601a1c 100644
--- a/core/java/android/os/UserManager.java
+++ b/core/java/android/os/UserManager.java
@@ -400,6 +400,18 @@ public class UserManager {
public static final String DISALLOW_WALLPAPER = "no_wallpaper";
/**
+ * Specifies if the user is not allowed to reboot the device into safe boot mode.
+ * This can only be set by device owners and profile owners on the primary user.
+ * The default value is <code>false</code>.
+ *
+ * <p/>Key for user restrictions.
+ * <p/>Type: Boolean
+ * @see #setUserRestrictions(Bundle)
+ * @see #getUserRestrictions()
+ */
+ public static final String DISALLOW_SAFE_BOOT = "no_safe_boot";
+
+ /**
* Application restriction key that is used to indicate the pending arrival
* of real restrictions for the app.
*