diff options
author | Alexandra Gherghina <alexgherghina@google.com> | 2015-01-08 12:17:40 +0000 |
---|---|---|
committer | Alexandra Gherghina <alexgherghina@google.com> | 2015-02-20 11:55:52 +0000 |
commit | db4bc57760aa74d50ac292c5b4c54e23a42473db (patch) | |
tree | 0c97b4ee98010f248b08145e09c4bfe318e30979 | |
parent | 0233aee840ac7e4a934cc69f97f280682d13a788 (diff) | |
download | frameworks_base-db4bc57760aa74d50ac292c5b4c54e23a42473db.zip frameworks_base-db4bc57760aa74d50ac292c5b4c54e23a42473db.tar.gz frameworks_base-db4bc57760aa74d50ac292c5b4c54e23a42473db.tar.bz2 |
New intent action for returning account migration result
Bug: 18551835
Change-Id: Ifc5dedf1753a7779793a8b056bac5f5733a2783d
-rw-r--r-- | api/current.txt | 1 | ||||
-rw-r--r-- | api/system-current.txt | 1 | ||||
-rw-r--r-- | core/java/android/app/admin/DevicePolicyManager.java | 22 |
3 files changed, 21 insertions, 3 deletions
diff --git a/api/current.txt b/api/current.txt index 5fffbb0..6e712c5 100644 --- a/api/current.txt +++ b/api/current.txt @@ -5529,6 +5529,7 @@ package android.app.admin { method public void uninstallCaCert(android.content.ComponentName, byte[]); method public void wipeData(int); field public static final java.lang.String ACTION_ADD_DEVICE_ADMIN = "android.app.action.ADD_DEVICE_ADMIN"; + field public static final java.lang.String ACTION_MANAGED_PROFILE_PROVISIONED = "android.app.action.MANAGED_PROFILE_PROVISIONED"; field public static final java.lang.String ACTION_PROVISION_MANAGED_PROFILE = "android.app.action.PROVISION_MANAGED_PROFILE"; field public static final java.lang.String ACTION_SET_NEW_PASSWORD = "android.app.action.SET_NEW_PASSWORD"; field public static final java.lang.String ACTION_START_ENCRYPTION = "android.app.action.START_ENCRYPTION"; diff --git a/api/system-current.txt b/api/system-current.txt index c43f2c7..c6dacfe 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -5630,6 +5630,7 @@ package android.app.admin { method public void uninstallCaCert(android.content.ComponentName, byte[]); method public void wipeData(int); field public static final java.lang.String ACTION_ADD_DEVICE_ADMIN = "android.app.action.ADD_DEVICE_ADMIN"; + field public static final java.lang.String ACTION_MANAGED_PROFILE_PROVISIONED = "android.app.action.MANAGED_PROFILE_PROVISIONED"; field public static final java.lang.String ACTION_PROVISION_MANAGED_PROFILE = "android.app.action.PROVISION_MANAGED_PROFILE"; field public static final java.lang.String ACTION_SET_NEW_PASSWORD = "android.app.action.SET_NEW_PASSWORD"; field public static final java.lang.String ACTION_SET_PROFILE_OWNER = "android.app.action.SET_PROFILE_OWNER"; diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index 318a314..a10b133 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -111,9 +111,11 @@ public class DevicePolicyManager { * * <p>This intent must contain the extra {@link #EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME}. * - * <p> When managed provisioning has completed, an intent of the type - * {@link DeviceAdminReceiver#ACTION_PROFILE_PROVISIONING_COMPLETE} is broadcasted to the - * managed profile. + * <p> When managed provisioning has completed, broadcasts are sent to the application specified + * in the provisioning intent. The + * {@link DeviceAdminReceiver#ACTION_PROFILE_PROVISIONING_COMPLETE} broadcast is sent in the + * managed profile and the {@link #ACTION_MANAGED_PROFILE_PROVISIONED} broadcast is sent in + * the primary profile. * * <p> If provisioning fails, the managedProfile is removed so the device returns to its * previous state. @@ -332,6 +334,20 @@ public class DevicePolicyManager { = "android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSUM"; /** + * Broadcast Action: This broadcast is sent to indicate that provisioning of a managed profile + * has completed successfully. + * + * <p>The broadcast is limited to the primary profile, to the app specified in the provisioning + * intent (@see #ACTION_PROVISION_MANAGED_PROFILE). + * + * <p>This intent will contain the extra {@link EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE} which + * corresponds to the account requested to be migrated at provisioning time, if any. + */ + @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) + public static final String ACTION_MANAGED_PROFILE_PROVISIONED + = "android.app.action.MANAGED_PROFILE_PROVISIONED"; + + /** * A boolean extra indicating whether device encryption is required as part of Device Owner * provisioning. * |