title: How to fix Android BLE SCAN_FAILED_FEATURE_UNSUPPORTED on Nexus 5?
body: <p>I'm having this <code>onScanFailed</code> error code on some devices (LG to be more detailed) when discovering BLE devices on android. The code works as expected on another devices.  How can i fix it?</p>
  
  <p>I use BLE API 21+ and the following code to discover:</p>
  
  <pre><code>ScanSettings scanSettings = new ScanSettings.Builder()
              .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY)
              .setReportDelay(discoveryDelay)
              .build();
  </code></pre>
  
  <p>Here are the full sources:
  <a href="https://github.com/4ntoine/protobuf-ble-rpc/blob/hi-p/android/client/src/main/java/com/googlecode/protobuf/blerpc/BleRpcConnectionFactory.java#L362" rel="nofollow">https://github.com/4ntoine/protobuf-ble-rpc/blob/hi-p/android/client/src/main/java/com/googlecode/protobuf/blerpc/BleRpcConnectionFactory.java#L362</a></p>