DevicePolicyManager.ActionGetProvisioningMode Field

Definition

Activity action: Starts the administrator to get the mode for the provisioning.

[Android.Runtime.Register("ACTION_GET_PROVISIONING_MODE", ApiSince=29)]
public const string ActionGetProvisioningMode;
[<Android.Runtime.Register("ACTION_GET_PROVISIONING_MODE", ApiSince=29)>]
val mutable ActionGetProvisioningMode : string

Field Value

Attributes

Remarks

Activity action: Starts the administrator to get the mode for the provisioning. This intent may contain the following extras: <ul> <li>#EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE</li> <li>#EXTRA_PROVISIONING_IMEI</li> <li>#EXTRA_PROVISIONING_SERIAL_NUMBER</li> <li>#EXTRA_PROVISIONING_ALLOWED_PROVISIONING_MODES</li> <li>#EXTRA_PROVISIONING_SENSORS_PERMISSION_GRANT_OPT_OUT</li> </ul>

The target activity should return one of the following values in #EXTRA_PROVISIONING_MODE as result: <ul> <li>#PROVISIONING_MODE_FULLY_MANAGED_DEVICE</li> <li>#PROVISIONING_MODE_MANAGED_PROFILE</li> </ul>

If performing fully-managed device provisioning and the admin app desires to show its own education screens, the target activity can additionally return #EXTRA_PROVISIONING_SKIP_EDUCATION_SCREENS set to true.

The target activity may also return the account that needs to be migrated from primary user to managed profile in case of a profile owner provisioning in #EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE as result.

The target activity may also include the #EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE extra in the intent result. The values of this android.os.PersistableBundle will be sent as an intent extra of the same name to the #ACTION_ADMIN_POLICY_COMPLIANCE activity, along with the values of the #EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE extra that are already supplied to this activity.

Other extras the target activity may include in the intent result: <ul> <li>#EXTRA_PROVISIONING_DISCLAIMERS</li> <li>#EXTRA_PROVISIONING_SKIP_ENCRYPTION</li> <li>#EXTRA_PROVISIONING_KEEP_SCREEN_ON</li> <li>#EXTRA_PROVISIONING_KEEP_ACCOUNT_ON_MIGRATION for work profile provisioning</li> <li>#EXTRA_PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLED for work profile provisioning</li> <li>#EXTRA_PROVISIONING_SENSORS_PERMISSION_GRANT_OPT_OUT for fully-managed device provisioning</li> <li>#EXTRA_PROVISIONING_LOCALE for fully-managed device provisioning</li> <li>#EXTRA_PROVISIONING_LOCAL_TIME for fully-managed device provisioning</li> <li>#EXTRA_PROVISIONING_TIME_ZONE for fully-managed device provisioning</li> </ul>

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

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