Skip to content

App crashes when Bluetooth scan is started #2611

Closed
@marcnause

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

  1. Start app
  2. Open navigation drawer
  3. Tap Connect Device
  4. 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.

Metadata

Assignees

Labels

BugUnexpected problem or unintended behavior in app

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions