diff options
| author | Alexandra Gherghina <alexgherghina@google.com> | 2014-11-13 12:46:15 +0000 |
|---|---|---|
| committer | Alexandra Gherghina <alexgherghina@google.com> | 2014-11-13 12:46:16 +0000 |
| commit | aaf2f3e8954d3d5d01953ceb7c8f631db7412e13 (patch) | |
| tree | 375d3501e826676699736e8c801afbd2b8a5bc48 /core/java/android | |
| parent | 324b1f8a4729b226c9f282eb870359dd02847441 (diff) | |
Add extra for account migration in the DevicePolicyMamager
This is in preparation for the implementation CL
Bug: 17716971
Change-Id: I3042b0781f48f3d9e84bfff899507b4b5ca156eb
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/app/admin/DevicePolicyManager.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index cf7c5e55e7a9..24d278dd4a04 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -146,6 +146,17 @@ public class DevicePolicyManager { = "android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME"; /** + * An {@link android.accounts.Account} extra holding the account to migrate during managed + * profile provisioning. If the account supplied is present in the primary user, it will be + * copied, along with its credentials to the managed profile and removed from the primary user. + * + * Use with {@link #ACTION_PROVISION_MANAGED_PROFILE}. + */ + + public static final String EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE + = "android.app.extra.PROVISIONING_ACCOUNT_TO_MIGRATE"; + + /** * A String extra that, holds the email address of the account which a managed profile is * created for. Used with {@link #ACTION_PROVISION_MANAGED_PROFILE} and * {@link DeviceAdminReceiver#ACTION_PROFILE_PROVISIONING_COMPLETE}. |
