phone-number-verification

Installation
SKILL.md

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.

Prerequisites and setup

  • Android version compatibility: Runtime support for the Phone Number Verification API requires Android 10 (API level 29) or higher (while the androidx.credentials library compiles with minSdk 23 or higher).
  • Aggregator account: Requires an account with a mobile carrier or cellular aggregator endpoint that supplies DCQL parameters and exchanges TS.43 tokens.
  • Manifest permission for carrier precheck: Declare <uses-permission android:name="android.permission.READ_PHONE_STATE" /> in app/src/main/AndroidManifest.xml to query TelephonyManager.getSimCarrierId() before invoking Credential Manager.
  • Build config permission: Ask for user confirmation before modifying settings.gradle.kts, root build.gradle.kts, or gradle/libs.versions.toml, unless already requested by the user or running non-interactively.
  • Dependencies and package mapping: Add the Credential Manager artifacts to the app module build script (app/build.gradle.kts or app/build.gradle; when checking the latest version declarations, consult Implement phone number verification):
Installs
59
Repository
android/skills
GitHub Stars
10.8K
First Seen
5 days ago