Android 17 QPR2 is now in AOSP: memory budgets, jank telemetry and a new Picture-in-Picture mode
Public- 04 Dec, 2026

Android 17 QPR2 (SDK 37.2) is now available in the Android Open Source Project. It builds on Android 17 and QPR1 (SDK 37.1) and brings targeted platform APIs and runtime improvements for phones, foldables and tablets. QPR2 has no target-SDK behavior changes. Three runtime updates do apply to every app, though, and should be checked: self-broadcast delivery, call-forwarding USSD requests and Quick Settings brightness overrides. Across QPR1 and QPR2, the main themes are memory budgeting, process-exit diagnostics, display jank and media pipeline work, a redesigned Picture-in-Picture, and privacy hardening. New APIs are gated by checking SDK_INT >= BAKLAVA together with SDK_INT_FULL >= VERSION_CODES_FULL.CINNAMON_BUN_2.
App Memory Budgets let an app declare soft working-set targets, for the whole package or for individual processes. You declare them with <memory-budget> elements in the manifest (release builds only), using the android:maxMb and android:state attributes (foreground, perceptible or background), and optionally android:additionalMbPerDensity scaling. Exceeding a budget does not kill the process. Instead, the OS first reclaims rarely used pages from the app: it evicts clean file-backed pages, writes dirty pages to disk and swaps inactive anonymous heap to zRAM. At runtime, the MemoryBudgetManager.registerProcessOverBudgetListener method takes a Looper, ideally from a background HandlerThread, and reports which ceiling, in bytes, was exceeded. Cleanup in that callback should be fast and lock-free. The setProcessBudgetBytes method tightens the budget and throws IllegalArgumentException if a stricter manifest or system limit already applies.
Android 17's Memory Limiter enforces higher device-wide memory limits and kills processes with runaway leaks. QPR2 adds ApplicationExitInfo.REASON_MEMORY_LIMITER for these kills. On 37.0 and 37.1, the same kills appear as REASON_OTHER with "MemoryLimiter:AnonSwap" in the description. The new REASON_ANOMALY covers resource anomalies such as FD leaks. Since API 37, REASON_ANR exits have carried structured anrInfo: anrId, anrType, timeoutMillis and isUserPerceptible. SurfaceView and SurfaceControl gain registerOnJankDataListener, which reports the desired and actual present times plus the jank type. Data is emitted when a presentation time or VsyncId is set, for example via setFrameTimeline. For activity-triggered launches, ApplicationStartInfo adds START_TIMESTAMP_SOURCE_EVENT: the uptime of the event that started the app, such as a tap on the launcher icon.
Self-broadcasts are now optimized for all apps, regardless of targetSdkVersion. These are broadcasts, such as sendBroadcast calls, where every matching receiver runs in the sending process. The system hands them back to that process without raising its importance or keeping a cached process from being frozen. If the process is killed, undelivered self-broadcasts are lost. RemoteCallbackList now dispatches broadcast and unfreeze-queued callbacks outside its per-interface monitor lock, which helps prevent lock-inversion deadlocks. Apps can also detect when they are fully occluded and skip costly screen updates. To do this, use TrustedPresentationThresholds.SIGNAL_MODE_STRICT_OCCLUSION with WindowManager.registerTrustedPresentationListener.
Picture-in-Picture gets a redesigned menu and two additions to PictureInPictureParams.Builder. setActions now accepts a primary action, such as Pause, which is shown prominently. setOverlayActions adds persistent controls, such as a call to action or Skip, that appear without a tap, provided maxNumPictureInPictureOverlayActions is above zero. On the drawing side, RenderNode.setBackdropRenderEffect automatically samples and blurs the content underneath it. This makes frosted-glass and similar effects straightforward. The Android Dev Summit showed blur, saturation and shaders chained in Jetpack Compose to turn a chat button into a magnifier or a kaleidoscope. Media apps also get SurfaceView.setBlurRegions, which can blur video behind player controls.
A future Android release plans to stop granting URI permissions implicitly. Today, ACTION_SEND and ACTION_SEND_MULTIPLE automatically grant read access to EXTRA_STREAM URIs. MediaStore.ACTION_IMAGE_CAPTURE and related capture actions grant read and write access to EXTRA_OUTPUT. To find intents that rely on these grants, use StrictMode.VmPolicy.Builder.detectImplicitUriPermissionGrant() in debug builds or the MissingExplicitUriGrant lint check. Then add FLAG_GRANT_READ_URI_PERMISSION explicitly, plus the write flag for capture intents. Receivers should check whether access was granted and degrade gracefully if it wasn't. Since QPR1, ACTION_PICK_IMAGES requests that include EXTRA_REQUEST_LOCATION_METADATA_ACCESS show users a toggle to keep or strip EXIF location data. EXIF parsing should therefore handle both present and missing GPS coordinates.