Udostępnij za pośrednictwem


UserManager.DisallowDebuggingFeatures Field

Definition

Specifies if a user is disallowed from enabling or accessing debugging features.

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

Field Value

Attributes

Remarks

Specifies if a user is disallowed from enabling or accessing debugging features.

A device owner and a profile owner can set this restriction. When it is set by a device owner, a profile owner on the primary user or by a profile owner of an organization-owned managed profile on the parent profile, it disables debugging features altogether, including USB debugging. When set on a managed profile or a secondary user, it blocks debugging for that user only, including starting activities, making service calls, accessing content providers, sending broadcasts, installing/uninstalling packages, clearing user data, etc.

Holders of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_DEBUGGING_FEATURES can set this restriction using the DevicePolicyManager APIs mentioned below.

The default value is false.

Key for user restrictions.

Type: Boolean

Java documentation for android.os.UserManager.DISALLOW_DEBUGGING_FEATURES.

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

See also