@Nullable
    public static byte[] getServiceData(@NonNull final ScanResult result, @NonNull final UUID serviceUuid) {
        final ScanRecord scanRecord = result.getScanRecord();
        if (scanRecord != null) {
            return scanRecord.getServiceData(new ParcelUuid((serviceUuid)));
        }
        return null;
    }
Returns true if write external permission has been requested at least twice and
user denied it, and checked 'Don't ask again'.

@param activity the activity
@return true if permission has been denied and the popup will not come up any more, false otherwise
app/src/main/java/no/nordicsemi/android/nrfmesh/utils/Utils.java