Android DFU Library problem with Android 14 (One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED ...)

My Android app builds and runs fine under Android 13.

But on Android 14 when I try to use the DFU library (ver. 2.5.0) I get the following run-time error: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts.

Please advise. Thanks in advance!

Parents Reply
  • Sorry, my post was incorrect. The error "One of RECEIVER_EXPORTED or ..." I got with ver. 2.3.0, updating to 2.5.0 fixed it.

    I then got another one about service type not declared, solved it by adding to Manifest:

    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_CONNECTED_DEVICE"

    and
    android:foregroundServiceType="connectedDevice"
Children
No Data
Related