Skip to content

Android app crashes at startDfu when targeting SDK version 31+ #166

@alfredcheuk

Description

@alfredcheuk

When running startDfu function on Android while targeting SDK version 31, the app crashes directly without any errors thrown.

I used adb logcat to trace the log messages and found the following issue:
Screenshot 2022-05-26 at 2 56 33 AM
(masked out the project name that I am working on, and the first line was me printing the firmware file for debugging)

I am not the most familiar with logcat outputs but it seems that it ran into the exception on the highlighted line, then the app proceeded to crash directly.

I have tested that the exact same code works on iOS, as well as Android while targeting SDK version 30.

Does anyone have any idea whether this is something that needs to be changed on the library's side, or have I not configured it correctly specifically for SDK version 31?

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