public static @NonNull ComponentName getMainLaunchActivity(final Context context) {
		final Intent intent = new Intent(ACTION_MAIN).addCategory(CrossProfile.CATEGORY_PARENT_PROFILE);
		final int uid = Process.myUid();
		for (final ResolveInfo resolve : queryActivities(context, intent)) {
			final ActivityInfo activity = resolve.activityInfo;
			if (activity.applicationInfo.uid == uid) return new ComponentName(activity.packageName, activity.name);
		}
		throw new IllegalStateException("UI module not installed");
	}
Utility class to get module ID of common modules in Island.

Created by Oasis on 2017/2/19.
shared/src/main/java/com/oasisfeng/island/util/Modules.java