public static void broadcast(final Context context, final Intent intent) {
		if (intent.getComponent() != null || intent.getPackage() != null) throw new IllegalArgumentException("Explicit " + intent);
		final String[] pkgs = context.getPackageManager().getPackagesForUid(Process.myUid());
		if (pkgs == null) return;
		for (final String pkg : pkgs) context.sendBroadcast(intent.setPackage(pkg));
		intent.setPackage(null);
	}
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