@Override protected void onCreate(@Nullable final Bundle savedInstanceState) {
			super.onCreate(savedInstanceState);
			if (! DevicePolicyManager.ACTION_PROVISIONING_SUCCESSFUL.equals(getIntent().getAction())) {
				Log.w(TAG, getClass().getSimpleName() + " should not be started after provisioning.");
				finish();
				return;
			}
			Dialogs.buildProgress(this, R.string.notification_provisioning_island_title).indeterminate().nonCancelable().show();
			SafeAsyncTask.execute(this, a -> proceed(a, new Intent(DeviceAdminReceiver.ACTION_PROFILE_PROVISIONING_COMPLETE)), Activity::finish);
		}
Receives {@link DevicePolicyManager#ACTION_PROVISIONING_SUCCESSFUL} in managed profile
engine/src/main/java/com/oasisfeng/island/provisioning/IslandProvisioning.java