diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index 3f7b29109b3dc..507e97e3df05e 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -275,7 +275,6 @@ public class DevicePolicyManager { *
  • {@link #EXTRA_PROVISIONING_LOGO_URI}, optional
  • *
  • {@link #EXTRA_PROVISIONING_MAIN_COLOR}, optional
  • *
  • {@link #EXTRA_PROVISIONING_DISCLAIMERS}, optional
  • - *
  • {@link #EXTRA_PROVISIONING_SKIP_EDUCATION_SCREENS}, optional
  • * * *

    When device owner provisioning has completed, an intent of the type @@ -383,7 +382,6 @@ public class DevicePolicyManager { *

  • {@link #EXTRA_PROVISIONING_ORGANIZATION_NAME}, optional
  • *
  • {@link #EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE}, optional
  • *
  • {@link #EXTRA_PROVISIONING_USE_MOBILE_DATA}, optional
  • - *
  • {@link #EXTRA_PROVISIONING_SKIP_EDUCATION_SCREENS}, optional
  • * * * @hide @@ -423,7 +421,6 @@ public class DevicePolicyManager { *
  • {@link #EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE}, optional
  • *
  • {@link #EXTRA_PROVISIONING_LOGO_URI}, optional
  • *
  • {@link #EXTRA_PROVISIONING_MAIN_COLOR}, optional
  • - *
  • {@link #EXTRA_PROVISIONING_SKIP_EDUCATION_SCREENS}, optional
  • * * *

    When device owner provisioning has completed, an intent of the type @@ -1149,11 +1146,11 @@ public class DevicePolicyManager { * A boolean extra indicating if the education screens from the provisioning flow should be * skipped. If unspecified, defaults to {@code false}. * + *

    This extra can only be set by the admin app when performing the admin-integrated + * provisioning flow as a result of the {@link #ACTION_GET_PROVISIONING_MODE} activity. + * *

    If the education screens are skipped, it is the admin application's responsibility * to display its own user education screens. - * - *

    It can be used when provisioning a fully managed device via - * {@link #ACTION_PROVISION_MANAGED_DEVICE}. */ public static final String EXTRA_PROVISIONING_SKIP_EDUCATION_SCREENS = "android.app.extra.PROVISIONING_SKIP_EDUCATION_SCREENS"; @@ -2263,6 +2260,10 @@ public class DevicePolicyManager { *

  • {@link #PROVISIONING_MODE_MANAGED_PROFILE}
  • * * + *

    If performing fully-managed device provisioning and the admin app desires to show its + * own education screens, the target activity can additionally return + * {@link #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 * {@link #EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE} as result.