@Nullable @Override public String[] getPackagesForUid(final int uid) {
		final List<String> result = mCondom.proceedQuery(OutboundType.QUERY_PACKAGES, null, new CondomCore.WrappedValueProcedure<List<String>>() {
			@Override public @Nullable List<String> proceed() {
				final String[] result = CondomPackageManager.super.getPackagesForUid(uid);
				return result != null ? Arrays.asList(result) : null;
			}
		}, IDENTITY_FUNCTION);
		return result != null && ! result.isEmpty() ? result.toArray(new String[0]) : null;
	}
Condom wrapper of {@link PackageManager}

Created by Oasis on 2018/1/6.
library/src/main/java/com/oasisfeng/condom/CondomPackageManager.java