public static boolean has(final Context context, final String permission) {
		return context.checkPermission(permission, PID, UID) == PackageManager.PERMISSION_GRANTED;
	}
Permission-related helpers

Created by Oasis on 2017/10/8.
shared/src/main/java/com/oasisfeng/island/util/Permissions.java