diff options
Diffstat (limited to 'core/java/android/app/KeyguardManager.java')
-rw-r--r-- | core/java/android/app/KeyguardManager.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/app/KeyguardManager.java b/core/java/android/app/KeyguardManager.java index a79a8fc..ef61af7 100644 --- a/core/java/android/app/KeyguardManager.java +++ b/core/java/android/app/KeyguardManager.java @@ -62,6 +62,9 @@ public class KeyguardManager { * Note: This call has no effect while any {@link android.app.admin.DevicePolicyManager} * is enabled that requires a password. * + * <p>This method requires the caller to hold the permission + * {@link android.Manifest.permission#DISABLE_KEYGUARD}. + * * @see #reenableKeyguard() */ public void disableKeyguard() { @@ -80,6 +83,9 @@ public class KeyguardManager { * Note: This call has no effect while any {@link android.app.admin.DevicePolicyManager} * is enabled that requires a password. * + * <p>This method requires the caller to hold the permission + * {@link android.Manifest.permission#DISABLE_KEYGUARD}. + * * @see #disableKeyguard() */ public void reenableKeyguard() { @@ -188,6 +194,9 @@ public class KeyguardManager { * This will, if the keyguard is secure, bring up the unlock screen of * the keyguard. * + * <p>This method requires the caller to hold the permission + * {@link android.Manifest.permission#DISABLE_KEYGUARD}. + * * @param callback Let's you know whether the operation was succesful and * it is safe to launch anything that would normally be considered safe * once the user has gotten past the keyguard. |