@OwnerUser public static void startOwnerUserPostProvisioningIfNeeded(final Context context) {
		try {   // Re-enable the accidentally disabled main UI activity. (due to a bug introduced in v4.5.3 when re-provisioning owner user in profile owner mode)
			context.getPackageManager().setComponentEnabledSetting(Modules.getMainLaunchActivity(context), PackageManager.COMPONENT_ENABLED_STATE_DEFAULT, DONT_KILL_APP);
		} catch (final SecurityException ignored) {}
		final DevicePolicies policies = new DevicePolicies(context);
		if (policies.isActiveDeviceOwner()) startDeviceOwnerPostProvisioning(context, policies);
		else if (policies.isProfileOwner()) startProfileOwnerPostProvisioning(context, policies);
	}
Mainland can be activated as either profile owner or device owner.
engine/src/main/java/com/oasisfeng/island/provisioning/IslandProvisioning.java