UserManager.DisallowFactoryReset Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies if a user is disallowed from factory resetting from Settings.
[Android.Runtime.Register("DISALLOW_FACTORY_RESET")]
public const string DisallowFactoryReset;
[<Android.Runtime.Register("DISALLOW_FACTORY_RESET")>]
val mutable DisallowFactoryReset : string
Field Value
- Attributes
Remarks
Specifies if a user is disallowed from factory resetting from Settings. This can only be set by device owners and profile owners on an admin user. The default value is false
.
This restriction has no effect on non-admin users since they cannot factory reset the device.
Holders of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_FACTORY_RESET
can set this restriction using the DevicePolicyManager APIs mentioned below.
Key for user restrictions.
Type: Boolean
Java documentation for android.os.UserManager.DISALLOW_FACTORY_RESET
.
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.