October 22, 2025

API Changes

  • Introduce the experimental ActivityFlags API for managing runtime behavior changes and migrations. The first flag enables stable ordering for OnBackPressedCallback, making back navigation more predictable across lifecycle changes. Developers can opt out by setting ActivityFlags.isOnBackPressedLifecycleOrderMaintained = false. I06bdf Id08bb I439aa b/422730945 b/450533622

Dependency Update

  • Update lifecycle dependencies to 2.9.4 Ic9fb2

New Features

  • CameraX has migrated to a unified, high-performance camera stack, which is also used by the Pixel camera app. Known as CameraPipe, this new stack is a collaboration between the CameraX and Pixel Camera teams. It ensures that all improvements are shared, benefiting both CameraX users and the Pixel camera app.

API Changes

  • Added new APIs for dynamic camera add/removal detection. See the CameraPresenceListener API for more details. I41ead b/427182232 b/419441394

Bug Fixes

  • The feature group API now provides consistent results when PREVIEW_STABILIZATION is used with VideoCapture. This corrects a bug that caused inconsistent results when a Preview use case was not also active. Ifed82 b/449913903
  • Fixed an issue where unsupported preferred features were incorrectly made available. Features are now correctly filtered when their required use cases are not met. I38db8 b/449532342
  • Fixed glitchy video result on Samsung Galaxy S6. I612d9 b/235127608
  • Fixed an issue where CameraInfo#isFeatureGroupSupported could incorrectly return true for PREVIEW_STABILIZATION if the SessionConfig in the query was already configured with other features. I2c355c b/437816469

API Changes

  • Exposed the default viewfinder ImplementationMode via the new ViewfinderDefaults.implementationMode public API. This is now used as the default for both ViewfinderView and the Viewfinder composable. Ic3f52

API Changes

  • The SharedContentConfig factory method that takes a lambda indicating whether the shared element should be enabled has been removed. lookheadScopeCoordinates API has been updated with a LookaheadScope being the receiver scope, with source coordinates being the parameter. Id1fc2 b/452416806
  • BoundsTransform interface has been updated to be consistent with SizeTransform. Ia46f2 b/343696350
  • Deprecated ScaleToBounds API has been removed. Please use scaleToBounds instead. I17296

API Changes

  • Updates all indirect touch APIs to use the name indirect pointer APIs to match pointer input APIs. I238ce b/451607214
  • Annotated PagerState.currentPageOffsetFraction with @FrequentlyChangingValue. Idfaab

Bug Fixes

  • Fixes marquee behavior for RTL layout directions. Ib8be3

API Changes

  • Enhanced SearchBar.InputField with a keyboardOptions parameter, allowing for optimized text input by specifying keyboard options and lineLimits parameter allowing to specify text wrapping scrolling Id08a4 b/416991049

Bug Fixes

  • Fixed a bug in Slider where press interactions were not emitted on touch down. This change ensures that a PressInteraction.Press is emitted immediately on awaitFirstDown, providing instant visual feedback. If9e25 b/308501482
  • Fixed an issue with the Tooltip caret not changing directions when scrolling. The TooltipBox now triggers a recomposition whenever the tooltip popup switches sides, ensuring the caret's direction is updated correctly. I5ad1e b/438875827

Important changes since 1.1.0:

  • Introduce PaneScaffoldScope.preferredHeight modifier for devs to provide pane preferred heights that will be applied with new adapt strategies we are going to introduce. I957dd
  • Add saveable state holder to PaneScaffoldScope Id9299
  • Introduce reflow strategy for adaptation I75c6a
  • Introduce levitate strategy for adaptation I1ba7c
  • Make currentWindowAdaptiveInfo() function support large and extra-large window width size classes I92e97
  • Support custom dragging behavior with pane expansion state If5c61

API Changes

  • RetainedValuesStore.getExitedValueOrDefault is renamed to RetainedValuesStore.getExitedValueOrElse If9653 b/452340613
  • isKeepingExitedValues has been renamed to isRetainingExitedValues I660bf b/437095756
  • RetainScope has been renamed to RetainedValuesStore. RetainScopeHolder has been renamed to RetainedValuesStoreRegistry. RetainScopeHolder.RetainScopeProvider has been renamed to RetainedValuesStoreRegistry.ProvideChildRetainedValuesStore. Idf23a b/437095756

Bug Fixes

  • Delayed initialization of SavedState in SaveableStateRegistry until the first usage. Ic0a93

Bug Fixes

  • Fixed an issue where inline text content was disappearing if it was on the last line of a multi-line ellipsized text even though the inline content wasn’t in the ellipsized region. I76aaf b/441829208
  • Fixed an issue where onLayoutRectChanged modifier callbacks were not always being called when debounceMillis is not zero. 72aba47 b/445324854

API Changes

  • Adds an optimization for focus change dispatching. This can be disabled with isOptimizedFocusEventDispatchEnabled = false I919fb b/449228515
  • Updates all indirect touch APIs to use the name indirect pointer APIs to match pointer input APIs. I238ce b/451607214
  • TextDirection, TextAlign, Hyphens, FontSynthesis valueOf functions now throw IllegalArgumentException when they receive an unknown value. I07c67
  • Update CompositionDataTree.makeTree to pass default values instead of wrapper function. Id64a6 b/445229688
  • The test rule APIs createComposeRule, createAndroidComposeRule and createEmptyComposeRule which accept the effectContext parameter are stable and the parameter defaults to EmptyCoroutineContext. If400c b/450540702
  • UnplacedStateAwareModifierNode was renamed to UnplacedAwareModifierNode I6a551 b/449719932
  • Undo the Content Capture Optimization Ic000b b/442364065
  • Added ComposeUiFlags.isRectManagerOffsetUsageFromLayoutCoordinatesEnabled feature flag. It enabled performance optimization where coordinates requests like LayoutCoordinates.positionInRoot() are using the cached offsets we already have in RectManager, instead of traversing the whole tree on each call. Ieaadc

Bug Fixes

  • PlaceholderSpan now correctly uses non-linear font scaling for sizing Id2ead b/324462728
  • Use ViewCompat to perform haptic feedback constants supported at the platform level, relying on its fallback support for newer constants. Ib5a00

API Changes

Bug Fixes

  • Fix java.lang.UnsatisfiedLinkError when using DataStore in an app which is optimized with R8, but which is not using getDefaultProguardFile('android-proguard-optimize.txt'). I27d0d b/434696293
  • Fix issue where GuavaDataStore operations could incorrectly run on the calling thread (e.g., the main thread) instead of the specified IO dispatcher. Ic91ea b/441801112

Bug Fixes

  • Improved ANR protection in native_app_glue.
  • Migrated from deprecated ALooper_pollAll to ALooper_pollOnce.

New Features

  • A new EncoderPreference class has been implemented. This enhancement enables HeifWriter to consider encoder preferences, such as hardware or software encoding and enforcement of Constant Quantization (CQ), during the encoder selection process. If a suitable encoder cannot be found based on the specified preferences, an exception will be raised.

API Changes

  • Added EncoderPreference class. I81efd

Bug Fixes

  • Bug fixes in preparation for beta01 release I9900e
  • Reduce rendering artifacts in strokes due to too many modeled inputs too close to each other.
  • Fix a rare crash in input modeling.

API Changes

Bug Fixes

  • :xr:scenecore:scenecore-spatial-rendering and :xr:scenecore:scenecore-spatial-core added as implementation dependency of :xr:scenecore:scenecore I6ab65 b/447000520
  • Exception is thrown if session.scene is accessed after session destruction. I77e6f

API Changes

  • ViewModelStoreNavEntryDecoratorDefault has been renamed to ViewModelStoreNavEntryDecoratorDefaults, with an 's'. I6d27b b/444447434

Bug Fixes

  • rememberLifecycleOwner no longer crashes if the owner receives an Lifecycle.Event.ON_DESTROY event before moving to Lifeycle.State.CREATED. I6f98e b/444594991

API Changes

  • SceneStrategyScope now only has a no argument public constructor, suitable for testing your SceneStrategy and the returned Scene in isolation. For more complex use cases, please use rememberSceneState(). I8440c b/451679047

Bug Fixes

  • Fixed infinite loop when chaining SceneStrategy with then. Iba3f0 b/450323470
  • Fixed screen flicker when swapping the backStack passed to NavDisplay and using animations. Ief7b5 b/450967248

New Features

  • Enabling Smart Menu Items on pdf content selection.
  • Enabling hyperlink selection and GoTo link selection in pdf.
  • Exposing selection menu api fromPdfView and PdfViewer Composable, which allows developers to add selection menu items.
  • Adding page alignment api in PdfView and PdfViewer Composable which allows developers to choose the page alignment when the content height < viewport height.

API Changes

  • Made contentDesc nullable and removed default value. I86f8c b/441973880
  • Expose PdfSelectionMenuKeys for Link Selection Menu Items Ic9b05 b/447079082
  • Add PageAlignment API to PdfView and PdfViewer into androidx-main
  • Change angle-related API to use degrees and include unit in names, be clear about units in Angle conversion utilities and support both degrees and radians, change StockBrushes API to take stock brush version as a factory function parameter and expose self-overlap behavior control for highlighter brushes, rename MutableAffineTransform.populateFromTranslate to populateFromTranslation, remove InProgressStrokesView.setRenderFactory/getRenderFactory. Id9eab b/436656418
  • Add PageAlignment API to PdfView and PdfViewer I9c9a5 b/438065228
  • Expose Selection Menu API from PdfViewer Composable Id9b0f b/407663999
  • Make PdfView a ViewGroup. No support for arbitrary children. Ib51d8 b/410008792
  • Expose HyperLinkSelection and GoToLinkSelection from PdfView I378c4 b/441280002
  • Refactor PdfPageContent to support generic selections I28f16 b/437845185
  • Expose Selection Menu API from PdfView Idd547 b/407663737
  • Move selection-related classes to a dedicated package I953cb b/436157691
  • Introduce experimental onPdfViewCreated for PdfView access in PdfViewerFragment. I86715 b/422620454
  • Adds FileDescriptor API to PdfLoader I60b8d

Bug Fixes

  • Improve input modeling to make strokes more accurately reflect input I93097

External Contribution

  • Expose PdfSelectionMenuKeys for Link Selection Menu Items
  • Expose Selection Menu API from PdfViewer Composable
  • Expose Selection Menu API from PdfView

Bug Fixes

  • Fix a performance issue with the Room SQLite Wrapper that was causing excessive JNI calls and significant performance degradation when iterating over a Cursor.

Bug Fixes

  • Improved performance of Picker by refactoring the use of LaunchedEffect. I94519 b/418192973
  • Fixed a bug in SwipeDismissableNavHost on API36+, where pressing the back button during predictive back animation interrupted and restarted the animation. The implementation now uses SeakableTransitionState.animateTo instead of Animatable, which has a slight performance benefit. I2241f b/428156670
  • Fixed a bug for accessibility announcement ordering in AlertDialog, where the confirm button was announced as 'Button. Confirm' rather than the standard 'Confirm. Button'. Ic2381 b/429378202

API Changes

  • Implement reverseLayout for TransformingLazyColumn I19f9e b/352513793
  • Added ConfirmationDialogDefaults.VariantFailureIcon for use in FailureConfirmationDialog. This new generic error icon may be preferred in some cases, compared to ConfirmationDialogDefaults.FailureIcon which shows a broken connection to the phone. Ifc851 b/443115305

Bug Fixes

  • Improved performance of Picker by refactoring the use of LaunchedEffect. I94519 b/418192973
  • Fixed a bug in SwipeDismissableNavHost on API36+, where pressing the back button during predictive back animation interrupted and restarted the animation. The implementation now uses SeakableTransitionState.animateTo instead of Animatable, which has a slight performance benefit. I2241f b/428156670
  • Fixed a bug for accessibility announcement ordering in AlertDialog, where the confirm button was announced as 'Button. Confirm' rather than the standard 'Confirm. Button'. Ic2381 b/429378202
  • Improve TimePicker number visibility on small screens. I68386 b/447625365
  • Removed Lazy Layout fork from Wear Compose Foundation - this means that TransformingLazyColumn now uses the Compose Foundation Lazy Layout implementation, including prefetching, and benefits from a performance improvement on frame timings in most cases. Idd743 b/445911630

New Features

  • Added new Platform event source (isInAmbientMode) describing whether the device is in ambient mode or not Ief832

API Changes

  • The PendingIntent clickable now accepts a fallback action (LoadAction/LaunchAction) to be used when PendingIntent is not supported by the ProtoLayout Renderer. Fallback action will automatically be picked up and placed in the layout when the version of the Renderer is lower than the one supporting PendingIntent. I6eee2 b/450259727
  • protoLayoutScope field within MaterialScope is now made NonNull for easier usage when MaterialScope is created via materialScopeWithResources. In addition, there is a hasProtoLayoutScope function to check for the presence of it. I1858f b/450067019

New Features

  • Tile Previews is now updated to support automatic resource handling via ProtoLayoutScope. If using image resources directly in the layout via materialScopeWithScope or ProtoLayoutScope directly, there is no longer need to specify onTileResourcesRequest and resources specifically in the TilePreviewData, they will be collected automatically. I58516

Bug Fixes

  • ProtoLayoutScope created internally by the TileService now includes the ProtoLayout Renderer’s VersionInfo. I6eee2 b/450259727

Important changes since 2.10.0:

  • The minSdk has been updated from API 21 to API 23.
  • The API setRemoteSessionTimeoutMillis in WorkManager’s Configuration builder has been added to enable configuring the amount of time a RemoteWorkManager session is alive from its last usage.