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.credentialslibrary compiles withminSdk23 or higher). - Aggregator account: Requires an account with a mobile carrier or cellular aggregator endpoint that supplies DCQL parameters and exchanges
TS.43tokens. - Manifest permission for carrier precheck: Declare
<uses-permission android:name="android.permission.READ_PHONE_STATE" />inapp/src/main/AndroidManifest.xmlto queryTelephonyManager.getSimCarrierId()before invoking Credential Manager. - Build config permission: Ask for user confirmation before modifying
settings.gradle.kts, rootbuild.gradle.kts, orgradle/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.ktsorapp/build.gradle; when checking the latest version declarations, consult Implement phone number verification):