@SuppressWarnings("BooleanMethodIsAlwaysInverted")
    public static boolean isWriteExternalStoragePermissionsGranted(final Context context) {
        return ContextCompat.checkSelfPermission(context, Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED;
    }
Checks for required permissions.

@return true if permissions are already granted, false otherwise.
app/src/main/java/no/nordicsemi/android/nrfmesh/utils/Utils.java