Freigeben über


DevicePolicyManager.ExtraProvisioningAllowOffline Field

Definition

A boolean extra indicating whether offline provisioning is allowed.

[Android.Runtime.Register("EXTRA_PROVISIONING_ALLOW_OFFLINE", ApiSince=33)]
public const string ExtraProvisioningAllowOffline;
[<Android.Runtime.Register("EXTRA_PROVISIONING_ALLOW_OFFLINE", ApiSince=33)>]
val mutable ExtraProvisioningAllowOffline : string

Field Value

Attributes

Remarks

A boolean extra indicating whether offline provisioning is allowed.

For the online provisioning flow, there will be an attempt to download and install the latest version of the device policy management role holder. The platform will then delegate provisioning to the device policy management role holder via role holder-specific provisioning actions.

For the offline provisioning flow, the provisioning flow will always be handled by the platform.

If this extra is set to false, the provisioning flow will enforce that an internet connection is established, which will start the online provisioning flow. If an internet connection cannot be established, provisioning will fail.

If this extra is set to true, the provisioning flow will still try to connect to the internet, but if it fails it will start the offline provisioning flow.

For T if this extra is set to true, the provisioning flow will be forced through the platform and there will be no attempt to download and install the device policy management role holder.

The default value is false.

This extra is respected when provided via the provisioning intent actions such as #ACTION_PROVISION_MANAGED_PROFILE.

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

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