What problem does it solve?
Users who restore their app on a new Android device normally have to sign in again manually. This Skill guides the implementation of Android's Restore Credentials feature so users are silently signed back in after a device restore, without changing existing authentication flows.
Core Features & Use Cases
- Restore Key Lifecycle: Create, retrieve, and delete restore keys using the androidx.credentials Credential Manager API, including E2eeUnavailableException fallback handling.
- Two-Tier Restoration: Implements background restoration via BackupAgent.onRestoreFinished() and a foreground fallback in the launcher Activity based on the app's allowBackup manifest setting.
- Backend Handoff Checklist: Provides explicit server-side guidelines covering key differentiation from passkeys, orphaned key cleanup, TTL policies, and multi-device support.
- Use Case: A messaging app wants users automatically logged in after restoring onto a new phone so notifications resume immediately; this Skill walks through the complete client-side integration.
Quick Start
Implement Android Restore Credentials in my app so users are silently signed in when they restore the app on a new device.