static void setLauncherActivitiesEnabledSetting(final Context context, final String category, final boolean enabled) {
		final PackageManager pm = context.getPackageManager();
		final Intent intent = new Intent(ACTION_MAIN).addCategory(category);
		for (final ResolveInfo resolve : pm.queryIntentActivities(intent, enabled ? MATCH_DISABLED_COMPONENTS : 0)) {
			final ActivityInfo activity = resolve.activityInfo;
			if (activity.applicationInfo.uid != Process.myUid()) continue;
			pm.setComponentEnabledSetting(new ComponentName(activity.packageName, activity.name),
					enabled ? COMPONENT_ENABLED_STATE_ENABLED : COMPONENT_ENABLED_STATE_DISABLED, DONT_KILL_APP);
		}
	}
This is the normal procedure after ManagedProvision finished its provisioning, running in profile.
engine/src/main/java/com/oasisfeng/island/provisioning/IslandProvisioning.java