Partager via


DeviceAdminReceiver.ActionPasswordChanged Field

Definition

Action sent to a device administrator when the user has changed the password of their device or profile challenge.

[Android.Runtime.Register("ACTION_PASSWORD_CHANGED")]
public const string ActionPasswordChanged;
[<Android.Runtime.Register("ACTION_PASSWORD_CHANGED")>]
val mutable ActionPasswordChanged : string

Field Value

Attributes

Remarks

Action sent to a device administrator when the user has changed the password of their device or profile challenge. You can at this point check the characteristics of the new password with DevicePolicyManager#isActivePasswordSufficient() DevicePolicyManager.isActivePasswordSufficient(). You will generally handle this in DeviceAdminReceiver#onPasswordChanged(Context, Intent, UserHandle).

The calling device admin must have requested DeviceAdminInfo#USES_POLICY_LIMIT_PASSWORD to receive this broadcast.

Java documentation for android.app.admin.DeviceAdminReceiver.ACTION_PASSWORD_CHANGED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to