@RequiresPermission(Permissions.INTERACT_ACROSS_USERS)
	public static @Nullable PackageManager getPackageManagerAsUser(final Context context, final UserHandle user) {
		try {
			final Context user_context = createContextAsUser(context, user);
			return user_context != null ? user_context.getPackageManager() : null;
		} catch (final NameNotFoundException ignored) { return null; }		// Should never happen
	}
Utility class for cross-user context related stuffs.

Created by Oasis on 2017/9/1.
shared/src/main/java/com/oasisfeng/island/shuttle/ContextShuttle.java