reis-mobile 0.3.6 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +24 -0
- package/README.md +175 -168
- package/THIRD_PARTY_NOTICES.md +224 -4
- package/agents/android-architect.md +89 -0
- package/agents/android-performance-engineer.md +92 -0
- package/agents/android-test-engineer.md +97 -0
- package/agents/flutter-test-engineer.md +2 -0
- package/agents/ios-architect.md +93 -0
- package/agents/ios-performance-engineer.md +92 -0
- package/agents/ios-test-engineer.md +95 -0
- package/agents/lead-mobile.md +10 -1
- package/agents/mobile-staff-engineer.md +1 -1
- package/agents/rn-architect.md +94 -0
- package/agents/rn-performance-engineer.md +92 -0
- package/agents/rn-test-engineer.md +98 -0
- package/bin/reis-mobile.mjs +59 -17
- package/commands/debate.md +10 -1
- package/commands/debug.md +60 -0
- package/commands/reis-mobile.md +7 -2
- package/core/config/project.mjs +59 -0
- package/core/registry/frontmatter.mjs +15 -4
- package/core/registry/registry.mjs +21 -1
- package/core/router/intents.mjs +2 -0
- package/core/router/router.mjs +10 -5
- package/package.json +1 -1
- package/skills/android-adaptive/SKILL.md +304 -0
- package/skills/android-adaptive/references/android/develop/ui/compose/layouts/adaptive/flexbox/container-behavior.md +112 -0
- package/skills/android-adaptive/references/android/develop/ui/compose/layouts/adaptive/flexbox/get-started.md +69 -0
- package/skills/android-adaptive/references/android/develop/ui/compose/layouts/adaptive/flexbox/index.md +81 -0
- package/skills/android-adaptive/references/android/develop/ui/compose/layouts/adaptive/flexbox/item-behavior.md +170 -0
- package/skills/android-adaptive/references/android/develop/ui/compose/layouts/adaptive/grid/container-properties.md +415 -0
- package/skills/android-adaptive/references/android/develop/ui/compose/layouts/adaptive/grid/get-started.md +51 -0
- package/skills/android-adaptive/references/android/develop/ui/compose/layouts/adaptive/grid/index.md +73 -0
- package/skills/android-adaptive/references/android/develop/ui/compose/layouts/adaptive/grid/item-properties.md +170 -0
- package/skills/android-adaptive/references/android/develop/ui/compose/layouts/adaptive/mediaquery/index.md +333 -0
- package/skills/android-adaptive/references/android/develop/ui/compose/tooling/debug.md +114 -0
- package/skills/android-adaptive/references/android/guide/navigation/navigation-3/recipes/material-listdetail.md +141 -0
- package/skills/android-agp-9-upgrade/SKILL.md +106 -0
- package/skills/android-agp-9-upgrade/references/android/build/migrate-to-built-in-kotlin.md +416 -0
- package/skills/android-agp-9-upgrade/references/android/build/releases/agp-9-0-0-release-notes.md +554 -0
- package/skills/android-agp-9-upgrade/references/buildconfig.md +54 -0
- package/skills/android-agp-9-upgrade/references/ksp-kapt.md +39 -0
- package/skills/android-agp-9-upgrade/references/paparazzi-gradle-9.md +30 -0
- package/skills/android-agp-9-upgrade/references/recipes.md +62 -0
- package/skills/android-appfunctions/SKILL.md +74 -0
- package/skills/android-appfunctions/references/adb-interaction-testing.md +95 -0
- package/skills/android-appfunctions/references/context.md +26 -0
- package/skills/android-appfunctions/references/feature-discovery-analysis.md +71 -0
- package/skills/android-appfunctions/references/implementation-configuration.md +282 -0
- package/skills/android-appfunctions/references/kdoc-refinement-optimization.md +75 -0
- package/skills/android-appfunctions/references/migrate-to-service-entry-point.md +226 -0
- package/skills/android-camerax/SKILL.md +135 -0
- package/skills/android-camerax/references/camera1-to-camerax.md +198 -0
- package/skills/android-camerax/references/camera2-to-camerax.md +193 -0
- package/skills/android-camerax/references/expert-blueprints.md +58 -0
- package/skills/android-camerax/references/foldables.md +83 -0
- package/skills/android-camerax/references/immutability.md +60 -0
- package/skills/android-camerax/references/low-light.md +124 -0
- package/skills/android-camerax/references/mlkit-spatial.md +75 -0
- package/skills/android-camerax/references/modern-apis.md +42 -0
- package/skills/android-camerax/references/testing.md +69 -0
- package/skills/android-camerax/references/thermals.md +85 -0
- package/skills/android-camerax/references/wear-os.md +76 -0
- package/skills/android-camerax/references/xr.md +54 -0
- package/skills/android-cli/SKILL.md +474 -0
- package/skills/android-cli/references/interact.md +113 -0
- package/skills/android-cli/references/journeys.md +120 -0
- package/skills/android-code-review/SKILL.md +58 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/SKILL.md +340 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/android/design/ui/ai-glasses/guides/interaction/inputs.md +67 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/android/develop/xr/jetpack-xr-sdk/access-hardware-projected-context.md +388 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/android/develop/xr/jetpack-xr-sdk/jetpack-compose-glimmer/buttons.md +139 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/android/develop/xr/jetpack-xr-sdk/jetpack-compose-glimmer/cards.md +148 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/android/develop/xr/jetpack-xr-sdk/jetpack-compose-glimmer/focus.md +107 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/android/develop/xr/jetpack-xr-sdk/jetpack-compose-glimmer/icons.md +90 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/android/develop/xr/jetpack-xr-sdk/jetpack-compose-glimmer/text.md +69 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/android/develop/xr/jetpack-xr-sdk/jetpack-compose-glimmer/title-chips.md +82 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/android/develop/xr/jetpack-xr-sdk/request-hardware-permissions.md +213 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/button-samples-source.md +176 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/button-source.md +203 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/card-samples-source.md +296 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/card-source.md +515 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/deptheffect-source.md +224 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/deptheffectlevels-source.md +105 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/glimmersansflextypography-source.md +270 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/glimmertheme-source.md +182 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/icon-source.md +388 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/iconbutton-source.md +126 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/iconsizes-source.md +78 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/list-source.md +27 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/listitem-source.md +272 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/liststate-source.md +427 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/material-hct-source.md +217 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/projectedcontext-source.md +265 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/stack-source.md +368 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/stackitemscope-source.md +440 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/stackstate-source.md +325 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/surface-source.md +1211 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/titlechip-samples-source.md +101 -0
- package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/titlechip-source.md +131 -0
- package/skills/android-edge-to-edge/SKILL.md +429 -0
- package/skills/android-engage-sdk-integration/SKILL.md +130 -0
- package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/faq.md +439 -0
- package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/food.md +1149 -0
- package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/healthandfitness.md +1055 -0
- package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/listen.md +1050 -0
- package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/otherverticals.md +1301 -0
- package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/read.md +910 -0
- package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/shopping.md +1224 -0
- package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/social.md +719 -0
- package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/travel.md +1413 -0
- package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/tv/continue-watching/index.md +19 -0
- package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/tv/entitlements.md +353 -0
- package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/tv/getting-started.md +202 -0
- package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/tv/recommendations.md +471 -0
- package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/watch.md +1081 -0
- package/skills/android-engage-sdk-integration/references/clusters.md +154 -0
- package/skills/android-engage-sdk-integration/references/common.md +519 -0
- package/skills/android-engage-sdk-integration/references/patterns.md +527 -0
- package/skills/android-engage-sdk-integration/references/requests.md +260 -0
- package/skills/android-engage-sdk-integration/references/schemas/food.md +509 -0
- package/skills/android-engage-sdk-integration/references/schemas/listen.md +842 -0
- package/skills/android-engage-sdk-integration/references/schemas/other.md +220 -0
- package/skills/android-engage-sdk-integration/references/schemas/read.md +412 -0
- package/skills/android-engage-sdk-integration/references/schemas/shopping.md +357 -0
- package/skills/android-engage-sdk-integration/references/schemas/social.md +228 -0
- package/skills/android-engage-sdk-integration/references/schemas/travel.md +923 -0
- package/skills/android-engage-sdk-integration/references/schemas/tv.md +1226 -0
- package/skills/android-engage-sdk-integration/references/schemas/watch.md +1137 -0
- package/skills/android-engage-sdk-integration/references/troubleshooting.md +39 -0
- package/skills/android-gradle-build-debug/SKILL.md +71 -0
- package/skills/android-intent-security/SKILL.md +550 -0
- package/skills/android-leanback-to-compose-tv-migration/SKILL.md +743 -0
- package/skills/android-leanback-to-compose-tv-migration/references/android/training/tv/get-started/navigation.md +372 -0
- package/skills/android-leanback-to-compose-tv-migration/references/android/training/tv/playback/compose/browse.md +243 -0
- package/skills/android-leanback-to-compose-tv-migration/references/android/training/tv/playback/compose/index.md +153 -0
- package/skills/android-media3-cast-integration/SKILL.md +236 -0
- package/skills/android-media3-cast-integration/references/android/media/media3/cast/create-castplayer.md +390 -0
- package/skills/android-media3-cast-integration/references/android/media/media3/cast/customize-castoptions.md +93 -0
- package/skills/android-media3-cast-integration/references/android/media/media3/cast/index.md +21 -0
- package/skills/android-migrate-xml-views-to-jetpack-compose/SKILL.md +127 -0
- package/skills/android-migrate-xml-views-to-jetpack-compose/references/analysis-of-the-project-and-layout.md +42 -0
- package/skills/android-migrate-xml-views-to-jetpack-compose/references/android/develop/ui/compose/designsystems/migrate-xml-theme-to-compose.md +171 -0
- package/skills/android-migrate-xml-views-to-jetpack-compose/references/android/develop/ui/compose/migrate/interoperability-apis/compose-in-views.md +299 -0
- package/skills/android-migrate-xml-views-to-jetpack-compose/references/android/develop/ui/compose/migrate/interoperability-apis/views-in-compose.md +286 -0
- package/skills/android-migrate-xml-views-to-jetpack-compose/references/android/develop/ui/compose/setup-compose-dependencies-and-compiler.md +197 -0
- package/skills/android-migrate-xml-views-to-jetpack-compose/references/identify-optimal-xml-candidate.md +31 -0
- package/skills/android-migrate-xml-views-to-jetpack-compose/references/xml-layout-migration.md +86 -0
- package/skills/android-ml-kit-genai-prompt-api/SKILL.md +124 -0
- package/skills/android-ml-kit-genai-prompt-api/references/get-started.md +272 -0
- package/skills/android-ml-kit-genai-prompt-api/references/prefix-caching.md +146 -0
- package/skills/android-ml-kit-genai-prompt-api/references/prompt-design.md +55 -0
- package/skills/android-ml-kit-genai-prompt-api/references/prompt-optimization.md +74 -0
- package/skills/android-ml-kit-genai-prompt-api/references/structured-output.md +219 -0
- package/skills/android-ml-kit-genai-prompt-api/references/system-instructions.md +71 -0
- package/skills/android-navigation-3/SKILL.md +122 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/index.md +51 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/migration-guide.md +670 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/animations.md +147 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/basic.md +89 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/basicdsl.md +85 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/basicsaveable.md +90 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/bottomsheet.md +195 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/common-ui.md +200 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/conditional-transitions.md +182 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/conditional.md +230 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/deeplinks-custommatcher.md +176 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/deeplinks-staticuri.md +140 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/deeplinks-syntheticbackstack.md +184 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/dialog.md +107 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/lifecycle-owner.md +185 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/material-listdetail.md +141 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/material-supportingpane.md +145 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/modular-hilt.md +283 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/modular-koin.md +287 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/multiple-backstacks.md +468 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/passingarguments.md +371 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/results-event.md +273 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/results-state.md +266 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/scenes-listdetail.md +435 -0
- package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/scenes-twopane.md +244 -0
- package/skills/android-navigation-3/references/android/guide/navigation/type-safe-destinations.md +129 -0
- package/skills/android-navigation-event/SKILL.md +312 -0
- package/skills/android-navigation-event/references/android/guide/navigation/navigation-event/dispatcher.md +134 -0
- package/skills/android-navigation-event/references/android/guide/navigation/navigation-event/handle-back.md +217 -0
- package/skills/android-navigation-event/references/android/guide/navigation/navigation-event/index.md +83 -0
- package/skills/android-navigation-event/references/android/guide/navigation/navigation-event/setup.md +32 -0
- package/skills/android-play-billing-library-version-upgrade/SKILL.md +96 -0
- package/skills/android-play-billing-library-version-upgrade/references/android/google/play/billing/release-notes.md +1240 -0
- package/skills/android-play-billing-library-version-upgrade/references/migration-logic.md +78 -0
- package/skills/android-play-billing-library-version-upgrade/references/version-checklist.md +54 -0
- package/skills/android-play-policy-insights/SKILL.md +172 -0
- package/skills/android-play-policy-insights/resources/common_mandates.md +100 -0
- package/skills/android-play-policy-insights/resources/compliance_report_template.md +59 -0
- package/skills/android-play-policy-insights/resources/critic.md +86 -0
- package/skills/android-play-policy-insights/resources/goal_data_safety.md +212 -0
- package/skills/android-play-policy-insights/resources/goal_permissions_and_apis.md +459 -0
- package/skills/android-play-policy-insights/resources/goal_user_account.md +106 -0
- package/skills/android-play-policy-insights/resources/policies.json +321 -0
- package/skills/android-play-policy-insights/resources/scanner_config.json +843 -0
- package/skills/android-play-policy-insights/scripts/generate_report.py +860 -0
- package/skills/android-play-policy-insights/scripts/orchestrator.py +1313 -0
- package/skills/android-play-policy-insights/scripts/play_store_scraper.py +410 -0
- package/skills/android-play-policy-insights/scripts/scanner.py +261 -0
- package/skills/android-play-policy-insights/scripts/template_engine.py +243 -0
- package/skills/android-profiler/SKILL.md +60 -0
- package/skills/android-profiler/analysis/analysis_orchestrator.md +32 -0
- package/skills/android-profiler/analysis/workflows/perfetto-sql/perfetto_sql.md +28 -0
- package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/perfetto_trace_analysis.md +121 -0
- package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/references/guiding_principles.md +51 -0
- package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/references/hints/domain_hints_template.md +7 -0
- package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/references/hints/subsystems/hints_cpu.md +56 -0
- package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/references/hints/subsystems/hints_graphics.md +51 -0
- package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/references/hints/subsystems/hints_io.md +46 -0
- package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/references/hints/subsystems/hints_ipc.md +41 -0
- package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/references/hints/subsystems/hints_memory.md +55 -0
- package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/references/hints/subsystems/hints_power.md +33 -0
- package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/references/per_candidate_analysis.md +172 -0
- package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/references/triage.md +94 -0
- package/skills/android-profiler/recording/recording_orchestrator.md +36 -0
- package/skills/android-profiler/recording/workflows/perfetto-trace-recording/perfetto_trace_recording.md +148 -0
- package/skills/android-profiler/recording/workflows/perfetto-trace-recording/references/example-configs/app_jank.pftxt +43 -0
- package/skills/android-profiler/recording/workflows/perfetto-trace-recording/references/example-configs/cpu_profile.pftxt +35 -0
- package/skills/android-profiler/recording/workflows/perfetto-trace-recording/references/example-configs/java_heap_dump.pftxt +21 -0
- package/skills/android-profiler/recording/workflows/perfetto-trace-recording/references/example-configs/long_background.pftxt +37 -0
- package/skills/android-profiler/recording/workflows/perfetto-trace-recording/references/example-configs/memory_counters.pftxt +45 -0
- package/skills/android-profiler/recording/workflows/perfetto-trace-recording/references/example-configs/native_heap.pftxt +21 -0
- package/skills/android-profiler/recording/workflows/perfetto-trace-recording/references/example-configs/sched_cpu.pftxt +33 -0
- package/skills/android-profiler/recording/workflows/perfetto-trace-recording/references/trace_config_reference.md +102 -0
- package/skills/android-profiler/references/env_setup.md +15 -0
- package/skills/android-profiler/references/perfetto/setup.md +29 -0
- package/skills/android-profiler/references/perfetto/sql.md +327 -0
- package/skills/android-r8-analyzer/SKILL.md +72 -0
- package/skills/android-r8-analyzer/references/CONFIGURATION-ANALYZER.md +287 -0
- package/skills/android-r8-analyzer/references/CONFIGURATION.md +44 -0
- package/skills/android-r8-analyzer/references/KEEP-RULES-IMPACT-HIERARCHY.md +83 -0
- package/skills/android-r8-analyzer/references/REDUNDANT-RULES.md +222 -0
- package/skills/android-r8-analyzer/references/REFLECTION-GUIDE.md +139 -0
- package/skills/android-r8-analyzer/references/REPORT_FORMAT.md +51 -0
- package/skills/android-r8-analyzer/references/android/topic/performance/app-optimization/enable-app-optimization.md +252 -0
- package/skills/android-r8-analyzer/references/android/training/testing/other-components/ui-automator.md +312 -0
- package/skills/android-restore-credentials/SKILL.md +359 -0
- package/skills/android-restore-credentials/references/android/guide/topics/manifest/application-element.md +832 -0
- package/skills/android-restore-credentials/references/android/identity/passkeys/create-passkeys.md +327 -0
- package/skills/android-restore-credentials/references/android/identity/passkeys/sign-in-with-passkeys.md +219 -0
- package/skills/android-styles/SKILL.md +229 -0
- package/skills/android-styles/references/android/develop/ui/compose/designsystems/custom.md +459 -0
- package/skills/android-styles/references/android/develop/ui/compose/styles/fundamentals.md +421 -0
- package/skills/android-styles/references/android/develop/ui/compose/styles/state-animations.md +461 -0
- package/skills/android-styles/references/android/develop/ui/compose/styles/styles-vs-modifiers.md +48 -0
- package/skills/android-styles/references/android/develop/ui/compose/styles/theming.md +269 -0
- package/skills/android-verified-email/SKILL.md +432 -0
- package/skills/android-verified-email/references/android/identity/credential-manager/index.md +67 -0
- package/skills/android-verified-email/references/android/identity/digital-credentials/credential-verifier.md +166 -0
- package/skills/android-verified-email/references/android/identity/digital-credentials/email-verification-implementation.md +313 -0
- package/skills/android-verified-email/references/android/identity/digital-credentials/email-verification.md +158 -0
- package/skills/android-verified-email/references/android/identity/digital-credentials/index.md +112 -0
- package/skills/android-verified-email/references/android/identity/passkeys/create-passkeys.md +327 -0
- package/skills/android-verified-email/references/android/identity/sign-in/credential-manager-webview.md +84 -0
- package/skills/android-wear-compose-m3/SKILL.md +365 -0
- package/skills/android-wear-compose-m3/references/android/training/wearables/compose/migrate-to-material3.md +677 -0
- package/skills/android-wear-compose-m3/references/foundation/AmbientModeSample.kt.md +123 -0
- package/skills/android-wear-compose-m3/references/foundation/AmbientModeSample.kt.md.txt +123 -0
- package/skills/android-wear-compose-m3/references/foundation/CurvedWorldSample.kt.md +430 -0
- package/skills/android-wear-compose-m3/references/foundation/CurvedWorldSample.kt.md.txt +430 -0
- package/skills/android-wear-compose-m3/references/foundation/ExpandableSample.kt.md +99 -0
- package/skills/android-wear-compose-m3/references/foundation/ExpandableSample.kt.md.txt +99 -0
- package/skills/android-wear-compose-m3/references/foundation/HierarchicalFocusSample.kt.md +141 -0
- package/skills/android-wear-compose-m3/references/foundation/HierarchicalFocusSample.kt.md.txt +141 -0
- package/skills/android-wear-compose-m3/references/foundation/PagerSamples.kt.md +56 -0
- package/skills/android-wear-compose-m3/references/foundation/PagerSamples.kt.md.txt +56 -0
- package/skills/android-wear-compose-m3/references/foundation/RotarySamples.kt.md +153 -0
- package/skills/android-wear-compose-m3/references/foundation/RotarySamples.kt.md.txt +153 -0
- package/skills/android-wear-compose-m3/references/foundation/ScalingLazyColumnSample.kt.md +131 -0
- package/skills/android-wear-compose-m3/references/foundation/ScalingLazyColumnSample.kt.md.txt +131 -0
- package/skills/android-wear-compose-m3/references/foundation/SwipeToDismissBoxSample.kt.md +169 -0
- package/skills/android-wear-compose-m3/references/foundation/SwipeToDismissBoxSample.kt.md.txt +169 -0
- package/skills/android-wear-compose-m3/references/foundation/SwipeToRevealSample.kt.md +282 -0
- package/skills/android-wear-compose-m3/references/foundation/SwipeToRevealSample.kt.md.txt +282 -0
- package/skills/android-wear-compose-m3/references/foundation/TransformingLazyColumnSample.kt.md +335 -0
- package/skills/android-wear-compose-m3/references/foundation/TransformingLazyColumnSample.kt.md.txt +335 -0
- package/skills/android-wear-compose-m3/references/material3/AlertDialogSample.kt.md +377 -0
- package/skills/android-wear-compose-m3/references/material3/AlertDialogSample.kt.md.txt +377 -0
- package/skills/android-wear-compose-m3/references/material3/AnimatedTextSample.kt.md +165 -0
- package/skills/android-wear-compose-m3/references/material3/AnimatedTextSample.kt.md.txt +165 -0
- package/skills/android-wear-compose-m3/references/material3/ButtonGroupSample.kt.md +91 -0
- package/skills/android-wear-compose-m3/references/material3/ButtonGroupSample.kt.md.txt +91 -0
- package/skills/android-wear-compose-m3/references/material3/ButtonSample.kt.md +496 -0
- package/skills/android-wear-compose-m3/references/material3/ButtonSample.kt.md.txt +496 -0
- package/skills/android-wear-compose-m3/references/material3/CardSample.kt.md +470 -0
- package/skills/android-wear-compose-m3/references/material3/CardSample.kt.md.txt +470 -0
- package/skills/android-wear-compose-m3/references/material3/CheckboxButtonSample.kt.md +67 -0
- package/skills/android-wear-compose-m3/references/material3/CheckboxButtonSample.kt.md.txt +67 -0
- package/skills/android-wear-compose-m3/references/material3/ConfirmationDialogSample.kt.md +162 -0
- package/skills/android-wear-compose-m3/references/material3/ConfirmationDialogSample.kt.md.txt +162 -0
- package/skills/android-wear-compose-m3/references/material3/CurvedTextSamples.kt.md +78 -0
- package/skills/android-wear-compose-m3/references/material3/CurvedTextSamples.kt.md.txt +78 -0
- package/skills/android-wear-compose-m3/references/material3/DatePickerSample.kt.md +131 -0
- package/skills/android-wear-compose-m3/references/material3/DatePickerSample.kt.md.txt +131 -0
- package/skills/android-wear-compose-m3/references/material3/DynamicColorSchemeSample.kt.md +74 -0
- package/skills/android-wear-compose-m3/references/material3/DynamicColorSchemeSample.kt.md.txt +74 -0
- package/skills/android-wear-compose-m3/references/material3/EdgeButtonSample.kt.md +63 -0
- package/skills/android-wear-compose-m3/references/material3/EdgeButtonSample.kt.md.txt +63 -0
- package/skills/android-wear-compose-m3/references/material3/FadingExpandingLabelSample.kt.md +60 -0
- package/skills/android-wear-compose-m3/references/material3/FadingExpandingLabelSample.kt.md.txt +60 -0
- package/skills/android-wear-compose-m3/references/material3/IconButtonSample.kt.md +125 -0
- package/skills/android-wear-compose-m3/references/material3/IconButtonSample.kt.md.txt +125 -0
- package/skills/android-wear-compose-m3/references/material3/IconToggleButtonSample.kt.md +116 -0
- package/skills/android-wear-compose-m3/references/material3/IconToggleButtonSample.kt.md.txt +116 -0
- package/skills/android-wear-compose-m3/references/material3/LevelIndicatorSample.kt.md +68 -0
- package/skills/android-wear-compose-m3/references/material3/LevelIndicatorSample.kt.md.txt +68 -0
- package/skills/android-wear-compose-m3/references/material3/LinearProgressIndicatorSample.kt.md +50 -0
- package/skills/android-wear-compose-m3/references/material3/LinearProgressIndicatorSample.kt.md.txt +50 -0
- package/skills/android-wear-compose-m3/references/material3/ListHeaderSample.kt.md +177 -0
- package/skills/android-wear-compose-m3/references/material3/ListHeaderSample.kt.md.txt +177 -0
- package/skills/android-wear-compose-m3/references/material3/OneHandedGestureSamples.kt.md +651 -0
- package/skills/android-wear-compose-m3/references/material3/OneHandedGestureSamples.kt.md.txt +651 -0
- package/skills/android-wear-compose-m3/references/material3/OpenOnPhoneDialogSample.kt.md +57 -0
- package/skills/android-wear-compose-m3/references/material3/OpenOnPhoneDialogSample.kt.md.txt +57 -0
- package/skills/android-wear-compose-m3/references/material3/PageIndicatorSample.kt.md +110 -0
- package/skills/android-wear-compose-m3/references/material3/PageIndicatorSample.kt.md.txt +110 -0
- package/skills/android-wear-compose-m3/references/material3/PagerScaffoldSample.kt.md +204 -0
- package/skills/android-wear-compose-m3/references/material3/PagerScaffoldSample.kt.md.txt +204 -0
- package/skills/android-wear-compose-m3/references/material3/PickerGroupSample.kt.md +139 -0
- package/skills/android-wear-compose-m3/references/material3/PickerGroupSample.kt.md.txt +139 -0
- package/skills/android-wear-compose-m3/references/material3/PickerSample.kt.md +111 -0
- package/skills/android-wear-compose-m3/references/material3/PickerSample.kt.md.txt +111 -0
- package/skills/android-wear-compose-m3/references/material3/PlaceholderSample.kt.md +184 -0
- package/skills/android-wear-compose-m3/references/material3/PlaceholderSample.kt.md.txt +184 -0
- package/skills/android-wear-compose-m3/references/material3/ProgressIndicatorSample.kt.md +263 -0
- package/skills/android-wear-compose-m3/references/material3/ProgressIndicatorSample.kt.md.txt +263 -0
- package/skills/android-wear-compose-m3/references/material3/RadioButtonSample.kt.md +105 -0
- package/skills/android-wear-compose-m3/references/material3/RadioButtonSample.kt.md.txt +105 -0
- package/skills/android-wear-compose-m3/references/material3/ScaffoldSample.kt.md +146 -0
- package/skills/android-wear-compose-m3/references/material3/ScaffoldSample.kt.md.txt +146 -0
- package/skills/android-wear-compose-m3/references/material3/ScrollAwaySample.kt.md +97 -0
- package/skills/android-wear-compose-m3/references/material3/ScrollAwaySample.kt.md.txt +97 -0
- package/skills/android-wear-compose-m3/references/material3/ScrollIndicatorSample.kt.md +66 -0
- package/skills/android-wear-compose-m3/references/material3/ScrollIndicatorSample.kt.md.txt +66 -0
- package/skills/android-wear-compose-m3/references/material3/SliderSample.kt.md +86 -0
- package/skills/android-wear-compose-m3/references/material3/SliderSample.kt.md.txt +86 -0
- package/skills/android-wear-compose-m3/references/material3/StepperSample.kt.md +148 -0
- package/skills/android-wear-compose-m3/references/material3/StepperSample.kt.md.txt +148 -0
- package/skills/android-wear-compose-m3/references/material3/SurfaceTransformationSample.kt.md +166 -0
- package/skills/android-wear-compose-m3/references/material3/SurfaceTransformationSample.kt.md.txt +166 -0
- package/skills/android-wear-compose-m3/references/material3/SwipeToDismissBoxSample.kt.md +172 -0
- package/skills/android-wear-compose-m3/references/material3/SwipeToDismissBoxSample.kt.md.txt +172 -0
- package/skills/android-wear-compose-m3/references/material3/SwipeToRevealSample.kt.md +367 -0
- package/skills/android-wear-compose-m3/references/material3/SwipeToRevealSample.kt.md.txt +367 -0
- package/skills/android-wear-compose-m3/references/material3/SwitchButtonSample.kt.md +66 -0
- package/skills/android-wear-compose-m3/references/material3/SwitchButtonSample.kt.md.txt +66 -0
- package/skills/android-wear-compose-m3/references/material3/TextButtonSample.kt.md +115 -0
- package/skills/android-wear-compose-m3/references/material3/TextButtonSample.kt.md.txt +115 -0
- package/skills/android-wear-compose-m3/references/material3/TextToggleButtonSample.kt.md +71 -0
- package/skills/android-wear-compose-m3/references/material3/TextToggleButtonSample.kt.md.txt +71 -0
- package/skills/android-wear-compose-m3/references/material3/TimePickerSample.kt.md +151 -0
- package/skills/android-wear-compose-m3/references/material3/TimePickerSample.kt.md.txt +151 -0
- package/skills/android-wear-compose-m3/references/material3/TimeTextSample.kt.md +65 -0
- package/skills/android-wear-compose-m3/references/material3/TimeTextSample.kt.md.txt +65 -0
- package/skills/android-wear-compose-m3/references/material3/TransformationSpecSample.kt.md +246 -0
- package/skills/android-wear-compose-m3/references/material3/TransformationSpecSample.kt.md.txt +246 -0
- package/skills/android-wear-compose-m3/references/material3/TransformingLazyColumnNotificationsSample.kt.md +89 -0
- package/skills/android-wear-compose-m3/references/material3/TransformingLazyColumnNotificationsSample.kt.md.txt +89 -0
- package/skills/android-wear-compose-m3/references/material3/TransformingLazyColumnSample.kt.md +309 -0
- package/skills/android-wear-compose-m3/references/material3/TransformingLazyColumnSample.kt.md.txt +309 -0
- package/skills/android-wear-compose-m3/references/navigation3/SwipeDismissableSceneStrategySample.kt.md +205 -0
- package/skills/android-wear-compose-m3/references/navigation3/SwipeDismissableSceneStrategySample.kt.md.txt +205 -0
- package/skills/{architecture-feature-first → flutter-architecture-feature-first}/SKILL.md +1 -1
- package/skills/{bloc → flutter-bloc}/SKILL.md +1 -1
- package/skills/flutter-build-debug/SKILL.md +66 -0
- package/skills/{code-review → flutter-code-review}/SKILL.md +1 -1
- package/skills/{dart-3-updates → flutter-dart-3-updates}/SKILL.md +1 -1
- package/skills/{dart-fix-runtime-errors → flutter-dart-fix-runtime-errors}/SKILL.md +1 -1
- package/skills/{dart-resolve-package-conflicts → flutter-dart-resolve-package-conflicts}/SKILL.md +1 -1
- package/skills/{dart-run-static-analysis → flutter-dart-run-static-analysis}/SKILL.md +1 -1
- package/skills/{dart-use-pattern-matching → flutter-dart-use-pattern-matching}/SKILL.md +1 -1
- package/skills/{effective-dart → flutter-effective-dart}/SKILL.md +1 -1
- package/skills/{provider → flutter-provider}/SKILL.md +1 -1
- package/skills/{riverpod → flutter-riverpod}/SKILL.md +1 -1
- package/skills/ios-cocoapods-debug/SKILL.md +65 -0
- package/skills/ios-code-review/SKILL.md +56 -0
- package/skills/ios-xcode-build-debug/SKILL.md +66 -0
- package/skills/{detect-mobile-stack → mobile-detect-stack}/SKILL.md +1 -1
- package/skills/mobile-firebase/SKILL.md +54 -0
- package/skills/mobile-firebase/references/android/ai-logic.md +31 -0
- package/skills/mobile-firebase/references/android/analytics.md +33 -0
- package/skills/mobile-firebase/references/android/app-check.md +36 -0
- package/skills/mobile-firebase/references/android/auth.md +44 -0
- package/skills/mobile-firebase/references/android/crashlytics.md +31 -0
- package/skills/mobile-firebase/references/android/firestore.md +44 -0
- package/skills/mobile-firebase/references/android/functions.md +33 -0
- package/skills/mobile-firebase/references/android/in-app-messaging.md +28 -0
- package/skills/mobile-firebase/references/android/messaging.md +41 -0
- package/skills/mobile-firebase/references/android/realtime-database.md +50 -0
- package/skills/mobile-firebase/references/android/remote-config.md +43 -0
- package/skills/mobile-firebase/references/android/sql-connect.md +31 -0
- package/skills/mobile-firebase/references/android/storage.md +39 -0
- package/skills/mobile-firebase/references/android.md +30 -0
- package/skills/{firebase-ai/SKILL.md → mobile-firebase/references/flutter/ai-logic.md} +2 -8
- package/skills/{firebase-analytics/SKILL.md → mobile-firebase/references/flutter/analytics.md} +2 -8
- package/skills/{firebase-app-check/SKILL.md → mobile-firebase/references/flutter/app-check.md} +2 -8
- package/skills/{firebase-auth/SKILL.md → mobile-firebase/references/flutter/auth.md} +2 -8
- package/skills/{firebase-crashlytics/SKILL.md → mobile-firebase/references/flutter/crashlytics.md} +2 -8
- package/skills/{firebase-cloud-firestore/SKILL.md → mobile-firebase/references/flutter/firestore.md} +2 -8
- package/skills/{firebase-cloud-functions/SKILL.md → mobile-firebase/references/flutter/functions.md} +2 -8
- package/skills/{firebase-in-app-messaging/SKILL.md → mobile-firebase/references/flutter/in-app-messaging.md} +2 -8
- package/skills/{firebase-messaging/SKILL.md → mobile-firebase/references/flutter/messaging.md} +2 -8
- package/skills/{firebase-database/SKILL.md → mobile-firebase/references/flutter/realtime-database.md} +2 -8
- package/skills/{firebase-remote-config/SKILL.md → mobile-firebase/references/flutter/remote-config.md} +2 -8
- package/skills/{flutterfire-configure/SKILL.md → mobile-firebase/references/flutter/setup-flutterfire.md} +1 -8
- package/skills/{firebase-data-connect/SKILL.md → mobile-firebase/references/flutter/sql-connect.md} +2 -8
- package/skills/{firebase-storage/SKILL.md → mobile-firebase/references/flutter/storage.md} +2 -8
- package/skills/mobile-firebase/references/flutter.md +36 -0
- package/skills/mobile-firebase/references/ios/ai-logic.md +30 -0
- package/skills/mobile-firebase/references/ios/analytics.md +33 -0
- package/skills/mobile-firebase/references/ios/app-check.md +36 -0
- package/skills/mobile-firebase/references/ios/auth.md +48 -0
- package/skills/mobile-firebase/references/ios/crashlytics.md +34 -0
- package/skills/mobile-firebase/references/ios/firestore.md +53 -0
- package/skills/mobile-firebase/references/ios/functions.md +35 -0
- package/skills/mobile-firebase/references/ios/in-app-messaging.md +26 -0
- package/skills/mobile-firebase/references/ios/messaging.md +45 -0
- package/skills/mobile-firebase/references/ios/realtime-database.md +49 -0
- package/skills/mobile-firebase/references/ios/remote-config.md +44 -0
- package/skills/mobile-firebase/references/ios/sql-connect.md +33 -0
- package/skills/mobile-firebase/references/ios/storage.md +36 -0
- package/skills/mobile-firebase/references/ios.md +28 -0
- package/skills/mobile-firebase/references/react-native/ai-logic.md +32 -0
- package/skills/mobile-firebase/references/react-native/analytics.md +43 -0
- package/skills/mobile-firebase/references/react-native/app-check.md +35 -0
- package/skills/mobile-firebase/references/react-native/auth.md +50 -0
- package/skills/mobile-firebase/references/react-native/crashlytics.md +36 -0
- package/skills/mobile-firebase/references/react-native/firestore.md +45 -0
- package/skills/mobile-firebase/references/react-native/functions.md +28 -0
- package/skills/mobile-firebase/references/react-native/in-app-messaging.md +27 -0
- package/skills/mobile-firebase/references/react-native/messaging.md +46 -0
- package/skills/mobile-firebase/references/react-native/realtime-database.md +46 -0
- package/skills/mobile-firebase/references/react-native/remote-config.md +32 -0
- package/skills/mobile-firebase/references/react-native/sql-connect.md +11 -0
- package/skills/mobile-firebase/references/react-native/storage.md +30 -0
- package/skills/mobile-firebase/references/react-native.md +29 -0
- package/skills/mobile-test/SKILL.md +63 -0
- package/skills/mobile-test/references/android/setup/GUIDE.md +183 -0
- package/skills/mobile-test/references/android/setup/references/android/develop/ui/compose/testing/common-patterns.md +181 -0
- package/skills/mobile-test/references/android/setup/references/android/studio/preview/compose-screenshot-testing.md +255 -0
- package/skills/mobile-test/references/android/setup/references/android/training/dependency-injection/hilt-testing.md +447 -0
- package/skills/mobile-test/references/android.md +83 -0
- package/skills/{dart-collect-coverage/SKILL.md → mobile-test/references/flutter/coverage.md} +2 -11
- package/skills/{dart-generate-test-mocks/SKILL.md → mobile-test/references/flutter/generate-mocks.md} +2 -11
- package/skills/{flutter-add-integration-test/SKILL.md → mobile-test/references/flutter/integration-tests.md} +2 -11
- package/skills/{dart-migrate-to-checks-package/SKILL.md → mobile-test/references/flutter/migrate-to-checks.md} +2 -13
- package/skills/{mockito/SKILL.md → mobile-test/references/flutter/mockito.md} +1 -8
- package/skills/{mocktail/SKILL.md → mobile-test/references/flutter/mocktail.md} +1 -8
- package/skills/{patrol-e2e-testing/SKILL.md → mobile-test/references/flutter/patrol.md} +1 -8
- package/skills/{testing/SKILL.md → mobile-test/references/flutter/testing-guidelines.md} +1 -8
- package/skills/{dart-add-unit-test/SKILL.md → mobile-test/references/flutter/unit-tests.md} +2 -11
- package/skills/{flutter-add-widget-test/SKILL.md → mobile-test/references/flutter/widget-tests.md} +2 -11
- package/skills/mobile-test/references/flutter.md +44 -0
- package/skills/mobile-test/references/ios.md +79 -0
- package/skills/mobile-test/references/react-native.md +62 -0
- /package/skills/{dart-use-pattern-matching → flutter-dart-use-pattern-matching}/examples/json_patterns.dart +0 -0
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: android-verified-email
|
|
3
|
+
description: Provides a complete workflow for implementing verified email retrieval
|
|
4
|
+
on Android Credential Manager API. Use this skill to integrate a secure, OTP-less
|
|
5
|
+
email verification flow into an Android app. This skill solves the problem of high-friction
|
|
6
|
+
sign-up processes by leveraging cryptographically verified credentials from trusted
|
|
7
|
+
providers like Google.
|
|
8
|
+
license: Apache-2.0
|
|
9
|
+
source: https://github.com/android/skills
|
|
10
|
+
routing: manual
|
|
11
|
+
stacks: [android]
|
|
12
|
+
metadata:
|
|
13
|
+
author: Google LLC
|
|
14
|
+
last-updated: '2026-09-04'
|
|
15
|
+
keywords:
|
|
16
|
+
- implementation
|
|
17
|
+
- Android
|
|
18
|
+
- Credential Manager
|
|
19
|
+
- Digital Credentials
|
|
20
|
+
- Verified Email
|
|
21
|
+
- OpenID4VP
|
|
22
|
+
- SD-JWT
|
|
23
|
+
- OTP-less
|
|
24
|
+
- authentication
|
|
25
|
+
- passkeys
|
|
26
|
+
- CredMan
|
|
27
|
+
- identity.
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Fundamentals
|
|
31
|
+
|
|
32
|
+
- *[Overview of Digital Credentials](references/android/identity/digital-credentials/email-verification.md)*: Learn about cryptographically verifiable documents and the role of Credential Manager.
|
|
33
|
+
- *[Glossary](references/android/identity/digital-credentials/email-verification-implementation.md)* : Definitions for `dcql_query`, `UserInfoCredential`, and `GetDigitalCredentialOption`.
|
|
34
|
+
|
|
35
|
+
### Standards \& Examples
|
|
36
|
+
|
|
37
|
+
- *[OpenID4VP Standard](https://openid.net/specs/openid-4-verifiable-presentations-1_0.html#name-introduction)*: The specification used to create digital credentials requests.
|
|
38
|
+
- *[Digital Credentials Demo](https://digital-credentials.dev/)*: Example requests and cross-platform testing tool.
|
|
39
|
+
- *[W3C Verifiable Credentials](https://www.w3.org/TR/vc-data-model-2.0/)*: The data model for cryptographically secured claims.
|
|
40
|
+
- *[SD-JWT](https://datatracker.ietf.org/doc/draft-ietf-oauth-selective-disclosure-jwt/)*: Selective Disclosure JSON Web Token format used for responses.
|
|
41
|
+
- *[mdoc](https://www.iso.org/standard/69084.html)*: ISO/IEC 18013-5 standard for mobile documents.
|
|
42
|
+
|
|
43
|
+
### Requirements
|
|
44
|
+
|
|
45
|
+
- **SDK Version**: Minimum SDK 28 (Android 9) is required.
|
|
46
|
+
- **GMS Version**: Google Play services version 25.49.x or higher.
|
|
47
|
+
|
|
48
|
+
### Use Cases
|
|
49
|
+
|
|
50
|
+
Email verification is applicable for the following use cases:
|
|
51
|
+
|
|
52
|
+
- **Account Creation/Sign-up**: Remove friction by skipping manual email verification.
|
|
53
|
+
- **Account Recovery**: Securely verify email ownership during recovery flows.
|
|
54
|
+
- **Re-authentication**: Versatile verification for high-risk actions, independent of the initial sign-in method.
|
|
55
|
+
|
|
56
|
+
### Limitations \& Nuances
|
|
57
|
+
|
|
58
|
+
- **Workspace Accounts**: Google does not issue verifiable credentials for Google Workspace Accounts.
|
|
59
|
+
- **Freshness**: For non-@gmail.com addresses, Google verifies the email at account creation but there is no freshness claim; implement an additional challenge like an OTP.
|
|
60
|
+
|
|
61
|
+
### Scope \& Pre-requisites
|
|
62
|
+
|
|
63
|
+
**Crucial** : This skill focuses exclusively on the **Android client-side
|
|
64
|
+
integration** . It does **not** implement the app's server-side cryptographic
|
|
65
|
+
validation logic. Server-side validation of the returned credential is required
|
|
66
|
+
for security and must be implemented in your backend.
|
|
67
|
+
|
|
68
|
+
## Codebase exploration for Use Cases
|
|
69
|
+
|
|
70
|
+
Get started with the following queries in project source code to find relevant
|
|
71
|
+
screens with different use cases to implement verified email:
|
|
72
|
+
|
|
73
|
+
- `SignUpScreen`
|
|
74
|
+
- `"Email address"`
|
|
75
|
+
- `"Recover Account"`
|
|
76
|
+
- `"Account Recovery"`
|
|
77
|
+
- `"Forgot password?"`
|
|
78
|
+
- `"Delete Account"`
|
|
79
|
+
|
|
80
|
+
## Identifying Integration Points
|
|
81
|
+
|
|
82
|
+
To implement this feature effectively, you must first locate the relevant
|
|
83
|
+
flows in your codebase. To initiate, start with the following strategies to
|
|
84
|
+
cater to different use cases using verified email:
|
|
85
|
+
|
|
86
|
+
### 1. Search for Navigation Routes
|
|
87
|
+
|
|
88
|
+
If your app uses Navigation, search for routes or destinations related
|
|
89
|
+
to authentication:
|
|
90
|
+
|
|
91
|
+
Look for:
|
|
92
|
+
|
|
93
|
+
- **Keywords** : `signup`, `registration`, `create_account`, `forgot_password`, `recovery`, `verify_email`.
|
|
94
|
+
- **Code Pattern** : Search for `NavHost` or `composable` destinations using these strings.
|
|
95
|
+
|
|
96
|
+
### 2. Locate Authentication ViewModels
|
|
97
|
+
|
|
98
|
+
Find the business logic handling user attributes and account creation, account
|
|
99
|
+
recovery:
|
|
100
|
+
|
|
101
|
+
- **Keywords** : `SignUpViewModel`, `AuthViewModel`, `RegistrationRepository`.
|
|
102
|
+
- **Code Pattern** : Look for methods like `onCreateAccount`, `onRecoverAccount`, or `validateEmail`.
|
|
103
|
+
|
|
104
|
+
### 3. Find instances of reauthentication for sensitive actions
|
|
105
|
+
|
|
106
|
+
For reauthentication use cases, find areas where users perform sensitive
|
|
107
|
+
actions:
|
|
108
|
+
|
|
109
|
+
- **Keywords** : `ChangePassword`, `UpdatePayment`, `DeleteAccount`, `UpdateDetails`, `EditUserDetails`
|
|
110
|
+
|
|
111
|
+
## Important pointers for Implementation
|
|
112
|
+
|
|
113
|
+
- Construct a Digital Credential Request and present it to the user.
|
|
114
|
+
- Make sure to follow the request JSON structure as mentioned in [documentation](references/android/identity/digital-credentials/email-verification-implementation.md).
|
|
115
|
+
- While presenting the request to the user, check if result credential is DigitalCredential and credential.credentialJson as responseJsonString
|
|
116
|
+
- Parse the response from the client.
|
|
117
|
+
- Offer a passkey creation option if one is not already present.
|
|
118
|
+
- Assume a local `SdJwtParser` to parse raw SD-JWT and return a `JSONObject`.
|
|
119
|
+
- Use a `VerifiedUserInfo` data class to store the parsed name and email.
|
|
120
|
+
- Leave a TODO for developers to handle the app's server-side validation and parsing.
|
|
121
|
+
- Direct users to the home screen after API call success and show a snackbar with user details for reference purpose only.
|
|
122
|
+
|
|
123
|
+
## Overview
|
|
124
|
+
|
|
125
|
+
This guide describes how to implement verified email retrieval using the
|
|
126
|
+
[Digital Credentials Verifier API](references/android/identity/digital-credentials/credential-verifier.md) through an [OpenID for Verifiable
|
|
127
|
+
Presentations (OpenID4VP)](https://openid.net/specs/openid-4-verifiable-presentations-1_0.html) request.
|
|
128
|
+
|
|
129
|
+
## Add dependencies
|
|
130
|
+
|
|
131
|
+
In your app's `build.gradle` file, add the following dependencies for Credential
|
|
132
|
+
Manager:
|
|
133
|
+
|
|
134
|
+
### Kotlin
|
|
135
|
+
|
|
136
|
+
```kotlin
|
|
137
|
+
dependencies {
|
|
138
|
+
implementation("androidx.credentials:credentials:1.7.0-alpha03")
|
|
139
|
+
implementation("androidx.credentials:credentials-play-services-auth:1.7.0-alpha03")
|
|
140
|
+
}
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Groovy
|
|
144
|
+
|
|
145
|
+
```groovy
|
|
146
|
+
dependencies {
|
|
147
|
+
implementation "androidx.credentials:credentials:1.7.0-alpha03"
|
|
148
|
+
implementation "androidx.credentials:credentials-play-services-auth:1.7.0-alpha03"
|
|
149
|
+
}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## Initialize Credential Manager
|
|
153
|
+
|
|
154
|
+
Use your app or activity context to create a `CredentialManager` object.
|
|
155
|
+
|
|
156
|
+
// Use your app or activity context to instantiate a client instance of
|
|
157
|
+
// CredentialManager.
|
|
158
|
+
private val credentialManager = CredentialManager.create(context)
|
|
159
|
+
|
|
160
|
+
## Construct the Digital Credential request
|
|
161
|
+
|
|
162
|
+
To request a verified email, construct a [`GetCredentialRequest`](https://developer.android.com/reference/android/credentials/GetCredentialRequest)
|
|
163
|
+
containing a [`GetDigitalCredentialOption`](https://developer.android.com/reference/androidx/credentials/GetDigitalCredentialOption). This option requires a
|
|
164
|
+
`requestJson` string formatted as an OpenID for Verifiable Presentations
|
|
165
|
+
(OpenID4VP) request.
|
|
166
|
+
|
|
167
|
+
The OpenID4VP request JSON must follow a specific structure. The current
|
|
168
|
+
providers support a JSON structure with an outer `"digital": {"requests":
|
|
169
|
+
[...]}` wrapper.
|
|
170
|
+
|
|
171
|
+
val nonce = generateSecureRandomNonce()
|
|
172
|
+
|
|
173
|
+
// This request follows the OpenID4VP spec
|
|
174
|
+
val openId4vpRequest = """
|
|
175
|
+
{
|
|
176
|
+
"requests": [
|
|
177
|
+
{
|
|
178
|
+
"protocol": "openid4vp-v1-unsigned",
|
|
179
|
+
"data": {
|
|
180
|
+
"response_type": "vp_token",
|
|
181
|
+
"response_mode": "dc_api",
|
|
182
|
+
"nonce": "$nonce",
|
|
183
|
+
"dcql_query": {
|
|
184
|
+
"credentials": [
|
|
185
|
+
{
|
|
186
|
+
"id": "user_info_query",
|
|
187
|
+
"format": "dc+sd-jwt",
|
|
188
|
+
"meta": {
|
|
189
|
+
"vct_values": ["UserInfoCredential"]
|
|
190
|
+
},
|
|
191
|
+
"claims": [
|
|
192
|
+
{"path": ["email"]},
|
|
193
|
+
{"path": ["name"]},
|
|
194
|
+
{"path": ["given_name"]},
|
|
195
|
+
{"path": ["family_name"]},
|
|
196
|
+
{"path": ["picture"]},
|
|
197
|
+
{"path": ["hd"]},
|
|
198
|
+
{"path": ["email_verified"]}
|
|
199
|
+
]
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
"""
|
|
208
|
+
|
|
209
|
+
val getDigitalCredentialOption = GetDigitalCredentialOption(requestJson = openId4vpRequest)
|
|
210
|
+
val request = GetCredentialRequest(listOf(getDigitalCredentialOption))
|
|
211
|
+
|
|
212
|
+
The request contains the following key information:
|
|
213
|
+
|
|
214
|
+
- **DCQL query** : The `dcql_query` specifies the credential type and the
|
|
215
|
+
claims being requested (`email_verified`). You can request other claims to
|
|
216
|
+
determine the level of verification. A few possible claims are as follows:
|
|
217
|
+
|
|
218
|
+
- `email_verified`: In the response, this is a Boolean that indicates whether the email is verified.
|
|
219
|
+
- `hd` (hosted domain): In the response, this is empty.
|
|
220
|
+
|
|
221
|
+
> [!NOTE]
|
|
222
|
+
> **Note:** If `email_verified` is `true` and `hd` is empty in the response, it implies that the account is an authorized Google Account. Google does not issue [verifiable credentials](references/android/identity/digital-credentials/index.md) for Google Workspace Accounts. However, the `hd` field is present in verifiable credentials issued for non-workspace accounts. You are encouraged to implement handling this field to future-proof your app. If the email is non-@gmail.com, Google verified this email when the Google Account was created, but there is no freshness claim. Therefore, for non-Google emails, you should consider an additional challenge, such as an OTP, to verify the user. To understand the schema of the credential and the specific rules for validating fields like `email_verified`, refer to the [Google
|
|
223
|
+
> Identity guides](https://developers.google.com/identity/gsi/web/guides/verify-google-id-token).
|
|
224
|
+
|
|
225
|
+
- **nonce**: A unique, cryptographically secure random value is generated for
|
|
226
|
+
each request. This is critical for security, as it prevents replay attacks.
|
|
227
|
+
|
|
228
|
+
- `UserInfoCredential`: This value implies a specific type of digital
|
|
229
|
+
credential that contains user attributes. Including this in the request is
|
|
230
|
+
pivotal to distinguish the email verification use case.
|
|
231
|
+
|
|
232
|
+
Next, wrap the `openId4vpRequest` JSON in a `GetDigitalCredentialOption`, create
|
|
233
|
+
a `GetCredentialRequest`, and call `getCredential()`.
|
|
234
|
+
|
|
235
|
+
> [!NOTE]
|
|
236
|
+
> **Note:** The `hd` and `email_verified` fields are hidden from users in Credential Manager's built-in UI. You cannot make a request with only these hidden fields- in case of such requests, the response is the [`GetCredentialCancellationException`](https://developer.android.com/reference/kotlin/androidx/credentials/exceptions/GetCredentialCancellationException).
|
|
237
|
+
|
|
238
|
+
## Present the request to the user
|
|
239
|
+
|
|
240
|
+
Present the user with the request, using the Credential Manager built-in UI.
|
|
241
|
+
|
|
242
|
+
try {
|
|
243
|
+
// Requesting Digital Credential from user...
|
|
244
|
+
val result = credentialManager.getCredential(activity, request)
|
|
245
|
+
|
|
246
|
+
when (val credential = result.credential) {
|
|
247
|
+
is DigitalCredential -> {
|
|
248
|
+
val responseJsonString = credential.credentialJson
|
|
249
|
+
|
|
250
|
+
// Successfully received digital credential response.
|
|
251
|
+
|
|
252
|
+
// Next, parse this response and send it to your server.
|
|
253
|
+
// ...
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
else -> {
|
|
257
|
+
// handle Unexpected State() - Up to the developer
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
} catch (e: Exception) {
|
|
261
|
+
// handle exceptions - Up to the developer
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
> [!NOTE]
|
|
265
|
+
> **Note:** There is no equivalent of Sign in with Google's `preferImmediatelyAvailableCredentials` for Digital Credentials. If no verifiable credential is found (for example, no eligible account on device), the user will be shown a "No options available" or similar system screen.
|
|
266
|
+
|
|
267
|
+
## Parse the response on the client
|
|
268
|
+
|
|
269
|
+
> [!WARNING]
|
|
270
|
+
> **Warning:** From August 2026, the [response JSON](https://developer.android.com/reference/androidx/credentials/DigitalCredential#getCredentialJson()) format has been updated to strictly match the W3C standards. It contains `data` and `protocol` keys, with the OpenID4VP `vp_token` nested in `data`, while legacy formats hold the `vp_token` directly. Ensure your client-side parsing and server-side validation handle both formats during the transition period, while the older implementation is phased out. Apps that begin to integrate the email verification flow after August 2026 need to use the new format only.
|
|
271
|
+
|
|
272
|
+
After receiving the response, you can perform a preliminary parse on the client.
|
|
273
|
+
This is useful for immediately updating the UI, for example, by showing the
|
|
274
|
+
user's name.
|
|
275
|
+
|
|
276
|
+
> [!IMPORTANT]
|
|
277
|
+
> **Important:** This step is not for validation. Full cryptographic verification must be performed on your server.
|
|
278
|
+
|
|
279
|
+
The following code extracts the raw [Selective Disclosure JWT
|
|
280
|
+
(SD-JWT)](https://datatracker.ietf.org/doc/rfc9901/) and uses a helper to decode its claims.
|
|
281
|
+
|
|
282
|
+
// 1. Parse the outer JSON wrapper to get the `vp_token`
|
|
283
|
+
val responseData = JSONObject(responseJsonString)
|
|
284
|
+
val dataObject = responseData.getJSONObject("data")
|
|
285
|
+
val vpToken = dataObject.getJSONObject("vp_token")
|
|
286
|
+
|
|
287
|
+
// 2. Extract the raw SD-JWT string
|
|
288
|
+
val credentialId = vpToken.keys().next()
|
|
289
|
+
val rawSdJwt = vpToken.getJSONArray(credentialId).getString(0)
|
|
290
|
+
|
|
291
|
+
// 3. Use your parser to get the verified claims
|
|
292
|
+
// Server-side validation/parsing is highly recommended.
|
|
293
|
+
|
|
294
|
+
// Assumes a local parser like the one in our SdJwtParser.kt sample
|
|
295
|
+
val claims = SdJwtParser.parse(rawSdJwt)
|
|
296
|
+
Log.d("TAG", "Parsed Claims: ${claims.toString(2)}")
|
|
297
|
+
|
|
298
|
+
// 4. Create your VerifiedUserInfo object with REAL data
|
|
299
|
+
val userInfo = VerifiedUserInfo(
|
|
300
|
+
email = claims.getString("email"),
|
|
301
|
+
displayName = claims.optString("name", claims.getString("email"))
|
|
302
|
+
)
|
|
303
|
+
|
|
304
|
+
## Handle the response
|
|
305
|
+
|
|
306
|
+
The Credential Manager API will return a [`DigitalCredential`](https://developer.android.com/reference/androidx/credentials/DigitalCredential)
|
|
307
|
+
response.
|
|
308
|
+
|
|
309
|
+
The following is an example of what the raw `responseJsonString` looks like, and
|
|
310
|
+
what the claims look like after parsing the inner SD-JWT where you get
|
|
311
|
+
additional metadata as well along with verified email:
|
|
312
|
+
|
|
313
|
+
/*
|
|
314
|
+
// Example of the raw JSON response from credential.credentialJson:
|
|
315
|
+
{
|
|
316
|
+
"protocol": "openid4vp-v1-unsigned",
|
|
317
|
+
"data": {
|
|
318
|
+
"vp_token": {
|
|
319
|
+
// This key matches the 'id' you set in your dcql_query
|
|
320
|
+
"user_info_query": [
|
|
321
|
+
// The SD-JWT string (Issuer JWT ~ Disclosures ~ Key Binding JWT)
|
|
322
|
+
"eyJhbGciOiJ...~WyI...IiwgImVtYWlsIiwgInVzZXJAZXhhbXBsZS5jb20iXQ~...~eyJhbGciOiJ..."
|
|
323
|
+
]
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
// Example of the parsed and verified claims from the SD-JWT on your server:
|
|
329
|
+
{
|
|
330
|
+
"cnf": {
|
|
331
|
+
"jwk": {..}
|
|
332
|
+
},
|
|
333
|
+
"exp": 1775688222,
|
|
334
|
+
"iat": 1775083422,
|
|
335
|
+
"iss": "https://verifiablecredentials-pa.googleapis.com",
|
|
336
|
+
"vct": "UserInfoCredential",
|
|
337
|
+
"email": "jane.doe.246745@gmail.com",
|
|
338
|
+
"email_verified": true,
|
|
339
|
+
"given_name": "Jane",
|
|
340
|
+
"family_name": "Doe",
|
|
341
|
+
"name": "Jane Doe",
|
|
342
|
+
"picture": "http://example.com/janedoe/me.jpg",
|
|
343
|
+
"hd": ""
|
|
344
|
+
}
|
|
345
|
+
*/
|
|
346
|
+
|
|
347
|
+
> [!IMPORTANT]
|
|
348
|
+
> **Important:** We highly recommend that after receiving the verified email, you trigger Credential Manager's [passkey creation](https://developer.android.com/identity/credential-manager/passkeys/create-passkeys).
|
|
349
|
+
|
|
350
|
+
## Server-side validation for account creation
|
|
351
|
+
|
|
352
|
+
Since the retrieved email is cryptographically verified, you can omit the email
|
|
353
|
+
OTP verification step, significantly reducing sign-up friction and potentially
|
|
354
|
+
increasing conversion. This process is best handled on your server. The client
|
|
355
|
+
sends the raw response (containing the `vp_token`) and the original nonce to a
|
|
356
|
+
new server endpoint.
|
|
357
|
+
|
|
358
|
+
For verification, your application must send the full `responseJsonString` to
|
|
359
|
+
your server for cryptographic validation before creating an account or logging
|
|
360
|
+
the user in.
|
|
361
|
+
|
|
362
|
+
The digital credential provides two critical levels of verification for your
|
|
363
|
+
server:
|
|
364
|
+
|
|
365
|
+
- **Authenticity of the data** : Verifying the issuer (`iss`) URL and the `SD-JWT` signature proves that a trusted authority issued this data.
|
|
366
|
+
- **Identity of the presenter** : Verifying the `cnf` field and the Key Binding (`kb`) signature confirms that the credential is being shared by the same device it was originally issued to, preventing it from being intercepted or used on another device.
|
|
367
|
+
|
|
368
|
+
The validation on the server must achieve the following:
|
|
369
|
+
|
|
370
|
+
- **Verify issuer** : Ensure the `iss` (issuer) field matches `https://verifiablecredentials-pa.googleapis.com`.
|
|
371
|
+
- **Verify signature**: Check the signature of the SD-JWT using the public keys (JWKs) available at https://verifiablecredentials-pa.googleapis.com/.well-known/vc-public-jwks.
|
|
372
|
+
|
|
373
|
+
> [!NOTE]
|
|
374
|
+
> **Note:** Use a standard library (such as [@sd-jwt/sd-jwt-vc](https://datatracker.ietf.org/doc/rfc9901/) for Node.js) to perform the verification steps as outlined in the [OpenID for Verifiable
|
|
375
|
+
> Presentations specification](https://openid.net/specs/openid-4-verifiable-presentations-1_0.html).
|
|
376
|
+
|
|
377
|
+
For full security, make sure that you also validate the `nonce` to prevent
|
|
378
|
+
replay attacks.
|
|
379
|
+
|
|
380
|
+
By combining these steps, your server can validate both the authenticity of the
|
|
381
|
+
data and the identity of the presenter, ensuring the credential wasn't
|
|
382
|
+
intercepted or spoofed before provisioning the new account.
|
|
383
|
+
|
|
384
|
+
> [!WARNING]
|
|
385
|
+
> **Warning:** As mentioned in [Parse the response on the client](#parse-response), from August 2026, the [response JSON](https://developer.android.com/reference/androidx/credentials/DigitalCredential#getCredentialJson()) format has been updated to match W3C standards. Ensure your client-side parsing and server-side validation handle both formats during the transition period, while the older implementation is phased out. Apps that begin to integrate the email verification flow after August 2026 need to use the new format only.
|
|
386
|
+
|
|
387
|
+
try {
|
|
388
|
+
// Send the raw credential response and the original nonce to your server.
|
|
389
|
+
// Your server must validate the response. createAccountWithVerifiedCredentials
|
|
390
|
+
// is a custom implementation per each RP for server side verification and account creation.
|
|
391
|
+
val serverResponse = createAccountWithVerifiedCredentials(responseJsonString, nonce)
|
|
392
|
+
|
|
393
|
+
// Server returns the new account info (e.g., email, name)
|
|
394
|
+
val claims = JSONObject(serverResponse.json)
|
|
395
|
+
|
|
396
|
+
val userInfo = VerifiedUserInfo(
|
|
397
|
+
email = claims.getString("email"),
|
|
398
|
+
displayName = claims.optString("name", claims.getString("email"))
|
|
399
|
+
)
|
|
400
|
+
|
|
401
|
+
// handle response - Up to the developer
|
|
402
|
+
} catch (e: Exception) {
|
|
403
|
+
// handle exceptions - Up to the developer
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
## Passkey creation
|
|
407
|
+
|
|
408
|
+
An optional but highly recommended next step after provisioning an account is to
|
|
409
|
+
immediately [create a passkey](references/android/identity/passkeys/create-passkeys.md) for that account. This provides a secure,
|
|
410
|
+
passwordless method for the user to sign in. This flow is identical to a
|
|
411
|
+
standard passkey registration.
|
|
412
|
+
|
|
413
|
+
## WebView support
|
|
414
|
+
|
|
415
|
+
For the flow to work on a [`WebView`](https://developer.android.com/reference/android/webkit/WebView), developers should implement a
|
|
416
|
+
[JavaScript bridge](references/android/identity/sign-in/credential-manager-webview.md) (JS Bridge) to facilitate the handoff. This bridge
|
|
417
|
+
allows the `WebView` object to signal the native app, which can then perform the
|
|
418
|
+
actual call to the Credential Manager API.
|
|
419
|
+
|
|
420
|
+
## See also
|
|
421
|
+
|
|
422
|
+
- [Overview of verified email retrieval](references/android/identity/digital-credentials/email-verification.md)
|
|
423
|
+
- [Credential Manager](references/android/identity/credential-manager/index.md)
|
|
424
|
+
|
|
425
|
+
## Critical Security Guidelines
|
|
426
|
+
|
|
427
|
+
To maintain the integrity of the email verification flow, the following security
|
|
428
|
+
requirements are mandatory:
|
|
429
|
+
|
|
430
|
+
- **Server-side Validation** : Never trust claims parsed on the client for security-sensitive operations like account creation. Send the complete, raw `responseJsonString` and the original `nonce` to the app's server for full verification.
|
|
431
|
+
- **Nonce Integrity** : Generate a unique, cryptographically secure nonce for every request and **never** reuse a nonce across multiple requests to prevent replay attacks.
|
|
432
|
+
- **Cryptographic Checks** : The app's server must validate the issuer (`iss`) field, the SD-JWT signature, and the presenter identity using the `cnf` field.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
[Credential Manager](https://developer.android.com/reference/kotlin/androidx/credentials/package-summary) is the recommended Jetpack API for credential exchange
|
|
2
|
+
in Android apps. The Credential Manager API streamlines credential exchange
|
|
3
|
+
across form factors for use cases spanning authentication and authorization. You
|
|
4
|
+
can also use Credential Manager to handle digital credentials and restore user
|
|
5
|
+
credentials on new Android devices.
|
|
6
|
+
|
|
7
|
+
## Credential Manager features
|
|
8
|
+
|
|
9
|
+
Credential Manager streamlines the sign-in process and enhances security by
|
|
10
|
+
offering a robust set of capabilities, including:
|
|
11
|
+
|
|
12
|
+
- **Support for various authentication mechanisms** : Enables users to sign up or sign in to your app using:
|
|
13
|
+
- [Passkeys](https://developer.android.com/identity/passkeys)
|
|
14
|
+
- [Sign-in with Google](https://developer.android.com/identity/sign-in/credential-manager-siwg) and other federated sign-in mechanisms
|
|
15
|
+
- [Passwords](https://developer.android.com/identity/passwords)
|
|
16
|
+
- [Digital credentials](https://developer.android.com/identity/digital-credentials)
|
|
17
|
+
- **Cross-device credential restore** : Provides integration with [Restore
|
|
18
|
+
Credentials](https://developer.android.com/identity/sign-in/restore-credentials), allowing users to seamlessly start using your app on a new device.
|
|
19
|
+
- **Seamless integration with credential providers** : Offers support for [credential providers](https://developer.android.com/identity/sign-in/credential-provider), including password managers such as Google Password Manager.
|
|
20
|
+
- **Credential management**: Enables updating the metadata for user credentials, helping to keep credentials consistent across your app and credential providers.
|
|
21
|
+
- **WebView compatibility** : Works with apps that use [WebView](https://developer.android.com/identity/sign-in/credential-manager-webview).
|
|
22
|
+
- **Autofill integration** : Integrates with [autofill](https://developer.android.com/identity/autofill/credential-manager-autofill) to display credentials within the autofill UI.
|
|
23
|
+
|
|
24
|
+
## Benefits of using Credential Manager
|
|
25
|
+
|
|
26
|
+
Adopting Credential Manager provides several key advantages for both your
|
|
27
|
+
application and your users:
|
|
28
|
+
|
|
29
|
+
- **Enhanced security**: Passkeys offer enhanced security and protect users from phishing attempts.
|
|
30
|
+
- **Support for various form factors** : The APIs work across Android [form
|
|
31
|
+
factors](https://developer.android.com/identity/form-factors), including mobile, Android XR, and Wear OS devices.
|
|
32
|
+
- **Simplified authentication across use cases** : [Digital credentials](https://developer.android.com/identity/digital-credentials), such as digital driver's licenses, corporate IDs, and national ID cards, enable authentication across various use cases, including those requiring [phone number verification](https://developer.android.com/identity/digital-credentials/phone-number-verification).
|
|
33
|
+
- **Improved user experience**: Credential Manager's unified interface gives users a familiar and consistent experience and improves registration and sign-in speeds. The bottom sheet UI appears inline to your app's content, so your users remain within your app's context during sign-in. The following image shows Credential Manager's built-in UI:
|
|
34
|
+
|
|
35
|
+
 **Figure 1.**Credential Manager's built-in unified interface for passkeys, passwords, and federated sign-ins
|
|
36
|
+
|
|
37
|
+
## Authentication terminology
|
|
38
|
+
|
|
39
|
+
An entity that requires authentication for its users is known as a **relying
|
|
40
|
+
party**. An authentication workflow typically includes the following components:
|
|
41
|
+
|
|
42
|
+
- **Relying party client app**: The client---in this case, your Android app---that handles the user interface to create and use passkeys.
|
|
43
|
+
- **Relying party server**: An app server that helps with the creation, storage, and verification of passkeys.
|
|
44
|
+
- **Credential provider** : A component that stores and provides user credentials, such as Google Password Manager. Note that the [FIDO documentation](https://fidoalliance.org/passkeys/) refers to credential providers as credential managers.
|
|
45
|
+
|
|
46
|
+
## Credential storage
|
|
47
|
+
|
|
48
|
+
Credential providers, such as Google Password Manager, provide a centralized and
|
|
49
|
+
secure location for users to manage credentials across their devices, further
|
|
50
|
+
simplifying the authentication process. To integrate with Credential Manager as
|
|
51
|
+
a credential provider, see
|
|
52
|
+
[Implement authentication as a credential provider](https://developer.android.com/identity/sign-in/credential-provider).
|
|
53
|
+
|
|
54
|
+
For more information about how Google Password Manager keeps your credentials
|
|
55
|
+
secure, see
|
|
56
|
+
[Security of Passkeys in the Google Password Manager](https://security.googleblog.com/2022/10/SecurityofPasskeysintheGooglePasswordManager.html).
|
|
57
|
+
|
|
58
|
+
## Migrate to Credential Manager
|
|
59
|
+
|
|
60
|
+
Credential Manager is intended to replace legacy Android authentication APIs and
|
|
61
|
+
local FIDO2 credentials. For more information about migrating to Credential
|
|
62
|
+
Manager, see the following guides:
|
|
63
|
+
|
|
64
|
+
- [Google Sign-In](https://developer.android.com/identity/sign-in/legacy-gsi-migration)
|
|
65
|
+
- [One Tap](https://developer.android.com/identity/legacy/one-tap)
|
|
66
|
+
- [Smart Lock for Passwords](https://developer.android.com/identity/sign-in/smart-lock-migration)
|
|
67
|
+
- [FIDO2](https://developer.android.com/identity/sign-in/fido2-migration)
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
Digital credential verification within Android apps can be used to authenticate
|
|
2
|
+
and authorize a user's identity (such as a government ID), properties about that
|
|
3
|
+
user (such as a driver's license, academic degree, or attributes such as age or
|
|
4
|
+
address), or other scenarios where a credential needs to be issued and verified
|
|
5
|
+
to assert the authenticity of an entity.
|
|
6
|
+
|
|
7
|
+
Digital Credentials is a public W3C standard that specifies how to access a
|
|
8
|
+
user's verifiable digital credentials from a digital wallet, and is implemented
|
|
9
|
+
for web use cases with the [W3C Credential Management API](https://www.w3.org/TR/credential-management-1/). On
|
|
10
|
+
Android, Credential Manager's [`DigitalCredential`](https://developer.android.com/reference/kotlin/androidx/credentials/DigitalCredential) API is used for
|
|
11
|
+
verifying digital credentials.
|
|
12
|
+
|
|
13
|
+
### Android version compatibility
|
|
14
|
+
|
|
15
|
+
The Verifier API is supported on Android 6 (API level 23) and higher.
|
|
16
|
+
|
|
17
|
+
### Implementation
|
|
18
|
+
|
|
19
|
+
To verify digital credentials in your Android project, do the following:
|
|
20
|
+
|
|
21
|
+
1. Add dependencies to your app's build script and initialize a `CredentialManager` class.
|
|
22
|
+
2. Construct a digital credential request and use it to initialize a `DigitalCredentialOption`, followed by building the `GetCredentialRequest`.
|
|
23
|
+
3. Launch the `getCredential` flow with the constructed request to receive a successful `GetCredentialResponse` or handle any exceptions that may occur. Upon successful retrieval, validate the response.
|
|
24
|
+
|
|
25
|
+
#### Add dependencies and initialize
|
|
26
|
+
|
|
27
|
+
Add the following dependencies to your Gradle build script:
|
|
28
|
+
|
|
29
|
+
dependencies {
|
|
30
|
+
implementation("androidx.credentials:credentials:1.6.0-beta01")
|
|
31
|
+
implementation("androidx.credentials:credentials-play-services-auth:1.6.0-beta01")
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
Next, Initialize an instance of the `CredentialManager` class.
|
|
35
|
+
|
|
36
|
+
val credentialManager = CredentialManager.create(context)
|
|
37
|
+
|
|
38
|
+
#### Construct a digital credential request
|
|
39
|
+
|
|
40
|
+
Construct a digital credential request and use it to initialize a
|
|
41
|
+
`DigitalCredentialOption`.
|
|
42
|
+
|
|
43
|
+
// The request in the JSON format to conform with
|
|
44
|
+
// the JSON-ified Credential Manager - Verifier API request definition.
|
|
45
|
+
val requestJson = generateRequestFromServer()
|
|
46
|
+
val digitalCredentialOption =
|
|
47
|
+
GetDigitalCredentialOption(requestJson = requestJson)
|
|
48
|
+
|
|
49
|
+
// Use the option from the previous step to build the `GetCredentialRequest`.
|
|
50
|
+
val getCredRequest = GetCredentialRequest(
|
|
51
|
+
listOf(digitalCredentialOption)
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
Here is an example of an OpenId4Vp request. A full reference can be found at
|
|
55
|
+
this [website](https://openid.net/specs/openid-4-verifiable-presentations-1_0.html).
|
|
56
|
+
|
|
57
|
+
{
|
|
58
|
+
"requests": [
|
|
59
|
+
{
|
|
60
|
+
"protocol": "openid4vp-v1-unsigned",
|
|
61
|
+
"data": {
|
|
62
|
+
"response_type": "vp_token",
|
|
63
|
+
"response_mode": "dc_api",
|
|
64
|
+
"nonce": "OD8eP8BYfr0zyhgq4QCVEGN3m7C1Ht_No9H5fG5KJFk",
|
|
65
|
+
"dcql_query": {
|
|
66
|
+
"credentials": [
|
|
67
|
+
{
|
|
68
|
+
"id": "cred1",
|
|
69
|
+
"format": "mso_mdoc",
|
|
70
|
+
"meta": {
|
|
71
|
+
"doctype_value": "org.iso.18013.5.1.mDL"
|
|
72
|
+
},
|
|
73
|
+
"claims": [
|
|
74
|
+
{
|
|
75
|
+
"path": [
|
|
76
|
+
"org.iso.18013.5.1",
|
|
77
|
+
"family_name"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"path": [
|
|
82
|
+
"org.iso.18013.5.1",
|
|
83
|
+
"given_name"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"path": [
|
|
88
|
+
"org.iso.18013.5.1",
|
|
89
|
+
"age_over_21"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
#### Get the credential
|
|
102
|
+
|
|
103
|
+
Launch the `getCredential` flow with the constructed request. You will receive
|
|
104
|
+
either a successful `GetCredentialResponse`, or a `GetCredentialException` if
|
|
105
|
+
the request fails.
|
|
106
|
+
|
|
107
|
+
The `getCredential` flow triggers Android system dialogs to present the user's
|
|
108
|
+
available credential options and collect their selection. Next, the wallet app
|
|
109
|
+
that contains the chosen credential option will display UIs to collect consent
|
|
110
|
+
and perform actions needed to generate a digital credential response.
|
|
111
|
+
|
|
112
|
+
coroutineScope.launch {
|
|
113
|
+
try {
|
|
114
|
+
val result = credentialManager.getCredential(
|
|
115
|
+
context = activityContext,
|
|
116
|
+
request = getCredRequest
|
|
117
|
+
)
|
|
118
|
+
verifyResult(result)
|
|
119
|
+
} catch (e : GetCredentialException) {
|
|
120
|
+
handleFailure(e)
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Handle the successfully returned credential.
|
|
125
|
+
fun verifyResult(result: GetCredentialResponse) {
|
|
126
|
+
val credential = result.credential
|
|
127
|
+
when (credential) {
|
|
128
|
+
is DigitalCredential -> {
|
|
129
|
+
val responseJson = credential.credentialJson
|
|
130
|
+
validateResponseOnServer(responseJson)
|
|
131
|
+
}
|
|
132
|
+
else -> {
|
|
133
|
+
// Catch any unrecognized credential type here.
|
|
134
|
+
Log.e(TAG, "Unexpected type of credential ${credential.type}")
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// Handle failure.
|
|
140
|
+
fun handleFailure(e: GetCredentialException) {
|
|
141
|
+
when (e) {
|
|
142
|
+
is GetCredentialCancellationException -> {
|
|
143
|
+
// The user intentionally canceled the operation and chose not
|
|
144
|
+
// to share the credential.
|
|
145
|
+
}
|
|
146
|
+
is GetCredentialInterruptedException -> {
|
|
147
|
+
// Retry-able error. Consider retrying the call.
|
|
148
|
+
}
|
|
149
|
+
is NoCredentialException -> {
|
|
150
|
+
// No credential was available.
|
|
151
|
+
}
|
|
152
|
+
is CreateCredentialUnknownException -> {
|
|
153
|
+
// An unknown, usually unexpected, error has occurred. Check the
|
|
154
|
+
// message error for any additional debugging information.
|
|
155
|
+
}
|
|
156
|
+
is CreateCredentialCustomException -> {
|
|
157
|
+
// You have encountered a custom error thrown by the wallet.
|
|
158
|
+
// If you made the API call with a request object that's a
|
|
159
|
+
// subclass of CreateCustomCredentialRequest using a 3rd-party SDK,
|
|
160
|
+
// then you should check for any custom exception type constants
|
|
161
|
+
// within that SDK to match with e.type. Otherwise, drop or log the
|
|
162
|
+
// exception.
|
|
163
|
+
}
|
|
164
|
+
else -> Log.w(TAG, "Unexpected exception type ${e::class.java}")
|
|
165
|
+
}
|
|
166
|
+
}
|