biometrics

Implement BiometricPrompt authentication with Android Keystore for secure credential management.

14|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/piyushverma0/android-agent-skills --skill biometrics-piyushverma0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: biometrics
Source: https://github.com/piyushverma0/android-agent-skills/tree/main/skills/biometrics
Command: npx skills add https://github.com/piyushverma0/android-agent-skills --skill biometrics-piyushverma0

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Biometric authentication capabilities for Android AI agents enable secure login and protection of sensitive workflows by leveraging fingerprint, face recognition, and device credentials.

Core Features & Use Cases

  • Availability checks with BiometricManager to determine hardware support and enrollment status.
  • BiometricPrompt-based authentication flow implemented in an Activity, with proper callback handling.
  • Crypto-backed Android Keystore integration to protect keys and require user authentication for cryptographic operations.
  • Fallback to device credential or secure session handling to ensure seamless access.

Quick Start

Integrate biometric authentication by wiring BiometricManager and BiometricPrompt in an Activity and securing keys with Android Keystore.

Frequently Asked Questions about biometrics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement BiometricPrompt for secure Android authentication?

You can implement BiometricPrompt by setting up the authentication flow within an Activity, wiring BiometricManager for hardware availability checks, and handling the authentication callbacks for login or sensitive actions.

How does Android Keystore integration work with biometric authentication?

Android Keystore integration creates crypto-backed keys that require user authentication. This ensures cryptographic operations for sensitive workflows only execute after successful fingerprint or face recognition.

Can I check if an Android device supports biometric authentication before prompting the user?

Yes, you can use BiometricManager to perform availability checks. This determines whether the device hardware supports biometrics and if the user has enrolled fingerprint or face credentials before initiating the prompt.

What is the best way to handle biometric authentication fallback on Android?

The best way to handle fallback is utilizing device credentials. This ensures seamless access to secure sessions and sensitive actions when biometric hardware is unavailable or authentication fails.

When do I need crypto-backed keystore keys with user authentication for Android agents?

You need crypto-backed keystore keys when protecting sensitive workflows like session restoration and secure credential management. This requires user authentication to authorize the cryptographic operations.

Why does my BiometricPrompt flow require an Activity context?

BiometricPrompt requires an Activity context to display the system authentication UI and manage lifecycle events properly. The prompt must be instantiated and executed within an Activity to handle callbacks securely.