Description
Actual Behaviour
The app crashes when the user taps the Bluetooth button in the Connect Device screen. (Android 13)
Expected Behaviour
The app starts a Bluetooth scan. he app does not crash.
Steps to reproduce it
- Start app
- Open navigation drawer
- Tap Connect Device
- Tap Bluetooth button
LogCat for the issue
FATAL EXCEPTION: main
Process: io.pslab, PID: 19134
java.lang.SecurityException: Need android.permission.BLUETOOTH_SCAN permission for android.content.AttributionSource@251ea1f5: Starting discovery.
at com.android.bluetooth.Utils.checkPermissionForDataDelivery(Utils.java:463)
at com.android.bluetooth.Utils.checkScanPermissionForDataDelivery(Utils.java:522)
at com.android.bluetooth.btservice.AdapterService$AdapterServiceBinder.startDiscovery(AdapterService.java:2534)
at com.android.bluetooth.btservice.AdapterService$AdapterServiceBinder.startDiscovery(AdapterService.java:2523)
at android.bluetooth.IBluetooth$Stub.onTransact(IBluetooth.java:1051)
at android.os.Binder.execTransactInternal(Binder.java:1285)
at android.os.Binder.execTransact(Binder.java:1244)
Would you like to work on the issue?
Maybe.