共用方式為


DevicePolicyManager.ExtraProvisioningAllowOffline Field

Definition

A boolean extra indicating whether offline provisioning should be used.

[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 should be used.

The default value is false.

Usually during the 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.

When this extra is set to true, the provisioning flow will always be handled by the platform and the device policy management role holder's part skipped.

On Android versions prior to Build.VERSION_CODES#TIRAMISU, when this extra is false, the provisioning flow will enforce that an internet connection is established, or otherwise fail. When this extra is true, a connection will still be attempted but when it cannot be established provisioning will continue offline.

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