Skip to content

Scan throws error on android 13+ #276

Description

@CatchABus

It seems that android 13+ devices need an additional permission for BLE scan.
Error log:

Error: java.lang.SecurityException: Permission Denial: starting Intent { act=android.bluetooth.adapter.action.REQUEST_ENABLE cmp=com.android.settings/.bluetooth.RequestPermissionActivity } from ProcessRecord{e7d2f4d 5142:com.fuelics.mobile.alpha/u0a159} (pid=5142, uid=10159) requires android.permission.BLUETOOTH_CONNECT undefined

Google claimed that this permission was useful for devices that were already paired in API 31 https://developer.android.com/develop/connectivity/bluetooth/bt-permissions. That doesn't seem to be the case anymore.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions