How to test Android restore keys in Android Studio before April 2027

From April 2027, Google Play checks zero-tap sign-in by whether your app retrieves its restore key on a new device. The rule covers apps with sign-in on phones and tablets. Games are out of scope for now, and a Block Store integration live by 30 September 2026 also counts. Android Studio can back up an app and restore it onto an emulator, so you can test this without a second phone. Every fact below was checked on its linked Google page on 10 October 2026.

For the server side, Play Restore Keys checks your setup for free (10 checks a day, no account). It does not test your app.

What Google checks

Google's technical quality requirements say: "Successful user sign in restoration is determined through the successful restore key retrieval." A restore key is what Google's code calls a Restore Credential. Your test should end with the app signed in on the restored device without the user doing anything.

What you need

  • Android Studio Otter (2025.2.1) or later.
  • An Android Studio emulator. Restore keys need Google Play services and Android 9 or later, so pick a system image with both. A second emulator lets you test a move to a separate device.
  • A debug build of your app (debuggable true).
  • For the Cloud backup test, set android:allowBackup to true in your manifest, as Google recommends. With false, Android Studio restores the sign-in only for Device to Device backups. On real phones, restore keys work whether or not allowBackup is set.
  • Your app already creates a restore key after sign-in and retrieves it on first launch, as in Google's implementation guide.

Back up the signed-in app

These steps follow Google's Test Restore Credentials page.

  1. Run your app on the emulator.
  2. Sign in with any method your app offers, such as a password, a passkey or Sign in with Google.
  3. In the running device window, click Backup App Data.
  4. For the backup type, choose Device to Device or Cloud, then click OK.

Restore and check the sign-in

  1. Same emulator: uninstall and reinstall the app, which clears its data. Second emulator: install the app there.
  2. Google's page then has you open the app before restoring: it shows your sign-in screen because the restore key is not on the device yet. Our note, not Google's: if your app looks for the key only on its very first launch, this step uses up that launch. Skip it, or also retrieve the key in onRestoreFinished, as Google's implementation guide recommends.
  3. In the running device window, click Restore App Data and pick the backup you just made.
  4. Open the app again. It should sign you in with the restore key.

Run the test twice, once with each backup type. A key created with cloud backup off cannot be retrieved after a restore from a cloud backup, so users who restore that way are not signed in. Google's implementation guide recommends creating the key with isCloudBackupEnabled set to true.

What the emulator test does not show

Android Studio simulates the new-phone setup step. On a real phone, Google's overview adds conditions your test may not hit:

  • Cloud backup needs the user to be signed in to a Google Account, to have Android backup on and to have a screen lock. Without them, creating the key with cloud backup throws E2eeUnavailableException. Create it again with cloud backup off, so the key can still move by a direct transfer from the old phone.
  • A restore key covers one account per app. If users can sign in to several, pick the main or most recent one.
  • On a phone with a work profile and a personal profile, the key is only available to the profile set up first.

Google's implementation guide adds the versions: Android 9 or later, Google Play services core 24220000 or later and androidx.credentials 1.5.0 or later.

Checklist before April 2027

  1. The app creates the restore key with cloud backup on after each sign-in. It also creates one at launch for a signed-in user who has none yet, such as someone who signed in before your update.
  2. If that throws E2eeUnavailableException, the app creates the key again with cloud backup off.
  3. On first launch, and in onRestoreFinished if you use a BackupAgent, the app retrieves the key and your server checks it, much like a passkey sign-in.
  4. Signing out, or your server ending the session, deletes the key with clearCredentialState.
  5. The Android Studio test passes with a Device to Device backup and with a Cloud backup.

If your app uses Firebase Authentication, read what Firebase apps need for the rule. It explains why a Firebase app needs a server of its own for restore keys. For other Google Play, Firebase and Apple dates up to October 2027, see the app store deadline list.

Check your setup for free

Play Restore Keys reads your package name, signing fingerprints and domain. It checks the assetlinks.json file on that domain and gives you the file to publish, the server endpoints to build, the app calls and a checklist. It has 10 free checks a day and needs no account. Nothing you enter is stored. It does not test your app and is not a Google Play compliance review.

Check your setup