@ProfileUser public static void requestProfileRemoval(final Activity activity) {
		if (Users.isOwner()) throw new IllegalStateException("Must be called in managed profile");
		if (! new DevicePolicies(activity).isProfileOwner()) {
			showPromptForProfileManualRemoval(activity);
			return;
		}
		new AlertDialog.Builder(activity).setTitle(R.string.dialog_title_warning)
				.setMessage(R.string.dialog_destroy_message)
				.setPositiveButton(android.R.string.no, null)
				.setNeutralButton(R.string.action_destroy, (dd, ww) ->
						new AlertDialog.Builder(activity).setTitle(R.string.dialog_title_warning)
								.setMessage(R.string.dialog_destroy_message_for_managed_user)
								.setPositiveButton(android.R.string.no, null)
								.setNeutralButton(R.string.action_destroy, (d, w) -> destroyProfile(activity)).show()).show();
	}
Implementation of Island / Mainland setup & shutdown.

Created by Oasis on 2017/3/8.
mobile/src/main/java/com/oasisfeng/island/setup/IslandSetup.java