バグ #492
java.lang.SecurityException: Need ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission to get scan results
説明
2019-02-23 23:23:05.614 5715-5756/com.mizo0203.BlueSprinkler W/Binder: Caught a RuntimeException from the binder stub implementation. java.lang.SecurityException: Need ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission to get scan results at android.os.Parcel.createException(Parcel.java:1950) at android.os.Parcel.readException(Parcel.java:1918) at android.os.Parcel.readException(Parcel.java:1868) at android.bluetooth.IBluetoothGatt$Stub$Proxy.startScan(IBluetoothGatt.java:947) at android.bluetooth.le.BluetoothLeScanner$BleScanCallbackWrapper.onScannerRegistered(BluetoothLeScanner.java:460) at android.bluetooth.le.IScannerCallback$Stub.onTransact(IScannerCallback.java:57) at android.os.Binder.execTransact(Binder.java:731)
参考ページ: どうしてAndroid 6.0でBLEを使うのに位置情報のパーミッションが必要なワケ? - Qiita
参考ページ: hiro99ma blog: [android]位置情報許可が無いときに許可を求める