Share via


DevicePolicyManager.ExtraProvisioningSensorsPermissionGrantOptOut Field

Definition

A boolean extra indicating the admin of a fully-managed device opts out of controlling permission grants for sensor-related permissions, see #setPermissionGrantState(ComponentName, String, String, int).

[Android.Runtime.Register("EXTRA_PROVISIONING_SENSORS_PERMISSION_GRANT_OPT_OUT", ApiSince=31)]
public const string ExtraProvisioningSensorsPermissionGrantOptOut;
[<Android.Runtime.Register("EXTRA_PROVISIONING_SENSORS_PERMISSION_GRANT_OPT_OUT", ApiSince=31)>]
val mutable ExtraProvisioningSensorsPermissionGrantOptOut : string

Field Value

Attributes

Remarks

A boolean extra indicating the admin of a fully-managed device opts out of controlling permission grants for sensor-related permissions, see #setPermissionGrantState(ComponentName, String, String, int).

The default for this extra is false - by default, the admin of a fully-managed device has the ability to grant sensors-related permissions.

Use only for device owner provisioning. This extra can be returned by the admin app when performing the admin-integrated provisioning flow as a result of the #ACTION_GET_PROVISIONING_MODE activity.

This extra may also be provided to the admin app via an intent extra for #ACTION_GET_PROVISIONING_MODE.

Java documentation for android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_SENSORS_PERMISSION_GRANT_OPT_OUT.

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