
Restore Credentials for Android
Guides an agent to add silent sign-in after app restore using Android Credential Manager
- Repository
- android/skills
- Stars
- 10,278
- Licence
- Apache-2.0
- Files
- 4 files
What it does
This skill teaches an AI coding agent how to add Android's Restore Credentials feature to an app built with the androidx.credentials library. Once installed, the agent can walk a developer through creating, retrieving, and clearing restore keys so that users are logged back in automatically when they restore the app on a new device. It also reminds the developer that the server-side validation must be built separately, since the skill covers only the Android client code.
Great for
- Android developers already using Credential Manager or passkeys who want silent sign-in after a device restore
- Teams adding restore-based login to an existing Android app that has a relying party server
Skip it if
- Apps that do not use Credential Manager, since the skill assumes that library is already in use or being adopted (it does not replace a full sign-in system)
- Anyone expecting a complete backend: the skill explicitly does not implement server-side cryptographic validation, so the developer must build it, and a wrong backend could weaken login security
Try asking
- “Add Restore Credentials to my Android app using androidx.credentials 1.5.0”
- “Check my AndroidManifest allowBackup setting and tell me which restore tiers I need to implement”
- “Create a function that creates restore keys at sign-up and retrieves them on first launch”
- “Make sure my sign-out flow calls clearCredentialState with TYPE_CLEAR_RESTORE_CREDENTIAL”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 4 original files, the Apache-2.0 licence and an attribution note.
restore-credentials.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip restore-credentials.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip restore-credentials.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Give the agent your AndroidManifest.xml so it can determine whether allowBackup is true and which tiers to implement
- Review the backend guidelines the agent presents at the end, and have your server team confirm the validation logic before release
- Use a separate restore key per application package if your organization ships several apps
What's inside
- references/android/guide/topics/manifest/application-element.md
- references/android/identity/passkeys/create-passkeys.md
- references/android/identity/passkeys/sign-in-with-passkeys.md
- SKILL.md
Redistributed unmodified from android/skills under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.