Start integrating Smart Lock for Passwords into your Android app
Before you start integrating Smart Lock for Passwords
into your app, enable the Play Services SDK in your
Android Studio project. Next steps describes how to integrate
Smart Lock for Passwords into your app.
Prerequisites
Smart Lock for Passwords on Android requires the following:
A compatible Android device that runs Android 6.0 or
newer and includes the Google Play Store or an emulator with an AVD that runs
the Google APIs platform based on Android 4.2.2 or newer and has Google Play
services version 15.0.0 or newer.
The latest version of the Android SDK, including the SDK Tools component.
The SDK is available from the Android SDK Manager in Android
Studio.
A project configured to compile against Android 6.0
(Marshmallow) or newer.
This guide is written for users of Android Studio, which is the recommended
development environment.
Configure your Android Studio project
Integrating Smart Lock for Passwords in your Android
app requires you to import and reference the Google Play services library in
your Android Studio project. Add the following line to the dependencies
section of the build.gradle file in your application module:
[null,null,["Last updated 2025-02-07 UTC."],[[["Smart Lock for Passwords is deprecated and developers should migrate to Credential Manager for enhanced security and user experience."],["Credential Manager supports passkeys, passwords, and federated identity authentication, offering a more robust and unified approach to user credentials."],["Integrating Smart Lock for Passwords previously required specific Android device and SDK prerequisites, including compatibility with Android 6.0 or newer and Google Play services."],["Developers needed to configure their Android Studio project by adding the Google Play services library dependency to their build.gradle file before using Smart Lock for Passwords."],["Retrieving and utilizing user credentials for sign-in within the app was the next step after project configuration for Smart Lock for Passwords integration."]]],[]]