CheckBiometricAvailabilityTool

Reports whether biometric (or device-credential) authentication can currently succeed, using AndroidX BiometricManager. No permissions required.

hardware_type is inferred from which authenticator classes report success: the WEAK class is labelled "fingerprint" and the STRONG class (API 30+ / R) "face" — a heuristic, not a true sensor enumeration. Other values: "none", "update_required" (security update needed), "unknown".

Output map: can_authenticate (Boolean) and hardware_type (String).

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard
open override val annotations: ToolAnnotations
Link copied to clipboard
open override val description: String
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val parameters: List<ToolParameter>

Functions

Link copied to clipboard
open suspend override fun execute(params: Map<String, Any>): ToolResult