public static boolean isBluetoothScanAndConnectPermissionsGranted(final Context context) {
        if(!isSorAbove())
            return true;
        return ContextCompat.checkSelfPermission(context, Manifest.permission.BLUETOOTH_SCAN) == PackageManager.PERMISSION_GRANTED &&
                ContextCompat.checkSelfPermission(context, Manifest.permission.BLUETOOTH_CONNECT) == 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