Check BLUETOOTH_SCAN permission on eligible devices
@@ -564,6 +564,10 @@ public abstract class CycledLeScanner {
}
private boolean checkLocationPermission() {
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S && checkPermission(Manifest.permission.BLUETOOTH_SCAN)) {
+ return true;
+ }
+
return checkPermission(Manifest.permission.ACCESS_COARSE_LOCATION) || checkPermission(Manifest.permission.ACCESS_FINE_LOCATION);
}
