/android-skills:phone-number-verificationfrom Android Skills
Implements SMS-free phone number verification in Android using Credential Manager DigitalCredential API, OpenID4VP, and carrier-issued TS.43 tokens. Produces client-side carrier precheck and token request code alongside backend OpenID4VP/DCQL exchange logic.
Ships in Android Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Implement phishing-resistant, SMS-free phone number verification in an Android
app using Credential Manager's DigitalCredential API to request an encrypted,
carrier-issued TS.43 token over OpenID4VP and exchange it with an aggregator
or mobile carrier backend for the verified phone number. When reviewing TS.43
architecture and security standards, consult
About verifying phone numbers. When implementing client and server code
snippets, consult Implement phone number verification. When verifying
general mso_mdoc or dc+sd-jwt wallet credentials, suggest the
credential-verifier skill.
androidx.credentials library compiles with minSdk 23 or higher).TS.43 tokens.<uses-permission android:name="android.permission.READ_PHONE_STATE" /> in app/src/main/AndroidManifest.xml to query TelephonyManager.getSimCarrierId() before invoking Credential Manager.settings.gradle.kts, root build.gradle.kts, or gradle/libs.versions.toml, unless already requested by the user or running non-interactively.app/build.gradle.kts or app/build.gradle; when checking the latest version declarations, consult Implement phone number verification):| Artifact | Key classes, constructor signatures, and package |
|---|---|
androidx.credentials:credentials:1.7.0-alpha03 (or 1.6.0+) | CredentialManager, GetCredentialRequest, GetCredentialResponse, GetDigitalCredentialOption(requestJson: String), DigitalCredential, and ExperimentalDigitalCredentialApi in androidx.credentials; GetCredentialException, GetCredentialCancellationException, GetCredentialInterruptedException, GetCredentialUnsupportedException, and NoCredentialException in androidx.credentials.exceptions |
androidx.credentials:credentials-play-services-auth:1.7.0-alpha03 (or 1.6.0+) | Play services provider integration for Credential Manager |
number-verification/device-phone-number/ts43) or verifying an existing user-entered phone number (number-verification/verify/ts43), whether dual SIM (subscription_hint) or biometric/screen-lock verification (user_verification_hint) is needed, and the fallback verification flow when the carrier or device is unsupported.app/build.gradle.kts, app/src/main/AndroidManifest.xml (for READ_PHONE_STATE), phone number verification client or repository classes, ViewModels, and UI screens or Activity classes (such as MainActivity.kt).TelephonyManager.getLine1Number(), READ_PHONE_NUMBERS, SmsRetriever, or SMS OTP APIs as a substitute for the Credential Manager DigitalCredential TS.43 verification flow (only use TelephonyManager.getSimCarrierId() for the carrier support precheck, and fall back to SMS only when the carrier or device is unsupported).Search the Android project before modifying files:
./gradlew assembleDebug to confirm the project compiles before making changes, check app/build.gradle.kts and gradle/libs.versions.toml for minSdk and androidx.credentials dependencies, and check app/src/main/AndroidManifest.xml for READ_PHONE_STATE.Activity or Compose screen (such as MainActivity.kt or TasksScreen.kt) where phone number verification is triggered so you pass an Activity Context to credentialManager.getCredential().Follow the end-to-end steps and code snippets in Implement phone number verification and apply these rules:
GetDigitalCredentialOption and DigitalCredential with @OptIn(androidx.credentials.ExperimentalDigitalCredentialApi::class) (omitted from the Kotlin snippet in Implement phone number verification).READ_PHONE_STATE in AndroidManifest.xml, query telephonyManager.getSimCarrierId(), and check whether the user's carrier supports TS.43 with the app's aggregator backend before calling credentialManager.getCredential(). If the carrier is unsupported, or if the device runs below Android 10 (API level 29) or throws GetCredentialUnsupportedException or GetCredentialCancellationException, trigger a fallback verification flow (such as SMS).{ ... } credential entry inside requests[0].data.dcql_query.credentials (with "protocol": "openid4vp-v1-unsigned", "response_type": "vp_token", "response_mode": "dc_api", and a "nonce" matching the aggregator DCQL request):
"format": "dc-authorization+sd-jwt" and include meta.credential_authorization_jwt from the aggregator.meta.vct_values to ["number-verification/device-phone-number/ts43"] to retrieve the device phone number, or ["number-verification/verify/ts43"] (with {"path": ["phone_number_hint"], "values": [...]} in claims) to verify an existing phone number.{"path": ["subscription_hint"], "values": [...]} in claims when targeting a specific SIM subscription slot, and {"path": ["user_verification_hint"]} when requiring biometric or screen-lock authentication (which returns "user_verification_hint" as "success", "absent", or "error" in the response payload, or throws GetCredentialCancellationException if the user dismisses the prompt).GenerateDCRequest snippet contains a Kotlin-style val dc_request = typo, the response JSON example includes # comments, and the error JSON example has a trailing comma; strip those invalid tokens when writing JSON or backend code, check data.error (invalid_request or server_error) first, and index the encrypted token from data.vp_token[<aggregator_id>][0].| Symptom | Cause | Fix |
|---|---|---|
| Experimental API compilation error | GetDigitalCredentialOption and DigitalCredential require @ExperimentalDigitalCredentialApi | Add @OptIn(androidx.credentials.ExperimentalDigitalCredentialApi::class) to the calling class or function. |
Empty result or GetCredentialCancellationException | User canceled (including dismissing biometric user_verification_hint), feature unavailable, or SIM carrier does not support TS.43 | Run the TelephonyManager.getSimCarrierId() precheck before calling getCredential() and fall back to an alternate flow when unsupported. |
GetCredentialUnsupportedException thrown | Device or OS version does not support the Phone Number Verification API (requires Android 10, API 29+) | Check Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q and handle GetCredentialUnsupportedException with a fallback flow. |
Response JSON contains "error": "invalid_request" | Malformed OpenID4VP or DCQL request JSON or mismatched nonce | Verify protocol is openid4vp-v1-unsigned, format is dc-authorization+sd-jwt, credentials is a JSON array of { ... } objects, and the outer nonce matches the aggregator DCQL nonce. |
./gradlew assembleDebug to verify the project compiles without errors.app/build.gradle.kts includes androidx.credentials:credentials and androidx.credentials:credentials-play-services-auth.app/src/main/AndroidManifest.xml declares READ_PHONE_STATE and the client performs the TelephonyManager.getSimCarrierId() carrier precheck with a fallback when unsupported."protocol": "openid4vp-v1-unsigned", "format": "dc-authorization+sd-jwt", and "number-verification/device-phone-number/ts43" or "number-verification/verify/ts43".GetDigitalCredentialOption, GetCredentialRequest, credentialManager.getCredential(), and DigitalCredential are used with @OptIn(androidx.credentials.ExperimentalDigitalCredentialApi::class).Present these backend reminders after completing client-side changes:
getSimCarrierId(), request live DCQL parameters (credential_authorization_jwt) from one or more carrier aggregators using a matching nonce, and exchange the returned TS.43 Digital Credential from data.vp_token[<aggregator_id>][0] for the verified phone number.iat), and expiration time (exp) of the returned ts43_digital_credential on the app's backend server.TelephonyManager.getLine1Number(), READ_PHONE_NUMBERS, SmsRetriever, or SMS OTP flows as a substitute for Credential Manager's DigitalCredential API (GetDigitalCredentialOption and credentialManager.getCredential()) when implementing digital credential phone number verification.TelephonyManager.getSimCarrierId() carrier precheck before calling credentialManager.getCredential().TS.43 Digital Credential on the Android client; only the associated aggregator decrypts the payload.nonce in the OpenID4VP request data object and the nonce sent to the aggregator when generating the DCQL credential object.GetDigitalCredentialOption and DigitalCredential with @OptIn(androidx.credentials.ExperimentalDigitalCredentialApi::class).READ_PHONE_STATE and call telephonyManager.getSimCarrierId() to verify carrier TS.43 support before invoking Credential Manager, falling back to an alternate verification flow when unsupported.GetCredentialException (GetCredentialCancellationException and GetCredentialUnsupportedException) and OpenID4VP error JSON payloads (invalid_request and server_error).number-verification/device-phone-number/ts43 to retrieve a device phone number and number-verification/verify/ts43 to verify an existing phone number.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub android/skills --plugin android-skills42 skills in this plugin
/adaptiveInstructions to make or update an app's UI so that it adapts to different Android devices including phones, tablets, foldables, laptops, desktop, TV, Auto, and XR. It includes how to handle different window sizes, pointing devices (such as mouse) and text entry devices (such as keyboard) using the Compose MediaQuery API, and how to preserve UI, navigation, scroll, and media playback state across configuration changes (such as folding/unfolding a foldable, rotating a device, or resizing a window). It also covers multi-pane layouts using Navigation3 Scenes, adaptive UI components (such as buttons) with varying target sizes, and adaptive layouts (including navigation areas - nav rails and nav bars) using the Compose Grid and FlexBox APIs. It also covers desktop experiences with keyboard shortcuts, tooltips and custom cursors./agp-9-upgradeUpgrades, or migrates, an Android project to use Android Gradle Plugin (AGP) version 9. Do not use this skill for migrating Kotlin Multiplatform (KMP) projects./android-cliProvides instructions for installing and using the `android` CLI. The `android` command-line tool is a critical tool for Android development and helps you create new Android projects, install APKs onto devices and emulators and launch and run apps on them, manage and interact with Android virtual devices (including screenshots and UI inspection), manage Android SDK components, inspect built artifacts (APK, AAB, JAR, AAR) for build and optimization details, render Compose previews, look up official Android documentation, and discover and install official Android skills./android-for-cars-parked-appsAdapt existing Android video streaming apps, games, and web browsers to run as parked apps on Android Auto and Android Automotive OS. Covers manifest configuration, Google Play hardware feature declarations, compatibility mode, back navigation affordances, orientation and display continuity, controllable system bar insets, irregular display cutouts, driver distraction lifecycle handling, MediaSession playback restrictions with CarUxRestrictionsManager, background audio while driving, and browser sensitive data protection. Use this skill when migrating, building, or auditing parked apps for cars to meet Car App Quality guidelines. Don't use for media audio apps, templated Car App Library navigation, point of interest, internet of things, weather, or communication apps designed for use while driving./android-intent-securityAudits, detects, and remediates Android Intent and component security vulnerabilities. Use this skill when auditing component configurations in AndroidManifest.xml (activities, services, receivers) or source code handling incoming Intents (getIntent, getParcelableExtra) to prevent Intent Redirection and unauthorized access. Don't use for network security, TLS configuration, or general runtime permission request flows./android-jni-securityAudits, detects, and remediates Android JNI and native C/C++ boundary security vulnerabilities. Use this skill when reviewing, auditing, hardening, or securing Android JNI boundaries, Kotlin external or Java native methods, and C/C++ shared libraries (System.loadLibrary) against buffer overflow, memory pinning, Time-of-Check to Time-of-Use (TOCTOU) file path races, hardcoded C++ cryptographic keys, cross-thread JNI reference and session callback lifecycles, or unhandled pending JVM exceptions and local reference leaks. Don't use for pure managed Kotlin or Java code without native JNI bindings or general reverse-engineering of stripped binaries.2 plugins ship this exact skill · first indexed Nov 24, 2026
Other plugins' skills for the same job