Skip to content

Add android 14 support to modeldownloader  #5593

@OleksandrGrument

Description

@OleksandrGrument

[REQUIRED] Step 2: Describe your environment

  • Firebase Component: com.google.firebase:firebase-ml-modeldownloader-ktx:24.2.1
  • Component version: 24.2.1

[REQUIRED] Step 3: Describe the problem

The library not support new changes in android 14
https://developer.android.com/about/versions/14/behavior-changes-14

According to the documentation and changelog - runtime-registered broadcasts receivers must specify export behavior according to new rules
image

Steps to reproduce:

Update target sdk of project to targetSdkVersion 34
And after migration im having regular this issue when i'm trying to download custom model

Firebase exception, java.lang.SecurityException: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions