> Documentation index: https://developer.android.com/blog/llms.txt

[Product News](https://developer.android.com/blog/categories/product-news.md.txt)

# Android 17 QPR2 is live in AOSP

12 min read ![](https://developer.android.com/static/blog/assets/Strapi_Hero_White_e4dbee04d8_j_D3_SM_0baf8c8115_ZgOTyt.webp) 03 Dec 2026 [![View Daniel Galpin's profile](https://developer.android.com/static/blog/assets/dgalpin_30033d2d42_16cSIX.webp)](https://developer.android.com/blog/authors/daniel-galpin.md.txt) [Daniel Galpin](https://developer.android.com/blog/authors/daniel-galpin.md.txt) Developer Advocate We pushed **Android 17 QPR2 (SDK 37.2)** to the [Android Open Source Project (AOSP)](https://source.android.com/) as part of our ongoing commitment to open source. Transparent access to platform code empowers developers, device makers, and the broader Android community to [inspect how the OS works](https://cs.android.com/), debug edge cases with confidence, and build innovative experiences across an open ecosystem.

Building on Android 17 and **QPR1 (SDK 37.1)**, QPR2 delivers targeted platform APIs and runtime improvements for Android phones, foldables, and tablets. While QPR2 introduces no target-SDK behavior changes, it does ship a few runtime updates that apply to all apps (self-broadcast delivery, call-forwarding USSD requests, and Quick Settings brightness overrides) that are worth verifying. This guide walks through the updates across QPR1 and QPR2 that impact the widest set of Android apps: proactive memory budgeting and process-exit diagnostics, display jank and media pipeline improvements, a redesigned Picture-in-Picture experience, and privacy and security hardening to help you prepare for future Android releases.

## Performance, Memory \& System Health

### App Memory Budgets (MemoryBudgetManager)

In **Android 17 QPR2 (SDK 37.2)** , [**App Memory Budgets**](https://developer.android.com/topic/performance/memory/app-memory-budgets.md.txt) let your app declare soft working-set targets for its package or individual processes. Exceeding a memory budget does not terminate your process; instead, the OS targets cold-page reclaim specifically toward your app---evicting clean file-backed pages, writing dirty pages back to disk, and swapping inactive anonymous heap pages to zRAM---so your app's working set can stay in memory, while **helping** protect system stability.

- **Declarative manifest budgets (recommended)** : Add `<memory-budget>` elements inside `<application>` (or per-process inside `<processes>`) for `foreground`, `perceptible`, and `background` states. Apply budgets only to release (optimized) builds---unoptimized debug builds use substantially more memory. When scaling budgets for high-density screens, choose either [`android:additionalMbPerDensity`](https://developer.android.com/reference/android/R.attr.md.txt#additionalMbPerDensity) or [`android:additionalBytesPerDisplayPixel`](https://developer.android.com/reference/android/R.attr.md.txt#additionalBytesPerDisplayPixel) rather than combining both in the same clause.
- **Runtime inspection and pressure callbacks** : Use [`android.app.MemoryBudgetManager`](https://developer.android.com/reference/android/app/MemoryBudgetManager.md.txt) to inspect live usage ([`processCurrentUsageBytes`](https://developer.android.com/reference/android/app/MemoryBudgetManager.md.txt#getProcessCurrentUsageBytes())), check effective ceilings ([`processBudgetBytes`](https://developer.android.com/reference/android/app/MemoryBudgetManager.md.txt#getProcessBudgetBytes())), tighten a process budget dynamically ([`setProcessBudgetBytes()`](https://developer.android.com/reference/android/app/MemoryBudgetManager.md.txt#setProcessBudgetBytes(long))), and register an [`OnOverBudgetListener`](https://developer.android.com/reference/android/app/MemoryBudgetManager.OnOverBudgetListener.md.txt) on a background [`HandlerThread`](https://developer.android.com/reference/android/os/HandlerThread.md.txt) [`Looper`](https://developer.android.com/reference/android/os/Looper.md.txt) so your app can evict caches proactively without risking main-thread ANRs.

```xml
<!-- AndroidManifest.xml (release builds only) -->
<application>
    <!-- Foreground baseline + density scaling (pick one scaling attribute per clause) -->
    <memory-budget
        android:maxMb="180"
        android:state="foreground"
        android:additionalMbPerDensity="16" />
    <memory-budget
        android:maxMb="120"
        android:state="perceptible" />
    <memory-budget
        android:maxMb="48"
        android:state="background" />
</application>
```

Use `MemoryBudgetManager` at runtime to register a background pressure listener and inspect or tighten budgets:

```xml
import android.app.MemoryBudgetManager
import android.os.Build
import android.os.HandlerThread

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.BAKLAVA &&
    Build.VERSION.SDK_INT_FULL >= Build.VERSION_CODES_FULL.CINNAMON_BUN_2
) {
    val memoryBudgetManager = context.getSystemService(MemoryBudgetManager::class.java)

    // Register on a background HandlerThread Looper before tightening a dynamic budget
    val cleanupThread = HandlerThread("MemoryBudgetCleanup").apply { start() }
    val listener = MemoryBudgetManager.OnOverBudgetListener { budgetCeilingBytes ->
        // Callback receives the exceeded budget ceiling in bytes—keep cleanup lock-free and fast
        trimInMemoryCaches(budgetCeilingBytes)
    }
    memoryBudgetManager.registerProcessOverBudgetListener(cleanupThread.looper, listener)

    // Query live usage and effective ceiling, then optionally tighten the current process budget
    val usageBytes = memoryBudgetManager.processCurrentUsageBytes
    val ceilingBytes = memoryBudgetManager.processBudgetBytes
    
    try {
        memoryBudgetManager.setProcessBudgetBytes(96L * 1024L * 1024L)
    } catch (e: IllegalArgumentException) {
        // will throw if a tighter manifest or system limit applies
    }

    // Unregister the listener and call cleanupThread.quitSafely() during teardown
}
```

### Process Termination \& Memory Limiter Diagnostics

While `<memory-budget>` manages soft working-set reclaim, Android 17 also enforces higher device-wide **app memory limits** (Memory Limiter) to terminate processes with runaway leaks. **QPR2 (SDK 37.2)** expands [`ApplicationExitInfo`](https://developer.android.com/reference/android/app/ApplicationExitInfo.md.txt) with dedicated exit reasons alongside Android 17's structured ANR metadata:

- [`ApplicationExitInfo.REASON_MEMORY_LIMITER`](https://developer.android.com/reference/android/app/ApplicationExitInfo.md.txt#REASON_MEMORY_LIMITER)`(QPR2 / SDK 37.2)`: Identifies processes terminated by the system Memory Limiter. On **Android 17.0 (37.0) and QPR1 (37.1)** , these kills reported `REASON_OTHER` with `"MemoryLimiter:AnonSwap" `in [`getDescription()`](https://developer.android.com/reference/android/app/ApplicationExitInfo.md.txt#getDescription()) (for example, "`[KILL PID] MemoryLimiter:AnonSwap`").
- [`ApplicationExitInfo.REASON_ANOMALY`](https://developer.android.com/reference/android/app/ApplicationExitInfo.md.txt#REASON_ANOMALY)`(QPR2 / SDK 37.2)`: Identifies processes that the system terminated for violating a system resource anomaly rule.
- [`ApplicationExitInfo.getAnrInfo()`](https://developer.android.com/reference/android/app/ApplicationExitInfo.md.txt#getAnrInfo())`(Android 17.0 / API 37)`: Exposes structured [`ApplicationExitInfo.AnrInfo`](https://developer.android.com/reference/android/app/ApplicationExitInfo.AnrInfo) fields ([`anrId`](https://developer.android.com/reference/android/app/ApplicationExitInfo.AnrInfo#getAnrId()), [`anrType`](https://developer.android.com/reference/android/app/ApplicationExitInfo.AnrInfo#getAnrType()), [`timeoutMillis`](https://developer.android.com/reference/android/app/ApplicationExitInfo.AnrInfo#getTimeoutMillis()), and [`isUserPerceptible`](https://developer.android.com/reference/android/app/ApplicationExitInfo.AnrInfo#isUserPerceptible())) for [`REASON_ANR`](https://developer.android.com/reference/android/app/ApplicationExitInfo.md.txt#REASON_ANR) records. **Returns null for all other exit reasons.**

```xml
import android.app.ActivityManager
import android.app.ApplicationExitInfo
import android.content.Context
import android.os.Build


val activityManager = context.getSystemService(Context.ACTIVITY_SERVICE) as ActivityManager
val exitReasons = activityManager.getHistoricalProcessExitReasons(null, 0, 10)


for (exitInfo in exitReasons) {
    when (exitInfo.reason) {
        ApplicationExitInfo.REASON_MEMORY_LIMITER -> {
            // QPR2 (SDK 37.2)+: terminated by system Memory Limiter
            reportMemoryLimiterKill(exitInfo.rss, exitInfo.timestamp)
        }
        ApplicationExitInfo.REASON_OTHER -> {
            // Fallback for Android 17.0 (37.0) and QPR1 (37.1): check getDescription()
            if (exitInfo.description?.contains("MemoryLimiter:AnonSwap") == true) {
                reportMemoryLimiterKill(exitInfo.rss, exitInfo.timestamp)
            }
        }
        ApplicationExitInfo.REASON_ANOMALY -> {
            // QPR2 (SDK 37.2)+: terminated due to a system resource anomaly (e.g., FD leak)
            reportResourceAnomalyKill(exitInfo.description, exitInfo.timestamp)
        }
        ApplicationExitInfo.REASON_ANR -> {
            // Android 17.0 (API 37)+: inspect structured ANR metadata
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CINNAMON_BUN) {
                exitInfo.anrInfo?.let { anr ->
                    reportStructuredAnr(
                        anrId = anr.anrId,
                        anrType = anr.anrType,
                        timeoutMillis = anr.timeoutMillis,
                        userPerceptible = anr.isUserPerceptible
                    )
                }
            }
        }
    }
}
```

### Display Jank \& Startup Telemetry

In **QPR2 (SDK 37.2)** , [`SurfaceView`](https://developer.android.com/reference/android/view/SurfaceView.md.txt) and [`SurfaceControl`](https://developer.android.com/reference/android/view/SurfaceControl.md.txt) now expose [`registerOnJankDataListener()`](https://developer.android.com/reference/android/view/SurfaceView.md.txt#registerOnJankDataListener(java.util.concurrent.Executor,%20android.view.SurfaceControl.OnJankDataListener)) so games, camera viewfinders, and custom renderers can see exactly when their frames appeared on-screen. Jank data is emitted when a desired presentation time is set, or when a specific `VsyncId` is set (such as by [`SurfaceControl.Transaction.setFrameTimeline`](https://developer.android.com/reference/android/view/SurfaceControl.Transaction.md.txt#setFrameTimeline(long))). For example:

```xml
import android.os.Build
import android.view.SurfaceControl
import android.view.SurfaceView


if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.BAKLAVA &&
    Build.VERSION.SDK_INT_FULL >= Build.VERSION_CODES_FULL.CINNAMON_BUN_2
) {
    val surfaceView = findViewById<SurfaceView>(R.id.surface_view)
    val jankRegistration = surfaceView.registerOnJankDataListener(context.mainExecutor) { jankDataList ->
        for (jankData in jankDataList) {
            val desiredTime = jankData.desiredPresentTimeNanos
            val actualTime = jankData.presentTimeNanos


            if (actualTime > SurfaceControl.JankData.PRESENTATION_TIME_UNSET &&
                desiredTime > SurfaceControl.JankData.PRESENTATION_TIME_UNSET &&
                jankData.jankType != SurfaceControl.JankData.JANK_NONE
            ) {
                logRenderJank(jankData.jankType, actualTime - desiredTime)
            }
        }
    }
}
```

For activity triggered startups ([`ApplicationStartInfo.getStartComponent()`](https://developer.android.com/reference/android/app/ApplicationStartInfo.md.txt#getStartComponent()) equals to [`ApplicationStartInfo#START_COMPONENT_ACTIVITY`](https://developer.android.com/reference/android/app/ApplicationStartInfo.md.txt#START_COMPONENT_ACTIVITY)), QPR2 also adds [`ApplicationStartInfo.START_TIMESTAMP_SOURCE_EVENT`](https://developer.android.com/reference/android/app/ApplicationStartInfo.md.txt#START_TIMESTAMP_SOURCE_EVENT): the time ([`in SystemClock.uptimeNanos()`](https://developer.android.com/reference/android/os/SystemClock.md.txt#uptimeNanos())) of the initial source event which triggered the start, such as the users click on the app icon in launcher.

### Optimized Delivery of Self-Broadcasts

Starting in **Android 17 QPR2** , [Android optimizes *self-broadcasts*](https://developer.android.com/develop/background-work/background-tasks/broadcasts.md.txt#avoid-in-process-broadcasts)---broadcasts (such as [`sendBroadcast()`](https://developer.android.com/reference/android/content/Context.md.txt#sendBroadcast(android.content.Intent))) where every matching receiver runs in the same process that sent the broadcast---for **all apps** , regardless of [`targetSdkVersion`](https://developer.android.com/reference/android/content/pm/ApplicationInfo.md.txt#targetSdkVersion). The system hands self-broadcasts back to the sending process for delivery without raising process importance or preventing a cached process from being frozen, and undelivered self-broadcasts are lost if the process is killed.

- Avoid using self-broadcasts as background timers or keep-alive mechanisms. Use [**WorkManager**](https://developer.android.com/reference/androidx/work/WorkManager.md.txt) for persistent background work, [**AlarmManager**](https://developer.android.com/reference/android/app/AlarmManager.md.txt) for exact timing, and direct callbacks or Kotlin flows for in-process communication.

See the [documentation](https://developer.android.com/develop/background-work/background-tasks/broadcasts.md.txt#avoid-in-process-broadcasts) for more detail on this.

### Preventing circular lock inversion deadlocks

QPR2 also **helps prevent** circular lock-inversion deadlocks in [RemoteCallbackList](https://developer.android.com/reference/android/os/RemoteCallbackList.md.txt) by dispatching broadcast() and unfreeze-queued callbacks outside its per-interface monitor lock.

### Strict Occlusion Mode (QPR2)

Determine whether your app is completely occluded so that you can avoid costly screen updates using [`TrustedPresentationThresholds`.`SIGNAL_MODE_STRICT_OCCLUSION`](https://developer.android.com/reference/android/window/TrustedPresentationThresholds.md.txt#SIGNAL_MODE_STRICT_OCCLUSION) with [`WindowManager.registerTrustedPresentationListener()`](https://developer.android.com/reference/android/view/WindowManager.md.txt#registerTrustedPresentationListener(android.os.IBinder,%20android.window.TrustedPresentationThresholds,%20java.util.concurrent.Executor,%20java.util.function.Consumer%3Cjava.lang.Boolean%3E)).

## Picture-in-Picture, UI \& Media Pipelines

### Picture-in-Picture: Primary Action \& Always-On Overlay Actions

**Android 17 QPR2 (SDK 37.2)** modernizes Picture-in-Picture (PiP) on phones, foldables, and tablets with two high-impact additions to [`PictureInPictureParams.Builder`](https://developer.android.com/reference/android/app/PictureInPictureParams.Builder.md.txt):

- **Redesigned Menu \& Primary Action** : Pass a prominent primary [`RemoteAction`](https://developer.android.com/reference/android/app/RemoteAction.md.txt) (such as Play/Pause or End Call) to [`setActions(actions, primaryAction)`](https://developer.android.com/reference/android/app/PictureInPictureParams.Builder.md.txt#setActions(java.util.List%3Candroid.app.RemoteAction%3E,%20android.app.RemoteAction)) to align your PiP controls with the modern media player layout.
- **Always-On Overlay Actions** : Keep up to two interactive actions---such as a Call-to-Action (CTA) or "Skip" control during video or ad playback---continuously visible without requiring an initial tap using [`setOverlayActions(overlayActions, primaryOverlayAction)`](https://developer.android.com/reference/android/app/PictureInPictureParams.Builder.md.txt#setOverlayActions(java.util.List%3Candroid.app.RemoteAction%3E,%20android.app.RemoteAction)). Check [`maxNumPictureInPictureOverlayActions`](https://developer.android.com/reference/android/app/Activity.md.txt#getMaxNumPictureInPictureOverlayActions()) first, and clear the overlay with `setOverlayActions(emptyList(), null)` once playback returns to standard content.

```xml
import android.app.PictureInPictureParams
import android.app.RemoteAction
import android.graphics.drawable.Icon
import android.os.Build


val primaryAction = RemoteAction(
    Icon.createWithResource(context, R.drawable.ic_pause),
    "Pause",
    "Pause playback",
    pausePendingIntent
)


val pipBuilder = PictureInPictureParams.Builder()


if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.BAKLAVA &&
    Build.VERSION.SDK_INT_FULL >= Build.VERSION_CODES_FULL.CINNAMON_BUN_2
) {
    // 1. Designate a prominent primary action in the redesigned PiP menu
    pipBuilder.setActions(listOf(prevAction, primaryAction, nextAction), primaryAction)


    // 2. Optionally display persistent overlay controls (e.g., CTA and Skip) without a tap
    if (maxNumPictureInPictureOverlayActions > 0) {
        pipBuilder.setOverlayActions(listOf(ctaAction, skipAction), ctaAction)
    }
} else {
    pipBuilder.setActions(listOf(prevAction, primaryAction, nextAction))
}


setPictureInPictureParams(pipBuilder.build())
```

### Support for new drawing effects

Android 17 QPR2 (API level 37.2) introduces new APIs to implement backdrop blurring and other effects, such as frosted glass. With [`setBackdropRenderEffect()`](https://developer.android.com/reference/android/graphics/RenderNode.md.txt#setBackdropRenderEffect(android.graphics.RenderEffect)), a [`RenderNode`](https://developer.android.com/reference/android/graphics/RenderNode.md.txt) can now automatically sample and blur whatever content sits underneath it, making it straightforward to add these effects to your app UI.

[At the Android Dev Summit](https://www.youtube.com/watch?v=TirZPDPV8Dw&list=PLYC2SN8iM_Do&index=5), we showed how you can chain blur, saturation, and shaders in Jetpack Compose to turn a "Jump to bottom" chat button into a magnifying glass, a kaleidoscope, or a morphing Android mascot.
![New Compose Graphics Features Video Thumbnail.png](https://developer.android.com/static/blog/assets/New_Compose_Graphics_Features_Video_Thumbnail_6b931d75de_oF4WR.webp)

Since media apps usually render video using a `SurfaceView`, Android 17 QPR2 introduces [`SurfaceView.setBlurRegions()`](https://developer.android.com/reference/android/view/SurfaceView.md.txt#setBlurRegions(java.util.Collection%3Candroid.view.BlurRegion%3E)). This allows you to do things like blur areas behind video player controls when they show and hide.
![Blur regions demo in compose.png](https://developer.android.com/static/blog/assets/Blur_regions_demo_in_compose_81d716cbe1_Z1aLNNp.webp)

Several graphics, media, and UI improvements take effect automatically or require only a single API call:

- **Remote** `SurfaceView`**for Camera Previews (QPR1)** : Standard [`Camera2`](https://developer.android.com/reference/android/hardware/camera2/package-summary.md.txt) sessions targeting a SurfaceView transparently route preview buffers directly from the camera producer to the display compositor on realtime threads---reducing preview latency with **zero code changes**.
- **In-Process Memory-Safe Audio Decoders (QPR2)** : New in-process **Rust** decoders for **FLAC** and **MP3** can improve decode latency. Discover them via [`MediaCodecInfo.SECURITY_MODEL_MEMORY_SAFE`](https://developer.android.com/reference/android/media/MediaCodecInfo.md.txt#SECURITY_MODEL_MEMORY_SAFE) or [`MediaFormat.KEY_SECURITY_MODEL`](https://developer.android.com/reference/android/media/MediaFormat.md.txt#KEY_SECURITY_MODEL).
- **Asynchronous Floating** [`ActionMode`](https://developer.android.com/reference/android/view/ActionMode.md.txt)**Text Selection (QPR2)** : Custom text editors and browsers can offload [`TextClassifier`](https://developer.android.com/reference/android/view/textclassifier/TextClassifier.md.txt) work to System UI via [`ActionMode.setTextSelection()`](https://developer.android.com/reference/android/view/ActionMode.md.txt#setTextSelection(java.lang.CharSequence,%20int,%20int,%20android.os.LocaleList)). Text selection and right-click menus across Views, Compose, and browsers also surface a new "Look Up" action when an app handling [`Intent.ACTION_LOOK_UP_TEXT`](https://developer.android.com/reference/android/content/Intent.md.txt#ACTION_LOOK_UP_TEXT) is installed.
- **Custom Window Dim Colors** : Tint dialog and bottom-sheet scrims via [`android:backgroundDimColor`](https://developer.android.com/reference/android/R.attr.md.txt#backgroundDimColor) or [`Window.setDimColor(Color.pack(colorInt))`](https://developer.android.com/reference/android/view/Window.md.txt#setDimColor(long))` `(QPR2)
- **Region subtags in font fallbacks** : In QPR1+, font fallback now takes region subtags into account, so users with non-CJK locales in East Asian regions (such as English (Japan) / `en-JP` or English (Taiwan) / `en-TW`) see accurate regional Han glyphs.

## Privacy, Security \& Connected Peripherals

### Prepare for Restricted Implicit URI Grants

Today, when an app launches [`Intent.ACTION_SEND`](https://developer.android.com/reference/android/content/Intent.md.txt#ACTION_SEND) or [`ACTION_SEND_MULTIPLE`](https://developer.android.com/reference/android/content/Intent.md.txt#ACTION_SEND_MULTIPLE) with content URIs in [`EXTRA_STREAM`](https://developer.android.com/reference/android/content/Intent.md.txt#EXTRA_STREAM), the system implicitly grants the target app read access to them. For [`MediaStore.ACTION_IMAGE_CAPTURE`](https://developer.android.com/reference/android/provider/MediaStore.md.txt#ACTION_IMAGE_CAPTURE) and related capture actions, it grants read and write access to the URI in [`MediaStore.EXTRA_OUTPUT`](https://developer.android.com/reference/android/provider/MediaStore.md.txt#EXTRA_OUTPUT). **In future Android releases the plan is to stop granting these permissions automatically.**

Use Android 17's [`StrictMode.VmPolicy.Builder.detectImplicitUriPermissionGrant()`](https://developer.android.com/reference/android/os/StrictMode.VmPolicy.Builder.md.txt#detectImplicitUriPermissionGrant()) in debug builds now, or the `MissingExplicitUriGrant` lint check, to find intents that rely on the implicit grant. Then add [`Intent.FLAG_GRANT_READ_URI_PERMISSION`](https://developer.android.com/reference/android/content/Intent.md.txt#FLAG_GRANT_READ_URI_PERMISSION) explicitly (plus [`FLAG_GRANT_WRITE_URI_PERMISSION`](https://developer.android.com/reference/android/content/Intent.md.txt#FLAG_GRANT_WRITE_URI_PERMISSION) for capture intents). If your app receives these intents, check whether the sender granted access, and degrade gracefully if it didn't.

```kotlin
import android.content.Intent
import android.os.Build
import android.os.StrictMode
// Detect implicit URI permission grants in debug builds ahead of future Android releases
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CINNAMON_BUN) {
    val policy = StrictMode.VmPolicy.Builder()
        .detectImplicitUriPermissionGrant()
        .penaltyLog()
        .build()
    StrictMode.setVmPolicy(policy)
}
// Grant URI permissions explicitly on outgoing share intents
// (capture intents also need FLAG_GRANT_WRITE_URI_PERMISSION)
val shareIntent = Intent(Intent.ACTION_SEND).apply {
    type = "image/png"
    putExtra(Intent.EXTRA_STREAM, documentUri)
    addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
}
// On the receiving side, check that the sender granted read access
val granted = (intent.flags and Intent.FLAG_GRANT_READ_URI_PERMISSION) ==
    Intent.FLAG_GRANT_READ_URI_PERMISSION
```

### Photo Picker Location Metadata Toggle

Starting in**QPR1** , when an app requests location access with [`MediaStore.EXTRA_REQUEST_LOCATION_METADATA_ACCESS`](https://developer.android.com/reference/android/provider/MediaStore.md.txt#EXTRA_REQUEST_LOCATION_METADATA_ACCESS), users selecting photos through [`MediaStore.ACTION_PICK_IMAGES`](https://developer.android.com/reference/android/provider/MediaStore.md.txt#ACTION_PICK_IMAGES) see a system toggle to strip or include geographic EXIF location metadata (with broader [`ACTION_GET_CONTENT`](https://developer.android.com/reference/android/content/Intent.md.txt#ACTION_GET_CONTENT) coverage planned for future releases). Previously, location metadata was never included with photo picker URIs. Ensure your EXIF parsing handles both included and missing GPS coordinates gracefully, without interrupting uploads or app workflows:

```kotlin
import android.content.Intent
import android.media.ExifInterface
import android.net.Uri
import android.provider.MediaStore

// 1. Request location metadata when launching the Photo Picker
val pickIntent = Intent(MediaStore.ACTION_PICK_IMAGES).apply {
    putExtra(MediaStore.EXTRA_REQUEST_LOCATION_METADATA_ACCESS, true)
}

// 2. Read optional GPS coordinates from the returned URI
fun extractOptionalLocation(selectedUri: Uri): Pair<Float, Float>? {
    context.contentResolver.openInputStream(selectedUri)?.use { stream ->
        val exif = ExifInterface(stream)
        val latLong = FloatArray(2)
        if (exif.getLatLong(latLong)) {
            return latLong[0] to latLong[1]
        }
    }
    return null // Proceed gracefully when the user strips location metadata
}
```

### Additional Security, Storage \& Peripheral Updates

- **Hardening Against Call-Forwarding Fraud (QPR2)** : Holding the \`[`CALL_PHONE`](https://developer.android.com/reference/android/Manifest.permission.md.txt#CALL_PHONE)\` permission is no longer sufficient to send call-forwarding USSD codes (such as \`\*21#\`) programmatically via \`[`TelephonyManager.sendUssdRequest()`](https://developer.android.com/reference/android/telephony/TelephonyManager.md.txt#sendUssdRequest(java.lang.String,%20android.telephony.TelephonyManager.UssdResponseCallback,%20android.os.Handler))\`. Unless an app is exempt, these requests now fail with \`[`USSD_ERROR_NOT_ALLOWED`](https://developer.android.com/reference/android/telephony/TelephonyManager.md.txt#USSD_ERROR_NOT_ALLOWED)\`. Non-call-forwarding USSD requests (such as balance checks) are unaffected. Apps that initiate call forwarding should migrate to \`[`Intent.ACTION_DIAL`](https://developer.android.com/reference/android/content/Intent.md.txt#ACTION_DIAL)\` for explicit user confirmation. On the user side, dialing a call-forwarding code in the Phone app now triggers a system confirmation dialog, and Android blocks enabling **Developer options** during calls with unknown numbers.
- `MANAGE_CONTACTS`**Special App Access** : Ahead of planned restrictions on broad background [`WRITE_CONTACTS`](https://developer.android.com/reference/android/Manifest.permission.md.txt#WRITE_CONTACTS) access, QPR2 adds the [`Manifest.permission.MANAGE_CONTACTS`](https://developer.android.com/reference/android/Manifest.permission.md.txt#MANAGE_CONTACTS) Special App Access permission ([`Settings.ACTION_MANAGE_CONTACTS`](https://developer.android.com/reference/android/provider/Settings.md.txt#ACTION_MANAGE_CONTACTS)) and [`PeopleContract`](https://developer.android.com/reference/android/provider/PeopleContract.md.txt) for dedicated contact managers, dialers, and spam blockers (see [our contacts migration guide](https://developer.android.com/blog/posts/reliable-way-to-add-and-edit-contacts-android.md.txt)). Non-store app installs (`REQUEST_INSTALL_PACKAGES`) also gain an inline system prompt with *Only this time*, *Always allow*, and *Don't allow* options instead of redirecting users to Settings.
- **Scoped Subdirectory Search in** [`DocumentsProvider`](https://developer.android.com/reference/android/provider/DocumentsProvider.md.txt)**(QPR1)** : Advertise [`DocumentsContract.Document.FLAG_SUPPORTS_SUBTREE_SEARCH`](https://developer.android.com/reference/android/provider/DocumentsContract.Document.md.txt#FLAG_SUPPORTS_SUBTREE_SEARCH) and override the 4-argument [`querySearchDocuments(parentDocumentId, projection, queryArgs, signal)`](https://developer.android.com/reference/android/provider/DocumentsProvider.md.txt#querySearchDocuments(java.lang.String,%20java.lang.String[],%20android.os.Bundle,%20android.os.CancellationSignal)) to support folder-scoped queries via [`DocumentsContract.buildSearchDocumentsUri()`](https://developer.android.com/reference/android/provider/DocumentsContract.md.txt#buildSearchDocumentsUri(android.net.Uri,%20java.lang.String)).
- **Companion Devices \& Connected Peripherals (QPR1 \& QPR2)** : Establish system-mediated cryptographic trust via [`CompanionDeviceManager.requestDeviceTrustPairing()`](https://developer.android.com/reference/android/companion/CompanionDeviceManager.md.txt#requestDeviceTrustPairing(int,%20android.companion.OutOfBandPairingRequest,%20int[],%20java.util.concurrent.Executor,%20android.companion.CompanionDeviceManager.TrustPairingCallback)) and [`CompanionDeviceService`](https://developer.android.com/reference/android/companion/CompanionDeviceService.md.txt) callbacks, honor persistent "Always allow" USB device grants by checking [`UsbManager.hasPermission()`](https://developer.android.com/reference/android/hardware/usb/UsbManager.md.txt#hasPermission(android.hardware.usb.UsbDevice)) before prompting, query BLE accessory types with [`BluetoothDevice.getLeAppearance()`](https://developer.android.com/reference/android/bluetooth/BluetoothDevice.md.txt#getLeAppearance()), or integrate raw HID [`(HidManager)`](https://developer.android.com/reference/android/hardware/hid/HidManager.md.txt) and peripheral button customization [`(InputManager)`](https://developer.android.com/reference/android/hardware/input/InputManager.md.txt) via Special App Access.

## Consumer Features at a Glance

Alongside the developer APIs above, Android 17 QPR1 and QPR2 bring user-visible platform updates across phones, foldables, and tablets that shape how people interact with your apps:

|---|---|---|---|
| **User-Facing Feature** | **Release** | **What Users See** | **Developer Action** |
| **Always-On PiP Overlays** | QPR2 | Redesigned PiP menu and persistent action buttons over video. | Adopt [`setActions(list, primaryAction)`](https://developer.android.com/reference/android/app/PictureInPictureParams.Builder.md.txt#setActions(java.util.List%3Candroid.app.RemoteAction%3E,%20android.app.RemoteAction))and `setOverlayActions()`. |
| **Foldable App Handle \& Bubble-to-Fullscreen** | QPR2 | Top-of-window handle on foldables to enter split screen or reposition bubbles, plus a "Move to fullscreen" shortcut on phone bubbles. | Test multi-window resizability and Bubbles-to-fullscreen transitions. |
| **Quick Settings Brightness Override** | QPR2 | Unlocked Quick Settings brightness slider even when the top app sets a custom window brightness (such as for QR codes or boarding passes). | Avoid assuming [`LayoutParams.screenBrightness`](https://developer.android.com/reference/android/view/WindowManager.LayoutParams.md.txt#screenBrightness)locks display brightness while visible; normal brightness resumes on exit. |
| **"Look Up" Text Context Action** | QPR2 | New "Look Up" action in text selection and right-click menus across Views, Compose, and browsers. | Handle or launch [`Intent.ACTION_LOOK_UP_TEXT`](https://developer.android.com/reference/android/content/Intent.md.txt#ACTION_LOOK_UP_TEXT) where relevant. |
| **Persistent USB Grants** | QPR1 | Redesigned USB dialog with "Always allow" and "Only this time" options. Manage or revoke access in Settings → Connected devices → USB. Unused grants auto-expire (30 days with a serial number, 7 days without). | No changes required---[`UsbManager.requestPermission()`](https://developer.android.com/reference/android/hardware/usb/UsbManager.md.txt#requestPermission(android.hardware.usb.UsbDevice,%20android.app.PendingIntent)) succeeds without prompting when already granted. Check [`hasPermission()`](https://developer.android.com/reference/android/hardware/usb/UsbManager.md.txt#hasPermission(android.hardware.usb.UsbDevice)) on connect to open immediately instead of caching permission state. |
| **Custom Window Dim Colors** | QPR2 | Brand-tinted scrims behind dialogs and bottom sheets. | Set [`android:backgroundDimColor`](https://developer.android.com/reference/android/R.attr.md.txt#backgroundDimColor) or call [`Window.setDimColor(Color.pack(colorInt))`](https://developer.android.com/reference/android/view/Window.md.txt#setDimColor(long)). |
| **Regional CJK Font Fallback** | QPR1 | Localized Han glyph variants for regional scripts (such as en-JP and en-TW). | Supply regional language tags via [`LocaleList.forLanguageTags(...)`](https://developer.android.com/reference/android/os/LocaleList.md.txt#forLanguageTags(java.lang.String)) on text views. |

Beyond app-facing APIs, **Android 17 QPR2** also rolls out several system-wide quality-of-life, connectivity, and accessibility upgrades:

- **Expanded Color Theming \& Adaptive Wallpapers** : A custom rainbow hue slider and four color intensity styles (*Neutral*, *Soft*, *Bright*, and *Bold*) under *Wallpaper \& style → Colors*, plus platform support for wallpapers that switch automatically between light and dark themes.
- **Status Bar Controls \& Print Live Updates** : A new *Settings → Notifications → Status bar* page to filter notification icons (*All*, *Priority only*, or *None*) and toggle battery percentage, mute, and vibrate indicators---alongside real-time **Live Updates** and status bar chips for active print jobs, improved monochrome AOD Live Update icon detection, and a more discoverable *All apps* peek in the system Share sheet.
- **Auracast Voice Broadcast \& Smooth Bluetooth Volume** : Preview Voice broadcast from the phone or wired headset mic over Bluetooth LE Audio Auracast (with optional password-protected private channels), QR/NFC tap-to-join for public streams with on-device **Live Caption** and **Translation** , and smooth Absolute Volume ramping that **helps prevent** sudden Bluetooth volume spikes when switching audio streams.
- **Linux Terminal Guest-to-Host File Sharing** : The running Linux VM's home directory now mounts directly inside Android's system file viewer (DocumentsUI) under **Linux VM** for browsing, editing, and searching files from Android, paired with configurable host-or-VM web link handling.
- **Accessibility \& Input Controls:** Quick lock-screen and notification-shade controls for paired hearing devices, an updated color-correction preview and filter in Accessibility settings, and a keyboard vibration intensity slider..

## Android 17 QPR2 Availability

Android 17 QPR2 (SDK 37.2) is available today on supported Google Pixel devices---including the **Pixel 6a through Pixel 11 series, Pixel Fold, and Pixel Tablet** or byusing 64-bit **Android Emulator** system images (including phone, foldable, tablet, resizable, and 16 KB page-size images) in Android Studio.

### Configure Minor SDK 37.2 and Guard Runtime Calls

Update `compileSdk` in your module's `build.gradle.kts` to minor API level 2 while keeping `targetSdk = 37`. When checking [`Build.VERSION.SDK_INT_FULL`](https://developer.android.com/reference/android/os/Build.VERSION.md.txt#SDK_INT_FULL) at runtime, **always check** [`Build.VERSION.SDK_INT`](https://developer.android.com/reference/android/os/Build.VERSION.md.txt#SDK_INT)**\>=** [`Build.VERSION_CODES.BAKLAVA`](https://developer.android.com/reference/android/os/Build.VERSION_CODES.md.txt#BAKLAVA)**first** so apps with `minSdk < 36` do not throw [`NoSuchFieldError`](https://developer.android.com/reference/java/lang/NoSuchFieldError.md.txt) on Android 15 (API 35) or lower:

```kotlin
// build.gradle.kts
android {
    compileSdk {
        version = release(37) {
            minorApiLevel = 2
        }
    }


    defaultConfig {
        targetSdk = 37
    }
}
```

Guard QPR1 and QPR2 API calls at runtime with `SDK_INT` and `SDK_INT_FULL`:

```kotlin
import android.os.Build


if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.BAKLAVA) {
    if (Build.VERSION.SDK_INT_FULL >= Build.VERSION_CODES_FULL.CINNAMON_BUN_2) {
        // Safe to call Android 17 QPR2 (SDK 37.2) APIs
    } else if (Build.VERSION.SDK_INT_FULL >= Build.VERSION_CODES_FULL.CINNAMON_BUN_1) {
        // Safe to call Android 17 QPR1 (SDK 37.1) APIs
    }
}
```

For full build details, API changes, and issue tracking, see the [Android 17 QPR2 release notes](https://developer.android.com/about/versions/17/qpr2/release-notes.md.txt), the [API 37.2 diff report](https://developer.android.com/sdk/api_diff/37.2/changes), the [App Memory Budgets guide](https://developer.android.com/topic/performance/memory/app-memory-budgets.md.txt), and report feedback through the [Android Issue Tracker](https://issuetracker.google.com/).
- [#Android](https://developer.android.com/blog/topics/android.md.txt)
- [#aosp](https://developer.android.com/blog/topics/aosp.md.txt)
Written by:

-

  ## [Daniel Galpin](https://developer.android.com/blog/authors/daniel-galpin.md.txt)

  ###### Developer Advocate

  [read_more
  View profile](https://developer.android.com/blog/authors/daniel-galpin) ![View Daniel Galpin's profile](https://developer.android.com/static/blog/assets/dgalpin_30033d2d42_16cSIX.webp) ![View Daniel Galpin's profile](https://developer.android.com/static/blog/assets/dgalpin_30033d2d42_16cSIX.webp)
Continue reading
- [![View Matthew Forsythe's profile](https://developer.android.com/static/blog/assets/matthew_9c798f0c1d_1FlQLe.webp)](https://developer.android.com/blog/authors/matthew-forsythe.md.txt) 19 Nov 2026 19 Nov 2026 ![](https://developer.android.com/static/blog/assets/ABL_139_Android_developer_verification_Going_global_together_Strapi_01_png_12aa1e5aae_ZkNaef.webp) [Product News](https://developer.android.com/blog/categories/product-news.md.txt)

  ## [Expanding Android developer verification in 2027](https://developer.android.com/blog/posts/android-developer-verification-2027.md.txt)

  [arrow_forward](https://developer.android.com/blog/posts/android-developer-verification-2027.md.txt) After over a year of joint preparation with industry leaders, regional partners, app distributors, and Android communities, our user protections successfully went live on September 30 for participating stores across Brazil, Indonesia, Singapore, and Thailand.
  [Matthew Forsythe](https://developer.android.com/blog/authors/matthew-forsythe.md.txt) • 2 min read
  - [#Android](https://developer.android.com/blog/topics/android.md.txt)
- [![View Aurash Mahbod's profile](https://developer.android.com/static/blog/assets/image3_98854eb3dd_Z2kItkm.webp)](https://developer.android.com/blog/authors/aurash-mahbod.md.txt) 18 Nov 2026 18 Nov 2026 ![](https://developer.android.com/static/blog/assets/ABL_162_2000x1000_1_ce7dba8d2a_72W03.webp) [Product News](https://developer.android.com/blog/categories/product-news.md.txt)

  ## [Elevating games: New large screens and foldables quality standards on Google Play](https://developer.android.com/blog/posts/elevating-game-quality-foldables-large-screens-google-play.md.txt)

  [arrow_forward](https://developer.android.com/blog/posts/elevating-game-quality-foldables-large-screens-google-play.md.txt) To give these experiences to players and ensure your games shine across every screen size, Google Play is introducing new large screen quality requirements for games
  [Aurash Mahbod](https://developer.android.com/blog/authors/aurash-mahbod.md.txt) • 4 min read
  - [#Google Play](https://developer.android.com/blog/topics/google-play.md.txt)
  - [#Android](https://developer.android.com/blog/topics/android.md.txt)
  - [#Adaptive Games](https://developer.android.com/blog/topics/adaptive-games.md.txt)
  - [#Foldables](https://developer.android.com/blog/topics/foldables.md.txt)
  - [#Large Screens](https://developer.android.com/blog/topics/large-screens.md.txt)
  - +3 ↩
- [![View Matthew McCullough's profile](https://developer.android.com/static/blog/assets/matthew_mccullough_dc22050a18_51Njy.webp)](https://developer.android.com/blog/authors/matthew-mccullough.md.txt) 28 Oct 2026 28 Oct 2026 ![](https://developer.android.com/static/blog/assets/Mesa_de_trabajo_1_copy_8_3f8cf8a935_Z1799P4.webp) [Product News](https://developer.android.com/blog/categories/product-news.md.txt)

  ## [Agentic and Flexible: A next era of Android development](https://developer.android.com/blog/posts/build-it-your-way-a-next-era-of-android-development.md.txt)

  [arrow_forward](https://developer.android.com/blog/posts/build-it-your-way-a-next-era-of-android-development.md.txt) Today, at the Android Dev Summit, we are announcing the broad availability of many tools and APIs designed to remove everyday friction and give you more flexibility to build great Android apps.
  [Matthew McCullough](https://developer.android.com/blog/authors/matthew-mccullough.md.txt) • 4 min read
  - [#Android](https://developer.android.com/blog/topics/android.md.txt)
Stay in the loop


Get the latest Android development insights delivered to your inbox
weekly.
[mail
Subscribe](https://developer.android.com/subscribe) ![A 3D illustration of the Android mascot, wearing a jetpack that's emitting a large cloud of bubbles](https://developer.android.com/static/blog/assets/rocket-android.CVJQZOf1_1zVtXW.webp)