March 26, 2025

API Changes

  • Integrated the new EDGE_NONE and frameTimeMillis from Android 16 Beta03 into the BackEventCompat provided by OnBackPressedCallback’s handleOnBackStarted and handleOnBackProgressed functions.

Dependency Updates

Bug Fixes

  • Fixed Gradle Project Isolation incompatibilities in the Benchmark Baseline Gradle Plugin. b/404523257

API Changes

  • Increased default timeout for TraceProcessor server load and querying to 120 seconds (from 60/30 previously), and made both configurable with one timeout parameter. Ifec87

Bug Fixes

  • Fixed a few issues that would occur when benchmarking or capturing profiles of an app without profileinstaller, and it's included BroadcastReciever. This only affects runs on rooted devices. Ied308

New Features

  • Introduced a new authentication entry point registerForAuthenticationResult() API to replace the androidx.biometric:biometric-ktx module and androidx.BiometricPrompt. This new API is modeled after the Activity Result API, and it provides seamless compatibility with both Kotlin and Java development.

API Changes

  • Rename ERROR_MORE_OPTIONS_BUTTON to ERROR_CONTENT_VIEW_MORE_OPTIONS_BUTTON I71d07
  • Add @Deprecated annotation for IdentityCredential to keep consistent with the framework. I6ac90 b/140252778 b/217942278 b/251211046 b/239955609
  • [1/3] Remove biometric.auth and kotlin library, which will be redesigned. I2f67c
  • [2/3] Add AuthenticationRequest as authentication input and AuthenticationResult as authentication result type. There are two kinds of AuthenticationRequest, with builders. I50fd9
    1. BiometricRequest for biometric authentication with different Strength and optional Fallback.
    2. CredentialRequest for device credential only authentication.
  • [3/3] Add new activity-result-pattern APIs for biometric module. Specifically, add a registration API called registerForAuthenticationResult(), which registers the AuthenticationResultCallback and the optional onAuthenticationFailedCallback, and results a AuthenticationResultLauncher to start authentication with all input. I2b06e

Bug Fixes

  • This library now uses JSpecify nullness annotations, which are type-use. Kotlin developers should use the following compiler argument to enforce correct usage: -Xjspecify-annotations=strict (this is the default starting with version 2.1.0 of the Kotlin compiler). Ib49b4 b/326456246
  • Fixed an issue of being unable to instantiate fragment androidx.biometric.FingerprintDialogFragment. I51c4a b/181805603
  • Fixed an issue where BiometricPrompt is not dismissed when the device’s home button is pressed. I8c393 I0ca8c b/149770989
  • Fixed error code inconsistencies for disabling biometric app auth on API 34/35. Ice99d b/386918213
  • Apply forcing strong biometrics on older devices to combined authenticatiors too. Ibb853 I5cfb3 b/257670132

Bug Fixes

  • Fixed preview freeze issue when using ImageAnalysis with another stream that uses TEMPLATE_RECORD on Samsung Galaxy M55. Ic1a6a b/395822788

API Changes

  • Update capitalization for composable properties in default objects for button and toggle button. Add methods in ToggleButtonDefaults and ButtonDefaults for recommended content padding, shapes, icon size, icon spacing, and text style depending on container height. Iea69e
  • Removed deprecated experimental functions and constants from the FloatingToolbar. I8f339
  • Elevation components now share a common interface and have public constructors and properties. Ibb172
  • Adding animateWidth modifier in ButtonGroupScope that will need to be used with button group's children to correctly animate the children. Ia3bb6

Bug Fixes

  • Fixed Floating Toolbar padding to ensure visual balance during collapse, and improved flexibility for larger content. I06c00

Bug Fixes

  • Fixed an issue where focused views embedded in the Compose hierarchy would cause re-entrant composition when the focused view was removed from a lazylist. 765562

API Changes

  • An overload for ViewDragHelper#smoothSlideViewTo has been introduced, which accepts duration and interpolator parameters for animation speed control.

Bug Fixes

  • Replace the default storage from OkioStorage to FileStorage to improve reliability by reducing CorruptionException. I71181 b/346197747

New Features

  • Added datastore-guava module to expose APIs friendly to Java and Guava ListenableFuture users via GuavaDataStore. Iadd5e0
  • DataStore usage during DirectBoot mode is now supported. To create a datastore to be used during direct boot mode it must be created within the Device Protected storage. This can be achieved by the following new DataStore APIs: createInDeviceProtectedStorage() in DataStoreFactory and deviceProtectedDataStore() in DataStoreDelegate. Ib90e56

API Changes

  • Added PreferencesFileSerializer that implements androidx.datastore.core.Serializer interface for use with FileStorage. I4c71f3

Bug Fixes

  • Resolved FileNotFoundException issue in OkioStorage at startup by adding a second attempt to read data in the case of a race condition. I43b3fb b/337870543
  • Defined the default constructor for ReplaceFileCorruptionHandler for common code usage. I795b05 b/358138957

New Features

Bug Fixes

  • Fix a bug in GameActivity in which getLocaleScript, getLocaleCountry and getLocaleVariant were reporting the locale language instead of the requested value 1198bb0
  • Fix a bug in GameActivity which caused us to misreport software keyboard open-close events. a63ecca
  • Fix a bug in GameTextInput with multibyte emoji handling 9d54c68

Bug Fixes

  • Fix for full-screen flickers while drawing on certain devices with API<33.

New Features

  • The navigation-testing module now supports on desktop, linux, macOS and iOS in addition to android. I2b770 b/398265336
  • NavType is now supported on desktop, linux, macOS and iOS in addition to android. I297d8

New Features

  • SDK activity launchers can now be created for lifecycle-unaware activities, i.e. activities that don’t implement the LifecycleOwner interface. These launchers need to be manually disposed of by the caller.

API Changes

  • Added LocalUnmanagedSdkActivityLauncher and createUnmanagedSdkActivityLauncher, a launcher class for lifecycle-unaware activities and a method to create such launchers.
  • Renamed LocalSdkActivityLauncher to LocalManagedSdkActivityLauncher to highlight the distinction between this and lifecycle-unaware type of launchers.

New Features

API Changes

  • Deprecated SandboxedSdkProviderCompat.getView() with removal in next release. Please migrate to androidx.privacysandbox.tools 1.0.0-alpha13 before next release.
  • Dropped support for 1.0-alpha13 libraries (both App and SDK should use more recent versions to work with counterpart libraries from this release)

Bug Fixes

  • Migrated AppOwnedInterfaces to local implementation on API33 devices.

New Features

  • Set the default Z-ordering of SandboxedSdkView and SandboxedSdkUi to “below”, indicating that the provider’s surface is now placed below the client’s window. Added support for the UI provider to receive MotionEvents in this mode after being received by the client window.
  • Added a signalOptions field to the SessionObserverFactory interface. This can be used to define a set of String options which will be used to determine which signals are collected for the associated SessionObserver. The initial set of signals is defined in SandboxedUiAdapterSignalOptions. If no signal options are set, only SessionObserver.onSessionOpened() and SessionObserver.onSessionClosed() will be called.

API Changes

  • Renamed SessionConstants to SessionData in SandboxedUiAdapter.openSession().

Known Issues

  • When the SDK is loaded in the SDK Runtime and the Z-order of SandboxedSdkView or SandboxedSdkUi is “above”, the gesture is exclusively received by the provider window and not transferred to the client window anymore.

New Features

  • Added support for the SessionData parameter in openSession, which replaces SessionConstants.
  • Removed the generation of SandboxedSdkProviderCompat.getView(), which is now deprecated.

Bug Fixes

  • No longer throw InterruptedExceptionwhen a thread is interrupted during the execution of Room blocking APIs, including blocking DAO functions b/400584611.
  • Re-implement Room’s connection pool in an attempt to alleviate SQLException: Error code: 5, message: Timed out attempting to acquire a reader connection. and similar issues b/380088809.

Bug Fixes

  • Revert a binary breaking incompatible change that incorrectly removed SupportSQLiteCompat APIs used by other libraries such as Room b/402796648.

API Changes

  • Improve SwipeToReveal default implementation of gestureInclusion to only ignore gestures if the state of the component is Covered. I7e3d6
  • For SwipeToReveal, made bidirectionalGestureInclusion a val instead of a function and added @FloatRange to edgeZoneFraction param in gestureInclusion. Ica7c3

Bug Fixes

  • Change SwipeToReveal bidirectionalGestureInclusion to return an object instead of a class. I29597
  • Disabled use of haptics when running tests under RoboElectric. I58bd1
  • Update SwipeToReveal paddings between content and action buttons, and also the padding between the icon and text of the action buttons. Ic46cb

API Changes

  • AlertDialog top padding is now reduced by default when an icon is provided - this makes best use of the screen size available. Ief06c
  • PagerScaffoldDefaults.FadeOutAnimation has been renamed to PagerScaffoldDefaults.FadeOutAnimationSpec. The page parameter on AnimatedPage has been renamed to pageIndex. I701f2
  • Updated naming for TransformingLazyColumn’s SurfaceTransformation - applyTransformation split into applyContainerTransformation and applyContentTransformation, and renamed createBackgroundPainter to createContainerPainter. Further naming updates to TransformationSpec and ResponsiveTransformationSpec. I1c534
  • The AppScaffold backgroundColor has been renamed to containerColor. I4e63f

Bug Fixes

  • Fixed an issue in FadingExpandingLabel where the text did not always expand correctly. I0e773
  • ArcLarge has been reduced from 20sp to 18sp, and letter spacings on ArcLarge and ArcSmall have been updated. ConfirmationDialog/OpenOnPhoneDialog now use the default ArcLarge instead of overriding it to 18sp. Id39a8
  • Updated the heading animation for DatePicker and TimePicker based, so that the fade-out and fade-in animation act as one Spring animation. I68963
  • Optimized PagerScaffold by avoiding the reading of currentPageOffsetFraction in the AnimatedPage composable. I433ef
  • All type scales have been updated to have proportional numerals by default, because that is seen as the most frequent use case and defaulting to tabular resulted in too much spacing between certain number pairings. TimePicker and DatePicker continue to apply FontFeatureSetting=tnum for tabular numerals. I88929
  • Corrected the initial RSB input focus for TimePicker and DatePicker. I1c773
  • Updated the default text on OpenOnPhoneDialog to "Check your phone". I00a3f
  • Updated weights for ArcLarge and ArcMedium from 600 to 599 to workaround an issue where weight 600 is treated as bold I2a51d
  • Update SwipeToReveal paddings between content and action buttons, and also the padding between the icon and text of the action buttons. Ic46cb

New Features

  • The wear watchface APIs (watchface, watchface-client, watchface-client-guava, watchface-complications-rendering, watchface-data, watchface-editor, watchface-editor-guava, and watchface-style) have been depreciated in favor of the Wear Watchface Format, and will eventually be removed from AndroidX. The complication APIs are not deprecated and will remain. Ice960
  • The complication APIs are now able to communicate with WearSDK directly, which is more efficient due to fewer IPC hops.