DevicePolicyManager.ExtraProvisioningAdminExtrasBundle Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A android.os.Parcelable
extra of type android.os.PersistableBundle
that
allows a mobile device management application or NFC programmer application which starts
managed provisioning to pass data to the management application instance after provisioning.
[Android.Runtime.Register("EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE")]
public const string ExtraProvisioningAdminExtrasBundle;
[<Android.Runtime.Register("EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE")>]
val mutable ExtraProvisioningAdminExtrasBundle : string
Field Value
- Attributes
Remarks
A android.os.Parcelable
extra of type android.os.PersistableBundle
that allows a mobile device management application or NFC programmer application which starts managed provisioning to pass data to the management application instance after provisioning.
If used with #ACTION_PROVISION_MANAGED_PROFILE
it can be used by the application that sends the intent to pass data to itself on the newly created profile. If used with #ACTION_PROVISION_MANAGED_DEVICE
it allows passing data to the same instance of the app on the primary user. Starting from android.os.Build.VERSION_CODES#M
, if used with #MIME_TYPE_PROVISIONING_NFC
as part of NFC managed device provisioning, the NFC message should contain a stringified java.util.Properties
instance, whose string properties will be converted into a android.os.PersistableBundle
and passed to the management application after provisioning.
Admin apps will receive this extra in their #ACTION_GET_PROVISIONING_MODE
and #ACTION_ADMIN_POLICY_COMPLIANCE
intent handlers. Additionally, #ACTION_GET_PROVISIONING_MODE
may also return this extra which will then be sent over to #ACTION_ADMIN_POLICY_COMPLIANCE
, alongside the original values that were passed to #ACTION_GET_PROVISIONING_MODE
.
In both cases the application receives the data in DeviceAdminReceiver#onProfileProvisioningComplete
via an intent with the action DeviceAdminReceiver#ACTION_PROFILE_PROVISIONING_COMPLETE
. The bundle is not changed during the managed provisioning.
Java documentation for android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE
.
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.