sealed class KnownIssues


List of all known issues reportable by BackportedFixManager.

These are critical issues with fixes that are backported to existing android releases and are reasonable for app developers to guard a code block with []BackportedFixManager.isFixed].

Each known issue includes sample usage.

The id and alias of a known issue comes from the list of approved backported fixes in the Android Compatibility Test source directory cts/backported_fixes/approved.

Summary

Public companion properties

KnownIssue

TEST ONLY known issue that is always fixed on a device.

KnownIssue

TEST ONLY known issue that is never fixed on a device.

KnownIssue

TEST ONLY known issue that only applies to robolectric devices

KnownIssue

Abnormal color tone when capturing JPEG-R images on some Pixel devices.

KnownIssue

Auto Exposure Mode Low Light Boost (LLB) (https://developer.android.com/reference/android/hardware/camera2/CameraMetadata#CONTROL_AE_MODE_ON_LOW_LIGHT_BOOST_BRIGHTNESS_PRIORITY) cannot be enabled for stream use cases such as VIDEO_CALL on Pixel 10 devices.

Protected constructors

Public companion properties

KI_350037023

val KI_350037023KnownIssue

TEST ONLY known issue that is always fixed on a device.

import androidx.core.backported.fixes.BackportedFixManager
import androidx.core.backported.fixes.KnownIssues

val bf = BackportedFixManager()
if (bf.isFixed(KnownIssues.KI_350037023)) {
    println("Hello world")
} else {
    // Since the known issue is not fixed
    println("Goodbye")
}

KI_350037348

val KI_350037348KnownIssue

TEST ONLY known issue that is never fixed on a device.

import androidx.core.backported.fixes.BackportedFixManager
import androidx.core.backported.fixes.KnownIssues

val bf = BackportedFixManager()
if (bf.isFixed(KnownIssues.KI_350037348)) {
    println("Hello world")
} else {
    // Since the known issue is not fixed
    println("Goodbye")
}

KI_372917199

val KI_372917199KnownIssue

TEST ONLY known issue that only applies to robolectric devices

import androidx.core.backported.fixes.BackportedFixManager
import androidx.core.backported.fixes.KnownIssues

val bf = BackportedFixManager()
if (bf.isFixed(KnownIssues.KI_372917199)) {
    println("Hello world")
} else {
    // Since the known issue is not fixed
    println("Goodbye")
}

KI_398591036

val KI_398591036KnownIssue

Abnormal color tone when capturing JPEG-R images on some Pixel devices.

Fix by using JPEG outputs until this KI is resolved.

import androidx.core.backported.fixes.BackportedFixManager
import androidx.core.backported.fixes.KnownIssues

val bf = BackportedFixManager()
val format =
    if (bf.isFixed(KnownIssues.KI_398591036)) {
        "JPEG-R"
    } else {
        "JPEG"
    }

Full details are at issue #398591036.

KI_452390376

val KI_452390376KnownIssue

Auto Exposure Mode Low Light Boost (LLB) (https://developer.android.com/reference/android/hardware/camera2/CameraMetadata#CONTROL_AE_MODE_ON_LOW_LIGHT_BOOST_BRIGHTNESS_PRIORITY) cannot be enabled for stream use cases such as VIDEO_CALL on Pixel 10 devices.

import androidx.core.backported.fixes.BackportedFixManager
import androidx.core.backported.fixes.KnownIssues

fun createPreviewRequest(
    cameraDevice: CameraDevice,
    enableLowLightBoost: Boolean,
): CaptureRequest.Builder {
    val bf = BackportedFixManager()
    val aeMode =
        if (
            Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM &&
                bf.isFixed(KnownIssues.KI_452390376) &&
                enableLowLightBoost
        ) {
            CameraMetadata.CONTROL_AE_MODE_ON_LOW_LIGHT_BOOST_BRIGHTNESS_PRIORITY
        } else {
            CameraMetadata.CONTROL_AE_MODE_ON
        }
    // Camera capture request setup:
    val previewRequestBuilder = cameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW)
    previewRequestBuilder[CaptureRequest.CONTROL_AE_MODE] = aeMode
    return previewRequestBuilder
}

Full details are at issue #452390376.

Protected constructors

KnownIssues

protected KnownIssues()