[Firebase AI] OnDeviceModelOption.PREVIEW throws 606-FEATURE_NOT_FOUND (Feature 647) on Xiaomi 15T Pro (Dimensity 9400+)

Aperta
#8,835 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
15/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, firebase, kotlin
Ambito
ai, mobile

Direzione di ricerca

The failing call is the checkStatus() on the onDeviceExtension of a model built with OnDeviceModelOption.PREVIEW, as in the snippet in the issue body. Reproducing it needs a device on the aicore-experimental group, which a newcomer is unlikely to have. The request is for the team to confirm device allowlisting, so there is no clear code change to make. Done would be a maintainer answer about Feature 647 on this SoC, or a fix that the Firebase team scopes.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Environment
  • Device: Xiaomi 15T Pro
  • Chipset / SoC: MediaTek Dimensity 9400+
  • Android AICore Version: 26.10.29.2.thirdpartyexperimental.mediatek.ffdf_aicore
  • AICore Active Build ID: 23231
  • Underlying ML Kit GenAI Prompt: com.google.mlkit:genai-prompt:1.0.0-beta2
  • Reference App: Official android/ai-samples (ai-sample-catalog -> gemini-hybrid module)
Describe the issue

When using Firebase AI Logic (GenerativeBackend.googleAI()) for on-device inference on a Xiaomi 15T Pro (MediaTek Dimensity 9400+):

  1. Default on-device model (modelOption = null) works properly: checkStatus() returns OnDeviceModelStatus.AVAILABLE, and generateContentStream() executes completely offline (verified in Airplane Mode).
  2. Preview on-device model (OnDeviceModelOption.PREVIEW) fails: checkStatus() throws GenAiException with 606-FEATURE_NOT_FOUND: Feature 647 is not available.

Notably:

  • The test Google account on the device is already enrolled in the aicore-experimental Google Group.
  • In adb shell dumpsys activity service com.google.android.aicore, [buildId=23231] feature_647: ACTIVE is already listed among the downloaded/active asset features, yet the IPC service still rejects Feature 647 as not found/unavailable to client apps (ThirdPartyLabsActivity also remains in disabledComponents).
Steps to reproduce
  1. Enroll the device's Google account in aicore-experimental and update com.google.android.aicore to 26.10.29.2.thirdpartyexperimental.mediatek.ffdf_aicore.
  2. Run the gemini-hybrid sample from android/ai-samples on Xiaomi 15T Pro.
  3. Call checkStatus() on a generative model configured with OnDeviceModelOption.PREVIEW:
val previewModel = Firebase.ai(backend = GenerativeBackend.googleAI())
    .generativeModel(
        "gemini-3.5-flash-lite",
        onDeviceConfig = OnDeviceConfig(
            mode = InferenceMode.ONLY_ON_DEVICE,
            modelOption = OnDeviceModelOption.PREVIEW,
        ),
    )
val status = previewModel.onDeviceExtension?.checkStatus()
Relevant Logcat & ADB Output

Logcat:

D  Status Model Default = AVAILABLE
D  Status Akhir Default = AVAILABLE
W  Model Preview (Nano 4) belum tersedia: [ErrorCode 606] AICore failed with error type 3-PREPARATION_ERROR and error code 606-FEATURE_NOT_FOUND: Feature 647 is not available.
com.google.mlkit.genai.common.GenAiException: [ErrorCode 606] AICore failed with error type 3-PREPARATION_ERROR and error code 606-FEATURE_NOT_FOUND: Feature 647 is not available.
	at com.google.android.gms.internal.mlkit_genai_prompt.zzali.zza(com.google.mlkit:genai-prompt@@1.0.0-beta2:3)
	at com.google.android.gms.internal.mlkit_genai_prompt.zzlt.zza(com.google.mlkit:genai-prompt@@1.0.0-beta2:2)
	at com.google.android.gms.internal.mlkit_genai_prompt.zzlu.run(com.google.mlkit:genai-prompt@@1.0.0-beta2:10)

ADB dumpsys output:

Active Build ID: 23231
    [buildId=23231] feature_645: ACTIVE
    [buildId=23231] feature_648: ACTIVE
    [buildId=23231] feature_647: ACTIVE
    [buildId=23231] feature_650: ACTIVE
    [buildId=23231] feature_649: ACTIVE
    [buildId=23231] feature_652: ACTIVE
Expected behavior / Request

Could the team confirm whether OnDeviceModelOption.PREVIEW (Feature 647) is currently restricted on MediaTek Dimensity 9400+ / Xiaomi 15T Pro profiles, and consider enabling/allowlisting it for this SoC/device profile?

Lingua principale
Java
Stelle
2.6k
Fork
733
Merge medio
2g 15h
PR unite (30g)
72

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di firebase/firebase-android-sdk

Tutte le issue di firebase/firebase-android-sdk

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.